xref: /aoo42x/main/svx/source/inc/gridcols.hxx (revision 3334a7e6)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SVX_GRIDCOLS_HXX
24 #define _SVX_GRIDCOLS_HXX
25 
26 #include <sal/types.h>
27 
28 namespace rtl { class OUString; }
29 
30 #define FM_COL_TEXTFIELD      rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "TextField" ) )
31 #define FM_COL_COMBOBOX       rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ComboBox" ) )
32 #define FM_COL_CHECKBOX       rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CheckBox" ) )
33 #define FM_COL_TIMEFIELD      rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "TimeField" ) )
34 #define FM_COL_DATEFIELD      rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DateField" ) )
35 #define FM_COL_NUMERICFIELD   rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "NumericField" ) )
36 #define FM_COL_CURRENCYFIELD  rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CurrencyField" ) )
37 #define FM_COL_PATTERNFIELD   rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PatternField" ) )
38 #define FM_COL_LISTBOX        rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ListBox" ) )
39 #define FM_COL_FORMATTEDFIELD rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "FormattedField" ) )
40 
41 // column type ids
42 #define TYPE_CHECKBOX		0
43 #define TYPE_COMBOBOX		1
44 #define TYPE_CURRENCYFIELD  2
45 #define TYPE_DATEFIELD		3
46 #define TYPE_FORMATTEDFIELD	4
47 #define TYPE_LISTBOX		5
48 #define TYPE_NUMERICFIELD	6
49 #define TYPE_PATTERNFIELD	7
50 #define TYPE_TEXTFIELD		8
51 #define TYPE_TIMEFIELD		9
52 
53 //------------------------------------------------------------------------------
54 sal_Int32 getColumnTypeByModelName(const ::rtl::OUString& aModelName);
55 
56 
57 #endif // _SVX_GRIDCOLS_HXX
58 
59