X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fswallow-engraver.cc;h=37a2148dbf140b55944820e2a31714ce02b4b679;hb=af99781b40aed8c6dedbd7d78f1a893355a98e09;hp=053a8f9560aea4722ac5953f4aebaf797062723b;hpb=2fd5f86de0500ecd9a3f47a2540c3b304f835ef4;p=lilypond.git diff --git a/lily/swallow-engraver.cc b/lily/swallow-engraver.cc index 053a8f9560..37a2148dbf 100644 --- a/lily/swallow-engraver.cc +++ b/lily/swallow-engraver.cc @@ -1,17 +1,45 @@ /* - swallow-reg.cc -- implement Swallow_engraver + swallow-engraver.cc -- implement Swallow_engraver source file of the GNU LilyPond music typesetter - (c) 1997--1999 Han-Wen Nienhuys + (c) 1997--2007 Han-Wen Nienhuys */ -#include "swallow-engraver.hh" +#include "engraver.hh" -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_music (Music*) +Swallow_engraver::try_music (Music *) { return true; } + +Swallow_engraver::Swallow_engraver () +{ +} + +#include "translator.icc" + +ADD_TRANSLATOR (Swallow_engraver, + /* doc */ + "This engraver swallows everything given to it silently." + " The purpose of this is to prevent spurious @q{event junked}" + " warnings.", + + /* create */ + "", + + /* read */ + "", + + /* write */ + "" + );