summaryrefslogtreecommitdiffstats
path: root/src/sp-root.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-root.h')
-rw-r--r--src/sp-root.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/sp-root.h b/src/sp-root.h
index 2776ae887..4a37840d9 100644
--- a/src/sp-root.h
+++ b/src/sp-root.h
@@ -18,6 +18,7 @@
#include "svg/svg-length.h"
#include "sp-item-group.h"
#include "viewbox.h"
+#include "sp-dimensions.h"
#define SP_ROOT(obj) (dynamic_cast<SPRoot*>((SPObject*)obj))
#define SP_IS_ROOT(obj) (dynamic_cast<const SPRoot*>((SPObject*)obj) != NULL)
@@ -25,7 +26,7 @@
class SPDefs;
/** \<svg\> element */
-class SPRoot : public SPGroup, public SPViewBox {
+class SPRoot : public SPGroup, public SPViewBox, public SPDimensions {
public:
SPRoot();
virtual ~SPRoot();
@@ -35,11 +36,6 @@ public:
Inkscape::Version inkscape;
} version, original;
- SVGLength x;
- SVGLength y;
- SVGLength width;
- SVGLength height;
-
char *onload;
/**
@@ -63,6 +59,9 @@ public:
virtual Inkscape::DrawingItem* show(Inkscape::Drawing &drawing, unsigned int key, unsigned int flags);
virtual void print(SPPrintContext *ctx);
virtual const char* displayName() const;
+private:
+ void unset_x_and_y();
+ void setRootDimensions();
};
#endif /* !SP_ROOT_H_SEEN */