2 bar-reg.cc -- implement Bar_register
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
11 #include "command-request.hh"
12 #include "time-description.hh"
14 Bar_register::Bar_register()
16 do_post_move_processing();
20 Bar_register::do_try_request(Request
*r_l
)
22 Command_req
* c_l
= r_l
->command();
23 if (!c_l
|| !c_l
->bar())
25 Bar_req
* b
= c_l
->bar();
26 if (bar_req_l_
&& bar_req_l_
->compare(*b
))
35 Bar_register::do_process_requests()
39 bar_p_
->type_str_
=bar_req_l_
->type_str_
;
40 } else if (!get_staff_info().time_C_
->whole_in_measure_
) {
45 announce_element(Score_elem_info(bar_p_
, bar_req_l_
) );
51 Bar_register::do_pre_move_processing()
54 typeset_breakable_item(bar_p_
);
60 Bar_register::do_post_move_processing()
66 IMPLEMENT_STATIC_NAME(Bar_register
);
67 IMPLEMENT_IS_TYPE_B1(Bar_register
,Request_register
);
68 ADD_THIS_REGISTER(Bar_register
);