Code

XML Privatisation Stuff after a long time
[inkscape.git] / src / sp-namedview.h
index 048096d8c0096e569761f332afb9f0d51be03425..337a67deb10fd557ff23fa9ff8c25b3071e9b2ce 100644 (file)
@@ -23,6 +23,8 @@
 #include "sp-object-group.h"
 #include "sp-metric.h"
 #include "snap.h"
+#include "display/canvas-grid.h"
+#include "document.h"
 
 namespace Inkscape {
 class CanvasGrid;
@@ -80,6 +82,14 @@ struct SPNamedView : public SPObjectGroup {
 
     void translateGuides(Geom::Translate const &translation);
     void scrollAllDesktops(double dx, double dy, bool is_scrolling);
+       void writeNewGrid(SPDocument *document,int gridtype);
+       bool getSnapGlobal() const;
+       void setSnapGlobal(bool v);
+       void setGuides(bool v);
+
+       private:
+               double getMarginLength(gchar const * const key,SPUnit const * const margin_units,SPUnit const * const return_units,double const width,double const height,bool const use_width);
+               friend class SPDocument;
 };
 
 struct SPNamedViewClass {