]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.1.33
authorfred <fred>
Tue, 26 Mar 2002 21:47:27 +0000 (21:47 +0000)
committerfred <fred>
Tue, 26 Mar 2002 21:47:27 +0000 (21:47 +0000)
lily/include/multi-measure-rest.hh
lily/multi-measure-rest.cc

index b67568692934d9a2cd05e4810f41bea9150857cd..2682d500a07f76c1dd88c82c72a1dfd8b0e15148 100644 (file)
@@ -17,9 +17,9 @@ class Multi_measure_rest : public Spanner
 public:
   Multi_measure_rest ();
   int measures_i_;
-  void add_column (Bar*);
+  void add_column (Item*);
 
-  Link_array<Bar> column_arr_;
+  Link_array<Item> column_arr_;
 
 protected:
   virtual Molecule *do_brew_molecule_p () const;
@@ -28,6 +28,7 @@ protected:
   virtual void do_add_processing ();
   virtual void do_post_processing ();
   virtual void do_print () const;
+  virtual Array<Rod> get_rods () const;
   virtual void do_substitute_element_pointer (Score_element*,Score_element*);
 };
 
index 5776a95fcce9ee0a02d9fea018030977aab203c0..4c23334b7d2b8f8a0ca58df0c960ed402f74f599 100644 (file)
@@ -95,14 +95,25 @@ Multi_measure_rest::do_post_processing ()
 void
 Multi_measure_rest::do_substitute_element_pointer (Score_element* o, Score_element* n)
 {
-  if (Bar* c = dynamic_cast <Bar*> (o))
-    column_arr_.substitute (c, dynamic_cast<Bar*> (n));
+  if (Item* c = dynamic_cast <Item*> (o))
+    column_arr_.substitute (c, dynamic_cast<Item*> (n));
 }
   
 void
-Multi_measure_rest::add_column (Bar* c)
+Multi_measure_rest::add_column (Item* c)
 {
   column_arr_.push (c);
   add_dependency (c);
 }
 
+
+Array<Rod>
+Multi_measure_rest::get_rods () const
+{
+  Array<Rod> a;
+  Rod r;
+  r.item_l_drul_ = spanned_drul_;
+  r.distance_f_ = paper ()->get_var ("mmrest_x_minimum");
+  a.push (r);
+  return a;
+}