merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / core / inc / sdbcoretools.hxx
blob037bd864d424b09732f244a0c32197be3bfb3cd7
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: sdbcoretools.hxx,v $
10 * $Revision: 1.7 $
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 DBACORE_SDBCORETOOLS_HXX
32 #define DBACORE_SDBCORETOOLS_HXX
34 #ifndef _COM_SUN_STAR_UTIL_XNUMBERFORMATSSUPPLIER_HPP_
35 #include <com/sun/star/util/XNumberFormatsSupplier.hpp>
36 #endif
37 #ifndef _COM_SUN_STAR_SDBC_XCONNECTION_HPP_
38 #include <com/sun/star/sdbc/XConnection.hpp>
39 #endif
41 //.........................................................................
42 namespace dbaccess
44 //.........................................................................
46 // -----------------------------------------------------------------------------
47 void notifyDataSourceModified(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxObject,sal_Bool _bModified);
49 // -----------------------------------------------------------------------------
50 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
51 getDataSource( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxDependentObject );
53 // -----------------------------------------------------------------------------
54 /** retrieves a particular indirect data source setting
56 @param _rxDataSource
57 a data source component
58 @param _pAsciiSettingsName
59 the ASCII name of the setting to obtain
60 @param _rSettingsValue
61 the value of the setting, upon successfull return
63 @return
64 <FALSE/> if the setting is not present in the <member scope="com::sun::star::sdb">DataSource::Info</member>
65 member of the data source
66 <TRUE/> otherwise
68 bool getDataSourceSetting(
69 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxDataSource,
70 const sal_Char* _pAsciiSettingsName,
71 ::com::sun::star::uno::Any& /* [out] */ _rSettingsValue
74 //.........................................................................
75 } // namespace dbaccess
76 //.........................................................................
78 #endif // DBACORE_SDBCORETOOLS_HXX