+
+/*
+ UGH.
+ */
+void
+Axis_group_element::add_extra_element (Score_element *e)
+{
+ Link_array<Score_element> se;
+ while (e && e != this)
+ {
+ se.push (e);
+ e = dynamic_cast<Score_element*> (e->parent_l (Y_AXIS));
+ }
+
+ if (1) // e == this)
+ {
+ for (int i=0; i < se.size( ); i++)
+ {
+ extra_elems_.push (se[i]);
+ add_dependency (se[i]);
+ se[i]->set_elt_property (ly_symbol ("Axis_group_element::add_extra_element"), SCM_BOOL_T); // UGH GUH.
+ }
+
+ }
+}
+
+/*
+ UGH GUH
+ */
+void
+Axis_group_element::purge_extra ()
+{
+ for (int i=0; i < extra_elems_.size ();)
+ {
+ Score_element *e = extra_elems_[i];
+ while (e && e != this)
+ {
+ e = dynamic_cast<Score_element*> (e->parent_l (Y_AXIS));
+ }
+ if (e != this)
+ extra_elems_.del (i);
+ else
+ i++;
+ }
+}
+
+Interval
+Axis_group_element::extent (Axis a) const
+{
+ return Graphical_element::extent (a);
+}
+