]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/text-def.hh
release: 0.0.70pre
[lilypond.git] / lily / include / text-def.hh
1 /*
2   text-def.hh -- part of GNU LilyPond
3
4   (c) 1996,97 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 protected:
17     virtual Atom get_atom(Paper_def* p, int dir_i_)const;
18     NAME_MEMBERS();
19     VIRTUAL_COPY_CONS(Text_def,General_script_def);
20 public:
21     /**
22       centered , or aligned?
23
24       -1 = raggedright, 0 = center, 1 = raggedleft
25      */
26     int align_i_;
27
28     String text_str_;
29     String style_str_;
30     
31     /* *************** */
32     virtual void do_print() const;
33     virtual ~Text_def() {};
34     bool do_equal_b(const Text_def&)const;
35     Text_def();
36     virtual void print() const;
37     Interval width(Paper_def*) const;
38 };
39
40 #endif // TEXT_DEF_HH
41