diff options
Diffstat (limited to 'sw/qa/extras/rtfimport/rtfimport.cxx')
-rw-r--r-- | sw/qa/extras/rtfimport/rtfimport.cxx | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx index eb8107f2f270..eb2596e44c44 100644 --- a/sw/qa/extras/rtfimport/rtfimport.cxx +++ b/sw/qa/extras/rtfimport/rtfimport.cxx @@ -45,6 +45,7 @@ #include <com/sun/star/drawing/XShapes.hpp> #include <com/sun/star/text/XTextDocument.hpp> #include <com/sun/star/text/XTextSectionsSupplier.hpp> +#include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/beans/XPropertyState.hpp> #include <com/sun/star/document/XDocumentInsertable.hpp> @@ -55,6 +56,12 @@ #include <comphelper/sequenceashashmap.hxx> #include <comphelper/configuration.hxx> +#include <editeng/charhiddenitem.hxx> + +#include <ndindex.hxx> +#include <ndtxt.hxx> +#include <fmtautofmt.hxx> + class Test : public SwModelTestBase { public: @@ -995,6 +1002,36 @@ CPPUNIT_TEST_FIXTURE(Test, testFdo44984) "TextPortionType")); } +CPPUNIT_TEST_FIXTURE(Test, testTdf131386) +{ + createSwDoc("hidden-para-separator.rtf"); + SwDoc const* const pDoc = getSwDoc(); + SwNodeIndex ix(pDoc->GetNodes().GetEndOfContent(), -1); + CPPUNIT_ASSERT(!ix.GetNode().GetTextNode()->GetAttr(RES_PARATR_LIST_AUTOFMT).GetStyleHandle()); + --ix; + --ix; + CPPUNIT_ASSERT(ix.GetNode() + .GetTextNode() + ->GetAttr(RES_PARATR_LIST_AUTOFMT) + .GetStyleHandle() + ->Get(RES_CHRATR_HIDDEN) + .GetValue()); + --ix; + CPPUNIT_ASSERT(ix.GetNode() + .GetTextNode() + ->GetAttr(RES_PARATR_LIST_AUTOFMT) + .GetStyleHandle() + ->Get(RES_CHRATR_HIDDEN) + .GetValue()); + --ix; + CPPUNIT_ASSERT(ix.GetNode() + .GetTextNode() + ->GetAttr(RES_PARATR_LIST_AUTOFMT) + .GetStyleHandle() + ->Get(RES_CHRATR_HIDDEN) + .GetValue()); +} + CPPUNIT_TEST_FIXTURE(Test, testFdo82071) { createSwDoc("fdo82071.rtf"); |