2 ligature-engraver.hh -- declare Ligature_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 2002--2003 Juergen Reuter <reuter@ipd.uka.de>
9 #ifndef LIGATURE_ENGRAVER_HH
10 #define LIGATURE_ENGRAVER_HH
12 #include "engraver.hh"
14 class Ligature_engraver : public Engraver
17 virtual void stop_translation_timestep ();
18 virtual void finalize ();
20 virtual void acknowledge_grob (Grob_info);
21 virtual bool try_music (Music*);
22 virtual void process_music ();
23 virtual Spanner *create_ligature_spanner (); /* abstract method */
24 virtual void typeset_ligature (Spanner *ligature,
25 Array<Grob_info> primitives); /* abstract method */
26 virtual Spanner *current_ligature ();
27 SCM brew_ligature_primitive_proc;
30 TRANSLATOR_DECLARATIONS(Ligature_engraver);
33 Drul_array<Music*> reqs_drul_;
36 Array<Grob_info> primitives_;
38 Spanner *finished_ligature_;
39 Array<Grob_info> finished_primitives_;
41 Music *prev_start_req_;
43 // moment where ligature started.
44 Moment ligature_start_mom_;
48 void override_molecule_callback ();
49 void revert_molecule_callback ();
52 #endif // LIGATURE_ENGRAVER_HH