2 staff.cc -- implement Staff
4 source file of the LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
8 #include "input-register.hh"
13 #include "staff-column.hh"
14 #include "score-column.hh"
15 #include "voice-element.hh"
17 #include "musical-request.hh"
18 #include "command-request.hh" // todo
22 Staff::add(PointerList<Voice*> const &l)
24 for (iter_top(l,i); i.ok(); i++)
25 voice_list_.bottom().add(i);
31 return score_l_->paper_p_;
40 if (!i->musical_column_l_->used_b())
41 i->musical_column_l_ = 0;
42 if (!i->command_column_l_->used_b())
43 i->command_column_l_ =0;
45 if (!i->command_column_l_&& !i->musical_column_l_)
72 for (iter_top(voice_list_,i); i.ok(); i++) {
83 for (iter_top(voice_list_,i); i.ok(); i++) {
100 Staff::add_col(Staff_column*c_l)
102 cols_.bottom().add(c_l);
103 c_l->staff_l_ = this;