diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-12-03 18:15:49 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-12-03 18:31:57 +0100 |
commit | affd2b5c4fba727c1b119bdcbdb71325c10ef954 (patch) | |
tree | 1f421361dac1147f7b9b1d1bb23bce3efc8705ef /sw/inc/unoidx.hxx | |
parent | aa61177f1d339422acb3322c8851962cd1ca7466 (diff) |
SwXDocumentIndex: implement css.util.XRefreshable
... as has been promised since the OOo initial import in deprecation
notices in XDocumentIndex :-/
Change-Id: I5dd7e482e0e6d60dcad3de883d5815f729e6b80f
Diffstat (limited to 'sw/inc/unoidx.hxx')
-rw-r--r-- | sw/inc/unoidx.hxx | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/sw/inc/unoidx.hxx b/sw/inc/unoidx.hxx index d16875d505ce..99f5246b821d 100644 --- a/sw/inc/unoidx.hxx +++ b/sw/inc/unoidx.hxx @@ -16,17 +16,18 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef _UNOIDX_HXX -#define _UNOIDX_HXX +#ifndef SW_UNOIDX_HXX +#define SW_UNOIDX_HXX #include <com/sun/star/lang/XUnoTunnel.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/container/XNamed.hpp> +#include <com/sun/star/util/XRefreshable.hpp> #include <com/sun/star/text/XDocumentIndexMark.hpp> #include <com/sun/star/text/XDocumentIndex.hpp> #include <cppuhelper/implbase4.hxx> -#include <cppuhelper/implbase5.hxx> +#include <cppuhelper/implbase6.hxx> #include <sfx2/Metadatable.hxx> @@ -38,12 +39,13 @@ class SwTOXBaseSection; class SwTOXMark; class SwTOXType; -typedef ::cppu::ImplInheritanceHelper5 +typedef ::cppu::ImplInheritanceHelper6 < ::sfx2::MetadatableMixin , ::com::sun::star::lang::XUnoTunnel , ::com::sun::star::lang::XServiceInfo , ::com::sun::star::beans::XPropertySet , ::com::sun::star::container::XNamed +, ::com::sun::star::util::XRefreshable , ::com::sun::star::text::XDocumentIndex > SwXDocumentIndex_Base; @@ -159,6 +161,18 @@ public: virtual void SAL_CALL setName(const ::rtl::OUString& rName) throw (::com::sun::star::uno::RuntimeException); + // XRefreshable + virtual void SAL_CALL refresh() + throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addRefreshListener( + const ::com::sun::star::uno::Reference< + ::com::sun::star::util::XRefreshListener>& xListener) + throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL removeRefreshListener( + const ::com::sun::star::uno::Reference< + ::com::sun::star::util::XRefreshListener>& xListener) + throw (::com::sun::star::uno::RuntimeException); + // XTextContent virtual void SAL_CALL attach( const ::com::sun::star::uno::Reference< |