summaryrefslogtreecommitdiff
path: root/sc/inc/fielduno.hxx
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2002-09-26 07:52:20 +0000
committerSascha Ballach <sab@openoffice.org>2002-09-26 07:52:20 +0000
commitf34ad1954a71b239ab54a901407318d26e444da7 (patch)
tree87f0bcda14ab5f8cccc15a81e12f91a4a35183d4 /sc/inc/fielduno.hxx
parent7d2c0508e6aef92dda5a1a44d07926c0ea7a012e (diff)
#103377#,#103378#; add support of XRefreshable
Diffstat (limited to 'sc/inc/fielduno.hxx')
-rw-r--r--sc/inc/fielduno.hxx50
1 files changed, 43 insertions, 7 deletions
diff --git a/sc/inc/fielduno.hxx b/sc/inc/fielduno.hxx
index fda3f49bfdbd..c47567a89a04 100644
--- a/sc/inc/fielduno.hxx
+++ b/sc/inc/fielduno.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fielduno.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: hr $ $Date: 2001-10-23 11:14:49 $
+ * last change: $Author: sab $ $Date: 2002-09-26 08:52:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -100,14 +100,19 @@
#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
#include <com/sun/star/beans/XPropertySet.hpp>
#endif
+#ifndef _COM_SUN_STAR_UTIL_XREFRESHABLE_HPP_
+#include <com/sun/star/util/XRefreshable.hpp>
+#endif
#ifndef _CPPUHELPER_COMPONENT_HXX_
#include <cppuhelper/component.hxx>
#endif
-#ifndef _CPPUHELPER_IMPLBASE4_HXX_
-#include <cppuhelper/implbase4.hxx>
+#ifndef _CPPUHELPER_IMPLBASE5_HXX_
+#include <cppuhelper/implbase5.hxx>
+#endif
+#ifndef _OSL_MUTEX_HXX_
+#include <osl/mutex.hxx>
#endif
-
class SvxEditSource;
class SvxFieldItem;
@@ -119,10 +124,11 @@ class ScHeaderFooterContentObj;
//------------------------------------------------------------------
-class ScCellFieldsObj : public cppu::WeakImplHelper4<
+class ScCellFieldsObj : public cppu::WeakImplHelper5<
com::sun::star::container::XEnumerationAccess,
com::sun::star::container::XIndexAccess,
com::sun::star::container::XContainer,
+ com::sun::star::util::XRefreshable,
com::sun::star::lang::XServiceInfo >,
public SfxListener
{
@@ -130,6 +136,10 @@ private:
ScDocShell* pDocShell;
ScAddress aCellPos;
SvxEditSource* pEditSource;
+ /// List of refresh listeners.
+ cppu::OInterfaceContainerHelper* mpRefreshListeners;
+ /// mutex to lock the InterfaceContainerHelper
+ osl::Mutex aMutex;
ScCellFieldObj* GetObjectByIndex_Impl(INT32 Index) const;
@@ -163,6 +173,16 @@ public:
::com::sun::star::container::XContainerListener >& xListener )
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 >& l )
+ throw (::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL removeRefreshListener( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::util::XRefreshListener >& l )
+ throw (::com::sun::star::uno::RuntimeException);
+
// XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName()
throw(::com::sun::star::uno::RuntimeException);
@@ -304,10 +324,11 @@ public:
//------------------------------------------------------------------
-class ScHeaderFieldsObj : public cppu::WeakImplHelper4<
+class ScHeaderFieldsObj : public cppu::WeakImplHelper5<
com::sun::star::container::XEnumerationAccess,
com::sun::star::container::XIndexAccess,
com::sun::star::container::XContainer,
+ com::sun::star::util::XRefreshable,
com::sun::star::lang::XServiceInfo >
{
private:
@@ -316,6 +337,11 @@ private:
UINT16 nType;
SvxEditSource* pEditSource;
+ /// List of refresh listeners.
+ cppu::OInterfaceContainerHelper* mpRefreshListeners;
+ /// mutex to lock the InterfaceContainerHelper
+ osl::Mutex aMutex;
+
ScHeaderFieldObj* GetObjectByIndex_Impl(INT32 Index) const;
public:
@@ -347,6 +373,16 @@ public:
::com::sun::star::container::XContainerListener >& xListener )
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 >& l )
+ throw (::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL removeRefreshListener( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::util::XRefreshListener >& l )
+ throw (::com::sun::star::uno::RuntimeException);
+
// XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName()
throw(::com::sun::star::uno::RuntimeException);