]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob-info.cc
2003 -> 2004
[lilypond.git] / lily / grob-info.cc
index edd020796e7f416f4123d032d96433647d7ea4ad..6d57705f9f90f925e70ff1c53bf2690a3a630951 100644 (file)
@@ -3,39 +3,37 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
+#include "grob.hh"
 #include "grob-info.hh"
-#include "request.hh"
-#include "translator.hh"
+#include "music.hh"
 #include "translator-group.hh"
 
-Grob_info::Grob_info (Grob*s_l, Music *r_l)
+
+Grob_info::Grob_info ()
 {
-  elem_l_ = s_l;
-  req_l_ = r_l;
-  origin_trans_l_ = 0;  
+  grob_ = 0;
+  origin_trans_ = 0;
 }
 
-
-Grob_info::Grob_info()
+Music*
+Grob_info::music_cause ()
 {
-  elem_l_ = 0;
-  req_l_ = 0;
-  origin_trans_l_ = 0;
+  SCM cause = grob_->get_grob_property ("cause"); 
+  return unsmob_music (cause);
 }
 
-
 Link_array<Translator>
-Grob_info::origin_trans_l_arr (Translator* end) const
+Grob_info::origin_transes (Translator* end) const
 {
-  Translator * t = origin_trans_l_;
+  Translator * t = origin_trans_;
   Link_array<Translator> r;
   do {
     r.push (t);
-    t = t->daddy_trans_l_;
-  } while (t && t != end->daddy_trans_l_);
+    t = t->daddy_trans_;
+  } while (t && t != end->daddy_trans_);
   
   return r;
 }