lilypond-0.1.57
[lilypond.git] / lily / axis-group-item.cc
blob5362516f025a2586d2bd046920243baa6871a5a5
1 /*
2 axis-item.cc -- implement Axis_group_item
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8 #include "axis-group-item.hh"
9 #include "p-col.hh"
11 IMPLEMENT_IS_TYPE_B2(Axis_group_item, Axis_group_element, Item);
13 void
14 Axis_group_item::OK() const
16 Link_array<Score_elem> elems = elem_l_arr ();
17 for (int i=0; i < elems.size(); i++)
19 Item * it_l = elems[i]->item();
20 assert (it_l);
24 void
25 Axis_group_item::do_breakable_col_processing()
27 if (!breakable_b_ || !column_l ()->breakable_b_) // ugh should merge with Item code
28 return;
30 OK();
31 copy_breakable_items();
34 Link_array<Score_elem> elems = elem_l_arr ();
35 for (int i=0; i < elems.size(); i++)
37 Item* it_l = elems[i]->item();
38 Direction j=LEFT;
39 do
41 Item *new_l =
42 it_l->find_prebroken_piece (broken_to_drul_[j]->break_status_i_);
43 ((Axis_group_item*)broken_to_drul_[j])->add_element (new_l);
45 while (flip(&j)!=LEFT);
47 Item::do_breakable_col_processing();
50 void
51 Axis_group_item::do_print() const
53 Axis_group_element::do_print();
54 Item::do_print ();