2 dot-column-engraver.cc -- implement Dot_column_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
11 #include "rhythmic-head.hh"
12 #include "dot-column.hh"
13 #include "side-position-interface.hh"
14 #include "engraver.hh"
17 class Dot_column_engraver
: public Engraver
21 Link_array
<Item
> heads_
;
23 TRANSLATOR_DECLARATIONS(
24 Dot_column_engraver
);
27 virtual void acknowledge_grob (Grob_info
);
28 virtual void stop_translation_timestep ();
32 Dot_column_engraver::Dot_column_engraver ()
39 Dot_column_engraver::stop_translation_timestep ()
45 Add the stem to the support so dots stay clear of flags.
50 dotcol_
->set_grob_property ("stem", stem_
->self_scm ());
52 typeset_grob (dotcol_
);
60 Dot_column_engraver::acknowledge_grob (Grob_info info
)
62 Grob
*d
= unsmob_grob (info
.grob_
->get_grob_property ("dot"));
67 dotcol_
= new Item (get_property ("DotColumn"));
68 announce_grob(dotcol_
, SCM_EOL
);
71 Dot_column::add_head (dotcol_
, info
.grob_
);
73 else if (Stem::has_interface (info
.grob_
))
82 ENTER_DESCRIPTION(Dot_column_engraver
,
83 /* descr */ " Engraves dots on dotted notes shifted to the right of the note.\n"
84 "If omitted, then dots appear on top of the notes.",
85 /* creats*/ "DotColumn",
87 /* acks */ "rhythmic-head-interface dot-column-interface stem-interface",