bump product version to 4.1.6.2
[LibreOffice.git] / sw / source / filter / ww8 / fields.hxx
blob7dc3ea3f10bb3ccff3a4538c40c6ca0273142725
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 /// @HTML
21 #ifndef WW_FIELDS_HXX
22 #define WW_FIELDS_HXX
24 namespace ww
26 enum eField
28 eNONE = 0,
29 eUNKNOWN = 1,
30 ePOSSIBLEBOOKMARK = 2,
31 eREF = 3,
32 eXE = 4,
33 eFOOTREF = 5,
34 eSET = 6,
35 eIF = 7,
36 eINDEX = 8,
37 eTC = 9,
38 eSTYLEREF = 10,
39 eRD = 11,
40 eSEQ = 12,
41 eTOC = 13,
42 eINFO = 14,
43 eTITLE = 15,
44 eSUBJECT = 16,
45 eAUTHOR = 17,
46 eKEYWORDS = 18,
47 eCOMMENTS = 19,
48 eLASTSAVEDBY = 20,
49 eCREATEDATE = 21,
50 eSAVEDATE = 22,
51 ePRINTDATE = 23,
52 eREVNUM = 24,
53 eEDITTIME = 25,
54 eNUMPAGE = 26,
55 eNUMWORDS = 27,
56 eNUMCHARS = 28,
57 eFILENAME = 29,
58 eTEMPLATE = 30,
59 eDATE = 31,
60 eTIME = 32,
61 ePAGE = 33,
62 eEquals = 34,
63 eQUOTE = 35,
64 eMERGEINC = 36,
65 ePAGEREF = 37,
66 eASK = 38,
67 eFILLIN = 39,
68 eMERGEDATA = 40,
69 eNEXT = 41,
70 eNEXTIF = 42,
71 eSKIPIF = 43,
72 eMERGEREC = 44,
73 eDDEREF = 45,
74 eDDEAUTOREF = 46,
75 eGLOSSREF = 47,
76 ePRINT = 48,
77 eEQ = 49,
78 eGOTOBUTTON = 50,
79 eMACROBUTTON = 51,
80 eAUTONUMOUT = 52,
81 eAUTONUMLGL = 53,
82 eAUTONUM = 54,
83 eINCLUDETIFF = 55,
84 eLINK = 56,
85 eSYMBOL = 57,
86 eEMBED = 58,
87 eMERGEFIELD = 59,
88 eUSERNAME = 60,
89 eUSERINITIALS = 61,
90 eUSERADDRESS = 62,
91 eBARCODE = 63,
92 eDOCVARIABLE = 64,
93 eSECTION = 65,
94 eSECTIONPAGES = 66,
95 eINCLUDEPICTURE = 67,
96 eINCLUDETEXT = 68,
97 eFILESIZE = 69,
98 eFORMTEXT = 70,
99 eFORMCHECKBOX = 71,
100 eNOTEREF = 72,
101 eTOA = 73,
102 eTA = 74,
103 eMERGESEQ = 75,
104 eMACRO = 76,
105 ePRIVATE = 77,
106 eDATABASE = 78,
107 eAUTOTEXT = 79,
108 eCOMPARE = 80,
109 ePLUGIN = 81,
110 eSUBSCRIBER = 82,
111 eFORMDROPDOWN = 83,
112 eADVANCE = 84,
113 eDOCPROPERTY = 85,
114 eUNKNOWN2 = 86,
115 eCONTROL = 87,
116 eHYPERLINK = 88,
117 eAUTOTEXTLIST = 89,
118 eLISTNUM = 90,
119 eHTMLCONTROL = 91,
120 eBIDIOUTLINE = 92,
121 eADDRESSBLOCK = 93,
122 eGREETINGLINE = 94,
123 eSHAPE = 95
126 /** Find the English Field Name from a winword index
128 See OpenOffice.org issue 12831
129 (http://www.openoffice.org/issues/show_bug.cgi?id=12831) and MS
130 Knowledge Base article 268717
131 (http://support.microsoft.com/default.aspx?scid=kb;en-us;268717) for
132 details of why to use english field names and not localized ones since
133 Word 2000.
135 @param
136 nIndex the index to search for
138 @return 0 if not found, otherwise the fieldname as a C style ASCII
139 string
141 @author
142 <a href="mailto:cmc@openoffice.org">Caol&aacute;n McNamara</a>
144 const char *GetEnglishFieldName(eField eIndex) throw();
147 #endif
149 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */