]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/text-def.hh
release: 0.1.7
[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     DECLARE_MY_RUNTIME_TYPEINFO;
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     virtual void do_print() const;
32     virtual ~Text_def() {};
33     virtual bool do_equal_b(const General_script_def*)const;
34     Text_def();
35     virtual void print() const;
36     Interval width(Paper_def*) const;
37 };
38
39 #endif // TEXT_DEF_HH
40