merge the formfield patch from ooo-build
[ooovba.git] / shell / source / backends / kde4be / kde4vcllayer.hxx
blobaeed4e668a62a92d5864760003c7f63ee86b1f2f
1 #pragma once
3 #include "kde4backend.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 #include <com/sun/star/configuration/backend/XLayerContentDescriber.hpp>
9 #include <com/sun/star/util/XTimeStamped.hpp>
11 #include <cppuhelper/implbase2.hxx>
13 namespace css = com::sun::star ;
14 namespace uno = css::uno ;
15 namespace lang = css::lang ;
16 namespace backend = css::configuration::backend ;
17 namespace util = css::util ;
19 /**
20 Implementation of the XLayer interface for the KDE values mapped into
21 the org.openoffice.VCL configuration component.
23 class KDEVCLLayer : public cppu::WeakImplHelper2<backend::XLayer, util::XTimeStamped>
25 public :
26 /**
27 Constructor given the component context
29 @param xContext The component context
32 KDEVCLLayer(const uno::Reference<uno::XComponentContext>& xContext);
34 // XLayer
35 virtual void SAL_CALL readData(
36 const uno::Reference<backend::XLayerHandler>& xHandler)
37 throw ( backend::MalformedDataException,
38 lang::NullPointerException,
39 lang::WrappedTargetException,
40 uno::RuntimeException) ;
42 // XTimeStamped
43 virtual rtl::OUString SAL_CALL getTimestamp(void)
44 throw (uno::RuntimeException);
46 protected:
48 /** Destructor */
49 ~KDEVCLLayer(void) {}
51 private :
52 uno::Reference<backend::XLayerContentDescriber> m_xLayerContentDescriber ;