]> git.donarmstrong.com Git - lilypond.git/blob - lily/axis-group-element.cc
partial: 1.0.1.jcn
[lilypond.git] / lily / axis-group-element.cc
1 /*
2   axis-group-element.cc -- implement Axis_group_element
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9 #include "axis-group-element.hh"
10
11 void
12 Axis_group_element::do_unlink()
13 {
14   remove_all();
15 }
16
17 void
18 Axis_group_element::do_junk_links()
19 {
20   axis_admin_.elem_l_arr_.set_size (0);
21 }
22
23
24 bool
25 Axis_group_element::contains_b (Graphical_element const*e) const
26 {
27   return axis_admin_.contains_b (e);
28 }
29
30 Link_array<Score_elem>
31 Axis_group_element::get_extra_dependencies() const
32 {
33   return elem_l_arr ();
34 }
35
36 Link_array<Score_elem>
37 Axis_group_element::elem_l_arr () const
38 {  
39   /*
40     ugh. I know
41    */
42   Link_array<Score_elem> r;
43   for (int i=0; i < axis_admin_.elem_l_arr_.size (); i++)
44     r.push ((Score_elem*)axis_admin_.elem_l_arr_[i]);
45   return r;
46 }
47
48 void
49 Axis_group_element::do_print() const
50 {
51   axis_admin_.print();
52 }
53
54
55 Axis_group_element::Axis_group_element()
56 {
57   transparent_b_ = true;
58 }
59
60
61 IMPLEMENT_IS_TYPE_B1(Axis_group_element, Score_elem);