summaryrefslogtreecommitdiffstats
path: root/src/document.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/document.h')
-rw-r--r--src/document.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/document.h b/src/document.h
index d49067250..948b5b867 100644
--- a/src/document.h
+++ b/src/document.h
@@ -33,9 +33,8 @@ class Router;
class SPItem;
class SPObject;
-struct SPGroup;
-struct SPRoot;
-struct SPUnit;
+class SPGroup;
+class SPRoot;
namespace Inkscape {
struct Application;
@@ -47,11 +46,14 @@ namespace Inkscape {
struct Document;
class Node;
}
+ namespace Util {
+ class Quantity;
+ }
}
class SPDefs;
class SP3DBox;
-struct Persp3D;
+class Persp3D;
class Persp3DImpl;
class SPItemCtx;
@@ -225,12 +227,13 @@ public:
SPDocument *doRef();
SPDocument *doUnref();
- gdouble getWidth() const;
- gdouble getHeight() const;
+ Inkscape::Util::Quantity getWidth() const;
+ Inkscape::Util::Quantity getHeight() const;
Geom::Point getDimensions() const;
Geom::OptRect preferredBounds() const;
- void setWidth(gdouble width, const SPUnit *unit);
- void setHeight(gdouble height, const SPUnit *unit);
+ void setWidth(const Inkscape::Util::Quantity &width);
+ void setHeight(const Inkscape::Util::Quantity &height);
+ void setViewBox(const Geom::Rect &viewBox);
void requestModified();
gint ensureUpToDate();
bool addResource(const gchar *key, SPObject *object);
@@ -254,8 +257,6 @@ private:
void setupViewport(SPItemCtx *ctx);
};
-struct SPUnit;
-
/*
* Ideas: How to overcome style invalidation nightmare
*