summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/qa/extras/ww8export/data/zoomtype.docbin0 -> 9216 bytes
-rw-r--r--sw/qa/extras/ww8export/ww8export.cxx11
2 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/extras/ww8export/data/zoomtype.doc b/sw/qa/extras/ww8export/data/zoomtype.doc
new file mode 100644
index 000000000000..882375416930
--- /dev/null
+++ b/sw/qa/extras/ww8export/data/zoomtype.doc
Binary files differ
diff --git a/sw/qa/extras/ww8export/ww8export.cxx b/sw/qa/extras/ww8export/ww8export.cxx
index d16d78118c13..7d8a5b8e06bb 100644
--- a/sw/qa/extras/ww8export/ww8export.cxx
+++ b/sw/qa/extras/ww8export/ww8export.cxx
@@ -18,6 +18,7 @@
#include <com/sun/star/table/TableBorder2.hpp>
#include <com/sun/star/text/GraphicCrop.hpp>
#include <com/sun/star/text/XFormField.hpp>
+#include <com/sun/star/view/DocumentZoomType.hpp>
class Test : public SwModelTestBase
{
@@ -115,6 +116,16 @@ DECLARE_WW8EXPORT_TEST(testZoom, "zoom.doc")
CPPUNIT_ASSERT_EQUAL(sal_Int16(42), nValue);
}
+DECLARE_WW8EXPORT_TEST(testZoomType, "zoomtype.doc")
+{
+ uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY);
+ uno::Reference<view::XViewSettingsSupplier> xViewSettingsSupplier(xModel->getCurrentController(), uno::UNO_QUERY);
+ uno::Reference<beans::XPropertySet> xPropertySet(xViewSettingsSupplier->getViewSettings());
+ sal_Int16 nValue = 0;
+ xPropertySet->getPropertyValue("ZoomType") >>= nValue;
+ CPPUNIT_ASSERT_EQUAL(sal_Int16(view::DocumentZoomType::PAGE_WIDTH), nValue);
+}
+
DECLARE_WW8EXPORT_TEST(test56513, "fdo56513.doc")
{
CPPUNIT_ASSERT_EQUAL(OUString("This is the header of the first section"), parseDump("/root/page[1]/header/txt/text()"));