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"
14 Head_column::Head_column()
21 Head_column::do_substitute_dependency(Score_elem*o,
24 Script_column::do_substitute_dependency(o,n);
25 if (o->name() == Note_head::static_name()) {
26 head_l_arr_.substitute( (Note_head*)o->item(),
27 (n)? (Note_head*)n->item() : 0);
30 stem_l_ = n ? (Stem*)n->item():0;
36 Head_column::set(Stem*stem_l)
39 add_dependency(stem_l);
43 Head_column::add(Note_head *n_l)
46 head_l_arr_.push(n_l);
51 IMPLEMENT_IS_TYPE_B1(Head_column,Script_column);
54 Head_column::do_print() const
57 mtor << "heads: " << head_l_arr_.size();
62 Head_column::do_pre_processing()
66 dir_i_ = stem_l_->dir_i_;
68 Script_column::do_pre_processing();