xref: /aoo4110/main/sw/source/filter/ww8/fields.hxx (revision b1cdbd2c)
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 
24 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */
25 /// @HTML
26 #ifndef WW_FIELDS_HXX
27 #define WW_FIELDS_HXX
28 
29 namespace ww
30 {
31     enum eField
32     {
33         eNONE = 0,
34         eUNKNOWN = 1,
35         ePOSSIBLEBOOKMARK = 2,
36         eREF = 3,
37         eXE = 4,
38         eFOOTREF = 5,
39         eSET = 6,
40         eIF = 7,
41         eINDEX = 8,
42         eTC = 9,
43         eSTYLEREF = 10,
44         eRD = 11,
45         eSEQ = 12,
46         eTOC = 13,
47         eINFO = 14,
48         eTITLE = 15,
49         eSUBJECT = 16,
50         eAUTHOR = 17,
51         eKEYWORDS = 18,
52         eCOMMENTS = 19,
53         eLASTSAVEDBY = 20,
54         eCREATEDATE = 21,
55         eSAVEDATE = 22,
56         ePRINTDATE = 23,
57         eREVNUM = 24,
58         eEDITTIME = 25,
59         eNUMPAGE = 26,
60         eNUMWORDS = 27,
61         eNUMCHARS = 28,
62         eFILENAME = 29,
63         eTEMPLATE = 30,
64         eDATE = 31,
65         eTIME = 32,
66         ePAGE = 33,
67         eEquals = 34,
68         eQUOTE = 35,
69         eMERGEINC = 36,
70         ePAGEREF = 37,
71         eASK = 38,
72         eFILLIN = 39,
73         eMERGEDATA = 40,
74         eNEXT = 41,
75         eNEXTIF = 42,
76         eSKIPIF = 43,
77         eMERGEREC = 44,
78         eDDEREF = 45,
79         eDDEAUTOREF = 46,
80         eGLOSSREF = 47,
81         ePRINT = 48,
82         eEQ = 49,
83         eGOTOBUTTON = 50,
84         eMACROBUTTON = 51,
85         eAUTONUMOUT = 52,
86         eAUTONUMLGL = 53,
87         eAUTONUM = 54,
88         eINCLUDETIFF = 55,
89         eLINK = 56,
90         eSYMBOL = 57,
91         eEMBED = 58,
92         eMERGEFIELD = 59,
93         eUSERNAME = 60,
94         eUSERINITIALS = 61,
95         eUSERADDRESS = 62,
96         eBARCODE = 63,
97         eDOCVARIABLE = 64,
98         eSECTION = 65,
99         eSECTIONPAGES = 66,
100         eINCLUDEPICTURE = 67,
101         eINCLUDETEXT = 68,
102         eFILESIZE = 69,
103         eFORMTEXT = 70,
104         eFORMCHECKBOX = 71,
105         eNOTEREF = 72,
106         eTOA = 73,
107         eTA = 74,
108         eMERGESEQ = 75,
109         eMACRO = 76,
110         ePRIVATE = 77,
111         eDATABASE = 78,
112         eAUTOTEXT = 79,
113         eCOMPARE = 80,
114         ePLUGIN = 81,
115         eSUBSCRIBER = 82,
116         eFORMDROPDOWN = 83,
117         eADVANCE = 84,
118         eDOCPROPERTY = 85,
119         eUNKNOWN2 = 86,
120         eCONTROL = 87,
121         eHYPERLINK = 88,
122         eAUTOTEXTLIST = 89,
123         eLISTNUM = 90,
124         eHTMLCONTROL = 91,
125         eBIDIOUTLINE = 92,
126         eADDRESSBLOCK = 93,
127         eGREETINGLINE = 94,
128         eSHAPE = 95
129     };
130 
131     /** Find the English Field Name from a winword index
132 
133         See OpenOffice.org issue 12831
134         (http://www.openoffice.org/issues/show_bug.cgi?id=12831) and MS
135         Knowledge Base article 268717
136         (http://support.microsoft.com/default.aspx?scid=kb;en-us;268717) for
137         details of why to use english field names and not localized ones since
138         Word 2000.
139 
140         @param
141         nIndex the index to search for
142 
143         @return 0 if not found, otherwise the fieldname as a C style ASCII
144         string
145 
146         @author
147         <a href="mailto:cmc@openoffice.org">Caol&aacute;n McNamara</a>
148     */
149     const char *GetEnglishFieldName(eField eIndex) throw();
150 }
151 
152 #endif
153 /* vi:set tabstop=4 shiftwidth=4 expandtab: */
154