Code

r11516@tres: ted | 2006-04-26 21:30:18 -0700
[inkscape.git] / src / document.h
index da8b656eff430548dc74f2112ad2a48001985349..4d293e981479a12f1fa68c0b7533621aef8bbd77 100644 (file)
 #include "gc-managed.h"
 #include "gc-finalized.h"
 #include "gc-anchored.h"
+#include <glibmm/ustring.h>
 
+namespace Avoid {
+class Router;
+}
+
+struct NRRect;
 struct SPDesktop;
 struct SPItem;
 struct SPObject;
@@ -79,6 +85,9 @@ struct SPDocument : public Inkscape::GC::Managed<>,
        /// Handler ID
        guint modified_id;
 
+       // Instance of the connector router
+       Avoid::Router *router;
+
        sigc::connection connectModified(ModifiedSignal::slot_type slot);
        sigc::connection connectURISet(URISetSignal::slot_type slot);
        sigc::connection connectResized(ResizedSignal::slot_type slot);
@@ -90,6 +99,8 @@ struct SPDocument : public Inkscape::GC::Managed<>,
        void bindObjectToRepr(Inkscape::XML::Node *repr, SPObject *object);
        SPObject *getObjectByRepr(Inkscape::XML::Node *repr);
 
+    Glib::ustring getLanguage();
+
        void queueForOrphanCollection(SPObject *object);
        void collectOrphans();
 
@@ -113,6 +124,8 @@ public:
         void reset_key (void *dummy);
         sigc::connection _selection_changed_connection;
         sigc::connection _desktop_activated_connection;
+
+       void fitToRect(NRRect const & rect);
 };
 
 SPDocument *sp_document_new (const gchar *uri, unsigned int keepalive, bool make_new = false);