]> git.donarmstrong.com Git - lilypond.git/blob - lily/phrasing-slur-engraver.cc
Issue 4903/2: {phrasing-,}slur-engraver.cc: adjust includes
[lilypond.git] / lily / phrasing-slur-engraver.cc
1 /*
2   This file is part of LilyPond, the GNU music typesetter.
3
4   Copyright (C) 1997--2015 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 "slur-proto-engraver.hh"
21
22 #include "translator.icc"
23
24 class Phrasing_slur_engraver : public Slur_proto_engraver
25 {
26 protected:
27   void listen_phrasing_slur (Stream_event *);
28   void acknowledge_slur (Grob_info);
29
30 public:
31   SCM event_symbol ();
32   TRANSLATOR_DECLARATIONS (Phrasing_slur_engraver);
33   TRANSLATOR_INHERIT (Slur_proto_engraver);
34 };
35
36 Phrasing_slur_engraver::Phrasing_slur_engraver () :
37   Slur_proto_engraver (0, "PhrasingSlur", "phrasing slur", "phrasing-slur-event")
38 {
39 }
40
41 SCM
42 Phrasing_slur_engraver::event_symbol ()
43 {
44   // Need a string constant for memoization
45   return ly_symbol2scm ("phrasing-slur-event");
46 }
47
48 void
49 Phrasing_slur_engraver::listen_phrasing_slur (Stream_event *ev)
50 {
51   Slur_proto_engraver::listen_slur (ev);
52 }
53
54 void
55 Phrasing_slur_engraver::acknowledge_slur (Grob_info info)
56 {
57   acknowledge_extra_object (info);
58 }
59
60
61 void
62 Phrasing_slur_engraver::boot ()
63 {
64   ADD_LISTENER (Phrasing_slur_engraver, phrasing_slur);
65   ADD_LISTENER (Phrasing_slur_engraver, note);
66   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, inline_accidental);
67   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, fingering);
68   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, note_column);
69   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, slur);
70   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, script);
71   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, dots);
72   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, text_script);
73   ADD_END_ACKNOWLEDGER (Phrasing_slur_engraver, tie);
74   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, tuplet_number);
75 }
76
77 ADD_TRANSLATOR (Phrasing_slur_engraver,
78                 /* doc */
79                 "Print phrasing slurs.  Similar to @ref{Slur_engraver}.",
80
81                 /* create */
82                 "PhrasingSlur ",
83
84                 /* read */
85                 "",
86
87                 /* write */
88                 ""
89                );