source file of the GNU LilyPond music typesetter
- (c) 2000--2005 Han-Wen Nienhuys
+ (c) 2000--2006 Han-Wen Nienhuys
*/
#include "protected-scm.hh"
TRANSLATOR_DECLARATIONS (Ottava_spanner_engraver);
protected:
virtual void finalize ();
- virtual void acknowledge_grob (Grob_info);
- PRECOMPUTED_VIRTUAL void process_music ();
- PRECOMPUTED_VIRTUAL void stop_translation_timestep ();
+
+ DECLARE_ACKNOWLEDGER (note_column);
+
+ void process_music ();
+ void stop_translation_timestep ();
virtual void derived_mark () const;
private:
Spanner *span_;
SCM c0 (get_property ("middleCPosition"));
SCM oc0 (get_property ("originalCentralCPosition"));
if (scm_less_p (oc0, c0) == SCM_BOOL_T)
- span_->set_property ("direction", scm_int2num (DOWN));
+ span_->set_property ("direction", scm_from_int (DOWN));
}
}
last_ottavation_ = ott;
}
void
-Ottava_spanner_engraver::acknowledge_grob (Grob_info info)
+Ottava_spanner_engraver::acknowledge_note_column (Grob_info info)
{
- Item *it = dynamic_cast<Item *> (info.grob ());
- if (span_ && it && Note_column::has_interface (info.grob ()))
+ 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 */ "",
- /* acks */ "note-column-interface",
- /* reads */ "ottavation",
+ /* doc */ "Create a text spanner when the ottavation property changes..",
+ /* create */ "OttavaBracket",
+ /* accept */ "",
+ /* read */ "ottavation",
/* write */ "");