]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/text-def.hh
partial: 1.0.1.jcn
[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 {
17 public:
18   DECLARE_MY_RUNTIME_TYPEINFO;
19   VIRTUAL_COPY_CONS(Text_def,General_script_def);
20
21   /**
22      centered , or aligned?
23
24      -1 = raggedright, 0 = center, 1 = raggedleft
25   */
26   Direction align_i_;
27
28   String text_str_;
29   String style_str_;
30     
31   virtual void do_print() const;
32   virtual Direction staff_dir() const;
33   virtual Atom get_atom (Paper_def* p, Direction dir_) const;
34   virtual ~Text_def() {};
35   virtual bool do_equal_b (const General_script_def*) const;
36   Text_def();
37   virtual void print() const;
38   virtual Interval width (Paper_def*) const;
39 };
40
41 #endif // TEXT_DEF_HH
42