merge the formfield patch from ooo-build
[ooovba.git] / connectivity / source / inc / hsqldb / HColumns.hxx
blobf2d6b56ad7fd2ffb17f7cc45e8a4937e0a04f93e
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: HColumns.hxx,v $
10 * $Revision: 1.5 $
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 CONNECTIVITY_HSQLDB_COLUMN_HXX
31 #define CONNECTIVITY_HSQLDB_COLUMN_HXX
32 #include "connectivity/TColumnsHelper.hxx"
33 #include "connectivity/sdbcx/VColumn.hxx"
35 namespace connectivity
37 namespace hsqldb
39 class OHSQLColumns : public OColumnsHelper
41 protected:
42 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > createDescriptor();
43 public:
44 OHSQLColumns( ::cppu::OWeakObject& _rParent
45 ,sal_Bool _bCase
46 ,::osl::Mutex& _rMutex
47 ,const TStringVector &_rVector
48 ,sal_Bool _bUseHardRef = sal_True
52 class OHSQLColumn;
53 typedef sdbcx::OColumn OHSQLColumn_BASE;
54 typedef ::comphelper::OIdPropertyArrayUsageHelper<OHSQLColumn> OHSQLColumn_PROP;
56 class OHSQLColumn : public OHSQLColumn_BASE,
57 public OHSQLColumn_PROP
59 ::rtl::OUString m_sAutoIncrement;
60 protected:
61 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( sal_Int32 _nId) const;
62 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
64 public:
65 OHSQLColumn(sal_Bool _bCase);
66 virtual void construct();
68 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
72 #endif // CONNECTIVITY_HSQLDB_COLUMN_HXX