]> git.donarmstrong.com Git - lilypond.git/blob - lily/phrasing-slur-engraver.cc
Merge branch 'master' of /home/jcharles/GIT/Lily/. into translation
[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-engraver.hh"
21
22 #include "translator.icc"
23
24 class Phrasing_slur_engraver : public Slur_engraver
25 {
26   virtual SCM event_symbol () const;
27   virtual bool double_property () const;
28   virtual SCM grob_symbol () const;
29   virtual const char* object_name () const;
30   virtual void set_melisma (bool);
31
32 protected:
33   void listen_phrasing_slur (Stream_event *);
34   void acknowledge_slur (Grob_info);
35
36 public:
37   TRANSLATOR_DECLARATIONS (Phrasing_slur_engraver);
38   TRANSLATOR_INHERIT (Slur_engraver);
39 };
40
41 SCM
42 Phrasing_slur_engraver::event_symbol () const
43 {
44   return ly_symbol2scm ("phrasing-slur-event");
45 }
46
47 bool
48 Phrasing_slur_engraver::double_property () const
49 {
50   return false;
51 }
52
53 SCM
54 Phrasing_slur_engraver::grob_symbol () const
55 {
56   return ly_symbol2scm ("PhrasingSlur");
57 }
58
59 const char *
60 Phrasing_slur_engraver::object_name () const
61 {
62   return "phrasing slur";
63 }
64
65 Phrasing_slur_engraver::Phrasing_slur_engraver ()
66 {
67 }
68
69 void
70 Phrasing_slur_engraver::set_melisma (bool)
71 {
72 }
73
74 void
75 Phrasing_slur_engraver::listen_phrasing_slur (Stream_event *ev)
76 {
77   Slur_engraver::listen_slur (ev);
78 }
79
80 void
81 Phrasing_slur_engraver::acknowledge_slur (Grob_info info)
82 {
83   acknowledge_extra_object (info);
84 }
85
86
87 void
88 Phrasing_slur_engraver::boot ()
89 {
90   ADD_LISTENER (Phrasing_slur_engraver, phrasing_slur);
91   ADD_LISTENER (Phrasing_slur_engraver, note);
92   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, inline_accidental);
93   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, fingering);
94   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, note_column);
95   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, slur);
96   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, script);
97   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, dots);
98   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, text_script);
99   ADD_END_ACKNOWLEDGER (Phrasing_slur_engraver, tie);
100   ADD_ACKNOWLEDGER (Phrasing_slur_engraver, tuplet_number);
101 }
102
103 ADD_TRANSLATOR (Phrasing_slur_engraver,
104                 /* doc */
105                 "Print phrasing slurs.  Similar to @ref{Slur_engraver}.",
106
107                 /* create */
108                 "PhrasingSlur ",
109
110                 /* read */
111                 "",
112
113                 /* write */
114                 ""
115                );