diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2009-08-12 14:00:19 +0000 |
|---|---|---|
| committer | JazzyNico <JazzyNico@users.sourceforge.net> | 2009-08-12 14:00:19 +0000 |
| commit | 3c5b9a5d0a9df79c757435ad63514287cd5b211b (patch) | |
| tree | 0a22f3d90db1a915fa9d3c8031e621ae082c23e7 /src/document.cpp | |
| parent | Don't open 'Save as ...' dialog inside the application bundle on OS X when it... (diff) | |
| download | inkscape-3c5b9a5d0a9df79c757435ad63514287cd5b211b.tar.gz inkscape-3c5b9a5d0a9df79c757435ad63514287cd5b211b.zip | |
Fix for Bug #166678 (Paper size or orientation are not used when printing) by Adrian Johnson.
(bzr r8473)
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp index 288e52c6d..17057e1dc 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -572,6 +572,25 @@ gdouble sp_document_height(SPDocument *document) return root->height.computed; } +void sp_document_set_landscape (SPDocument *document, gboolean landscape) +{ + SPRoot *root = SP_ROOT(document->root); + + root->landscape = landscape; + SP_OBJECT (root)->updateRepr(); +} + +gboolean sp_document_landscape(SPDocument *document) +{ + g_return_val_if_fail(document != NULL, 0.0); + g_return_val_if_fail(document->priv != NULL, 0.0); + g_return_val_if_fail(document->root != NULL, 0.0); + + SPRoot *root = SP_ROOT(document->root); + + return root->landscape; +} + Geom::Point sp_document_dimensions(SPDocument *doc) { return Geom::Point(sp_document_width(doc), sp_document_height(doc)); |
