merge the formfield patch from ooo-build
[ooovba.git] / binfilter / inc / bf_sw / swdbtoolsclient.hxx
blobb8d14f9da53c85a4db9b62f1a5870ad765c3507d
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: swdbtoolsclient.hxx,v $
10 * $Revision: 1.6 $
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 ************************************************************************/
30 #ifndef _SWDBTOOLSCLIENT_HXX
31 #define _SWDBTOOLSCLIENT_HXX
33 #ifndef CONNECTIVITY_VIRTUAL_DBTOOLS_HXX
34 #include <connectivity/virtualdbtools.hxx>
35 #endif
36 #ifndef _OSL_MUTEX_HXX_
37 #include <osl/mutex.hxx>
38 #endif
39 #ifndef _OSL_MODULE_H_
40 #include <osl/module.h>
41 #endif
42 namespace binfilter {
44 /* -----------------------------30.08.2001 11:01------------------------------
45 Client to use the dbtools library as load-on-call
46 ---------------------------------------------------------------------------*/
47 class SwDbtoolsClient
49 private:
50 ::rtl::Reference< ::connectivity::simple::IDataAccessTools > m_xDataAccessTools;
51 ::rtl::Reference< ::connectivity::simple::IDataAccessTypeConversion > m_xAccessTypeConversion;
52 ::rtl::Reference< ::connectivity::simple::IDataAccessToolsFactory > m_xDataAccessFactory;
56 public:
57 SwDbtoolsClient(){DBG_BF_ASSERT(0, "STRIP");} //STRIP001 SwDbtoolsClient();
58 ~SwDbtoolsClient(){DBG_BF_ASSERT(0, "STRIP");} //STRIP001 ~SwDbtoolsClient();
60 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource > getDataSource(
61 const ::rtl::OUString& _rsRegisteredName,
62 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory
63 ){DBG_BF_ASSERT(0, "STRIP"); return NULL;} //STRIP001 );
68 } //namespace binfilter
69 #endif