]> git.donarmstrong.com Git - lilypond.git/blob - lily/lyric-performer.cc
patch::: 0.0.74pre.jcn1: pats
[lilypond.git] / lily / lyric-performer.cc
1 /*
2   lyric-performer.cc -- implement Lyric_performer
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7            Jan Nieuwenhuizen <jan@digicash.com>
8 */
9
10 #include "lyric-performer.hh"
11 #include "musical-request.hh"
12 //#include "text-item.hh"
13 //#include "paper-def.hh"
14 //#include "lookup.hh"
15
16
17 IMPLEMENT_STATIC_NAME(Lyric_performer);
18 IMPLEMENT_IS_TYPE_B1(Lyric_performer,Performer);
19 ADD_THIS_PERFORMER(Lyric_performer);
20
21 Lyric_performer::Lyric_performer()
22 {
23 }
24
25 Lyric_performer::~Lyric_performer()
26 {
27 }
28
29 bool
30 Lyric_performer::do_try_request( Request* req_l )
31 {
32     Musical_req* m_l = req_l->musical();
33     if ( !m_l || ! m_l->lreq_l() ) 
34         return false;
35     lreq_arr_.push( m_l->lreq_l() );
36
37     return true;
38 }
39
40 void
41 Lyric_performer::do_process_requests()
42 {
43 #if 0
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_ );
47         lp->dir_i_ = -1;
48         lp->fat_b_ = true;
49         if (last_item_l)
50             lp->add_support(last_item_l);
51         last_item_l = lp;
52         typeset_element(lp);
53     }
54 #endif
55 }
56
57 void
58 Lyric_performer::do_post_move_processing()
59 {
60     lreq_arr_.set_size(0);
61 }
62