1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: macbelayer.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _MACBELAYER_HXX_
32 #define _MACBELAYER_HXX_
34 #include <com/sun/star/uno/XComponentContext.hpp>
35 #include <com/sun/star/configuration/backend/XLayer.hpp>
36 #include <com/sun/star/configuration/backend/PropertyInfo.hpp>
37 #include <com/sun/star/configuration/backend/BackendAccessException.hpp>
39 #ifndef _COM_SUN_STAR_CONFIGURATION_BACKEND_XLAYERCONTENTDESCIBER_HPP_
40 #include <com/sun/star/configuration/backend/XLayerContentDescriber.hpp>
42 #include <com/sun/star/util/XTimeStamped.hpp>
43 #include <com/sun/star/uno/Sequence.hxx>
44 #include <cppuhelper/implbase2.hxx>
46 namespace css
= com::sun::star
;
47 namespace uno
= css::uno
;
48 namespace lang
= css::lang
;
49 namespace backend
= css::configuration::backend
;
50 namespace util
= css::util
;
53 Implementation of the XLayer interfaces for fixed values
56 class MacOSXLayer
: public cppu::WeakImplHelper2
<backend::XLayer
, util::XTimeStamped
>
61 Constructor given the requested component name
63 @param aTimestamp timestamp indicating last modifictaion
65 MacOSXLayer(const uno::Reference
<uno::XComponentContext
>& xContext
);
68 virtual ~MacOSXLayer(void) {}
71 virtual void SAL_CALL
readData(const uno::Reference
<backend::XLayerHandler
>& xHandler
)
72 throw ( backend::MalformedDataException
,
73 lang::NullPointerException
,
74 lang::WrappedTargetException
,
75 uno::RuntimeException
);
78 virtual rtl::OUString SAL_CALL
getTimestamp(void)
79 throw (uno::RuntimeException
);
83 rtl::OUString m_aComponent
;
85 uno::Reference
<backend::XLayerContentDescriber
> m_xLayerContentDescriber
;
89 class MacOSXPathLayer
: public MacOSXLayer
92 MacOSXPathLayer(const uno::Reference
<uno::XComponentContext
>& i_xContext
) :
93 MacOSXLayer( i_xContext
) {}
94 virtual ~MacOSXPathLayer() {}
97 virtual void SAL_CALL
readData(const uno::Reference
<backend::XLayerHandler
>& i_xHandler
)
98 throw ( backend::MalformedDataException
,
99 lang::NullPointerException
,
100 lang::WrappedTargetException
,
101 uno::RuntimeException
);
104 #endif // _MACBELAYER_HXX_