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;
29 Paper_def * paper_l() const;
34 virtual void typeset_element (Score_element*elem_p);
36 take note of item/spanner
37 put item in spanner. Adjust local key; etc.
39 Default: ignore the info
41 virtual void acknowledge_element (Score_element_info) {}
43 /** Do things with stuff found in acknowledge_element. Ugh. Should
44 be looped with acknowledge_element.
47 virtual void process_acknowledged () {}
49 Announce element. Default: pass on to daddy. Utility
51 virtual void announce_element (Score_element*, Music*);
52 virtual void announce_element (Score_element_info);
54 VIRTUAL_COPY_CONS(Translator);
55 Engraver_group_engraver * daddy_grav_l() const;