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