lilypond-1.1.40
[lilypond.git] / src / scoreline.cc
blob2f8f0f3a4b398b81ad093aa3226650e8700134fc
1 #include "scoreline.hh"
2 #include "staffline.hh"
3 #include "dimen.hh"
4 #include "spanner.hh"
5 #include "symbol.hh"
6 #include "paper-def.hh"
7 #include "pcol.hh"
8 #include "pscore.hh"
11 String
12 Line_of_score::TeXstring() const
14 String s("\\vbox{%<- line of score\n");
15 for (iter_top(staffs,sc); sc.ok(); sc++){
16 s += sc->TeXstring();
17 if ((sc+1).ok())
18 s+= "\\interstaffline\n";
20 s += "}";
21 return s;
25 Line_of_score::Line_of_score(Array<PCol *> sv,
26 PScore *ps)
28 pscore_l_ = ps;
29 for (int i=0; i< sv.size(); i++) {
30 PCol *p=(PCol *) sv[i];
31 cols.bottom().add(p);
32 p->line_l_=this;
35 for (iter_top(pscore_l_->staffs,sc); sc.ok(); sc++)
36 staffs.bottom().add(new Line_of_staff(this, sc));
38 /* construct a line with the named columns. Make the line field
39 in each column point to this
41 #sv# isn't really const!!
45 void
46 Line_of_score::process()
48 for (iter_top(staffs,i); i.ok(); i++)
49 i->process();