2 dot-column-engraver.cc -- implement Dot_column_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "rhythmic-head.hh"
10 #include "dot-column.hh"
11 #include "side-position-interface.hh"
12 #include "engraver.hh"
15 class Dot_column_engraver : public Engraver
19 Link_array<Item> heads_;
21 TRANSLATOR_DECLARATIONS (Dot_column_engraver);
24 virtual void acknowledge_grob (Grob_info);
25 virtual void stop_translation_timestep ();
28 Dot_column_engraver::Dot_column_engraver ()
35 Dot_column_engraver::stop_translation_timestep ()
38 Add the stem to the support so dots stay clear of flags.
43 dotcol_->set_property ("stem", stem_->self_scm ());
51 Dot_column_engraver::acknowledge_grob (Grob_info info)
53 Grob *d = unsmob_grob (info.grob ()->get_property ("dot"));
58 dotcol_ = make_item ("DotColumn", SCM_EOL);
61 Dot_column::add_head (dotcol_, info.grob ());
63 else if (Stem::has_interface (info.grob ()))
69 ADD_TRANSLATOR (Dot_column_engraver,
70 /* descr */ "Engraves dots on dotted notes shifted to the right of the note.\n"
71 "If omitted, then dots appear on top of the notes.",
72 /* creats*/ "DotColumn",
74 /* acks */ "rhythmic-head-interface dot-column-interface stem-interface",