X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Ftext-item.hh;h=d70347307a86ebcb914673b2b8c96435d33ec420;hb=b0064942493df77833e6e41e05d362850f4874b0;hp=8c6ba84f69348c13c4457254736ff12a3f3c4d0b;hpb=1cf3d59c1559fb9774c4c1c8cae155cfe54a927c;p=lilypond.git diff --git a/lily/include/text-item.hh b/lily/include/text-item.hh index 8c6ba84f69..d70347307a 100644 --- a/lily/include/text-item.hh +++ b/lily/include/text-item.hh @@ -1,47 +1,30 @@ -/* - text-item.hh -- part of GNU LilyPond - - (c) 1996--1998 Han-Wen Nienhuys -*/ +/* + text-item.hh -- declare Text_item + + source file of the GNU LilyPond music typesetter + + (c) 1998--2000 Han-Wen Nienhuys + + */ -#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: - - /// do I have width? - bool fat_b_; - - /* ***************/ - - Text_item (General_script_def* ,Direction dir=CENTER); - virtual ~Text_item (); - DECLARE_MY_RUNTIME_TYPEINFO; - -//protected: - // ugh: so, are we a text-def, or can this vary? - General_script_def* tdef_p_; + VIRTUAL_COPY_CONS (Score_element); + static SCM scheme_molecule (SCM); + +Text_item (SCM s); protected: - - 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 Molecule do_brew_molecule () const; }; - -#endif // TEXT_HH +#endif /* Text_ITEM_HH */