1 #include "staffline.hh"
2 #include "scoreline.hh"
6 #include "paper-def.hh"
17 String s("\\vbox to ");
19 s += "{\\vskip "+print_dimen(i.right)+" ";
25 Line_of_staff::TeXstring() const
27 String s("%line_of_staff\n");
29 s+=make_vbox(height());
30 // the staff itself: eg lines, accolades
33 iter_top(line_of_score_l_->cols,cc);
34 Real lastpos=cc->hpos;
36 // all items in the current line & staff.
37 for (; cc.ok(); cc++) {
38 Real delta=cc->hpos - lastpos;
43 s +=String( "\\kern ") + print_dimen(delta);
45 // now output the items.
46 for (iter_top(cc->its,i); i.ok(); i++) {
47 if (i->pstaff_l_ == pstaff_l_)
51 for (iter_top(cc->starters,i); i.ok(); i++)
52 if (i->pstaff_l_ == pstaff_l_)
60 Line_of_staff::Line_of_staff(Line_of_score * sc, PStaff*st)
65 PCol *linestart = sc->cols.top();
66 PCol *linestop = sc->cols.bottom();
68 for (iter_top(pstaff_l_->spans,i); i.ok(); i++) {
69 PCol *brokenstart = &max(*linestart, *i->left_col_l_);
70 PCol *brokenstop = &min(*linestop, *i->right_col_l_);
71 if ( *brokenstart < *brokenstop) {
72 Spanner*span_p =i->broken_at(brokenstart,brokenstop);
73 line_of_score_l_->pscore_l_-> // higghl
81 Line_of_staff::height() const
85 iter_top(line_of_score_l_->cols,cc);
87 // all items in the current line & staff.
88 for (; cc.ok(); cc++) {
89 for (iter_top(cc->its,i); i.ok(); i++) {
90 if (i->pstaff_l_ == pstaff_l_)
95 for (iter_top(cc->starters,i); i.ok(); i++)
96 if (i->pstaff_l_ == pstaff_l_) {
105 Line_of_staff::process()
108 if (!pstaff_l_->stafsym_p_)
109 pstaff_l_->brew_molecule_p(line_of_score_l_->pscore_l_->
110 paper_l_->linewidth);