]> git.donarmstrong.com Git - lilypond.git/blob - src/lyricstaff.cc
release: 0.0.26
[lilypond.git] / src / lyricstaff.cc
1 #include "request.hh"
2 #include "voice.hh"
3 #include "staffwalker.hh"
4 #include "debug.hh"
5 #include "staff.hh"
6 #include "command.hh"
7 #include "lyricstaff.hh"
8 #include "lyriccolumn.hh"
9 #include "linepstaff.hh"
10 #include "sccol.hh" 
11 #include "lyricwalker.hh"
12 #include "pscore.hh"
13
14
15
16 Lyric_staff::Lyric_staff()
17 {
18     line_pstaff_p_ = 0;
19 }
20
21 Staff_column*
22 Lyric_staff::create_col(Score_column*s)
23 {
24     return new Lyric_column(s,this);
25 }
26
27 void
28 Lyric_staff::set_output(PScore*ps)
29 {
30     line_pstaff_p_ = new Linestaff(0,ps);
31     pscore_l_ = ps;
32     pscore_l_->add(line_pstaff_p_);
33 }
34
35 void
36 Lyric_staff::walk()
37 {
38     for (Lyric_walker lcols(this); lcols.ok(); lcols++) {
39         lcols.lcol_l()->setup_requests();// TODO
40         lcols.process();
41     }
42 }