]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/text-item.hh
release: 1.1.53
[lilypond.git] / lily / include / text-item.hh
index 5d9546409bc25cc508572bb0471c3c2b3e0086ab..8b73e999bb6714aa9b6fc9c1ddda951b1ac40475 100644 (file)
@@ -1,46 +1,32 @@
-/*
-  text-item.hh -- part of GNU LilyPond
-
-  (c) 1996,97 Han-Wen Nienhuys
-*/
+/*   
+  text-item.hh -- declare Text_item
+  
+  source file of the GNU LilyPond music typesetter
+  
+  (c) 1998--1999 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
+class Text_item : public Item
 {
 public:
+  String text_str_;
+  String style_str_;
 
-    /// do I have width?
-    bool fat_b_;
-    
-    /* ***************/
-
-    Text_item (General_script_def* ,Direction dir=CENTER);
-    virtual ~Text_item ();
-    DECLARE_MY_RUNTIME_TYPEINFO;
-
+  Text_item ();
+  VIRTUAL_COPY_CONS (Score_element);
 protected:
-    // ugh: so, are we a text-def, or can this vary?
-    General_script_def* tdef_p_;
-
-    virtual Interval symbol_height () const;
-
-    virtual Molecule* brew_molecule_p () const;
-    virtual void do_pre_processing ();
-    virtual Real get_position_f () const;
-
-private:
-//    void init (Text_def* tdef_l); 
+  virtual void do_print () const;
+  virtual Molecule *do_brew_molecule_p () const;
 };
 
-
-#endif // TEXT_HH
+#endif /* Text_ITEM_HH */