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 "grob-info.hh"
17 #include "translator.hh"
21 a struct which processes requests, and creates the #Grob#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_grob (Grob*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_grob (Grob_info) {}
43 /** Do things with stuff found in acknowledge_grob. Ugh. Should
44 be looped with acknowledge_grob.
47 virtual void create_grobs () {}
49 Announce element. Default: pass on to daddy. Utility
51 virtual void announce_grob (Grob*, Music*);
52 virtual void announce_grob (Grob_info);
53 virtual void process_music ();
55 VIRTUAL_COPY_CONS(Translator);
56 Engraver_group_engraver * daddy_grav_l() const;