]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/text-item.hh
* lily/include/object-key-undumper.hh (Module): new file.
[lilypond.git] / lily / include / text-item.hh
index 4102ba5e88207d2e41fafe341c556ac94a971812..6f5425de47923b646bfd5420bf8027c158d34494 100644 (file)
@@ -1,47 +1,28 @@
-/*
-  text-item.hh -- part of GNU LilyPond
+/*   
+  text-item.hh -- declare markup functions
 
-  (c) 1996,97 Han-Wen Nienhuys
-*/
-
-#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.
+  source file of the GNU LilyPond music typesetter
+  
+  (c) 1998--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  Jan Nieuwenhuizen <janneke@gnu.org>
  */
-class Text_item : public Item ,public Staff_side
-{
-public:
-public:
 
-    /// do I have width?
-    bool fat_b_;
-    
-    /* ***************/
+#ifndef TEXT_ITEM
+#define TEXT_ITEM
 
-    Text_item (General_script_def* ,Direction dir=0);
-    virtual ~Text_item ();
-    DECLARE_MY_RUNTIME_TYPEINFO;
 
-protected:
-    // ugh: so, are we a text-def, or can this vary?
-    General_script_def* tdef_p_;
+#include "lily-proto.hh"
+#include "lily-guile.hh"
+#include "stencil.hh"
 
-    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); 
+class Text_interface
+{
+public:
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
+  DECLARE_SCHEME_CALLBACK (interpret_markup, (SCM, SCM, SCM));
+  DECLARE_SCHEME_CALLBACK (interpret_string, (SCM, SCM, SCM, SCM));
+  static bool has_interface (Grob*);
+  static bool markup_p (SCM) ;
 };
 
-
-#endif // TEXT_HH
-
+#endif /* TEXT_ITEM */