X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Ftext-spanner.hh;h=97b43e4187745fec5b3b899b37ee09a553895ec9;hb=d9b43b93f2c885409bafdb157138158f65cc49aa;hp=c7e6ca9a9275999db5847d9696f8e0593beb94fb;hpb=0d2593e4ef1f3d1eb6994223f1de8f6c8fbcd066;p=lilypond.git diff --git a/lily/include/text-spanner.hh b/lily/include/text-spanner.hh index c7e6ca9a92..97b43e4187 100644 --- a/lily/include/text-spanner.hh +++ b/lily/include/text-spanner.hh @@ -1,36 +1,22 @@ /* - textspanner.hh -- part of GNU LilyPond + text-spanner.hh -- declare Text_spanner - (c) 1996,97 Han-Wen Nienhuys + source file of the GNU LilyPond music typesetter + + (c) 2000--2002 Jan Nieuwenhuizen */ -#ifndef TEXTSPANNER_HH -#define TEXTSPANNER_HH -#include "string.hh" -#include "directional-spanner.hh" -#include "text-def.hh" +#ifndef TEXT_SPANNER_HH +#define TEXT_SPANNER_HH -/** a spanner which puts texts on top of other spanners. Use for - triplets, eentweetjes, ottava, etc. */ -class Text_spanner : public Spanner { -public: - Directional_spanner * support; - General_script_def * spec_p_; - Offset text_off_; - NAME_MEMBERS(); +#include "lily-guile.hh" - void set_support(Directional_spanner*); - Text_spanner(); -protected: - SPANNER_CLONE(Text_spanner) - ~Text_spanner(); - virtual void do_substitute_dependency(Score_elem*,Score_elem*); - 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; +class Text_spanner +{ +public: + DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM)); + static bool has_interface (Grob*); }; -#endif // TEXTSPANNER_HH +#endif /* TEXT_SPANNER_HH */