2 engraver.hh -- declare Engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1996--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
13 #include "lily-proto.hh"
16 #include "score-element-info.hh"
17 #include "translator.hh"
21 a struct which processes requests, and creates the #Score_element#s.
22 It may use derived classes.
24 class Engraver : public virtual Translator {
26 friend class Engraver_group_engraver;
32 Paper_def * paper_l() const;
34 Invoke walker method to typeset element. Default: pass on to daddy.
36 virtual void typeset_element (Score_element*elem_p);
40 take note of item/spanner
41 put item in spanner. Adjust local key; etc.
43 Default: ignore the info
45 virtual void acknowledge_element (Score_element_info) {}
47 /** Do things with stuff found in acknowledge_element. Ugh. Should
48 be looped with acknowledge_element.
51 virtual void process_acknowledged () {}
53 Announce element. Default: pass on to daddy. Utility
55 virtual void announce_element (Score_element_info);
57 VIRTUAL_COPY_CONS(Translator);
58 Engraver_group_engraver * daddy_grav_l() const;