2 head-column.cc -- implement Head_column
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
10 #include "head-column.hh"
11 #include "note-head.hh"
15 Head_column::Head_column()
22 Head_column::do_substitute_dependency (Score_elem*o,
25 Script_column::do_substitute_dependency (o,n);
26 if (o->name() == Note_head::static_name ()) {
27 head_l_arr_.substitute ((Note_head*)o->item(),
28 (n)? (Note_head*)n->item() : 0);
31 stem_l_ = n ? (Stem*)n->item():0;
37 Head_column::set (Stem*stem_l)
40 Score_elem::add_dependency (stem_l);
41 for (int i=0; script_l_arr_.size(); i++)
42 script_l_arr_[i]->set_stem (stem_l);
46 Head_column::add (Script *script_l)
48 Script_column::add (script_l) ;
50 script_l->set_stem (stem_l_);
53 Head_column::add (Note_head *n_l)
56 head_l_arr_.push (n_l);
61 IMPLEMENT_IS_TYPE_B1(Head_column,Script_column);
64 Head_column::do_print() const
67 DOUT << "heads: " << head_l_arr_.size();
72 Head_column::do_pre_processing()
76 dir_i_ = stem_l_->dir_i_;
78 Script_column::do_pre_processing();