merge the formfield patch from ooo-build
[ooovba.git] / shell / source / backends / kdebe / kdevcllayer.hxx
blob32b541a3c3d8b5df5d4973e60d7886c3f1e16929
1 #ifndef KDEVCLLAYER_HXX_
2 #define KDEVCLLAYER_HXX_
4 #include "kdebackend.hxx"
5 #include <com/sun/star/uno/XComponentContext.hpp>
6 #include <com/sun/star/configuration/backend/XLayer.hpp>
7 #include <com/sun/star/configuration/backend/BackendAccessException.hpp>
8 #ifndef _COM_SUN_STAR_CONFIGURATION_BACKEND_XLAYERCONTENTDESCIBER_HPP_
9 #include <com/sun/star/configuration/backend/XLayerContentDescriber.hpp>
10 #endif
11 #include <com/sun/star/util/XTimeStamped.hpp>
12 #include <cppuhelper/implbase2.hxx>
14 namespace css = com::sun::star ;
15 namespace uno = css::uno ;
16 namespace lang = css::lang ;
17 namespace backend = css::configuration::backend ;
18 namespace util = css::util ;
20 /**
21 Implementation of the XLayer interface for the KDE values mapped into
22 the org.openoffice.VCL configuration component.
24 class KDEVCLLayer : public cppu::WeakImplHelper2<backend::XLayer, util::XTimeStamped>
26 public :
27 /**
28 Constructor given the component context
30 @param xContext The component context
33 KDEVCLLayer(const uno::Reference<uno::XComponentContext>& xContext);
35 // XLayer
36 virtual void SAL_CALL readData(
37 const uno::Reference<backend::XLayerHandler>& xHandler)
38 throw ( backend::MalformedDataException,
39 lang::NullPointerException,
40 lang::WrappedTargetException,
41 uno::RuntimeException) ;
43 // XTimeStamped
44 virtual rtl::OUString SAL_CALL getTimestamp(void)
45 throw (uno::RuntimeException);
47 protected:
49 /** Destructor */
50 ~KDEVCLLayer(void) {}
52 private :
53 uno::Reference<backend::XLayerContentDescriber> m_xLayerContentDescriber ;
54 } ;
56 #endif // KDEVCLLAYER