merge the formfield patch from ooo-build
[ooovba.git] / shell / source / backends / macbe / macbelayer.hxx
blob84ab4934369a305c5a420d81a4ce1322177e58e0
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: macbelayer.hxx,v $
10 * $Revision: 1.4 $
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>
41 #endif
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;
52 /**
53 Implementation of the XLayer interfaces for fixed values
56 class MacOSXLayer : public cppu::WeakImplHelper2<backend::XLayer, util::XTimeStamped>
58 public:
60 /**
61 Constructor given the requested component name
63 @param aTimestamp timestamp indicating last modifictaion
65 MacOSXLayer(const uno::Reference<uno::XComponentContext>& xContext);
67 /** Destructor */
68 virtual ~MacOSXLayer(void) {}
70 // XLayer
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);
77 // XTimeStamped
78 virtual rtl::OUString SAL_CALL getTimestamp(void)
79 throw (uno::RuntimeException);
81 protected:
83 rtl::OUString m_aComponent;
85 uno::Reference<backend::XLayerContentDescriber> m_xLayerContentDescriber;
89 class MacOSXPathLayer : public MacOSXLayer
91 public:
92 MacOSXPathLayer(const uno::Reference<uno::XComponentContext>& i_xContext) :
93 MacOSXLayer( i_xContext ) {}
94 virtual ~MacOSXPathLayer() {}
96 // XLayer
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_