merge the formfield patch from ooo-build
[ooovba.git] / shell / source / backends / localebe / localelayer.hxx
blobc720efca492819352ace4f6b998d3efcccb11134
1 #ifndef _LOCALELAYER_HXX_
2 #define _LOCALELAYER_HXX_
4 #include <com/sun/star/uno/XComponentContext.hpp>
5 #include <com/sun/star/configuration/backend/XLayer.hpp>
6 #include <com/sun/star/configuration/backend/PropertyInfo.hpp>
7 #include <com/sun/star/configuration/backend/BackendAccessException.hpp>
9 #ifndef _COM_SUN_STAR_CONFIGURATION_BACKEND_XLAYERCONTENTDESCIBER_HPP_
10 #include <com/sun/star/configuration/backend/XLayerContentDescriber.hpp>
11 #endif
12 #include <com/sun/star/util/XTimeStamped.hpp>
13 #include <com/sun/star/uno/Sequence.hxx>
14 #include <cppuhelper/implbase2.hxx>
17 namespace css = com::sun::star ;
18 namespace uno = css::uno ;
19 namespace lang = css::lang ;
20 namespace backend = css::configuration::backend ;
21 namespace util = css::util ;
23 /**
24 Implementation of the XLayer interfaces for fixed values
27 class LocaleLayer : public cppu::WeakImplHelper2<backend::XLayer, util::XTimeStamped>
29 public :
30 /**
31 Constructor given the requested component name
33 @param aPropInfoListyMap Gconf->OO key map
34 @param aCompoentName Requested Component Name
35 @param sTimestamp timestamp indicating last modifictaion
37 LocaleLayer(const uno::Sequence<backend::PropertyInfo>& aPropInfoList,
38 const rtl::OUString& aTimestamp,
39 const uno::Reference<uno::XComponentContext>& xContext);
41 /** Destructor */
42 ~LocaleLayer(void) {}
44 // XLayer
45 virtual void SAL_CALL readData(const uno::Reference<backend::XLayerHandler>& xHandler)
46 throw ( backend::MalformedDataException,
47 lang::NullPointerException,
48 lang::WrappedTargetException,
49 uno::RuntimeException) ;
51 // XTimeStamped
52 virtual rtl::OUString SAL_CALL getTimestamp(void)
53 throw (uno::RuntimeException);
55 private :
57 rtl::OUString m_aTimestamp ;
58 rtl::OUString m_aComponent ;
60 uno::Reference<backend::XLayerContentDescriber> m_xLayerContentDescriber ;
61 uno::Sequence<backend::PropertyInfo> m_aPropInfoList ;
62 } ;
64 #endif // _LOCALELAYER_HXX_