lilypond-0.1.27
[lilypond.git] / lily / engraver.cc
blob57bd126d6c0f8e2898674f8c2f8f108eabf09e4f
1 /*
2 engraver.cc -- implement Engraver
4 Sourcefile of GNU LilyPond musictypesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
9 #include "music-list.hh"
10 #include "musical-request.hh"
11 #include "engraver.hh"
12 #include "engraver-group.hh"
13 #include "debug.hh"
15 void
16 Engraver::fill_staff_info (Staff_info&)
22 void
23 Engraver::announce_element (Score_elem_info i)
25 i.origin_grav_l_arr_.push (this);
26 daddy_grav_l()->announce_element (i);
29 void
30 Engraver::typeset_element (Score_elem*p)
32 daddy_grav_l()->typeset_element (p);
35 Paper_def*
36 Engraver::paper() const
38 return (Paper_def*)output_def_l_;
42 Staff_info
43 Engraver::get_staff_info() const
45 if (daddy_grav_l())
46 return daddy_grav_l()->get_staff_info();
47 Staff_info info;
48 return info;
52 IMPLEMENT_IS_TYPE_B1(Engraver, Translator);
55 Engraver_group_engraver*
56 Engraver::daddy_grav_l () const
58 return (daddy_trans_l_ )
59 ? (Engraver_group_engraver*) daddy_trans_l_->engraver_l ()
60 : 0;