]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/text-spanner.hh
release: 1.5.29
[lilypond.git] / lily / include / text-spanner.hh
index dbdea979ad25a1e277bd12643983806adb9472a2..97b43e4187745fec5b3b899b37ee09a553895ec9 100644 (file)
@@ -1,34 +1,22 @@
 /*
-  textspanner.hh -- part of LilyPond
+  text-spanner.hh -- declare Text_spanner
 
-  (c) 1996,97 Han-Wen Nienhuys
-*/
+  source file of the GNU LilyPond music typesetter
 
-#ifndef TEXTSPANNER_HH
-#define TEXTSPANNER_HH
+  (c) 2000--2002 Jan Nieuwenhuizen <janneke@gnu.org>
+*/
 
-#include "string.hh"
-#include "directional-spanner.hh"
-#include "text-def.hh"
 
-/** a spanner which puts texts on top of other spanners.  Use for
-  triplets, eentweetjes, ottava, etc.  */
-struct Text_spanner : Spanner {
-    Text_def spec;
-    Offset text_off_;
-    Directional_spanner*support;
+#ifndef TEXT_SPANNER_HH
+#define TEXT_SPANNER_HH
 
-    /* *************** */
+#include "lily-guile.hh"
 
-    NAME_MEMBERS(Text_spanner);
-    virtual void do_pre_processing();
-    virtual void do_post_processing();
-    virtual Interval height() const ;
-    virtual Molecule* brew_molecule_p()const;
-    virtual void do_print() const;
-    virtual Spanner* do_break_at(PCol*,PCol*)const;
-    Text_spanner();
-    void set_support(Directional_spanner*);
+class Text_spanner
+{
+public:
+  DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM));
+  static bool has_interface (Grob*);
 };
-#endif // TEXTSPANNER_HH
 
+#endif /* TEXT_SPANNER_HH */