diff options
author | Justin Luth <justin_luth@sil.org> | 2015-01-02 07:33:08 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-07 10:52:28 +0000 |
commit | efa21d48a0dcb46e4728a19f89d0e26587a17327 (patch) | |
tree | e7adac6b5a6fa394998f3a02fcab9239bf376faf | |
parent | db8ac4fe309d38b11113929032887642a62da19f (diff) |
WW8 filter: export zoom type
Change-Id: I6a667585cc590ed2fe73581acb1249da62e65d31
Reviewed-on: https://gerrit.libreoffice.org/13717
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r-- | sw/source/filter/ww8/wrtww8.cxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index 96dac3ba866e..af4167581941 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -334,10 +334,20 @@ static void WriteDop( WW8Export& rWrt ) DefaultItemGet<SvxTabStopItem>(*rWrt.pDoc, RES_PARATR_TABSTOP); rDop.dxaTab = (sal_uInt16)rTabStop[0].GetTabPos(); - // Zoom factor + // Zoom factor and type SwViewShell *pViewShell(rWrt.pDoc->getIDocumentLayoutAccess().GetCurrentViewShell()); - if (pViewShell && pViewShell->GetViewOptions()->GetZoomType() == SVX_ZOOM_PERCENT) - rDop.wScaleSaved = pViewShell->GetViewOptions()->GetZoom(); + if (pViewShell) + { + switch ( pViewShell->GetViewOptions()->GetZoomType() ) + { + case SVX_ZOOM_WHOLEPAGE: rDop.zkSaved = 1; break; + case SVX_ZOOM_PAGEWIDTH: rDop.zkSaved = 2; break; + case SVX_ZOOM_OPTIMAL: rDop.zkSaved = 3; break; + default: rDop.zkSaved = 0; + rDop.wScaleSaved = pViewShell->GetViewOptions()->GetZoom(); + break; + } + } // Werte aus der DocStatistik (werden aufjedenfall fuer die // DocStat-Felder benoetigt!) |