lilypond-1.3.52
[lilypond.git] / src / complex-staff.cc
blobbb132744498fbfc2dff709ed5dd1b82d717e306d
1 #include "complex-staff.hh"
2 #include "complex-walker.hh"
3 #include "score.hh"
4 #include "pscore.hh"
5 #include "staffsym.hh"
6 #include "score-column.hh"
8 const NO_LINES = 5;
10 /** Aside from putting fields right, this generates the staff symbol.
12 void
13 Complex_staff::set_output(PScore* pscore_l )
15 pstaff_l_ = new PStaff(pscore_l);
16 pscore_l_ = pscore_l;
17 pscore_l_->add(pstaff_l_);
19 Staff_symbol *span_p = new Staff_symbol(NO_LINES);
21 Score_column* col_last
22 =score_l_->find_col(score_l_->last(), false);
23 Score_column* col_first=
24 score_l_->find_col(0, false);
26 span_p->set_extent(col_first->pcol_l_->postbreak_p_,
27 col_last->pcol_l_->prebreak_p_);
29 pscore_l_->typeset_spanner(span_p, pstaff_l_);
33 Staff_walker *
34 Complex_staff::get_walker_p()
36 return new Complex_walker(this);