-/*
- text.hh -- part of LilyPond
-
- (c) 1996,97 Han-Wen Nienhuys
-*/
+/*
+ text-item.hh -- declare Text_item
+
+ source file of the GNU LilyPond music typesetter
+
+ (c) 1998--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+
+ */
-#ifndef TEXT_ITEM_HH
-#define TEXT_ITEM_HH
+#ifndef Text_ITEM_HH
+#define Text_ITEM_HH
-#include "text-def.hh"
#include "item.hh"
-#include "staff-side.hh"
/**
- print a fixed width text above or below the staff.
+ Print a text in specified style.
*/
-class Text_item : public Item ,public Staff_side{
- void init(Text_def* tdef_l);
- Text_def* tdef_p_;
-
+class Text_item : public Item
+{
public:
- Text_def * tdef_l();
- int pos_i_;
-
- /* ***************/
-
- NAME_MEMBERS(Text_item);
- virtual void set_default_index();
- Molecule* brew_molecule_p() const;
- void do_pre_processing();
- Text_item(Text_def*);
- Text_item(Text_req*);
- ~Text_item();
+ VIRTUAL_COPY_CONS (Score_element);
+protected:
+ virtual Molecule do_brew_molecule () const;
};
-
-#endif // TEXT_HH
+#endif /* Text_ITEM_HH */