]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/engraver.cc
2003 -> 2004
[lilypond.git] / lily / engraver.cc
index c49e76062ef80b7573f1c151bfdcb8aa8fc40ce2..2badb89cd66a5614f16752bf0b5a1a3857c5004a 100644 (file)
@@ -3,16 +3,17 @@
 
   Sourcefile of GNU LilyPond music type setter
 
-  (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "music.hh"
 #include "engraver.hh"
 #include "engraver-group-engraver.hh"
 #include "grob.hh"
-#include "main.hh"
 #include "score-engraver.hh"
 #include "warn.hh"
+#include "spanner.hh"
+#include "item.hh"
 
 void
 Engraver::announce_grob (Grob_info inf)
@@ -31,7 +32,6 @@ Engraver::announce_grob (Grob* e, SCM cause)
     TODO: junk grob-info, and make a cause grob-property to store
     `causes' generically.
   */
-  
   if (unsmob_music (cause) || unsmob_grob (cause))
     e->set_grob_property ("cause", cause);
 
@@ -39,6 +39,9 @@ Engraver::announce_grob (Grob* e, SCM cause)
   i.grob_ = e;
   if (!i.origin_trans_)
     i.origin_trans_ = this;
+
+
+
   get_daddy_grav ()->announce_grob (i);
 }
 
@@ -65,6 +68,20 @@ Engraver::process_music ()
   
 }
 
+Item*
+Engraver::internal_make_item (SCM x)
+{
+  SCM props = internal_get_property (x);
+  return new Item (props);
+}
+
+Spanner*
+Engraver::internal_make_spanner (SCM x)
+{
+  SCM props = internal_get_property (x);
+  return new Spanner (props);
+}
+
 Engraver::Engraver()
 {
 }