2 extender-engraver.hh -- declare Extender_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1999 Glen Prideaux <glenprideaux@iname.com>,
7 Han-Wen Nienhuys, Jan Nieuwenhuizen.
10 #ifndef EXTENDER_ENGRAVER_HH
11 #define EXTENDER_ENGRAVER_HH
13 #include "engraver.hh"
14 #include "drul-array.hh"
15 #include "extender-spanner.hh"
17 #include "extender-engraver.hh"
21 Generate an centred extender. Should make a Extender_spanner that
22 typesets a nice centred extender of varying length depending on the
23 gap between syllables.
25 We remember the last Text_item that come across. When we get a
26 request, we create the spanner, and attach the left point to the
27 last lyrics, and the right point to any lyrics we receive by
29 class Extender_engraver
: public Engraver
31 Text_item
* last_lyric_l_
;
32 Text_item
* current_lyric_l_
;
34 Extender_spanner
* extender_spanner_p_
;
37 VIRTUAL_COPY_CONS (Translator
);
40 virtual void acknowledge_element (Score_element_info
);
41 virtual void do_removal_processing();
42 virtual void do_process_music();
43 virtual bool do_try_music (Music
*);
44 virtual void do_pre_move_processing();
45 virtual void do_post_move_processing ();
50 #endif // EXTENDER_ENGRAVER_HH