2 single-malt-grouping-item.cc -- implement Single_malt_grouping_item
4 source file of the GNU LilyPond music typesetter
6 (c) 1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "single-malt-grouping-item.hh"
14 Single_malt_grouping_item ::Single_malt_grouping_item()
16 transparent_b_ = true;
21 Single_malt_grouping_item::add_item (Item* i)
29 Single_malt_grouping_item::my_width () const
31 Paper_column * pc = column_l ();
33 for (int i=0; i < item_l_arr_.size (); i++)
35 Item *il = item_l_arr_[i];
36 if (pc != il->column_l ())
38 /* this shouldn't happen, but let's continue anyway. */
39 warning (_("Single_malt_grouping_item: I've been drinking too much (fixme)"));
42 w.unite (il->extent (X_AXIS) + il->relative_coordinate (&pc->dim_cache_[X_AXIS], X_AXIS));
46 // add this->offset_ ? this-> relative_coordinate ()?
52 Single_malt_grouping_item::do_substitute_dependency (Score_element*o, Score_element*n)
54 if (dynamic_cast <Item *> (o))
56 item_l_arr_.unordered_substitute (dynamic_cast <Item *> (o),
57 dynamic_cast <Item *> (n));
62 Single_malt_grouping_item::do_print () const
65 for (int i=0; i < item_l_arr_.size (); i++)
67 DOUT << classname (item_l_arr_[i]) << ", ";