]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/text-def.hh
patch::: 1.1.37.mb1: Re: LilyPond 1.1.37
[lilypond.git] / lily / include / text-def.hh
1 /*
2   text-def.hh -- part of GNU LilyPond
3
4   (c) 1996--1999 Han-Wen Nienhuys
5 */
6
7 #ifndef TEXT_DEF_HH
8 #define TEXT_DEF_HH
9
10 #include "general-script-def.hh"
11 #include "string.hh"
12 #include "lily-proto.hh"
13 #include "input.hh"
14
15 class Text_def : public General_script_def 
16 {
17 public:
18   VIRTUAL_COPY_CONS(General_script_def);
19
20   /**
21      Alignment of typeset text wrt center.
22
23      LEFT = raggedright, CENTER = centered, RIGHT = raggedleft
24   */
25   Direction align_dir_;
26
27   String text_str_;
28   String style_str_;
29     
30   virtual void do_print() const;
31   virtual Direction staff_dir() const;
32   virtual Molecule get_molecule (Paper_def* p, Direction dir_) const;
33   virtual ~Text_def() {};
34   virtual bool do_equal_b (const General_script_def*) const;
35   Text_def();
36   virtual void print() const;
37 };
38
39 #endif // TEXT_DEF_HH
40