summaryrefslogtreecommitdiff
path: root/sc/inc/datauno.hxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-03-19 15:03:48 +0000
committerOliver Bolte <obo@openoffice.org>2004-03-19 15:03:48 +0000
commit40848042500d9604ee8cefe6bac7609f9cbc9b45 (patch)
tree69ab4d4533c91e72c66a972ede42bd9bf2e82959 /sc/inc/datauno.hxx
parentc7b59fccec15a27c80b78b38a9c9c965b90f2204 (diff)
INTEGRATION: CWS sab008 (1.4.230); FILE MERGED
2004/01/29 18:12:34 sab 1.4.230.2: #76694#; add Refreshlistener support 2004/01/23 12:16:45 sab 1.4.230.1: #76694#; add XRefreshable
Diffstat (limited to 'sc/inc/datauno.hxx')
-rw-r--r--sc/inc/datauno.hxx25
1 files changed, 22 insertions, 3 deletions
diff --git a/sc/inc/datauno.hxx b/sc/inc/datauno.hxx
index 4268b1af579c..baddf7b199a6 100644
--- a/sc/inc/datauno.hxx
+++ b/sc/inc/datauno.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: datauno.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: sab $ $Date: 2002-10-11 07:53:55 $
+ * last change: $Author: obo $ $Date: 2004-03-19 16:03:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -119,6 +119,9 @@
#ifndef _COM_SUN_STAR_CONTAINER_XNAMED_HPP_
#include <com/sun/star/container/XNamed.hpp>
#endif
+#ifndef _COM_SUN_STAR_UTIL_XREFRESHABLE_HPP_
+#include <com/sun/star/util/XRefreshable.hpp>
+#endif
#ifndef _CPPUHELPER_IMPLBASE2_HXX_
#include <cppuhelper/implbase2.hxx>
@@ -145,6 +148,9 @@ class ScDataPilotDescriptorBase;
struct ScSortParam;
+typedef ::com::sun::star::uno::Reference<
+ ::com::sun::star::util::XRefreshListener >* XDBRefreshListenerPtr;
+SV_DECL_PTRARR_DEL( XDBRefreshListenerArr_Impl, XDBRefreshListenerPtr, 4, 4 );
class ScDataUnoConversion
{
@@ -551,8 +557,9 @@ public:
};
-class ScDatabaseRangeObj : public cppu::WeakImplHelper5<
+class ScDatabaseRangeObj : public cppu::WeakImplHelper6<
com::sun::star::sheet::XDatabaseRange,
+ com::sun::star::util::XRefreshable,
com::sun::star::container::XNamed,
com::sun::star::sheet::XCellRangeReferrer,
com::sun::star::beans::XPropertySet,
@@ -563,9 +570,11 @@ private:
ScDocShell* pDocShell;
String aName;
SfxItemPropertySet aPropSet;
+ XDBRefreshListenerArr_Impl aRefreshListeners;
private:
ScDBData* GetDBData_Impl() const;
+ void Refreshed_Impl();
public:
ScDatabaseRangeObj(ScDocShell* pDocSh, const String& rNm);
@@ -601,7 +610,17 @@ public:
getSubTotalDescriptor() throw(::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL
getImportDescriptor() throw(::com::sun::star::uno::RuntimeException);
+// implemented for the XRefreshable Interface
+// virtual void SAL_CALL refresh() 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);
// XCellRangeReferrer
virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > SAL_CALL