X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Ftweak-registration.hh;h=a7c1ad807013dcc15ade2153ca69dc1d14f20ae6;hb=44ad1d66c072e4d6545e75c769c86a460cb1df13;hp=2ad715f497711045c3cf4fa12e01cb62f13b426c;hpb=c659cb200486c2f908703696a1b2873e78c8160a;p=lilypond.git diff --git a/lily/include/tweak-registration.hh b/lily/include/tweak-registration.hh index 2ad715f497..a7c1ad8070 100644 --- a/lily/include/tweak-registration.hh +++ b/lily/include/tweak-registration.hh @@ -3,40 +3,41 @@ source file of the GNU LilyPond music typesetter - (c) 2004 Han-Wen Nienhuys - + (c) 2004--2006 Han-Wen Nienhuys */ #ifndef TWEAK_REGISTRATION_HH #define TWEAK_REGISTRATION_HH -#include +#include +using namespace std; #include "lily-proto.hh" #include "object-key.hh" -typedef std::map Tweak_map ; +typedef map Tweak_map; class Tweak_registry { Tweak_map tweaks_; Object_key_undumper *undumper_; - DECLARE_SMOBS(Tweak_registry,); - + DECLARE_SMOBS (Tweak_registry); + public: - Object_key_undumper *undumper() const; + Tweak_registry (); + + Object_key_undumper *undumper () const; void clear (); - void insert_grob_tweak (Grob*, SCM); + void insert_grob_tweak (Grob *, SCM); + void replace_grob_tweak (Grob *, SCM); SCM get_tweaks (Grob *); SCM list_tweaks (); void insert_tweak_from_file (SCM); - Tweak_registry (); }; extern Tweak_registry *global_registry_; -DECLARE_UNSMOB(Tweak_registry, tweak_registry); +DECLARE_UNSMOB (Tweak_registry, tweak_registry); #endif /* TWEAK_REGISTRATION_HH */ -