]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/tweak-registration.hh
Fix off-by-one error in constrained-breaking.
[lilypond.git] / lily / include / tweak-registration.hh
index 61aab26f704dad1a601cf25251b191147566edb6..a7c1ad807013dcc15ade2153ca69dc1d14f20ae6 100644 (file)
@@ -3,41 +3,41 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004 Han-Wen Nienhuys <hanwen@xs4all.nl>
-
+  (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #ifndef TWEAK_REGISTRATION_HH
 #define TWEAK_REGISTRATION_HH
 
-#include  <map>
+#include <map>
+using namespace std;
 
 #include "lily-proto.hh"
-#include "smobs.hh"
-#include "lily-guile.hh"
+#include "object-key.hh"
 
-typedef std::map<Object_key const*, SCM, Object_key_less> Tweak_map ;
+typedef map<Object_key const *, SCM, Object_key_less> 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 */
-