]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/swallow-engraver.cc
* input/regression/font-name.ly: show Pango fonts for
[lilypond.git] / lily / swallow-engraver.cc
index 3823f2c1f5dab58547791ceebcf27612c3d18e20..e9178e7142526840b740a164453cbde666320b4f 100644 (file)
@@ -1,29 +1,36 @@
 /*
-  swallow-reg.cc -- implement Swallow_engraver
+  swallow-engraver.cc -- implement Swallow_engraver
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #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:
-  VIRTUAL_COPY_CONS (Translator);
+  TRANSLATOR_DECLARATIONS (Swallow_engraver);
 protected:
-  bool try_music (Music*) ;
+  bool try_music (Music *);
 };
 
-ADD_THIS_TRANSLATOR (Swallow_engraver);
-
 bool
-Swallow_engraver::try_music (Music*) 
+Swallow_engraver::try_music (Music *)
 {
   return true;
 }
+
+Swallow_engraver::Swallow_engraver ()
+{
+}
+
+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",
+               /* acks  */ "",
+               /* reads */ "",
+               /* write */ "");