merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / sdbtools / connection / datasourcemetadata.hxx
blobc9298ab6538a796ee3904a686187302b45181812
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: datasourcemetadata.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 DBACCESS_DATASOURCEMETADATA_HXX
32 #define DBACCESS_DATASOURCEMETADATA_HXX
34 #ifndef DBACCESS_CONNECTION_DEPENDENT_HXX
35 #include "connectiondependent.hxx"
36 #endif
38 /** === begin UNO includes === **/
39 #ifndef _COM_SUN_STAR_SDB_TOOLS_XDATASOURCEMETADATA_HPP_
40 #include <com/sun/star/sdb/tools/XDataSourceMetaData.hpp>
41 #endif
42 /** === end UNO includes === **/
44 #ifndef _CPPUHELPER_IMPLBASE1_HXX_
45 #include <cppuhelper/implbase1.hxx>
46 #endif
48 #include <memory>
50 //........................................................................
51 namespace sdbtools
53 //........................................................................
55 //====================================================================
56 //= DataSourceMetaData
57 //====================================================================
58 typedef ::cppu::WeakImplHelper1 < ::com::sun::star::sdb::tools::XDataSourceMetaData
59 > DataSourceMetaData_Base;
60 struct DataSourceMetaData_Impl;
61 /** default implementation for XDataSourceMetaData
63 class DataSourceMetaData :public DataSourceMetaData_Base
64 ,public ConnectionDependentComponent
66 private:
67 ::std::auto_ptr< DataSourceMetaData_Impl > m_pImpl;
69 public:
70 /** constructs the instance
71 @param _rContext
72 the component's context
73 @param _rxConnection
74 the connection to work with. Will be held weak. Must not be <NULL/>.
75 @throws ::com::sun::star::lang::NullPointerException
76 if _rxConnection is <NULL/>
78 DataSourceMetaData(
79 const ::comphelper::ComponentContext& _rContext,
80 const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection
83 // XDataSourceMetaData
84 virtual ::sal_Bool SAL_CALL supportsQueriesInFrom( ) throw (::com::sun::star::uno::RuntimeException);
86 protected:
87 virtual ~DataSourceMetaData();
89 private:
90 DataSourceMetaData(); // never implemented
91 DataSourceMetaData( const DataSourceMetaData& ); // never implemented
92 DataSourceMetaData& operator=( const DataSourceMetaData& ); // never implemented
96 //........................................................................
97 } // namespace sdbtools
98 //........................................................................
100 #endif // DBACCESS_DATASOURCEMETADATA_HXX