Format and improve documentation of internal grob properties.
[lilypond.git] / lily / type-swallow-translator.cc
blob87510de0d4ec67788a8218242311a5784692920c
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 "Swallow \\skip.",
38 "",
39 "",
40 "");
42 Rest_swallow_translator::Rest_swallow_translator (){}
44 ADD_TRANSLATOR (Rest_swallow_translator,
45 "Swallow rest",
46 "",
47 "",
48 "");
50 class Note_swallow_translator : public Translator
52 protected:
53 virtual bool try_music (Music *) { return true; }
55 public:
56 TRANSLATOR_DECLARATIONS (Note_swallow_translator);
59 Note_swallow_translator::Note_swallow_translator ()
63 ADD_TRANSLATOR (Note_swallow_translator,
64 "Swallow notes",
65 "",
66 "",
68 "");