2 lyric-register.cc -- implement Lyric_register
4 source file of the LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
9 #include "staff-walker.hh"
10 #include "lyric-register.hh"
11 #include "musical-request.hh"
12 #include "text-item.hh"
13 #include "paper-def.hh"
16 Lyric_register::Lyric_register()
21 Lyric_register::try_request(Request*r)
23 Musical_req * m =r->musical();
24 if (!m || ! m->lreq_l())
26 lreq_arr_.push(m->lreq_l());
32 Lyric_register::process_requests()
34 Text_item * last_item_l =0;
35 for (int i=0; i < lreq_arr_.size(); i++) {
36 Text_item *lp = new Text_item(lreq_arr_[i]->tdef_p_ );
40 lp->add_support(last_item_l);
44 get_staff_info().walk_l_->allow_break();
48 Lyric_register::post_move_processing()
50 lreq_arr_.set_size(0);
55 Lyric_register::acceptable_request_b(Request*r)
57 Musical_req * m =r->musical();
58 return (!m || ! m->lreq_l()) ;
61 IMPLEMENT_STATIC_NAME(Lyric_register);
62 ADD_THIS_REGISTER(Lyric_register);