lilypond-1.5.9
[lilypond.git] / src / lyricwalker.cc
blob6abc2192a9c5ec0c4f43b267e5fe6861de2cb000
1 /*
2 lyricwalker.cc -- implement Lyric_walker
4 source file of the LilyPond music typesetter
6 (c) 1997 Jan Nieuwenhuizen <jan@digicash.com>
7 */
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 "lyric-item.hh"
16 #include "staff-column.hh"
18 void
19 Lyric_walker::process_requests()
21 allow_break();
23 int req_count=0;
24 for (int i = 0; i < ptr()->musicalreq_l_arr_.size(); i++) {
25 Lyric_req * lreq_l = ptr()->musicalreq_l_arr_[i]->lreq_l();
26 if (!lreq_l)
27 continue;
28 Item *lp = new Lyric_item(lreq_l,req_count++);
29 ptr()->typeset_musical_item( lp);
33 Lyric_walker::Lyric_walker(Lyric_staff* lstaff_l)
34 : Staff_walker(lstaff_l, lstaff_l->pstaff_l_->pscore_l_)