summaryrefslogtreecommitdiffstats
path: root/src/document.h
diff options
context:
space:
mode:
authorMatthew Petroff <matthew@mpetroff.net>2013-08-27 16:32:55 +0000
committerMatthew Petroff <matthew@mpetroff.net>2013-08-27 16:32:55 +0000
commitf10048be170a45921ae8fc65ccd2588a9ad2897d (patch)
treec0abadf8d3b7ffb325061d797e5b8d9d8b2aefeb /src/document.h
parentUse real world units for page sizes. (diff)
downloadinkscape-f10048be170a45921ae8fc65ccd2588a9ad2897d.tar.gz
inkscape-f10048be170a45921ae8fc65ccd2588a9ad2897d.zip
Added viewBox implement document unit support.
(bzr r12475.1.2)
Diffstat (limited to 'src/document.h')
-rw-r--r--src/document.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/document.h b/src/document.h
index 6782c6206..ebee3a84c 100644
--- a/src/document.h
+++ b/src/document.h
@@ -227,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(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);