2 horizontal-group-item.cc -- implement Horizontal_group_item
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
10 #include "horizontal-group-item.hh"
12 IMPLEMENT_IS_TYPE_B2(Horizontal_group_item, Horizontal_group, Item);
15 Horizontal_group_item::OK() const
17 for (int i=0; i < elem_l_arr_.size(); i++) {
18 Item * it_l = elem_l_arr_[i]->item();
20 assert(it_l&& it_l->pcol_l_ == pcol_l_ );
25 Horizontal_group_item::do_breakable_col_processing()
27 if (!pcol_l_->breakable_b())
30 copy_breakable_items();
32 Link_array<Score_elem> elems = elem_l_arr_;
34 for (int i=0; i < elems.size(); i++) {
35 Item* it_l = elems[i]->item();
36 for ( int j=0; j < 2; j++) {
37 Item *new_l = it_l->find_prebroken_piece(broken_to_a_[j]->pcol_l_);
38 ((Horizontal_group_item*)broken_to_a_[j])->add_element( new_l );