2 lyric-performer.cc -- implement Lyric_performer
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 Jan Nieuwenhuizen <jan@digicash.com>
10 #include "lyric-performer.hh"
11 #include "musical-request.hh"
12 //#include "text-item.hh"
13 //#include "paper-def.hh"
14 //#include "lookup.hh"
17 IMPLEMENT_STATIC_NAME(Lyric_performer);
18 IMPLEMENT_IS_TYPE_B1(Lyric_performer,Performer);
19 ADD_THIS_PERFORMER(Lyric_performer);
21 Lyric_performer::Lyric_performer()
25 Lyric_performer::~Lyric_performer()
30 Lyric_performer::do_try_request( Request* req_l )
32 Musical_req* m_l = req_l->musical();
33 if ( !m_l || ! m_l->lreq_l() )
35 lreq_arr_.push( m_l->lreq_l() );
41 Lyric_performer::do_process_requests()
44 Text_item * last_item_l =0;
45 for (int i=0; i < lreq_arr_.size(); i++) {
46 Text_item *lp = new Text_item(lreq_arr_[i]->tdef_p_ );
50 lp->add_support(last_item_l);
58 Lyric_performer::do_post_move_processing()
60 lreq_arr_.set_size(0);