]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/engraver.cc
* lily/side-position-interface.cc: remove add_staff_support ()
[lilypond.git] / lily / engraver.cc
index 0278fb7439ae5acbb88d8983024bcb944095459a..b009c3cb32644bbc08ae757b7845e5d811fecad5 100644 (file)
 #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)
@@ -20,6 +21,10 @@ Engraver::announce_grob (Grob_info inf)
   get_daddy_grav ()->announce_grob (inf);
 }
 
+/*
+  CAUSE is the object (typically a Music object)  that
+  was the reason for making E.
+ */
 void
 Engraver::announce_grob (Grob* e, SCM cause)
 {
@@ -27,13 +32,16 @@ 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);
 
-  Grob_info i (e);
+  Grob_info i;
+  i.grob_ = e;
   if (!i.origin_trans_)
     i.origin_trans_ = this;
+
+
+
   get_daddy_grav ()->announce_grob (i);
 }
 
@@ -60,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()
 {
 }