2 text-reg.cc -- implement Text_register
4 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 #include "musical-request.hh"
9 #include "text-item.hh"
11 Text_register::Text_register()
14 set_feature(Features::dir(0));
15 post_move_processing();
19 Text_register::try_request(Request*req_l)
24 Text_req::compare(*req_l->text(), *text_req_l_))
28 text_req_l_ = req_l->text();
33 Text_register::process_requests()
36 text_p_ = new Text_item(text_req_l_); // UGH
37 announce_element(Staff_elem_info(text_p_, text_req_l_));
41 Text_register::pre_move_processing()
44 text_p_->dir_i_ = dir_i_;
45 Staff_symbol* s_l = get_staff_info().staff_sym_l_;
46 text_p_->set_staffsym(s_l);
47 typeset_element(text_p_);
53 Text_register::set_feature(Features i)
55 dir_i_ = i.direction_i_;
58 Text_register::post_move_processing()
62 IMPLEMENT_STATIC_NAME(Text_register);
63 ADD_THIS_REGISTER(Text_register);