2 textreg.cc -- implement Text_register
4 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 #include "musicalrequest.hh"
11 Text_register::Text_register(Complex_walker
*w
)
19 Text_register::try_request(Request
*req_l
)
23 if (accepted_req_arr_
.size() &&
24 Text_req::compare(*req_l
->text(), *accepted_req_arr_
[0]->text()))
28 accepted_req_arr_
.push(req_l
);
33 Text_register::process_request()
36 if (accepted_req_arr_
.size()) {
37 text_p_
= new Text_item(accepted_req_arr_
[0]->text(), 10);
38 announce_element(Staff_elem_info(text_p_
, accepted_req_arr_
[0], this));
42 Text_register::do_pre_move_process()
45 text_p_
->dir_i_
= dir_i_
;
46 typeset_element(text_p_
);
51 Text_register::set_dir(int i
)