]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/text-spanner.hh
release: 1.1.18
[lilypond.git] / lily / include / text-spanner.hh
1 /*
2   textspanner.hh -- part of GNU LilyPond
3
4   (c) 1996--1998 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, volta, 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   
22
23   void set_support (Directional_spanner*);
24   Text_spanner();
25   Text_spanner (Text_spanner const&);
26 protected:
27   VIRTUAL_COPY_CONS(Score_element);
28   ~Text_spanner();
29   virtual void do_add_processing ();
30   virtual void do_substitute_dependency (Score_element*,Score_element*);
31   virtual void do_pre_processing();
32   virtual void do_post_processing();
33   virtual Interval height() const ;
34   virtual Molecule* do_brew_molecule_p() const;
35   virtual void do_print() const;
36 };
37 #endif // TEXTSPANNER_HH
38