]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/swallow-engraver.cc
new file.
[lilypond.git] / lily / swallow-engraver.cc
index 20a5130ba6de4972a9c99e97dc884c99ffba5294..bda9d59b145b5ac14254569dc2dedda85630e77d 100644 (file)
@@ -3,17 +3,27 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
-#include "swallow-engraver.hh"
 
+#include "engraver.hh"
+
+/**
+  This engraver swallows everything given to it silently. The purpose of
+  this is to prevent spurious "request junked" warnings.
+ */
+class Swallow_engraver : public Engraver
+{
+public:
+  TRANSLATOR_DECLARATIONS(Swallow_engraver);
+protected:
+  bool try_music (Music*) ;
+};
 
-IMPLEMENT_IS_TYPE_B1(Swallow_engraver,Engraver);
-ADD_THIS_TRANSLATOR(Swallow_engraver);
 
 
 bool
-Swallow_engraver::do_try_request (Request*) 
+Swallow_engraver::try_music (Music*) 
 {
   return true;
 }