summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-08-20 11:55:48 +0000
committerRüdiger Timm <rt@openoffice.org>2004-08-20 11:55:48 +0000
commitea32bee99f6faa7df03428504264cb9fcbc01931 (patch)
tree187c314faaeb21b46dbb1b3eb37cee2bee565a78 /configmgr
parent1e2e88ee0d0f674620f191858e452ac846664634 (diff)
INTEGRATION: CWS cfgruggedised (1.9.6); FILE MERGED
2004/07/23 13:30:52 jb 1.9.6.1: #i28654#,#i29838# Add InteractionHandler support to configuration
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/localbe/localfilelayer.hxx57
1 files changed, 49 insertions, 8 deletions
diff --git a/configmgr/source/localbe/localfilelayer.hxx b/configmgr/source/localbe/localfilelayer.hxx
index dd0aa0e6d84c..e26df55c1aa7 100644
--- a/configmgr/source/localbe/localfilelayer.hxx
+++ b/configmgr/source/localbe/localfilelayer.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: localfilelayer.hxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: obo $ $Date: 2004-07-05 13:23:38 $
+ * last change: $Author: rt $ $Date: 2004-08-20 12:55:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,6 +62,10 @@
#ifndef CONFIGMGR_LOCALBE_LOCALFILELAYER_HXX_
#define CONFIGMGR_LOCALBE_LOCALFILELAYER_HXX_
+#ifndef CONFIGMGR_MISC_PROPERTYSETHELPER_HXX
+#include "propertysethelper.hxx"
+#endif
+
#ifndef _COM_SUN_STAR_CONFIGURATION_BACKEND_XUPDATABLELAYER_HPP_
#include <com/sun/star/configuration/backend/XUpdatableLayer.hpp>
#endif // _COM_SUN_STAR_CONFIGURATION_BACKEND_XUPDATABLELAYER_HPP_
@@ -168,6 +172,28 @@ private :
uno::Reference<backend::XLayer> mLayerReader ;
} ;
+
+// provides properties for file layers
+class LayerPropertyHelper : public apihelper::PropertySetHelper
+{
+protected:
+ LayerPropertyHelper(){};
+ virtual ~LayerPropertyHelper(){};
+
+protected:
+ virtual rtl::OUString const & getLayerUrl() const = 0;
+
+protected:
+ // cppu::OPropertySetHelper
+ virtual cppu::IPropertyArrayHelper * SAL_CALL newInfoHelper();
+
+ virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const uno::Any& rValue )
+ throw (uno::Exception);
+
+ virtual void SAL_CALL getFastPropertyValue( uno::Any& rValue, sal_Int32 nHandle ) const;
+
+};
+
/**
Implementation of the readonly XLayer interfaces for a local file access.
The read data is accessible through a canned implementation of
@@ -176,8 +202,9 @@ private :
contents.
*/
class SimpleLocalFileLayer : public BasicLocalFileLayer
- , public cppu::WeakImplHelper2<backend::XLayer,
- util::XTimeStamped>
+ , public cppu::ImplInheritanceHelper2< LayerPropertyHelper,
+ backend::XLayer,
+ util::XTimeStamped>
{
public :
/**
@@ -220,8 +247,11 @@ public :
virtual rtl::OUString SAL_CALL getTimestamp()
throw (uno::RuntimeException);
-
+protected:
+ virtual rtl::OUString const & getLayerUrl() const
+ { return getFileUrl(); }
} ;
+
/**
Implementation of the XUpdatableLayer
interface for a local file access.
@@ -234,8 +264,9 @@ public :
The timestamp is refreshed on each read operation only.
*/
class FlatLocalFileLayer : public BasicLocalFileLayer
- , public cppu::WeakImplHelper2<backend::XUpdatableLayer,
- util::XTimeStamped>
+ , public cppu::ImplInheritanceHelper2< LayerPropertyHelper,
+ backend::XUpdatableLayer,
+ util::XTimeStamped>
{
public :
/**
@@ -269,6 +300,10 @@ public :
virtual rtl::OUString SAL_CALL getTimestamp()
throw (uno::RuntimeException);
+protected:
+ virtual rtl::OUString const & getLayerUrl() const
+ { return getFileUrl(); }
+
private :
/** XLayerHandler implementation for getWriteHandler */
uno::Reference<backend::XLayerHandler> mLayerWriter ;
@@ -398,7 +433,9 @@ private :
The timestamp is refreshed on each read operation only.
*/
class FullCompositeLocalFileLayer : public BasicCompositeLocalFileLayer
- , public cppu::WeakImplHelper3<backend::XUpdatableLayer,
+ , public cppu::ImplInheritanceHelper3<
+ LayerPropertyHelper,
+ backend::XUpdatableLayer,
backend::XCompositeLayer,
util::XTimeStamped>
{
@@ -450,6 +487,10 @@ public :
virtual rtl::OUString SAL_CALL getTimestamp()
throw (uno::RuntimeException);
+protected:
+ virtual rtl::OUString const & getLayerUrl() const
+ { return getFileUrl(); }
+
private :
/** XLayerHandler implementation for getWriteHandler */
uno::Reference<backend::XLayerHandler> mLayerWriter ;