]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/ligature-bracket-engraver.cc
Run grand-replace (issue 3765)
[lilypond.git] / lily / ligature-bracket-engraver.cc
index 9a4374f2caf198a769fe55c93dfd5b51cd90b20a..cb37ead208e671b477346551b89519eb04b332c1 100644 (file)
@@ -1,19 +1,29 @@
 /*
-  ligature-bracket-engraver.cc -- implement Ligature_bracket_engraver
+  This file is part of LilyPond, the GNU music typesetter.
 
-  source file of the GNU LilyPond music typesetter
+  Copyright (C) 2002--2014 Juergen Reuter <reuter@ipd.uka.de>
 
-  (c) 2002--2007 Juergen Reuter <reuter@ipd.uka.de>
+  LilyPond is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  LilyPond is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "international.hh"
 
-#include "ligature-engraver.hh"
+#include "engraver.hh"
 #include "note-column.hh"
 #include "tuplet-bracket.hh"
 #include "spanner.hh"
 #include "stream-event.hh"
-#include "spanner.hh"
 #include "item.hh"
 
 #include "translator.icc"
@@ -53,15 +63,15 @@ Ligature_bracket_engraver::Ligature_bracket_engraver ()
 }
 
 void
-Ligature_bracket_engraver::process_music()
+Ligature_bracket_engraver::process_music ()
 {
   if (events_drul_[STOP])
     {
       if (!ligature_)
-       {
-         events_drul_[STOP]->origin ()->warning (_ ("cannot find start of ligature"));
-         return;
-       }
+        {
+          events_drul_[STOP]->origin ()->warning (_ ("cannot find start of ligature"));
+          return;
+        }
 
       finished_ligature_ = ligature_;
       ligature_ = 0;
@@ -71,10 +81,10 @@ Ligature_bracket_engraver::process_music()
   if (events_drul_[START])
     {
       if (ligature_)
-       {
-         events_drul_[START]->origin ()->warning (_ ("already have a ligature"));
-         return;
-       }
+        {
+          events_drul_[START]->origin ()->warning (_ ("already have a ligature"));
+          return;
+        }
 
       previous_start_event_ = events_drul_[START];
       ligature_ = make_spanner ("LigatureBracket", events_drul_[START]->self_scm ());
@@ -87,23 +97,22 @@ Ligature_bracket_engraver::acknowledge_note_column (Grob_info info)
   if (ligature_)
     {
       Tuplet_bracket::add_column (ligature_,
-                                 info.item ());
-      add_bound_item (ligature_, info.item());
+                                  info.item ());
+      add_bound_item (ligature_, info.item ());
     }
 }
 
 void
 Ligature_bracket_engraver::acknowledge_rest (Grob_info info)
 {
-  acknowledge_note_column(info);
+  acknowledge_note_column (info);
 }
 
-
 void
 Ligature_bracket_engraver::stop_translation_timestep ()
 {
-  events_drul_[LEFT] =  
-    events_drul_[RIGHT] = 0;
+  events_drul_[LEFT]
+    events_drul_[RIGHT] = 0;
   finished_ligature_ = 0;
 }
 
@@ -111,7 +120,16 @@ ADD_ACKNOWLEDGER (Ligature_bracket_engraver, rest);
 ADD_ACKNOWLEDGER (Ligature_bracket_engraver, note_column);
 
 ADD_TRANSLATOR (Ligature_bracket_engraver,
-               /* doc */ "Handles Ligature_events by engraving Ligature brackets.",
-               /* create */ "LigatureBracket",
-               /* read */ "",
-               /* write */ "");
+                /* doc */
+                "Handle @code{Ligature_events} by engraving @code{Ligature}"
+                " brackets.",
+
+                /* create */
+                "LigatureBracket ",
+
+                /* read */
+                "",
+
+                /* write */
+                ""
+               );