/*
- text-spanner-engraver.cc -- implement Ottava_spanner_engraver
+ ottova-engraver.cc -- implement Ottava_spanner_engraver
source file of the GNU LilyPond music typesetter
- (c) 2000--2005 Han-Wen Nienhuys
+ (c) 2000--2006 Han-Wen Nienhuys
*/
#include "protected-scm.hh"
#include "note-column.hh"
#include "side-position-interface.hh"
#include "engraver.hh"
+#include "spanner.hh"
+#include "item.hh"
class Ottava_spanner_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Ottava_spanner_engraver);
protected:
virtual void finalize ();
-
+
DECLARE_ACKNOWLEDGER (note_column);
-
+
void process_music ();
void stop_translation_timestep ();
virtual void derived_mark () const;
void
Ottava_spanner_engraver::acknowledge_note_column (Grob_info info)
{
- Item *it = info.item();
+ Item *it = info.item ();
if (span_ && it)
{
Side_position_interface::add_support (span_, it);
}
#include "translator.icc"
+
ADD_ACKNOWLEDGER (Ottava_spanner_engraver, note_column);
+
ADD_TRANSLATOR (Ottava_spanner_engraver,
- /* descr */ "Create a text spanner when the ottavation property changes..",
- /* creats*/ "OttavaBracket",
- /* accepts */ "",
- /* reads */ "ottavation",
+ /* doc */ "Create a text spanner when the ottavation property changes..",
+ /* create */ "OttavaBracket",
+ /* read */ "ottavation",
/* write */ "");