LibreOffice Module writerfilter (master) 1
FieldTypes.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21namespace writerfilter::dmapper {
22
24{
25 /* ADDRESSBLOCK \d \* MERGEFORMAT -> Addressblock completely unsupported*/
27 /* ADVANCE \d downvalue \l leftvalue \r rightvalue \u upvalue \x xvalue \y yvalue -> unsupported*/
29 /* ASK bookmarkname "hint" \d defaultanswer \o \* MERGEFORMAT ->
30 the hint is not always quoted, inputfield with default answer, prompt before merge (\o)
31 */
33 /* AUTONUM \* Numberingswitch ->
34 mapped to sequence field "AutoNr"
35 */
37 /* AUTONUMLGL \* Numberingswitch ->
38 mapped to sequence field "AutoNr"
39 */
41 /* AUTONUMOUT \* Numberingswitch ->
42 mapped to sequence field "AutoNr"
43 */
45 /* AUTHOR NewAuthor \* defaultswitch \* MERGEFORMAT ->
46 mapped to sequence field "AutoNr"
47 */
49 /* COMMENTS "comment" \* MERGEFORMAT ->
50 Docinfo-Comments
51 */
53 /* CREATEDATE \h \* MERGEFORMAT ->
54 docinfo-created-date
55 */
57 /* DATE \@ "number format" \s \* MERGEFORMAT ->
58 ww8filterimprovement: multiple languages now supported
59 */
61 /* DOCPROPERTY propertyname \* MERGEFORMAT ->
62 ww8filterimprovement: some fields imported as functionally equivalent fields if possible,
63 the others imported as UserField
64 */
66 /* DOCVARIABLE Name \* MERGEFORMAT ->
67 ww8filterimprovement: now imported as user fields
68 */
70 /* EDITTIME \# "displayformat" \* Numberingswitch \* MERGEFORMAT ->
71 DocInfo-Modified-Date
72 ww8filterimprovement: multiple languages now supported
73 */
76 /* FILLIN "text to fill in" \d defaultanswer \o \* MERGEFORMAT ->
77 Function-InputField
78 */
80 /* FILENAME \p \* * MERGEFORMAT ->
81 file name (\p with path)
82 */
84 /* FILESIZE \* NumberingType \* MERGEFORMAT ->
85 not imported in old ww8 filter, see lcl_ParseNumberingType
86 todo find alternative field
87 */
89 /* =formula \# "number format"
90 todo find alternative field
91 */
93 /* FORMCHECKBOX */
95 /* FORMDROPDOWN */
97 /* FORMTEXT */
99 /* GOTOBUTTON text \* MERGEFORMAT ->
100 not imported in old ww8 filter
101 todo find alternative field
102 */
104 /* HYPERLINK "link" \* MERGEFORMAT ->
105 not imported in old ww8 filter
106 ww8filterimprovement: now imported as hyperlink
107 */
109 /* IF condition "then text" "else text" ->
110 not imported in old ww8 filter
111 ww8filterimprovement: now imported
112 todo: condition, if text, else text still missing
113 */
115 /* INFO NameOfInfo \* MERGEFORMAT -> old
116 todo: filter imports wrong?
117 */
119 /* INCLUDEPICTURE path \* MERGEFORMAT->
120 old filter imports an embedded picture
121 */
123 /* KEYWORDS keyword \* defaultswitch \* Numberingswitch \* MERGEFORMAT ->
124 DocInfo Keywords
125 */
127 /* LASTSAVEDBY \* MERGEFORMAT ->
128 DocInfo-Modified-Author
129 */
131 /* MACROBUTTON MacroName quick help text ->
132 Macro field
133 */
135 /* MERGEFIELD ColumName \b prefix \f suffix \* MERGEFORMAT ->
136 ww8filterimprovement: column-only API now supported
137 */
139 /* MERGEREC \* MERGEFORMAT ->
140 RecordNumber field, maybe without db name
141 todo: currently unchecked
142 */
144 /* MERGESEQ \* MERGEFORMAT ->
145 not imported in old ww8 filter
146 ww8filterimprovement: now imported
147 todo: currently unchecked
148 */
150 /* NEXT text ->
151 Next record
152 todo: currently unchecked
153 */
155 /* NEXTIF condition
156 todo: condition not imported
157 */
159 /* PAGE \* Numberingswitch \* MERGEFORMAT ->
160 see lcl_ParseNumberingType
161 */
165 /* REF targetbkm \f \* MERGEFORMAT ->
166 imports a ShowVariable (bookmarkname)?
167 \h hyperlink to paragraph
168 \p relative to para above/below
169 \f reference number
170 \d separator number separator
171 \n paragraph number
172 \r paragraph number in relative context
173 \t suppress non delimiters
174 \w paragraph number in full context
175 \* Upper/Lower...
176 */
178 /* REVNUM \* Numberingswitch \* MERGEFORMAT ->
179 DocInfo-revision number
180 */
182 /* SAVEDATE \@ "NumberFormat"\* MERGEFORMAT ->
183 DocInfo-modified-date
184 */
186 /* SECTION \* NumberFormat \* MERGEFORMAT ->
187 not imported in old ww8 filter see lcl_ParseNumberingType
188 todo: find alternative
189 */
191 /* SECTIONPAGES \* NumberFormat \* MERGEFORMAT ->
192 not imported in old ww8 filter see lcl_ParseNumberingType
193 todo: find alternative
194 */
196 /* SEQ sequencename \h \c \n \r \s \* MERGEFORMAT ->
197 number range name:sequencename value:sequencename+1
198 todo: only partially implemented, switches unsupported
199 */
201 /* SET bookmarkname newtext \* MERGEFORMAT ->
202 SetVariable bookmarkname = newtext
203 todo: not implemented yet
204 */
206 /* SKIPIF condition \* MERGEFORMAT ->
207 ??
208 todo: not implemented yet
209 */
211 /* STYLEREF stylename \* MERGEFORMAT ->
212 not imported in old ww8 filter
213 todo: add an equivalent field type
214 */
216 /* SUBJECT subject \* Defaultswitch \* MERGEFORMAT ->
217 DocInfo - subject
218 */
220 /* SYMBOL symbolnumber \* MERGEFORMAT ->
221 inserts a special char (symbolnumber)
222 todo: find alternative
223 */
225 /* TEMPLATE \* Defaultswitch \* MERGEFORMAT
226 TemplateName field
227 */
229 /* TIME \@ "number format" \* MERGEFORMAT
230 ww8filterimprovement: multiple languages now supported
231 */
233 /* TITLE \* Defaultswitch \* MERGEFORMAT ->
234 DocInfo-title
235 */
237 /* USERINITIALS newinitials \* MERGEFORMAT ->
238 ExtendedUser field (SHORTCUT)
239 */
241 /* USERADDRESS \* MERGEFORMAT ->
242 not imported in old ww8 filter
243 todo: find alternative
244 */
246 /* USERNAME newusername \* MERGEFORMAT ->
247 not imported in old ww8 filter
248 todo: import as extended user field(s)
249 */
251 /*
252 TOC options:
253 \a Builds a table of figures but does not include the captions's label and number
254 \b Uses a bookmark to specify area of document from which to build table of contents
255 \c Builds a table of figures of the given label
256 \d Defines the separator between sequence and page numbers
257 \f Builds a table of contents using TC entries instead of outline levels
258 \h Hyperlinks the entries and page numbers within the table of contents
259 \l Defines the TC entries field level used to build a table of contents
260 \n Builds a table of contents or a range of entries, such as 1-9, in a table of contents without page numbers
261 \o Builds a table of contents by using outline levels instead of TC entries
262 \p Defines the separator between the table entry and its page number
263 \s Builds a table of contents by using a sequence type
264 \t Builds a table of contents by using style names other than the standard outline styles
265 \u Builds a table of contents by using the applied paragraph outline level
266 \w Preserve tab characters within table entries
267 \x Preserve newline characters within table entries
268 \z Hides page numbers within the table of contents when shown in Web Layout View
269 */
271 /*
272 TOC entry: text
273 \f TC entry in doc with multiple tables
274 \l Outline Level
275 \n Suppress page numbers
276 example: TOC "EntryText \f \l 2 \n
277 */
279 /* document statistic - number of characters
280 */
282 /* document statistic - number of words
283 */
285 /* document statistic - number of pages
286 */
288 /* Document alphabetical index
289 */
291 /* Document alphabetical index marks
292 */
298 /* Citation
299 */
302
303}
304
305/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
@ FIELD_XE
Bibliography.
Definition: FieldTypes.hxx:293