Correct left text alignment of DynamicTextSpanner.
[lilypond.git] / lily / type-swallow-translator.cc
blob7b66eaf3022618cb74b5cd903c9e41833c0b4011
1 /*
2 type-swallow-translator.cc -- implement Type_swallow_translator
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
9 #include "translator.hh"
10 #include "music.hh"
12 #include "translator.icc"
14 class Skip_event_swallow_translator : public Translator
16 protected:
17 virtual bool try_music (Music *) { return true; }
19 public:
20 TRANSLATOR_DECLARATIONS (Skip_event_swallow_translator);
23 class Rest_swallow_translator : public Translator
25 protected:
26 virtual bool try_music (Music *) { return true; }
28 public:
29 TRANSLATOR_DECLARATIONS (Rest_swallow_translator);
32 Skip_event_swallow_translator::Skip_event_swallow_translator ()
36 ADD_TRANSLATOR (Skip_event_swallow_translator,
37 /* doc */
38 "Swallow @code{\\skip}.",
40 /* create */
41 "",
43 /* read */
44 "",
46 /* write */
50 Rest_swallow_translator::Rest_swallow_translator (){}
52 ADD_TRANSLATOR (Rest_swallow_translator,
53 /* doc */
54 "Swallow rest.",
56 /* create */
57 "",
59 /* read */
60 "",
62 /* write */
66 class Note_swallow_translator : public Translator
68 protected:
69 virtual bool try_music (Music *) { return true; }
71 public:
72 TRANSLATOR_DECLARATIONS (Note_swallow_translator);
75 Note_swallow_translator::Note_swallow_translator ()
79 ADD_TRANSLATOR (Note_swallow_translator,
80 /* doc */
81 "Swallow notes.",
83 /* create */
84 "",
86 /* read */
87 "",
89 /* write */