[Libreoffice-commits] .: sw/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Sun Apr 15 05:06:58 PDT 2012


 sw/source/filter/ww8/rtfexport.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 1d256da4dcbeb623c146e197bc20d3583d9bb3b8
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Sun Apr 15 03:30:06 2012 +0200

    sw: implement writing of RTF_VIEWSCALE

diff --git a/sw/source/filter/ww8/rtfexport.cxx b/sw/source/filter/ww8/rtfexport.cxx
index 9d9cc37..d5a90ad 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();
 


More information about the Libreoffice-commits mailing list