2 engraver.cc -- implement Engraver
4 Sourcefile of GNU LilyPond music type setter
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "music-list.hh"
10 #include "musical-request.hh"
11 #include "engraver.hh"
12 #include "engraver-group-engraver.hh"
14 #include "paper-def.hh"
15 #include "score-element.hh"
16 #include "group-interface.hh"
19 Engraver::fill_staff_info (Staff_info
&)
25 Engraver::announce_element (Score_element_info i
)
27 Score_element
* e
= i
.elem_l_
;
28 group (e
, "interfaces").add_thing (ly_symbol2scm (e
->name()));
30 if (!i
.origin_trans_l_
)
31 i
.origin_trans_l_
= this;
32 daddy_grav_l()->announce_element (i
);
36 Engraver::typeset_element (Score_element
*p
)
38 daddy_grav_l()->typeset_element (p
);
43 Engraver::paper_l () const
45 return dynamic_cast<Paper_def
*>(output_def_l_
);
50 Engraver::get_staff_info() const
53 return daddy_grav_l()->get_staff_info();
62 Engraver_group_engraver
*
63 Engraver::daddy_grav_l () const
65 return (daddy_trans_l_
)
66 ? dynamic_cast<Engraver_group_engraver
*> (daddy_trans_l_
)