LibreOffice Module sw (master) 1
xmlitemm.cxx
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
20#include <editeng/memberids.h>
21#include <hintids.hxx>
22#include <svx/unomid.hxx>
24#include "xmlitmap.hxx"
25#include <xmloff/xmltoken.hxx>
26#include <o3tl/safeint.hxx>
27
28#include <unomid.h>
29
30using namespace ::xmloff::token;
31
32#define MAP_ENTRY( p, l, w, m ) \
33 { XML_NAMESPACE_##p, XML_##l, o3tl::narrowing<sal_uInt16>(w), m }
34#define M_E_SI( p, l, w, m ) \
35 { XML_NAMESPACE_##p, XML_##l, o3tl::narrowing<sal_uInt16>(w), MID_SW_FLAG_SPECIAL_ITEM_IMPORT|m }
36#define M_E_SE( p, l, w, m ) \
37 { XML_NAMESPACE_##p, XML_##l, o3tl::narrowing<sal_uInt16>(w), MID_SW_FLAG_SPECIAL_ITEM_EXPORT|m }
38#define M_E_SIE( p, l, w, m ) \
39 { XML_NAMESPACE_##p, XML_##l, o3tl::narrowing<sal_uInt16>(w), MID_SW_FLAG_SPECIAL_ITEM_EXPORT|MID_SW_FLAG_SPECIAL_ITEM_IMPORT|m }
40
42{
43 // RES_FILL_ORDER
44 // not required
45 // RES_FRM_SIZE
48 // RES_PAPER_BIN
49 // not required
50 M_E_SE( FO, MARGIN, 0xFFFF/*invalid*/, MID_SW_FLAG_NO_ITEM_IMPORT),
53 // RES_UL_SPACE
56 // RES_PAGEDESC
58 // RES_BREAK
59 MAP_ENTRY( FO, BREAK_BEFORE, RES_BREAK, MID_BREAK_BEFORE ),
60 MAP_ENTRY( FO, BREAK_AFTER, RES_BREAK, MID_BREAK_AFTER ),
61 // RES_CNTNT
62 // not required
63 // RES_HEADER
64 // not required
65 // RES_FOOTER
66 // not required
67 // RES_PRINT
68 // not required
69 // RES_OPAQUE
70 // not required
71 // RES_PROTECT
72 // not required
73 // RES_SURROUND
74 // not required
75 // RES_VERT_ORIENT
76 // not required
77 // RES_HORI_ORIENT
79 // RES_ANCHOR
80 // not required
81 // RES_BACKGROUND
82 MAP_ENTRY( FO, BACKGROUND_COLOR, RES_BACKGROUND, MID_BACK_COLOR ),
84 // RES_BOX
85 // not required
86 // RES_SHADOW
87 MAP_ENTRY( STYLE, SHADOW, RES_SHADOW, 0 ),
88 // RES_FRMMACRO
89 // not required
90 // RES_COL
91 // not required
92 // RES_KEEP
93 MAP_ENTRY( FO, KEEP_WITH_NEXT, RES_KEEP, 0 ),
94 // RES_URL
95 // not required
96 // RES_EDIT_IN_READONLY
97 // not required
98 // RES_LAYOUT_SPLIT
99 MAP_ENTRY( STYLE, MAY_BREAK_BETWEEN_ROWS, RES_LAYOUT_SPLIT, 0 ),
100 // RES_CHAIN
101 // not required
102 // RES_LINENUMBER
103 // not required
104 // RES_FTN_AT_TXTEND
105 // not required
106 // RES_END_AT_TXTEND
107 // not required
108 // RES_UNKNOWNATR_CONTAINER
110
111 // RES_FRAMEDIR
112 MAP_ENTRY( STYLE, WRITING_MODE, RES_FRAMEDIR, 0 ),
113
114 // RES_COLLAPSING_BORDERS
115 MAP_ENTRY( TABLE, BORDER_MODEL, RES_COLLAPSING_BORDERS, 0 )
116};
118
120{
123};
125
127{
128 // RES_FILL_ORDER
129 // not required
130 // RES_FRM_SIZE
133 // RES_PAPER_BIN
134 // not required
135 // RES_LR_SPACE
136 // not required
137 // RES_UL_SPACE
138 // not required
139 // RES_PAGEDESC
140 // not required
141 // RES_BREAK
142 // not required
143 // RES_CNTNT
144 // not required
145 // RES_HEADER
146 // not required
147 // RES_FOOTER
148 // not required
149 // RES_PRINT
150 // M_E_SE( STYLE, TEXT_CHANGES_ONLY, RES_PRINT, 0 ),
151 M_E_SE( LO_EXT, TEXT_CHANGES_ONLY, RES_PRINT, 0 ),
152 // RES_OPAQUE
153 // not required
154 // RES_PROTECT
155 // not required
156 // RES_SURROUND
157 // not required
158 // RES_VERT_ORIENT
159 // not required
160 // RES_HORI_ORIENT
161 // not required
162 // RES_ANCHOR
163 // not required
164 // RES_BACKGROUND
165 MAP_ENTRY( FO, BACKGROUND_COLOR, RES_BACKGROUND, MID_BACK_COLOR ),
167 // RES_BOX
168 // not required
169 // RES_ANCHOR
170 // not required
171 // RES_SHADOW
172 // not required
173 // RES_FRMMACRO
174 // not required
175 // RES_COL
176 // not required
177 // RES_KEEP
178 // not required
179 // RES_URL
180 // not required
181 // RES_EDIT_IN_READONLY
182 // not required
183 // RES_LAYOUT_SPLIT
184 M_E_SE( STYLE, KEEP_TOGETHER, RES_ROW_SPLIT, 0 ),
185 M_E_SE( FO, KEEP_TOGETHER, RES_ROW_SPLIT, 0 ),
186 // RES_CHAIN
187 // not required
188 // RES_LINENUMBER
189 // not required
190 // RES_FTN_AT_TXTEND
191 // not required
192 // RES_END_AT_TXTEND
193 // not required
194 // RES_UNKNOWNATR_CONTAINER
196};
198
200{
201 // RES_FILL_ORDER
202 // not required
203 // RES_FRM_SIZE
204 // not required
205 // RES_PAPER_BIN
206 // not required
207 // RES_LR_SPACE
208 // not required
209 // RES_UL_SPACE
210 // not required
211 // RES_PAGEDESC
212 // not required
213 // RES_BREAK
214 // not required
215 // RES_CNTNT
216 // not required
217 // RES_HEADER
218 // not required
219 // RES_FOOTER
220 // not required
221 // RES_PRINT
222 // M_E_SE( STYLE, TEXT_CHANGES_ONLY, RES_PRINT, 0 ),
223 M_E_SE( LO_EXT, TEXT_CHANGES_ONLY, RES_PRINT, 0 ),
224 // RES_OPAQUE
225 // not required
226 // RES_PROTECT
227 // not required
228 // RES_SURROUND
229 // not required
230 // RES_VERT_ORIENT
231 MAP_ENTRY( STYLE, VERTICAL_ALIGN, RES_VERT_ORIENT, 0 ),
232 // RES_HORI_ORIENT
233 // not required
234 // RES_ANCHOR
235 // not required
236 // RES_BACKGROUND
237 MAP_ENTRY( FO, BACKGROUND_COLOR, RES_BACKGROUND, MID_BACK_COLOR ),
239 // RES_BOX
240 MAP_ENTRY( STYLE, BORDER_LINE_WIDTH, RES_BOX, ALL_BORDER_LINE_WIDTH ),
241 MAP_ENTRY( STYLE, BORDER_LINE_WIDTH_LEFT, RES_BOX, LEFT_BORDER_LINE_WIDTH ),
242 MAP_ENTRY( STYLE, BORDER_LINE_WIDTH_RIGHT, RES_BOX, RIGHT_BORDER_LINE_WIDTH ),
243 MAP_ENTRY( STYLE, BORDER_LINE_WIDTH_TOP, RES_BOX, TOP_BORDER_LINE_WIDTH ),
244 MAP_ENTRY( STYLE, BORDER_LINE_WIDTH_BOTTOM, RES_BOX, BOTTOM_BORDER_LINE_WIDTH ),
245 MAP_ENTRY( FO, PADDING, RES_BOX, ALL_BORDER_PADDING ),
246 MAP_ENTRY( FO, PADDING_LEFT, RES_BOX, LEFT_BORDER_PADDING ),
247 MAP_ENTRY( FO, PADDING_RIGHT, RES_BOX, RIGHT_BORDER_PADDING ),
248 MAP_ENTRY( FO, PADDING_TOP, RES_BOX, TOP_BORDER_PADDING ),
249 MAP_ENTRY( FO, PADDING_BOTTOM, RES_BOX, BOTTOM_BORDER_PADDING ),
255 // RES_SHADOW
256 // not required
257 // RES_FRMMACRO
258 // not required
259 // RES_COL
260 // not required
261 // RES_KEEP
262 // not required
263 // RES_URL
264 // not required
265 // RES_EDIT_IN_READONLY
266 // not required
267 // RES_LAYOUT_SPLIT
268 // not required
269 // RES_CHAIN
270 // not required
271 // RES_LINENUMBER
272 // not required
273 // RES_FTN_AT_TXTEND
274 // not required
275 // RES_END_AT_TXTEND
276 // not required
277 // RES_UNKNOWNATR_CONTAINER
279
280 // RES_FRAMEDIR
281 MAP_ENTRY( STYLE, WRITING_MODE, RES_FRAMEDIR, 0 ),
282 MAP_ENTRY( LO_EXT, WRITING_MODE, RES_FRAMEDIR, 0 ),
283};
285
286/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define BORDER
Definition: drpcps.cxx:170
constexpr TypedWhichId< SvxFrameDirectionItem > RES_FRAMEDIR(126)
constexpr TypedWhichId< SvxFormatKeepItem > RES_KEEP(116)
constexpr TypedWhichId< SwFormatRowSplit > RES_ROW_SPLIT(128)
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
constexpr TypedWhichId< SwFormatHoriOrient > RES_HORI_ORIENT(109)
constexpr TypedWhichId< SvxShadowItem > RES_SHADOW(113)
constexpr TypedWhichId< SwFormatVertOrient > RES_VERT_ORIENT(108)
constexpr TypedWhichId< SvXMLAttrContainerItem > RES_UNKNOWNATR_CONTAINER(RES_UNKNOWNATR_BEGIN)
constexpr TypedWhichId< SwFormatLayoutSplit > RES_LAYOUT_SPLIT(119)
constexpr TypedWhichId< SwFormatPageDesc > RES_PAGEDESC(99)
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(111)
constexpr TypedWhichId< SfxBoolItem > RES_COLLAPSING_BORDERS(131)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(112)
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(100)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(97)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(98)
constexpr TypedWhichId< SvxPrintItem > RES_PRINT(104)
const sal_uInt8 MARGIN_BOTTOM
const sal_uInt8 MARGIN_RIGHT
const sal_uInt8 MARGIN_TOP
const sal_uInt8 MARGIN_LEFT
#define BOTTOM_BORDER
#define MID_BACK_COLOR
#define MID_LO_MARGIN
#define MID_BREAK_BEFORE
#define TOP_BORDER
#define RIGHT_BORDER
#define MID_R_MARGIN
#define MID_L_MARGIN
#define MID_UP_MARGIN
#define LEFT_BORDER
#define MID_BREAK_AFTER
const sal_uInt16 WIDTH
const sal_uInt16 ALIGN
BORDER_TOP
BORDER_LEFT
BORDER_BOTTOM
BORDER_RIGHT
TEXT
#define MID_FRMSIZE_REL_COL_WIDTH
Definition: unomid.h:82
#define MID_FRMSIZE_MIN_HEIGHT
Definition: unomid.h:79
#define MID_FRMSIZE_FIX_HEIGHT
Definition: unomid.h:80
#define MID_FRMSIZE_REL_WIDTH
Definition: unomid.h:72
#define MID_FRMSIZE_WIDTH
Definition: unomid.h:74
#define MID_PAGEDESC_PAGENUMOFFSET
Definition: unomid.h:27
#define MID_FRMSIZE_COL_WIDTH
Definition: unomid.h:81
#define ALL_BORDER_PADDING
#define TOP_BORDER_LINE_WIDTH
#define BOTTOM_BORDER_PADDING
#define BOTTOM_BORDER_LINE_WIDTH
#define ALL_BORDER_LINE_WIDTH
#define LEFT_BORDER_PADDING
#define LEFT_BORDER_LINE_WIDTH
#define ALL_BORDER
#define RIGHT_BORDER_PADDING
#define RIGHT_BORDER_LINE_WIDTH
#define TOP_BORDER_PADDING
TABLE
const SvXMLItemMapEntry aTableRowItemMap[]
Definition: xmlitemm.cxx:126
const o3tl::span< SvXMLItemMapEntry const > aXMLTableCellItemMap(aTableCellItemMap)
#define MAP_ENTRY(p, l, w, m)
Definition: xmlitemm.cxx:32
#define M_E_SE(p, l, w, m)
Definition: xmlitemm.cxx:36
const SvXMLItemMapEntry aTableCellItemMap[]
Definition: xmlitemm.cxx:199
const o3tl::span< SvXMLItemMapEntry const > aXMLTableColItemMap(aTableColItemMap)
const SvXMLItemMapEntry aTableItemMap[]
Definition: xmlitemm.cxx:41
#define M_E_SI(p, l, w, m)
Definition: xmlitemm.cxx:34
#define M_E_SIE(p, l, w, m)
Definition: xmlitemm.cxx:38
const SvXMLItemMapEntry aTableColItemMap[]
Definition: xmlitemm.cxx:119
const o3tl::span< SvXMLItemMapEntry const > aXMLTableItemMap(aTableItemMap)
const o3tl::span< SvXMLItemMapEntry const > aXMLTableRowItemMap(aTableRowItemMap)
#define MID_SW_FLAG_ELEMENT_ITEM
Definition: xmlitmap.hxx:38
#define MID_SW_FLAG_NO_ITEM_IMPORT
Definition: xmlitmap.hxx:33