merge the formfield patch from ooo-build
[ooovba.git] / svx / source / inc / gridcols.hxx
blob9b7930837e3c45e139eb7b731013d51234e35ae4
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: gridcols.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 ************************************************************************/
30 #ifndef _SVX_GRIDCOLS_HXX
31 #define _SVX_GRIDCOLS_HXX
33 #include <sal/types.h>
35 namespace rtl { class OUString; }
37 #define FM_COL_TEXTFIELD rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "TextField" ) )
38 #define FM_COL_COMBOBOX rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ComboBox" ) )
39 #define FM_COL_CHECKBOX rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CheckBox" ) )
40 #define FM_COL_TIMEFIELD rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "TimeField" ) )
41 #define FM_COL_DATEFIELD rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DateField" ) )
42 #define FM_COL_NUMERICFIELD rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "NumericField" ) )
43 #define FM_COL_CURRENCYFIELD rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CurrencyField" ) )
44 #define FM_COL_PATTERNFIELD rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PatternField" ) )
45 #define FM_COL_LISTBOX rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ListBox" ) )
46 #define FM_COL_FORMATTEDFIELD rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "FormattedField" ) )
48 // column type ids
49 #define TYPE_CHECKBOX 0
50 #define TYPE_COMBOBOX 1
51 #define TYPE_CURRENCYFIELD 2
52 #define TYPE_DATEFIELD 3
53 #define TYPE_FORMATTEDFIELD 4
54 #define TYPE_LISTBOX 5
55 #define TYPE_NUMERICFIELD 6
56 #define TYPE_PATTERNFIELD 7
57 #define TYPE_TEXTFIELD 8
58 #define TYPE_TIMEFIELD 9
60 //------------------------------------------------------------------------------
61 sal_Int32 getColumnTypeByModelName(const ::rtl::OUString& aModelName);
64 #endif // _SVX_GRIDCOLS_HXX