]> git.donarmstrong.com Git - lilypond.git/blob - lily/type-swallow-translator.cc
Update source file headers. Fixes using standard GNU package conventions.
[lilypond.git] / lily / type-swallow-translator.cc
1 /*
2   This file is part of LilyPond, the GNU music typesetter.
3
4   Copyright (C) 1997--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
5
6   LilyPond is free software: you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation, either version 3 of the License, or
9   (at your option) any later version.
10
11   LilyPond is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #include "translator.hh"
21 #include "music.hh"
22
23 #include "translator.icc"
24
25 class Skip_event_swallow_translator : public Translator
26 {
27 protected:
28   virtual bool try_music (Music *) { return true; }
29
30 public:
31   TRANSLATOR_DECLARATIONS (Skip_event_swallow_translator);
32 };
33
34 class Rest_swallow_translator : public Translator
35 {
36 protected:
37   virtual bool try_music (Music *) { return true; }
38
39 public:
40   TRANSLATOR_DECLARATIONS (Rest_swallow_translator);
41 };
42
43 Skip_event_swallow_translator::Skip_event_swallow_translator ()
44 {
45 }
46
47 ADD_TRANSLATOR (Skip_event_swallow_translator,
48                 /* doc */
49                 "Swallow @code{\\skip}.",
50
51                 /* create */
52                 "",
53
54                 /* read */
55                 "",
56
57                 /* write */
58                 ""
59                 );
60
61 Rest_swallow_translator::Rest_swallow_translator (){}
62
63 ADD_TRANSLATOR (Rest_swallow_translator,
64                 /* doc */
65                 "Swallow rest.",
66
67                 /* create */
68                 "",
69
70                 /* read */
71                 "",
72
73                 /* write */
74                 ""
75                 );
76
77 class Note_swallow_translator : public Translator
78 {
79 protected:
80   virtual bool try_music (Music *) { return true; }
81
82 public:
83   TRANSLATOR_DECLARATIONS (Note_swallow_translator);
84 };
85
86 Note_swallow_translator::Note_swallow_translator ()
87 {
88 }
89
90 ADD_TRANSLATOR (Note_swallow_translator,
91                 /* doc */
92                 "Swallow notes.",
93
94                 /* create */
95                 "",
96
97                 /* read */
98                 "",
99
100                 /* write */
101                 ""
102                 );
103