2 request-column.cc -- implement Request_column
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
8 #include "score-column.hh"
9 #include "request-column.hh"
10 #include "staff-column.hh"
14 Request_column::when()
16 if (command_column_l_
|| musical_column_l_
)
17 when_
= (command_column_l_
)? command_column_l_
->when()
18 : musical_column_l_
->when();
24 Request_column::add_reqs(int idx
, Array
<Request
*> const & req_l_arr
)
26 staff_col_l_arr_
[idx
]->add_reqs(req_l_arr
);
29 Request_column::Request_column(Link_list
<Staff
*> const& list
)
31 musical_column_l_
= command_column_l_
=0;
33 for (int i
=0; i
< list
.size(); i
++,j
++) {
34 Staff_column
* col_p
= new Staff_column
;
35 col_p
->set_req_col(this);
36 staff_col_l_arr_
.push(col_p
);
37 staff_cols_
.bottom().add(col_p
);
44 Request_column::set_score_cols(Score_column
* c1
, Score_column
*c2
)
46 command_column_l_
= c1
;
47 musical_column_l_
= c2
;
50 Request_column::used_b() const
53 if (command_column_l_
)
54 b
|= command_column_l_
->used_b();
55 if (musical_column_l_
)
56 b
|= command_column_l_
->used_b();
60 Request_column::update_time(int idx
, Time_description
&t
)
62 staff_col_l_arr_
[idx
]->update_time(t
, 0);