diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-04-15 03:30:06 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-04-15 14:06:58 +0200 |
commit | 1d256da4dcbeb623c146e197bc20d3583d9bb3b8 (patch) | |
tree | 5554db324b5809cd021a3da120374ee12e9241dd /sw | |
parent | c6ec7ed43b0861e1c96d62aa75b594b1dd81e315 (diff) |
sw: implement writing of RTF_VIEWSCALE
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/rtfexport.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/rtfexport.cxx b/sw/source/filter/ww8/rtfexport.cxx index 9d9cc373bd34..d5a90ade29e0 100644 --- a/sw/source/filter/ww8/rtfexport.cxx +++ b/sw/source/filter/ww8/rtfexport.cxx @@ -35,6 +35,8 @@ #include <com/sun/star/i18n/ScriptType.hdl> #include <docsh.hxx> +#include <viewsh.hxx> +#include <viewopt.hxx> #include <ndtxt.hxx> #include <fmtpdsc.hxx> #include <section.hxx> @@ -504,6 +506,13 @@ void RtfExport::ExportDocument_Impl() WriteInfo(); // Default TabSize Strm() << m_pAttrOutput->m_aTabStop.makeStringAndClear().getStr() << sNewLine; + // Zoom + ViewShell *pViewShell(pDoc->GetCurrentViewShell()); + if (pViewShell) + { + Strm() << OOO_STRING_SVTOOLS_RTF_VIEWSCALE; + OutULong(pViewShell->GetViewOptions()->GetZoom()); + } // Page description WritePageDescTable(); |