2 lyric-register.cc -- implement Lyric_register
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
9 #include "lyric-register.hh"
10 #include "musical-request.hh"
11 #include "text-item.hh"
12 #include "paper-def.hh"
15 Lyric_register::Lyric_register()
20 Lyric_register::do_try_request(Request*r)
22 Musical_req * m =r->musical();
23 if (!m || ! m->lreq_l())
25 lreq_arr_.push(m->lreq_l());
31 Lyric_register::do_process_requests()
33 Text_item * last_item_l =0;
34 for (int i=0; i < lreq_arr_.size(); i++) {
35 Text_item *lp = new Text_item(lreq_arr_[i]->tdef_p_ );
39 lp->add_support(last_item_l);
46 Lyric_register::do_post_move_processing()
48 lreq_arr_.set_size(0);
52 IMPLEMENT_STATIC_NAME(Lyric_register);
53 IMPLEMENT_IS_TYPE_B1(Lyric_register,Request_register);
54 ADD_THIS_REGISTER(Lyric_register);