summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-05-18 18:17:58 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-05-20 14:07:30 +0000
commit421adf500c0723126a293b7fbd51f22e1471f3cf (patch)
tree9d0380bf8e0b9d73250d89f72b170209345b58bf /sw/source/core
parentc781bad828b4bbea1ab888c6747b991ad5804a5b (diff)
tdf#89794: sw: implement SwXFlatParagraph::getPropertySetInfo()
(regression from d477ff4a81ecba8a77ead5ff1a33d3e3ceed622e) Change-Id: Ic49d2c14a27d2fb188a1ba5f9a7d8c0180b8de13 (cherry picked from commit a4c121aa4a2f68d36f1ce41e94e8275230ec0866) Reviewed-on: https://gerrit.libreoffice.org/15792 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/unocore/unoflatpara.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoflatpara.cxx b/sw/source/core/unocore/unoflatpara.cxx
index b6a7c5f3bfbf..dde4e9217879 100644
--- a/sw/source/core/unocore/unoflatpara.cxx
+++ b/sw/source/core/unocore/unoflatpara.cxx
@@ -26,6 +26,7 @@
#include <osl/mutex.hxx>
#include <vcl/svapp.hxx>
#include <com/sun/star/text/TextMarkupType.hpp>
+#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <unotextmarkup.hxx>
#include <ndtxt.hxx>
#include <doc.hxx>
@@ -45,6 +46,7 @@
#include <IGrammarContact.hxx>
#include <viewopt.hxx>
#include <comphelper/servicehelper.hxx>
+#include <comphelper/propertysetinfo.hxx>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/text/XTextRange.hpp>
@@ -78,8 +80,12 @@ uno::Reference< beans::XPropertySetInfo > SAL_CALL
SwXFlatParagraph::getPropertySetInfo()
throw (uno::RuntimeException, std::exception)
{
- throw uno::RuntimeException("SwXFlatParagraph::getPropertySetInfo(): "
- "not implemented", static_cast< ::cppu::OWeakObject*>(this));
+ static comphelper::PropertyMapEntry s_Entries[] = {
+ { 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