]> git.donarmstrong.com Git - lilypond.git/blob - src/lyricwalker.cc
bd8ac0e40da56f1d39ab3c91e7615d830ae13e95
[lilypond.git] / src / lyricwalker.cc
1 //
2 //  what about 
3 //      #include "flower.hh"
4 //      #include "lily.hh"
5 //
6 //  or should we first devide lily/src up ?
7 // HWN: huh?
8
9 #include "textspanner.hh"
10 #include "script.hh"
11 #include "request.hh"
12 #include "voice.hh"
13 #include "pscore.hh"
14 #include "lyricstaff.hh"
15 #include "lyricwalker.hh"
16 #include "sccol.hh"
17 #include "debug.hh"
18 #include "lyricitem.hh"
19
20 void
21 Lyric_walker::do_word(Word_info)
22 {
23 }
24
25 void
26 Lyric_walker::do_INTERPRET_command(Command* )
27 {
28 //    WARN << "command for Lyrics found\n";
29 }
30
31 void
32 Lyric_walker::do_TYPESET_command(Command* )
33 {
34 //    WARN << "command for Lyrics found\n";
35 }
36
37 void
38 Lyric_walker::process_requests()
39 {
40     Lyric_column* lcol_l = Lyric_walker::lcol_l();
41
42     for (int i = 0; i <  lcol_l->winfo_array_.size(); i++)  {
43         lcol_l->typeset_item(new Lyric_item(lcol_l->winfo_array_[i].lreq_l_, i));
44     }
45     
46 }
47
48 Lyric_walker::Lyric_walker(Lyric_staff* lstaff_l)
49     : Staff_walker(lstaff_l, lstaff_l->line_pstaff_p_->pscore_l_)
50 {
51     reset();
52 }
53
54
55
56 Lyric_staff*
57 Lyric_walker::lstaff_l()
58 {
59     return (Lyric_staff*)staff_;
60 }
61
62 Lyric_column*
63 Lyric_walker::lcol_l()
64 {
65     return (Lyric_column*) *(*this);
66 }
67
68 void
69 Lyric_walker::reset()
70 {
71 }
72