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"
14 #include "score-engraver.hh"
18 Engraver::announce_grob (Grob_info inf
)
20 get_daddy_grav ()->announce_grob (inf
);
24 CAUSE is the object (typically a Music object) that
25 was the reason for making E.
28 Engraver::announce_grob (Grob
* e
, SCM cause
)
31 TODO: junk grob-info, and make a cause grob-property to store
35 if (unsmob_music (cause
) || unsmob_grob (cause
))
36 e
->set_grob_property ("cause", cause
);
40 i
.origin_trans_
= this;
41 get_daddy_grav ()->announce_grob (i
);
47 Engraver::typeset_grob (Grob
*p
)
49 get_daddy_grav ()->typeset_grob (p
);
53 Engraver_group_engraver
*
54 Engraver::get_daddy_grav () const
57 ? dynamic_cast<Engraver_group_engraver
*> (daddy_trans_
)
62 Engraver::process_music ()
73 Engraver::top_engraver () const
75 return dynamic_cast<Score_engraver
*> (top_translator());
78 ENTER_DESCRIPTION(Engraver
,