Use scalar instead of embedded_scm for context mod overrides.
[lilypond/mpolesky.git] / lily / type-swallow-translator.cc
blob19d26eaa79c05c66e3c912ba74d8e71f027b94e4
1 /*
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>
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 */