2 engraver.cc -- implement Engraver
4 Sourcefile of GNU LilyPond music type setter
6 (c) 1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "engraver.hh"
11 #include "engraver-group-engraver.hh"
13 #include "score-engraver.hh"
17 Engraver::announce_grob (Grob_info inf
)
19 get_daddy_grav ()->announce_grob (inf
);
23 CAUSE is the object (typically a Music object) that
24 was the reason for making E.
27 Engraver::announce_grob (Grob
* e
, SCM cause
)
30 TODO: junk grob-info, and make a cause grob-property to store
33 if (unsmob_music (cause
) || unsmob_grob (cause
))
34 e
->set_grob_property ("cause", cause
);
39 i
.origin_trans_
= this;
40 get_daddy_grav ()->announce_grob (i
);
46 Engraver::typeset_grob (Grob
*p
)
48 get_daddy_grav ()->typeset_grob (p
);
52 Engraver_group_engraver
*
53 Engraver::get_daddy_grav () const
56 ? dynamic_cast<Engraver_group_engraver
*> (daddy_trans_
)
61 Engraver::process_music ()
72 Engraver::top_engraver () const
74 return dynamic_cast<Score_engraver
*> (top_translator());
77 ENTER_DESCRIPTION(Engraver
,