lilypond-0.1.57
[lilypond.git] / lily / lyric-walker.cc
blob6643215ea3ab13af7eed88a5975aa7dad7a9795b
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 "musical-request.hh"
10 #include "voice.hh"
11 #include "p-score.hh"
12 #include "lyric-staff.hh"
13 #include "lyric-walker.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_)