summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-01-07 09:13:23 +0100
committerMiklos Vajna <vmiklos@suse.cz>2013-01-07 09:14:49 +0100
commit10d6d0d00735e5c0f31d602ce94502c00d2371d5 (patch)
tree055df6dd687d6fa77e42e0791a924cf02155cf83
parent6e9ab7e0ca443cca46cd39a313583f4b90549e1c (diff)
WW8 filter: export zoom factor
Change-Id: I5c64d8311439430e3b21a90381ef51a1061bb0b9
-rw-r--r--sw/source/filter/ww8/wrtww8.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index 7651b40ad06c..b89a14344fc5 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -55,6 +55,7 @@
#include <fmtrowsplt.hxx>
#include <frmatr.hxx>
#include <doc.hxx>
+#include <viewopt.hxx>
#include <docary.hxx>
#include <pam.hxx>
#include <ndtxt.hxx>
@@ -232,6 +233,10 @@ static void WriteDop( WW8Export& rWrt )
DefaultItemGet<SvxTabStopItem>(*rWrt.pDoc, RES_PARATR_TABSTOP);
rDop.dxaTab = (sal_uInt16)rTabStop[0].GetTabPos();
+ // Zoom factor.
+ ViewShell *pViewShell(rWrt.pDoc->GetCurrentViewShell());
+ if (pViewShell && pViewShell->GetViewOptions()->GetZoomType() == SVX_ZOOM_PERCENT)
+ rDop.wScaleSaved = pViewShell->GetViewOptions()->GetZoom();
// Werte aus der DocStatistik (werden aufjedenfall fuer die
// DocStat-Felder benoetigt!)