Kaydet (Commit) a4c121aa authored tarafından Michael Stahl's avatar Michael Stahl

tdf#89794: sw: implement SwXFlatParagraph::getPropertySetInfo()

(regression from d477ff4a)

Change-Id: Ic49d2c14a27d2fb188a1ba5f9a7d8c0180b8de13
üst 09a67a5b
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
#include <com/sun/star/text/TextMarkupType.hpp> #include <com/sun/star/text/TextMarkupType.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <unotextmarkup.hxx> #include <unotextmarkup.hxx>
#include <ndtxt.hxx> #include <ndtxt.hxx>
#include <doc.hxx> #include <doc.hxx>
...@@ -45,6 +46,7 @@ ...@@ -45,6 +46,7 @@
#include <IGrammarContact.hxx> #include <IGrammarContact.hxx>
#include <viewopt.hxx> #include <viewopt.hxx>
#include <comphelper/servicehelper.hxx> #include <comphelper/servicehelper.hxx>
#include <comphelper/propertysetinfo.hxx>
#include <com/sun/star/lang/XUnoTunnel.hpp> #include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/text/XTextRange.hpp> #include <com/sun/star/text/XTextRange.hpp>
...@@ -78,8 +80,12 @@ uno::Reference< beans::XPropertySetInfo > SAL_CALL ...@@ -78,8 +80,12 @@ uno::Reference< beans::XPropertySetInfo > SAL_CALL
SwXFlatParagraph::getPropertySetInfo() SwXFlatParagraph::getPropertySetInfo()
throw (uno::RuntimeException, std::exception) throw (uno::RuntimeException, std::exception)
{ {
throw uno::RuntimeException("SwXFlatParagraph::getPropertySetInfo(): " static comphelper::PropertyMapEntry s_Entries[] = {
"not implemented", static_cast< ::cppu::OWeakObject*>(this)); { OUString("FieldPositions"), -1, ::cppu::UnoType<uno::Sequence<sal_Int32>>::get(), beans::PropertyAttribute::READONLY, 0 },
{ OUString("FootnotePositions"), -1, ::cppu::UnoType<uno::Sequence<sal_Int32>>::get(), beans::PropertyAttribute::READONLY, 0 },
{ OUString(), -1, css::uno::Type(), 0, 0 }
};
return new comphelper::PropertySetInfo(s_Entries);
} }
void SAL_CALL void SAL_CALL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment