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