]> git.donarmstrong.com Git - lilypond.git/blob - src/lyricwalker.cc
release: 0.0.33
[lilypond.git] / src / lyricwalker.cc
1 /*
2   lyricwalker.cc -- implement Lyric_walker
3
4   source file of the LilyPond music typesetter
5
6   (c) 1997 Jan Nieuwenhuizen <jan@digicash.com>
7 */
8
9 #include "musicalrequest.hh"
10 #include "voice.hh"
11 #include "pscore.hh"
12 #include "lyricstaff.hh"
13 #include "lyricwalker.hh"
14 #include "debug.hh"
15 #include "lyricitem.hh"
16
17 void
18 Lyric_walker::process_requests()
19 {
20     allow_break();
21     for (int i = 0; i <  lcol_l()->lreq_l_array_.size(); i++)  {
22         lcol_l()->typeset_item(
23             new Lyric_item(lcol_l()->lreq_l_array_[i],i)
24             );
25     }
26 }
27
28 Lyric_walker::Lyric_walker(Lyric_staff* lstaff_l)
29     : Staff_walker(lstaff_l, lstaff_l->pstaff_l_->pscore_l_)
30 {
31
32 }
33
34
35
36 Lyric_staff*
37 Lyric_walker::lstaff_l()
38 {
39     return (Lyric_staff*)staff_l_;
40 }
41
42 Lyric_column*
43 Lyric_walker::lcol_l()
44 {
45     return (Lyric_column*) *(*this);
46 }