2 engraver.hh -- declare Engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1996, 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
13 #include "lily-proto.hh"
16 #include "score-element-info.hh"
17 #include "staff-info.hh"
18 #include "translator.hh"
22 a struct which processes requests, and creates the #Score_element#s.
23 It may use derived classes. Hungarian postfix: grav
26 class Engraver
: public virtual Translator
{
28 friend class Engraver_group_engraver
;
34 Paper_def
* paper_l() const;
36 Invoke walker method to typeset element. Default: pass on to daddy.
38 virtual void typeset_element (Score_element
*elem_p
);
42 take note of item/spanner
43 put item in spanner. Adjust local key; etc.
45 Default: ignore the info
47 virtual void acknowledge_element (Score_element_info
) {}
49 /** Do things with stuff found in acknowledge_element. Ugh. Should
50 be looped with acknowledge_element.
53 virtual void process_acknowledged () {}
55 Announce element. Default: pass on to daddy. Utility
57 virtual void announce_element (Score_element_info
);
60 Get information on the staff. Default: ask daddy.
62 virtual Staff_info
get_staff_info() const;
63 virtual void fill_staff_info (Staff_info
&);
66 VIRTUAL_COPY_CONS(Translator
);
67 Engraver_group_engraver
* daddy_grav_l() const;