]> git.donarmstrong.com Git - lilypond.git/blob - src/lyricwalker.cc
release: 0.0.26
[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 "request.hh"
10 #include "voice.hh"
11 #include "pscore.hh"
12 #include "lyricstaff.hh"
13 #include "lyricwalker.hh"
14 #include "sccol.hh"
15 #include "debug.hh"
16 #include "lyricitem.hh"
17
18 void
19 Lyric_walker::do_word(Word_info)
20 {
21 }
22
23 void
24 Lyric_walker::do_INTERPRET_command(Command* )
25 {
26 //    WARN << "command for Lyrics found\n";
27 }
28
29 void
30 Lyric_walker::do_TYPESET_command(Command* )
31 {
32 //    WARN << "command for Lyrics found\n";
33 }
34
35 void
36 Lyric_walker::process_requests()
37 {
38     Lyric_column* lcol_l = Lyric_walker::lcol_l();
39
40     for (int i = 0; i <  lcol_l->winfo_array_.size(); i++)  {
41         lcol_l->typeset_item(new Lyric_item(lcol_l->winfo_array_[i].lreq_l_, i));
42     }
43     
44 }
45
46 Lyric_walker::Lyric_walker(Lyric_staff* lstaff_l)
47     : Staff_walker(lstaff_l, lstaff_l->line_pstaff_p_->pscore_l_)
48 {
49     reset();
50 }
51
52
53
54 Lyric_staff*
55 Lyric_walker::lstaff_l()
56 {
57     return (Lyric_staff*)staff_l_;
58 }
59
60 Lyric_column*
61 Lyric_walker::lcol_l()
62 {
63     return (Lyric_column*) *(*this);
64 }
65
66 void
67 Lyric_walker::reset()
68 {
69 }
70