* lily/main.cc (main_prog): print summary of failed files.
[lilypond.git] / lily / engraver.cc
blobe4a636721635e482dbc3d3a0f097d9c47e04feb0
1 /*
2 engraver.cc -- implement Engraver
4 Sourcefile of GNU LilyPond music type setter
6 (c) 1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #include "music.hh"
10 #include "engraver.hh"
11 #include "engraver-group-engraver.hh"
12 #include "grob.hh"
13 #include "score-engraver.hh"
14 #include "warn.hh"
16 void
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.
26 void
27 Engraver::announce_grob (Grob* e, SCM cause)
30 TODO: junk grob-info, and make a cause grob-property to store
31 `causes' generically.
33 if (unsmob_music (cause) || unsmob_grob (cause))
34 e->set_grob_property ("cause", cause);
36 Grob_info i;
37 i.grob_ = e;
38 if (!i.origin_trans_)
39 i.origin_trans_ = this;
40 get_daddy_grav ()->announce_grob (i);
45 void
46 Engraver::typeset_grob (Grob*p)
48 get_daddy_grav ()->typeset_grob (p);
52 Engraver_group_engraver*
53 Engraver::get_daddy_grav () const
55 return (daddy_trans_)
56 ? dynamic_cast<Engraver_group_engraver *> (daddy_trans_)
57 : 0;
60 void
61 Engraver::process_music ()
66 Engraver::Engraver()
71 Score_engraver*
72 Engraver::top_engraver () const
74 return dynamic_cast<Score_engraver*> (top_translator());
77 ENTER_DESCRIPTION(Engraver,
78 "", "",
79 "",
80 "", "", "");