1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
24 #define DLG_FLD_INSERT (RC_FLDDLG_BEGIN + 11)
25 #define DLG_FLD_DROPDOWN (RC_FLDDLG_BEGIN + 12)
27 /*--------------------------------------------------------------------
28 TypeId, see SwFldTypesEnum
29 --------------------------------------------------------------------*/
31 #define STR_TYPE_BEGIN RC_FLDDLG_BEGIN
32 #define STR_DATEFLD STR_TYPE_BEGIN
33 #define STR_TIMEFLD (STR_TYPE_BEGIN + 1)
34 #define STR_FILENAMEFLD (STR_TYPE_BEGIN + 2)
35 #define STR_DBNAMEFLD (STR_TYPE_BEGIN + 3)
36 #define STR_CHAPTERFLD (STR_TYPE_BEGIN + 4)
37 #define STR_PAGENUMBERFLD (STR_TYPE_BEGIN + 5)
38 #define STR_DOCSTATFLD (STR_TYPE_BEGIN + 6)
39 #define STR_AUTHORFLD (STR_TYPE_BEGIN + 7)
40 #define STR_SETFLD (STR_TYPE_BEGIN + 8)
41 #define STR_GETFLD (STR_TYPE_BEGIN + 9)
42 #define STR_FORMELFLD (STR_TYPE_BEGIN + 10)
43 #define STR_HIDDENTXTFLD (STR_TYPE_BEGIN + 11)
44 #define STR_SETREFFLD (STR_TYPE_BEGIN + 12)
45 #define STR_GETREFFLD (STR_TYPE_BEGIN + 13)
46 #define STR_DDEFLD (STR_TYPE_BEGIN + 14)
47 #define STR_MACROFLD (STR_TYPE_BEGIN + 15)
48 #define STR_INPUTFLD (STR_TYPE_BEGIN + 16)
49 #define STR_HIDDENPARAFLD (STR_TYPE_BEGIN + 17)
50 #define STR_DOCINFOFLD (STR_TYPE_BEGIN + 18)
51 #define STR_DBFLD (STR_TYPE_BEGIN + 19)
52 #define STR_USERFLD (STR_TYPE_BEGIN + 20)
53 #define STR_POSTITFLD (STR_TYPE_BEGIN + 21)
54 #define STR_TEMPLNAMEFLD (STR_TYPE_BEGIN + 22)
55 #define STR_SEQFLD (STR_TYPE_BEGIN + 23)
56 #define STR_DBNEXTSETFLD (STR_TYPE_BEGIN + 24)
57 #define STR_DBNUMSETFLD (STR_TYPE_BEGIN + 25)
58 #define STR_DBSETNUMBERFLD (STR_TYPE_BEGIN + 26)
59 #define STR_CONDTXTFLD (STR_TYPE_BEGIN + 27)
60 #define STR_NEXTPAGEFLD (STR_TYPE_BEGIN + 28)
61 #define STR_PREVPAGEFLD (STR_TYPE_BEGIN + 29)
62 #define STR_EXTUSERFLD (STR_TYPE_BEGIN + 30)
64 #define STR_SETINPUTFLD (STR_TYPE_BEGIN + 33)
65 #define STR_USRINPUTFLD (STR_TYPE_BEGIN + 34)
66 #define STR_SETREFPAGEFLD (STR_TYPE_BEGIN + 35)
67 #define STR_GETREFPAGEFLD (STR_TYPE_BEGIN + 36)
68 #define STR_INTERNETFLD (STR_TYPE_BEGIN + 37)
69 #define STR_JUMPEDITFLD (STR_TYPE_BEGIN + 38)
70 #define STR_SCRIPTFLD (STR_TYPE_BEGIN + 39)
71 #define STR_AUTHORITY (STR_TYPE_BEGIN + 40)
72 #define STR_COMBINED_CHARS (STR_TYPE_BEGIN + 41)
73 #define STR_DROPDOWN (STR_TYPE_BEGIN + 42)
75 #define STR_CUSTOM (STR_TYPE_BEGIN + 43)
76 #define STR_TYPE_END (STR_TYPE_BEGIN + 44)
78 /*--------------------------------------------------------------------
80 --------------------------------------------------------------------*/
82 #define FLD_DATE_BEGIN STR_TYPE_END
83 #define FLD_DATE_FIX FLD_DATE_BEGIN
84 #define FLD_DATE_STD (FLD_DATE_BEGIN + 1)
85 #define FLD_DATE_END (FLD_DATE_BEGIN + 2)
87 #define FLD_TIME_BEGIN FLD_DATE_END
88 #define FLD_TIME_FIX FLD_TIME_BEGIN
89 #define FLD_TIME_STD (FLD_TIME_BEGIN + 1)
90 #define FLD_TIME_END (FLD_TIME_BEGIN + 2)
92 #define FLD_STAT_BEGIN FLD_TIME_END
93 #define FLD_STAT_PAGE FLD_STAT_BEGIN
94 #define FLD_STAT_PARA (FLD_STAT_BEGIN + 1)
95 #define FLD_STAT_WORD (FLD_STAT_BEGIN + 2)
96 #define FLD_STAT_CHAR (FLD_STAT_BEGIN + 3)
97 #define FLD_STAT_TABLE (FLD_STAT_BEGIN + 4)
98 #define FLD_STAT_GRF (FLD_STAT_BEGIN + 5)
99 #define FLD_STAT_OBJ (FLD_STAT_BEGIN + 6)
100 #define FLD_STAT_END (FLD_STAT_BEGIN + 7)
102 #define FLD_INPUT_BEGIN FLD_STAT_END
103 #define FLD_INPUT_TEXT FLD_INPUT_BEGIN
104 #define FLD_INPUT_END (FLD_INPUT_BEGIN + 1)
106 #define FLD_EU_BEGIN FLD_INPUT_END
107 #define FLD_EU_FIRMA FLD_EU_BEGIN
108 #define FLD_EU_VORNAME (FLD_EU_BEGIN + 1)
109 #define FLD_EU_NAME (FLD_EU_BEGIN + 2)
110 #define FLD_EU_ABK (FLD_EU_BEGIN + 3)
111 #define FLD_EU_STRASSE (FLD_EU_BEGIN + 4)
112 #define FLD_EU_LAND (FLD_EU_BEGIN + 5)
113 #define FLD_EU_PLZ (FLD_EU_BEGIN + 6)
114 #define FLD_EU_ORT (FLD_EU_BEGIN + 7)
115 #define FLD_EU_TITEL (FLD_EU_BEGIN + 8)
116 #define FLD_EU_POS (FLD_EU_BEGIN + 9)
117 #define FLD_EU_TELPRIV (FLD_EU_BEGIN + 10)
118 #define FLD_EU_TELFIRMA (FLD_EU_BEGIN + 11)
119 #define FLD_EU_FAX (FLD_EU_BEGIN + 12)
120 #define FLD_EU_EMAIL (FLD_EU_BEGIN + 13)
121 #define FLD_EU_STATE (FLD_EU_BEGIN + 14)
122 #define FLD_EU_END (FLD_EU_BEGIN + 15)
124 #define FLD_PAGEREF_BEGIN FLD_EU_END
125 #define FLD_PAGEREF_OFF FLD_PAGEREF_BEGIN
126 #define FLD_PAGEREF_ON (FLD_PAGEREF_BEGIN+1)
127 #define FLD_PAGEREF_END (FLD_PAGEREF_BEGIN+2)
129 /*----------------------------------------------------------
131 ----------------------------------------------------------*/
133 #define FMT_TEXT FLD_PAGEREF_END
136 #define FMT_NUM_BEGIN (FMT_TEXT + 1)
137 #define FMT_NUM_ABC FMT_NUM_BEGIN
138 #define FMT_NUM_SABC (FMT_NUM_BEGIN + 1)
139 #define FMT_NUM_ABC_N (FMT_NUM_BEGIN + 2)
140 #define FMT_NUM_SABC_N (FMT_NUM_BEGIN + 3)
141 #define FMT_NUM_ROMAN (FMT_NUM_BEGIN + 4)
142 #define FMT_NUM_SROMAN (FMT_NUM_BEGIN + 5)
143 #define FMT_NUM_ARABIC (FMT_NUM_BEGIN + 6)
144 #define FMT_NUM_PAGEDESC (FMT_NUM_BEGIN + 7)
145 #define FMT_NUM_PAGESPECIAL (FMT_NUM_BEGIN + 8)
146 #define FMT_NUM_END (FMT_NUM_BEGIN + 9)
149 #define FMT_AUTHOR_BEGIN FMT_NUM_END
150 #define FMT_AUTHOR_NAME FMT_AUTHOR_BEGIN
151 #define FMT_AUTHOR_SCUT (FMT_AUTHOR_BEGIN + 1)
152 #define FMT_AUTHOR_END (FMT_AUTHOR_BEGIN + 2)
155 #define FMT_SETVAR_BEGIN FMT_AUTHOR_END
156 #define FMT_SETVAR_SYS (FMT_SETVAR_BEGIN + 0)
157 #define FMT_SETVAR_TEXT (FMT_SETVAR_BEGIN + 1)
158 #define FMT_SETVAR_END (FMT_SETVAR_BEGIN + 2)
161 #define FMT_GETVAR_BEGIN FMT_SETVAR_END
162 #define FMT_GETVAR_TEXT (FMT_GETVAR_BEGIN + 0)
163 #define FMT_GETVAR_NAME (FMT_GETVAR_BEGIN + 1)
164 #define FMT_GETVAR_END (FMT_GETVAR_BEGIN + 2)
167 #define FMT_USERVAR_BEGIN FMT_GETVAR_END
168 #define FMT_USERVAR_TEXT (FMT_USERVAR_BEGIN + 0)
169 #define FMT_USERVAR_CMD (FMT_USERVAR_BEGIN + 1)
170 #define FMT_USERVAR_END (FMT_USERVAR_BEGIN + 2)
173 #define FMT_DBFLD_BEGIN FMT_USERVAR_END
174 #define FMT_DBFLD_DB (FMT_DBFLD_BEGIN + 0)
175 #define FMT_DBFLD_SYS (FMT_DBFLD_BEGIN + 1)
176 #define FMT_DBFLD_END (FMT_DBFLD_BEGIN + 2)
179 // Attention, the last 4 formats do not exist in RTF (loss!)
180 #define FMT_FF_BEGIN FMT_DBFLD_END
181 #define FMT_FF_NAME FMT_FF_BEGIN
182 #define FMT_FF_PATHNAME (FMT_FF_BEGIN + 1)
183 #define FMT_FF_PATH (FMT_FF_BEGIN + 2)
184 #define FMT_FF_NAME_NOEXT (FMT_FF_BEGIN + 3)
185 #define FMT_FF_UI_NAME (FMT_FF_BEGIN + 4)
186 #define FMT_FF_UI_RANGE (FMT_FF_BEGIN + 5)
187 #define FMT_FF_END (FMT_FF_BEGIN + 6)
190 #define FMT_REG_BEGIN FMT_FF_END
191 #define FMT_REG_AUTHOR FMT_REG_BEGIN
192 #define FMT_REG_TIME (FMT_REG_BEGIN + 1)
193 #define FMT_REG_DATE (FMT_REG_BEGIN + 2)
194 #define FMT_REG_END (FMT_REG_BEGIN + 3)
197 #define FMT_CHAPTER_BEGIN FMT_REG_END
198 #define FMT_CHAPTER_NO FMT_CHAPTER_BEGIN
199 #define FMT_CHAPTER_NAME (FMT_CHAPTER_BEGIN + 1)
200 #define FMT_CHAPTER_NAMENO (FMT_CHAPTER_BEGIN + 2)
201 #define FMT_CHAPTER_NO_NOSEPARATOR (FMT_CHAPTER_BEGIN + 3)
202 #define FMT_CHAPTER_END (FMT_CHAPTER_BEGIN + 4)
205 #define FMT_DDE_BEGIN FMT_CHAPTER_END
206 #define FMT_DDE_NORMAL FMT_DDE_BEGIN
207 #define FMT_DDE_HOT (FMT_DDE_BEGIN + 1)
208 #define FMT_DDE_END (FMT_DDE_BEGIN + 2)
210 #define FMT_REF_BEGIN FMT_DDE_END
211 #define FMT_REF_PAGE FMT_REF_BEGIN
212 #define FMT_REF_CHAPTER (FMT_REF_BEGIN + 1)
213 #define FMT_REF_TEXT (FMT_REF_BEGIN + 2)
214 #define FMT_REF_UPDOWN (FMT_REF_BEGIN + 3)
215 #define FMT_REF_PAGE_PGDSC (FMT_REF_BEGIN + 4)
216 #define FMT_REF_ONLYNUMBER (FMT_REF_BEGIN + 5)
217 #define FMT_REF_ONLYCAPTION (FMT_REF_BEGIN + 6)
218 #define FMT_REF_ONLYSEQNO (FMT_REF_BEGIN + 7)
219 #define FMT_REF_NUMBER (FMT_REF_BEGIN + 8)
220 #define FMT_REF_NUMBER_NO_CONTEXT (FMT_REF_BEGIN + 9)
221 #define FMT_REF_NUMBER_FULL_CONTEXT (FMT_REF_BEGIN + 10)
222 #define FMT_REF_END (FMT_REF_BEGIN + 11)
225 #define FMT_MARK_BEGIN FMT_REF_END
226 #define FMT_MARK_TEXT FMT_MARK_BEGIN
227 #define FMT_MARK_TABLE (FMT_MARK_BEGIN + 1)
228 #define FMT_MARK_FRAME (FMT_MARK_BEGIN + 2)
229 #define FMT_MARK_GRAFIC (FMT_MARK_BEGIN + 3)
230 #define FMT_MARK_OLE (FMT_MARK_BEGIN + 4)
231 #define FMT_MARK_END (FMT_MARK_BEGIN + 5)
233 /*--------------------------------------------------------------------
234 Global String-Resources
235 --------------------------------------------------------------------*/
237 #define STR_FLDUI FMT_MARK_END
238 #define STR_INSERT STR_FLDUI
239 #define STR_ALL (STR_FLDUI + 1)
240 #define STR_EXTRA (STR_FLDUI + 2)
242 /*--------------------------------------------------------------------
243 Buttons for Field-Edit-Dlg
244 --------------------------------------------------------------------*/
246 #define BTN_FLDEDT_PREV STR_EXTRA
247 #define BTN_FLDEDT_NEXT (STR_EXTRA + 1)
248 #define PB_FLDEDT_ADDRESS (STR_EXTRA + 2)
250 /*--------------------------------------------------------------------
252 --------------------------------------------------------------------*/
254 #define STR_COND STR_EXTRA
255 #define STR_TEXT (STR_EXTRA + 1)
256 #define STR_DDE_CMD (STR_EXTRA + 2)
257 #define STR_INSTEXT (STR_EXTRA + 3)
258 #define STR_COMBCHRS_FT (STR_EXTRA + 4)
259 #define STR_PROMPT (STR_EXTRA + 5)
260 #define STR_MACNAME (STR_EXTRA + 6)
261 #define STR_SETNO (STR_EXTRA + 7)
262 #define STR_OFFSET (STR_EXTRA + 8)
263 #define STR_VALUE (STR_EXTRA + 9)
265 #define STR_URLPROMPT (STR_EXTRA + 11)
266 #define STR_FORMULA (STR_EXTRA + 12)
267 #define STR_ALL_DATABASE (STR_EXTRA + 13)
268 #define STR_FLD_EDIT_DLG (STR_EXTRA + 14)
274 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */