2 type-swallow-translator.cc -- implement Type_swallow_translator
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #include "translator.hh"
12 #include "translator.icc"
14 class Skip_event_swallow_translator
: public Translator
17 virtual bool try_music (Music
*) { return true; }
20 TRANSLATOR_DECLARATIONS (Skip_event_swallow_translator
);
23 class Rest_swallow_translator
: public Translator
26 virtual bool try_music (Music
*) { return true; }
29 TRANSLATOR_DECLARATIONS (Rest_swallow_translator
);
32 Skip_event_swallow_translator::Skip_event_swallow_translator ()
36 ADD_TRANSLATOR (Skip_event_swallow_translator
,
38 "Swallow @code{\\skip}.",
50 Rest_swallow_translator::Rest_swallow_translator (){}
52 ADD_TRANSLATOR (Rest_swallow_translator
,
66 class Note_swallow_translator
: public Translator
69 virtual bool try_music (Music
*) { return true; }
72 TRANSLATOR_DECLARATIONS (Note_swallow_translator
);
75 Note_swallow_translator::Note_swallow_translator ()
79 ADD_TRANSLATOR (Note_swallow_translator
,