]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/swallow-engraver.cc
* lily/context.cc (where_defined): also assign value in
[lilypond.git] / lily / swallow-engraver.cc
index 20a5130ba6de4972a9c99e97dc884c99ffba5294..13fe922f67e70b124c797a8b7896d616c990ac9c 100644 (file)
@@ -1,19 +1,37 @@
 /*
-  swallow-reg.cc -- implement Swallow_engraver
+  swallow-engraver.cc -- implement Swallow_engraver
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
-#include "swallow-engraver.hh"
 
+#include "engraver.hh"
 
-IMPLEMENT_IS_TYPE_B1(Swallow_engraver,Engraver);
-ADD_THIS_TRANSLATOR(Swallow_engraver);
-
+class Swallow_engraver : public Engraver
+{
+public:
+  TRANSLATOR_DECLARATIONS (Swallow_engraver);
+protected:
+  bool try_music (Music *);
+};
 
 bool
-Swallow_engraver::do_try_request (Request*) 
+Swallow_engraver::try_music (Music *)
 {
   return true;
 }
+
+Swallow_engraver::Swallow_engraver ()
+{
+}
+
+#include "translator.icc"
+
+ADD_TRANSLATOR (Swallow_engraver,
+               /* descr */ "This engraver swallows everything given to it silently. The purpose of "
+               "this is to prevent spurious \"event junked\" warnings.",
+               /* creats*/ "",
+               /* accepts */ "general-music",
+               /* reads */ "",
+               /* write */ "");