]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/breathing-sign-engraver.cc
(class Translator): add virtual
[lilypond.git] / lily / breathing-sign-engraver.cc
index 4ea98cf97040f2f7068d005440b9bc0c7db76737..171cc1a63c5510c247f4d740a85926e21b9c854e 100644 (file)
@@ -1,7 +1,7 @@
 /*
   breathing_sign-engraver.cc -- implement Breathing_sign_engraver
 
-  Copyright (C) 1999 Michael Krause
+  (c) 1999--2004 Michael Krause
 
   written for the GNU LilyPond music typesetter
 
@@ -15,12 +15,12 @@ TODO:
 
 #include "staff-symbol-referencer.hh"
 #include "breathing-sign.hh"
-#include "musical-request.hh"
-#include "command-request.hh"
+#include "event.hh"
+
 #include "engraver-group-engraver.hh"
 #include "item.hh"
 #include "engraver.hh"
-#include "command-request.hh"
+
 
 class Breathing_sign_engraver : public Engraver {
 public:
@@ -30,7 +30,6 @@ protected:
   virtual bool try_music (Music *req);
   virtual void process_acknowledged_grobs ();
   virtual void stop_translation_timestep ();
-  virtual void start_translation_timestep ();
 
 private:
   Music * breathing_sign_req_;
@@ -55,8 +54,7 @@ Breathing_sign_engraver::process_acknowledged_grobs ()
 {
   if (breathing_sign_req_ && ! breathing_sign_)
     {
-      SCM b = get_property ("BreathingSign");
-      breathing_sign_ = new Item (b);
+      breathing_sign_ = make_item ("BreathingSign");
 
       announce_grob(breathing_sign_, breathing_sign_req_->self_scm());
       breathing_sign_req_ = 0;
@@ -71,11 +69,6 @@ Breathing_sign_engraver::stop_translation_timestep ()
       typeset_grob (breathing_sign_);
       breathing_sign_ = 0;
     }
-}
-
-void
-Breathing_sign_engraver::start_translation_timestep ()
-{
   breathing_sign_req_ = 0;
 }