X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fswallow-engraver.cc;h=f6cf49cdcb5dcf652ec33e8e9fe04733f1ebdc25;hb=9dcb5acaf35d9947a03c8f6f421262d6ca7f2245;hp=476184e6cb08cb4b171094d451069d4fd2054c03;hpb=bb36bac02a64770871780231ecc709cb18b20932;p=lilypond.git diff --git a/lily/swallow-engraver.cc b/lily/swallow-engraver.cc index 476184e6cb..f6cf49cdcb 100644 --- a/lily/swallow-engraver.cc +++ b/lily/swallow-engraver.cc @@ -1,19 +1,45 @@ /* - swallow-reg.cc -- implement Swallow_engraver + swallow-engraver.cc -- implement Swallow_engraver source file of the GNU LilyPond music typesetter - (c) 1997--2000 Han-Wen Nienhuys + (c) 1997--2009 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 */ + "" + );