]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/ligature-engraver.hh
db4721c6bc4aa67bf36c8143639609ee70c2e008
[lilypond.git] / lily / include / ligature-engraver.hh
1 /*   
2   ligature-engraver.hh -- declare Ligature_engraver
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 2002 Juergen Reuter <reuter@ipd.uka.de>
7   
8  */
9 #ifndef LIGATURE_ENGRAVER_HH
10 #define LIGATURE_ENGRAVER_HH
11
12 #include "engraver.hh"
13
14 class Ligature_engraver : public Engraver
15 {
16 protected:
17   virtual void stop_translation_timestep ();
18   virtual void start_translation_timestep ();
19   virtual void finalize ();
20
21   virtual void acknowledge_grob (Grob_info);
22   virtual bool try_music (Music*);
23   virtual void process_music ();
24   virtual Spanner *create_ligature_spanner (); /* abstract method */
25   virtual void typeset_ligature (Spanner *ligature,
26                                  Array<Grob_info> primitives); /* abstract method */
27   virtual Spanner *current_ligature ();
28   SCM brew_ligature_primitive_proc;
29
30 public:
31   TRANSLATOR_DECLARATIONS(Ligature_engraver);
32
33 private:
34   Drul_array<Music*> reqs_drul_;
35   
36   Spanner *ligature_;
37   Array<Grob_info> primitives_;
38
39   Spanner *finished_ligature_;
40   Array<Grob_info> finished_primitives_;
41
42   Music *prev_start_req_;
43
44   // moment where ligature started.
45   Moment ligature_start_mom_;
46
47   Grob *last_bound_;
48
49 };
50
51 #endif // LIGATURE_ENGRAVER_HH