2 register.cc -- implement Request_register
4 Sourcefile of LilyPond musictypesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
10 #include "musicalrequest.hh"
11 #include "register.hh"
12 #include "notehead.hh"
13 #include "complex-walker.hh"
14 #include "local-key-item.hh"
15 #include "complex-staff.hh"
16 #include "registergroup.hh"
21 Request_register::try_request(Request
*)
26 Request_register::Request_register()
32 Request_register::announce_element(Staff_elem_info i
)
34 i
.origin_reg_l_arr_
.push(this);
35 daddy_reg_l_
->announce_element(i
);
39 Request_register::typeset_element(Staff_elem
*p
)
41 daddy_reg_l_
->typeset_element(p
);
45 Request_register::paper()const
47 return daddy_reg_l_
->paper();
51 Request_register::typeset_breakable_item(Item
* pre_p
, Item
* nobreak_p
,
54 daddy_reg_l_
->typeset_breakable_item(pre_p
, nobreak_p
, post_p
);
58 Request_register::acceptable_request_b(Request
*)const
64 Request_register::contains_b(Request_register
*reg_l
)
70 Request_register::get_staff_info() return inf
;
72 inf
= daddy_reg_l_
->get_staff_info();
76 Request_register::print() const
79 mtor
<< name() << " {";
86 Request_register::do_print()const