From: fred Date: Thu, 7 Aug 1997 23:47:07 +0000 (+0000) Subject: lilypond-0.1.7 X-Git-Tag: release/1.5.59~6076 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=cf010e25e1504d49b9e15784bf4ae4687005b311;p=lilypond.git lilypond-0.1.7 --- diff --git a/lily/axis-group-item.cc b/lily/axis-group-item.cc new file mode 100644 index 0000000000..bc1bffd00a --- /dev/null +++ b/lily/axis-group-item.cc @@ -0,0 +1,50 @@ +/* + axis-item.cc -- implement Axis_group_item + + source file of the GNU LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys +*/ +#include "axis-group-item.hh" +#include "p-col.hh" + +IMPLEMENT_IS_TYPE_B2(Axis_group_item, Axis_group_element, Item); + +void +Axis_group_item::OK() const +{ + Link_array elems = axis_admin_.elem_l_arr_; + for (int i=0; i < elems.size(); i++) { + Item * it_l = elems[i]->item(); + assert(it_l); + + // somebody probably broke it in pieces + assert (it_l->pcol_l_ == pcol_l_ ); + } +} + +void +Axis_group_item::do_breakable_col_processing() +{ + if (!pcol_l_->breakable_b()) + return; + OK(); + copy_breakable_items(); + + + Link_array elems = axis_admin_.elem_l_arr_; + for (int i=0; i < elems.size(); i++) { + Item* it_l = elems[i]->item(); + for ( int j=0; j < 2; j++) { + Item *new_l = it_l->find_prebroken_piece(broken_to_a_[j]->pcol_l_); + ((Axis_group_item*)broken_to_a_[j])->add_element( new_l ); + } + } + Item::do_breakable_col_processing(); +} + +void +Axis_group_item::do_print() const +{ + Axis_group_element::do_print(); +}