]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/text-spanner.hh
release: 0.0.70pre
[lilypond.git] / lily / include / text-spanner.hh
1 /*
2   textspanner.hh -- part of GNU LilyPond
3
4   (c) 1996,97 Han-Wen Nienhuys
5 */
6
7 #ifndef TEXTSPANNER_HH
8 #define TEXTSPANNER_HH
9
10 #include "string.hh"
11 #include "directional-spanner.hh"
12 #include "text-def.hh"
13
14 /** a spanner which puts texts on top of other spanners.  Use for
15   triplets, eentweetjes, ottava, etc.  */
16 class Text_spanner : public Spanner {
17 public:
18     Directional_spanner * support_span_l_;
19     General_script_def * spec_p_;
20     Offset text_off_;
21     NAME_MEMBERS();
22
23     void set_support(Directional_spanner*);
24     Text_spanner();
25     Text_spanner(Text_spanner const&);
26 protected:
27     SCORE_ELEM_CLONE(Text_spanner);
28     ~Text_spanner();
29     virtual void do_substitute_dependency(Score_elem*,Score_elem*);
30     virtual void do_pre_processing();
31     virtual void do_post_processing();
32     virtual Interval height() const ;
33     virtual Molecule* brew_molecule_p()const;
34     virtual void do_print() const;
35 };
36 #endif // TEXTSPANNER_HH
37