]> git.donarmstrong.com Git - lilypond.git/blob - lily/spanner-elem-group.cc
release: 0.0.65
[lilypond.git] / lily / spanner-elem-group.cc
1 /*
2   spanner-elem-group.cc -- implement 
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9 #include "p-col.hh"
10 #include "spanner-elem-group.hh"
11
12 void
13 Spanner_elem_group::do_break_at(PCol*c1, PCol*c2 )
14 {
15     Line_of_score * line_C = c1->line_l_;
16     Array<Score_elem*>  old_elems=elem_l_arr_;
17     elem_l_arr_.set_size(0);
18     for (int i=0; i < old_elems.size(); i++) {
19         if (old_elems[i]->line_l() == line_C) {
20             add_element(old_elems[i]);
21         }
22     }
23 }
24
25 IMPLEMENT_STATIC_NAME(Spanner_elem_group);
26
27 Interval
28 Spanner_elem_group::do_width() const
29 {
30     return Spanner::do_width();
31 }
32
33 void
34 Spanner_elem_group::do_print() const
35 {
36     Element_group::do_print();
37 }
38