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 .
20 #include <xmloff/txtprmap.hxx>
21 #include <xmloff/xmlnamespace.hxx>
22 #include <xmloff/xmltoken.hxx>
23 #include <xmloff/maptype.hxx>
24 #include <xmloff/xmltypes.hxx>
25 #include "txtprhdl.hxx"
26 #include <xmlsdtypes.hxx>
27 #include <sal/log.hxx>
28 #include <rtl/ref.hxx>
29 #include <xmlprop.hxx>
31 using namespace ::com::sun::star
;
32 using namespace ::com::sun::star::uno
;
33 using namespace ::xmloff::token
;
35 #define M_E_( a, p, l, t, c ) \
36 { a, p, l, t, c, SvtSaveOptions::ODFSVER_010, false }
38 #define M_EV_( a, p, l, t, c, v ) \
39 { a, p, l, t, c, v, false }
41 #define M_ED_( a, p, l, t, c ) \
42 { a, p, l, (t) | MID_FLAG_DEFAULT_ITEM_EXPORT, c, SvtSaveOptions::ODFSVER_010, false }
45 #define MT_E( a, p, l, t, c ) \
46 M_E_( a, p, l, (t|XML_TYPE_PROP_TEXT), c )
47 #define MT_ED( a, p, l, t, c ) \
48 M_ED_( a, p, l, (t|XML_TYPE_PROP_TEXT), c )
50 // paragraph properties
51 #define MP_E( a, p, l, t, c ) \
52 M_E_( a, p, l, (t|XML_TYPE_PROP_PARAGRAPH), c )
53 #define MP_ED( a, p, l, t, c ) \
54 M_ED_( a, p, l, (t|XML_TYPE_PROP_PARAGRAPH), c )
57 #define MG_E( a, p, l, t, c ) \
58 M_E_( a, p, l, (t|XML_TYPE_PROP_GRAPHIC), c )
59 #define MG_ED( a, p, l, t, c ) \
60 M_ED_( a, p, l, (t|XML_TYPE_PROP_GRAPHIC), c )
61 #define MG_EV( a, p, l, t, c, v ) \
62 M_EV_( a, p, l, (t|XML_TYPE_PROP_GRAPHIC), c, v )
65 #define MS_E( a, p, l, t, c ) \
66 M_E_( a, p, l, (t|XML_TYPE_PROP_SECTION), c )
69 #define MR_E( a, p, l, t, c ) \
70 M_E_( a, p, l, (t|XML_TYPE_PROP_RUBY), c )
71 #define MR_EV( a, p, l, t, c, v ) \
72 M_EV_( a, p, l, (t|XML_TYPE_PROP_RUBY), c, v )
75 #define MC_E( a, p, l, t, c ) \
76 M_E_( a, p, l, (t|XML_TYPE_PROP_TABLE_CELL), c )
78 #define MAP_ODF13(name,prefix,token,type,context) { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_013, false }
80 // extensions import/export
81 #define MAP_EXT(name,prefix,token,type,context) { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED, false }
82 // extensions import only
83 #define MAP_EXT_I(name,prefix,token,type,context) { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED, true }
85 #define M_END() { nullptr }
87 #define MAP_(name,prefix,token,type,context) { name, prefix, token, type, context, SvtSaveOptions::ODFSVER_010, false }
88 #define GMAP(name,prefix,token,type,context) MAP_(name,prefix,token,static_cast<sal_Int32>(type|XML_TYPE_PROP_GRAPHIC),context)
90 XMLPropertyMapEntry
constexpr aXMLParaPropMap
[] =
92 // RES_UNKNOWNATR_CONTAINER
93 MP_E( PROP_ParaUserDefinedAttributes
, XML_NAMESPACE_TEXT
, XML_XMLNS
, XML_TYPE_ATTRIBUTE_CONTAINER
| MID_FLAG_SPECIAL_ITEM
, 0 ),
95 // fill attributes for paragraph backgrounds
96 // #i125045# moved to the front to be able to exclude these in lcl_txtprmap_getMap
97 // for TextPropMap::SHAPE_PARA to not have these double for Shapes (which already have these)
98 GMAP( PROP_FillStyle
, XML_NAMESPACE_DRAW
, XML_FILL
, XML_SW_TYPE_FILLSTYLE
, 0 ),
99 GMAP( PROP_FillColor
, XML_NAMESPACE_DRAW
, XML_FILL_COLOR
, XML_TYPE_COLOR
, 0 ),
100 GMAP( PROP_FillColor2
, XML_NAMESPACE_DRAW
, XML_SECONDARY_FILL_COLOR
, XML_TYPE_COLOR
, 0 ),
101 GMAP( PROP_FillGradientName
, XML_NAMESPACE_DRAW
, XML_FILL_GRADIENT_NAME
, XML_TYPE_STYLENAME
|MID_FLAG_NO_PROPERTY_IMPORT
, CTF_FILLGRADIENTNAME
),
102 GMAP( PROP_FillGradientStepCount
, XML_NAMESPACE_DRAW
, XML_GRADIENT_STEP_COUNT
, XML_TYPE_NUMBER16
, 0 ),
103 GMAP( PROP_FillHatchName
, XML_NAMESPACE_DRAW
, XML_FILL_HATCH_NAME
, XML_TYPE_STYLENAME
|MID_FLAG_NO_PROPERTY_IMPORT
, CTF_FILLHATCHNAME
),
104 GMAP( PROP_FillBackground
, XML_NAMESPACE_DRAW
, XML_FILL_HATCH_SOLID
, XML_TYPE_BOOL
, 0 ),
105 GMAP( PROP_FillBitmapName
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_NAME
, XML_TYPE_STYLENAME
|MID_FLAG_NO_PROPERTY_IMPORT
, CTF_FILLBITMAPNAME
),
106 GMAP( PROP_FillTransparence
, XML_NAMESPACE_DRAW
, XML_OPACITY
, XML_TYPE_NEG_PERCENT16
|MID_FLAG_MULTI_PROPERTY
, 0 ), // exists in SW, too
107 GMAP( PROP_FillTransparenceGradientName
, XML_NAMESPACE_DRAW
, XML_OPACITY_NAME
, XML_TYPE_STYLENAME
|MID_FLAG_NO_PROPERTY_IMPORT
, CTF_FILLTRANSNAME
),
108 GMAP( PROP_FillBitmapSizeX
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_WIDTH
, XML_SW_TYPE_FILLBITMAPSIZE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
109 GMAP( PROP_FillBitmapLogicalSize
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_WIDTH
, XML_SW_TYPE_LOGICAL_SIZE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
110 GMAP( PROP_FillBitmapSizeY
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_HEIGHT
, XML_SW_TYPE_FILLBITMAPSIZE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
111 GMAP( PROP_FillBitmapLogicalSize
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_HEIGHT
, XML_SW_TYPE_LOGICAL_SIZE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
112 GMAP( PROP_FillBitmapMode
, XML_NAMESPACE_STYLE
,XML_REPEAT
, XML_SW_TYPE_BITMAP_MODE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
113 GMAP( PROP_FillBitmapPositionOffsetX
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_REF_POINT_X
, XML_TYPE_PERCENT
, 0 ),
114 GMAP( PROP_FillBitmapPositionOffsetY
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_REF_POINT_Y
, XML_TYPE_PERCENT
, 0 ),
115 GMAP( PROP_FillBitmapRectanglePoint
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_REF_POINT
, XML_SW_TYPE_BITMAP_REFPOINT
, 0 ),
116 GMAP( PROP_FillBitmapOffsetX
, XML_NAMESPACE_DRAW
, XML_TILE_REPEAT_OFFSET
, XML_SW_TYPE_BITMAPREPOFFSETX
|MID_FLAG_MULTI_PROPERTY
, CTF_REPEAT_OFFSET_X
),
117 GMAP( PROP_FillBitmapOffsetY
, XML_NAMESPACE_DRAW
, XML_TILE_REPEAT_OFFSET
, XML_SW_TYPE_BITMAPREPOFFSETY
|MID_FLAG_MULTI_PROPERTY
, CTF_REPEAT_OFFSET_Y
),
120 // !!! DO NOT REORDER THE MARGINS !!!
121 MP_E( PROP_ParaLeftMargin
, XML_NAMESPACE_FO
, XML_MARGIN
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, CTF_PARAMARGINALL
),
122 MP_E( PROP_ParaLeftMarginRelative
, XML_NAMESPACE_FO
, XML_MARGIN
, XML_TYPE_PERCENT16
, CTF_PARAMARGINALL_REL
),
123 MP_E( PROP_ParaLeftMargin
, XML_NAMESPACE_FO
, XML_MARGIN_LEFT
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, CTF_PARALEFTMARGIN
),
124 MP_E( PROP_ParaLeftMarginRelative
, XML_NAMESPACE_FO
, XML_MARGIN_LEFT
, XML_TYPE_PERCENT16
, CTF_PARALEFTMARGIN_REL
),
125 MP_E( PROP_ParaRightMargin
, XML_NAMESPACE_FO
, XML_MARGIN_RIGHT
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, CTF_PARARIGHTMARGIN
),
126 MP_E( PROP_ParaRightMarginRelative
, XML_NAMESPACE_FO
, XML_MARGIN_RIGHT
, XML_TYPE_PERCENT16
, CTF_PARARIGHTMARGIN_REL
),
128 MP_E( PROP_ParaTopMargin
, XML_NAMESPACE_FO
, XML_MARGIN_TOP
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, CTF_PARATOPMARGIN
),
129 MP_E( PROP_ParaTopMarginRelative
, XML_NAMESPACE_FO
, XML_MARGIN_TOP
, XML_TYPE_PERCENT16
, CTF_PARATOPMARGIN_REL
),
130 MP_E( PROP_ParaBottomMargin
, XML_NAMESPACE_FO
, XML_MARGIN_BOTTOM
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, CTF_PARABOTTOMMARGIN
),
131 MP_E( PROP_ParaBottomMarginRelative
, XML_NAMESPACE_FO
, XML_MARGIN_BOTTOM
, XML_TYPE_PERCENT16
, CTF_PARABOTTOMMARGIN_REL
),
132 MAP_ODF13( PROP_ParaContextMargin
, XML_NAMESPACE_STYLE
, XML_CONTEXTUAL_SPACING
, XML_TYPE_BOOL
|XML_TYPE_PROP_PARAGRAPH
, 0 ), // ODF 1.3 OFFICE-3767 and was written by LO<=4.2
133 MAP_ODF13( PROP_ParaContextMargin
, XML_NAMESPACE_LO_EXT
, XML_CONTEXTUAL_SPACING
, XML_TYPE_BOOL
|XML_TYPE_PROP_PARAGRAPH
, 0 ), // extension namespace
134 // RES_CHRATR_CASEMAP
135 MT_E( PROP_CharCaseMap
, XML_NAMESPACE_FO
, XML_FONT_VARIANT
, XML_TYPE_TEXT_CASEMAP_VAR
, 0 ),
136 MT_E( PROP_CharCaseMap
, XML_NAMESPACE_FO
, XML_TEXT_TRANSFORM
, XML_TYPE_TEXT_CASEMAP
, 0 ),
138 MT_ED( PROP_CharColor
, XML_NAMESPACE_FO
, XML_COLOR
, XML_TYPE_COLORAUTO
|MID_FLAG_MERGE_PROPERTY
, 0 ),
139 MT_ED( PROP_CharColor
, XML_NAMESPACE_STYLE
, XML_USE_WINDOW_FONT_COLOR
, XML_TYPE_ISAUTOCOLOR
|MID_FLAG_MERGE_PROPERTY
, 0 ),
140 MAP_EXT_I( PROP_CharTransparence
, XML_NAMESPACE_DRAW
, XML_OPACITY
, XML_TYPE_NEG_PERCENT16
| XML_TYPE_PROP_TEXT
, 0 ),
141 MAP_EXT( PROP_CharTransparence
, XML_NAMESPACE_LO_EXT
, XML_OPACITY
, XML_TYPE_NEG_PERCENT16
| XML_TYPE_PROP_TEXT
, 0 ),
142 MAP_EXT( PROP_CharComplexColor
, XML_NAMESPACE_LO_EXT
, XML_CHAR_COMPLEX_COLOR
, XML_TYPE_COMPLEX_COLOR
|XML_TYPE_PROP_TEXT
|MID_FLAG_ELEMENT_ITEM
, CTF_COMPLEX_COLOR
),
143 // RES_CHRATR_CONTOUR
144 MT_E( PROP_CharContoured
, XML_NAMESPACE_STYLE
, XML_TEXT_OUTLINE
, XML_TYPE_BOOL
, 0 ),
145 // RES_CHRATR_CROSSEDOUT
146 MT_E( PROP_CharStrikeout
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_STYLE
, XML_TYPE_TEXT_CROSSEDOUT_STYLE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
147 MT_E( PROP_CharStrikeout
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_TYPE
, XML_TYPE_TEXT_CROSSEDOUT_TYPE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
148 MT_E( PROP_CharStrikeout
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_WIDTH
, XML_TYPE_TEXT_CROSSEDOUT_WIDTH
|MID_FLAG_MERGE_PROPERTY
, 0 ),
149 MT_E( PROP_CharStrikeout
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_TEXT
, XML_TYPE_TEXT_CROSSEDOUT_TEXT
|MID_FLAG_MERGE_PROPERTY
, 0 ),
150 // RES_CHRATR_ESCAPEMENT
151 MT_E( PROP_CharEscapement
, XML_NAMESPACE_STYLE
, XML_TEXT_POSITION
, XML_TYPE_TEXT_ESCAPEMENT
|MID_FLAG_MERGE_ATTRIBUTE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
152 MT_E( PROP_CharEscapementHeight
, XML_NAMESPACE_STYLE
, XML_TEXT_POSITION
, XML_TYPE_TEXT_ESCAPEMENT_HEIGHT
|MID_FLAG_MERGE_ATTRIBUTE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
154 MT_ED( PROP_CharFontName
, XML_NAMESPACE_STYLE
, XML_FONT_NAME
, XML_TYPE_STRING
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTNAME
),
155 MT_ED( PROP_CharFontName
, XML_NAMESPACE_FO
, XML_FONT_FAMILY
, XML_TYPE_TEXT_FONTFAMILYNAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTFAMILYNAME
),
156 MT_ED( PROP_CharFontStyleName
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_NAME
, XML_TYPE_STRING
, CTF_FONTSTYLENAME
),
157 MT_ED( PROP_CharFontFamily
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_GENERIC
, XML_TYPE_TEXT_FONTFAMILY
, CTF_FONTFAMILY
),
158 MT_ED( PROP_CharFontPitch
, XML_NAMESPACE_STYLE
, XML_FONT_PITCH
, XML_TYPE_TEXT_FONTPITCH
, CTF_FONTPITCH
),
159 MT_ED( PROP_CharFontCharSet
, XML_NAMESPACE_STYLE
, XML_FONT_CHARSET
, XML_TYPE_TEXT_FONTENCODING
, CTF_FONTCHARSET
),
160 // RES_CHRATR_FONTSIZE
161 MT_ED( PROP_CharHeight
, XML_NAMESPACE_FO
, XML_FONT_SIZE
, XML_TYPE_CHAR_HEIGHT
|MID_FLAG_MULTI_PROPERTY
, CTF_CHARHEIGHT
),
162 MT_ED( PROP_CharPropHeight
, XML_NAMESPACE_FO
, XML_FONT_SIZE
, XML_TYPE_CHAR_HEIGHT_PROP
|MID_FLAG_MULTI_PROPERTY
, CTF_CHARHEIGHT_REL
),
163 MT_ED( PROP_CharDiffHeight
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_REL
, XML_TYPE_CHAR_HEIGHT_DIFF
, CTF_CHARHEIGHT_DIFF
),
164 // RES_CHRATR_KERNING
165 MT_E( PROP_CharKerning
, XML_NAMESPACE_FO
, XML_LETTER_SPACING
, XML_TYPE_TEXT_KERNING
, 0 ),
166 // RES_CHRATR_LANGUAGE
167 MT_ED( PROP_CharLocale
, XML_NAMESPACE_STYLE
, XML_RFC_LANGUAGE_TAG
, XML_TYPE_CHAR_RFC_LANGUAGE_TAG
|MID_FLAG_MERGE_PROPERTY
, 0 ),
168 MT_ED( PROP_CharLocale
, XML_NAMESPACE_FO
, XML_LANGUAGE
, XML_TYPE_CHAR_LANGUAGE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
169 MT_ED( PROP_CharLocale
, XML_NAMESPACE_FO
, XML_SCRIPT
, XML_TYPE_CHAR_SCRIPT
|MID_FLAG_MERGE_PROPERTY
, 0 ),
170 MT_ED( PROP_CharLocale
, XML_NAMESPACE_FO
, XML_COUNTRY
, XML_TYPE_CHAR_COUNTRY
|MID_FLAG_MERGE_PROPERTY
, 0 ),
171 // RES_CHRATR_POSTURE
172 MT_E( PROP_CharPosture
, XML_NAMESPACE_FO
, XML_FONT_STYLE
, XML_TYPE_TEXT_POSTURE
, 0 ),
173 // RES_CHRATR_UNUSED1
174 // RES_CHRATR_SHADOWED
175 MT_E( PROP_CharShadowed
, XML_NAMESPACE_FO
, XML_TEXT_SHADOW
, XML_TYPE_TEXT_SHADOWED
, 0 ),
176 // RES_CHRATR_UNDERLINE
177 MT_E( PROP_CharUnderline
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_STYLE
, XML_TYPE_TEXT_UNDERLINE_STYLE
|MID_FLAG_MERGE_PROPERTY
, CTF_UNDERLINE
),
178 MT_E( PROP_CharUnderline
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_TYPE
, XML_TYPE_TEXT_UNDERLINE_TYPE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
179 MT_E( PROP_CharUnderline
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_WIDTH
, XML_TYPE_TEXT_UNDERLINE_WIDTH
|MID_FLAG_MERGE_PROPERTY
, 0 ),
180 MT_E( PROP_CharUnderlineColor
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_COLOR
, XML_TYPE_TEXT_UNDERLINE_COLOR
|MID_FLAG_MULTI_PROPERTY
, CTF_UNDERLINE_COLOR
),
181 MT_E( PROP_CharUnderlineHasColor
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_COLOR
, XML_TYPE_TEXT_UNDERLINE_HASCOLOR
|MID_FLAG_MERGE_ATTRIBUTE
, CTF_UNDERLINE_HASCOLOR
),
183 MT_E( PROP_CharWeight
, XML_NAMESPACE_FO
, XML_FONT_WEIGHT
, XML_TYPE_TEXT_WEIGHT
, 0 ),
185 { PROP_Rsid
, XML_NAMESPACE_OFFICE_EXT
, XML_RSID
, XML_TYPE_HEX
|XML_TYPE_PROP_TEXT
, 0, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED
, false },
187 { PROP_ParRsid
, XML_NAMESPACE_OFFICE_EXT
, XML_PARRSID
, XML_TYPE_HEX
|XML_TYPE_PROP_TEXT
, 0, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED
, false },
188 // RES_CHRATR_WORDLINEMODE
189 MT_E( PROP_CharWordMode
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_MODE
, XML_TYPE_TEXT_LINE_MODE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
190 MT_E( PROP_CharWordMode
, XML_NAMESPACE_STYLE
, XML_TEXT_OVERLINE_MODE
, XML_TYPE_TEXT_LINE_MODE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
191 MT_E( PROP_CharWordMode
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_MODE
, XML_TYPE_TEXT_LINE_MODE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
192 // RES_CHRATR_AUTOKERN
193 MT_E( PROP_CharAutoKerning
, XML_NAMESPACE_STYLE
, XML_LETTER_KERNING
, XML_TYPE_BOOL
, 0 ),
195 MT_E( PROP_CharFlash
, XML_NAMESPACE_STYLE
, XML_TEXT_BLINKING
, XML_TYPE_BOOL
, 0 ),
196 // RES_CHRATR_NOHYPHEN
197 // TODO: only for words, PROP_ParaIsHyphenation is for paragraphs: check them
198 // RES_CHRATR_UNUSED2
199 // RES_CHRATR_BACKGROUND
200 MT_E( PROP_CharBackColor
, XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_COLORTRANSPARENT
|MID_FLAG_MULTI_PROPERTY
, CTF_CHAR_BACKGROUND
),
201 MT_E( PROP_CharBackTransparent
, XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_ISTRANSPARENT
|MID_FLAG_MERGE_ATTRIBUTE
, CTF_CHAR_BACKGROUND_TRANSPARENCY
),
202 MT_E( PROP_CharBackColor
, XML_NAMESPACE_FO
, XML_TEXT_BACKGROUND_COLOR
, XML_TYPE_COLOR
|MID_FLAG_SPECIAL_ITEM_EXPORT
, CTF_OLDTEXTBACKGROUND
),
203 // RES_CHRATR_CJK_FONT
204 MT_ED( PROP_CharFontNameAsian
, XML_NAMESPACE_STYLE
, XML_FONT_NAME_ASIAN
, XML_TYPE_STRING
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTNAME_CJK
),
205 MT_ED( PROP_CharFontNameAsian
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_ASIAN
, XML_TYPE_TEXT_FONTFAMILYNAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTFAMILYNAME_CJK
),
206 MT_ED( PROP_CharFontStyleNameAsian
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_NAME_ASIAN
, XML_TYPE_STRING
, CTF_FONTSTYLENAME_CJK
),
207 MT_ED( PROP_CharFontFamilyAsian
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_GENERIC_ASIAN
, XML_TYPE_TEXT_FONTFAMILY
, CTF_FONTFAMILY_CJK
),
208 MT_ED( PROP_CharFontPitchAsian
, XML_NAMESPACE_STYLE
, XML_FONT_PITCH_ASIAN
, XML_TYPE_TEXT_FONTPITCH
, CTF_FONTPITCH_CJK
),
209 MT_ED( PROP_CharFontCharSetAsian
, XML_NAMESPACE_STYLE
, XML_FONT_CHARSET_ASIAN
, XML_TYPE_TEXT_FONTENCODING
, CTF_FONTCHARSET_CJK
),
210 // RES_CHRATR_CJK_FONTSIZE
211 MT_ED( PROP_CharHeightAsian
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_ASIAN
, XML_TYPE_CHAR_HEIGHT
|MID_FLAG_MULTI_PROPERTY
, CTF_CHARHEIGHT_CJK
),
212 MT_ED( PROP_CharPropHeightAsian
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_ASIAN
, XML_TYPE_CHAR_HEIGHT_PROP
|MID_FLAG_MULTI_PROPERTY
, CTF_CHARHEIGHT_REL_CJK
),
213 MT_ED( PROP_CharDiffHeightAsian
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_REL_ASIAN
, XML_TYPE_CHAR_HEIGHT_DIFF
, CTF_CHARHEIGHT_DIFF_CJK
),
214 // RES_CHRATR_CJK_LANGUAGE
215 MT_ED( PROP_CharLocaleAsian
, XML_NAMESPACE_STYLE
, XML_RFC_LANGUAGE_TAG_ASIAN
, XML_TYPE_CHAR_RFC_LANGUAGE_TAG
|MID_FLAG_MERGE_PROPERTY
, 0 ),
216 MT_ED( PROP_CharLocaleAsian
, XML_NAMESPACE_STYLE
, XML_LANGUAGE_ASIAN
, XML_TYPE_CHAR_LANGUAGE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
217 MT_ED( PROP_CharLocaleAsian
, XML_NAMESPACE_STYLE
, XML_SCRIPT_ASIAN
, XML_TYPE_CHAR_SCRIPT
|MID_FLAG_MERGE_PROPERTY
, 0 ),
218 MT_ED( PROP_CharLocaleAsian
, XML_NAMESPACE_STYLE
, XML_COUNTRY_ASIAN
, XML_TYPE_CHAR_COUNTRY
|MID_FLAG_MERGE_PROPERTY
, 0 ),
219 // RES_CHRATR_CJK_POSTURE
220 MT_E( PROP_CharPostureAsian
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_ASIAN
, XML_TYPE_TEXT_POSTURE
, 0 ),
221 // RES_CHRATR_CJK_WEIGHT
222 MT_E( PROP_CharWeightAsian
, XML_NAMESPACE_STYLE
, XML_FONT_WEIGHT_ASIAN
, XML_TYPE_TEXT_WEIGHT
, 0 ),
223 // RES_CHRATR_CTL_FONT
224 MT_ED( PROP_CharFontNameComplex
, XML_NAMESPACE_STYLE
, XML_FONT_NAME_COMPLEX
, XML_TYPE_STRING
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTNAME_CTL
),
225 MT_ED( PROP_CharFontNameComplex
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_COMPLEX
, XML_TYPE_TEXT_FONTFAMILYNAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTFAMILYNAME_CTL
),
226 MT_ED( PROP_CharFontStyleNameComplex
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_NAME_COMPLEX
, XML_TYPE_STRING
, CTF_FONTSTYLENAME_CTL
),
227 MT_ED( PROP_CharFontFamilyComplex
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_GENERIC_COMPLEX
, XML_TYPE_TEXT_FONTFAMILY
, CTF_FONTFAMILY_CTL
),
228 MT_ED( PROP_CharFontPitchComplex
, XML_NAMESPACE_STYLE
, XML_FONT_PITCH_COMPLEX
, XML_TYPE_TEXT_FONTPITCH
, CTF_FONTPITCH_CTL
),
229 MT_ED( PROP_CharFontCharSetComplex
, XML_NAMESPACE_STYLE
, XML_FONT_CHARSET_COMPLEX
, XML_TYPE_TEXT_FONTENCODING
, CTF_FONTCHARSET_CTL
),
230 // RES_CHRATR_CTL_FONTSIZE
231 MT_ED( PROP_CharHeightComplex
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_COMPLEX
, XML_TYPE_CHAR_HEIGHT
|MID_FLAG_MULTI_PROPERTY
, CTF_CHARHEIGHT_CTL
),
232 MT_ED( PROP_CharPropHeightComplex
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_COMPLEX
, XML_TYPE_CHAR_HEIGHT_PROP
|MID_FLAG_MULTI_PROPERTY
, CTF_CHARHEIGHT_REL_CTL
),
233 MT_ED( PROP_CharDiffHeightComplex
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_REL_COMPLEX
, XML_TYPE_CHAR_HEIGHT_DIFF
, CTF_CHARHEIGHT_DIFF_CTL
),
234 // RES_CHRATR_CTL_LANGUAGE
235 MT_ED( PROP_CharLocaleComplex
, XML_NAMESPACE_STYLE
, XML_RFC_LANGUAGE_TAG_COMPLEX
, XML_TYPE_CHAR_RFC_LANGUAGE_TAG
|MID_FLAG_MERGE_PROPERTY
, 0 ),
236 MT_ED( PROP_CharLocaleComplex
, XML_NAMESPACE_STYLE
, XML_LANGUAGE_COMPLEX
, XML_TYPE_CHAR_LANGUAGE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
237 MT_ED( PROP_CharLocaleComplex
, XML_NAMESPACE_STYLE
, XML_SCRIPT_COMPLEX
, XML_TYPE_CHAR_SCRIPT
|MID_FLAG_MERGE_PROPERTY
, 0 ),
238 MT_ED( PROP_CharLocaleComplex
, XML_NAMESPACE_STYLE
, XML_COUNTRY_COMPLEX
, XML_TYPE_CHAR_COUNTRY
|MID_FLAG_MERGE_PROPERTY
, 0 ),
239 // RES_CHRATR_CTL_POSTURE
240 MT_E( PROP_CharPostureComplex
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_COMPLEX
, XML_TYPE_TEXT_POSTURE
, 0 ),
241 // RES_CHRATR_CTL_WEIGHT
242 MT_E( PROP_CharWeightComplex
, XML_NAMESPACE_STYLE
, XML_FONT_WEIGHT_COMPLEX
, XML_TYPE_TEXT_WEIGHT
, 0 ),
244 MT_E( PROP_CharRotation
, XML_NAMESPACE_STYLE
, XML_TEXT_ROTATION_ANGLE
, XML_TYPE_TEXT_ROTATION_ANGLE
, 0 ),
245 MT_E( PROP_CharRotationIsFitToLine
, XML_NAMESPACE_STYLE
, XML_TEXT_ROTATION_SCALE
, XML_TYPE_TEXT_ROTATION_SCALE
, 0 ),
246 // RES_CHRATR_EMPHASIS_MARK
247 MT_E( PROP_CharEmphasis
, XML_NAMESPACE_STYLE
, XML_TEXT_EMPHASIZE
, XML_TYPE_TEXT_EMPHASIZE
, 0 ),
248 // RES_CHRATR_TWO_LINES
249 MT_E( PROP_CharCombineIsOn
, XML_NAMESPACE_STYLE
, XML_TEXT_COMBINE
, XML_TYPE_TEXT_COMBINE
, 0 ),
250 MT_E( PROP_CharCombinePrefix
, XML_NAMESPACE_STYLE
, XML_TEXT_COMBINE_START_CHAR
, XML_TYPE_TEXT_COMBINECHAR
, 0 ),
251 MT_E( PROP_CharCombineSuffix
, XML_NAMESPACE_STYLE
, XML_TEXT_COMBINE_END_CHAR
, XML_TYPE_TEXT_COMBINECHAR
, 0 ),
253 MT_E( PROP_CharScaleWidth
, XML_NAMESPACE_STYLE
, XML_TEXT_SCALE
, XML_TYPE_PERCENT16
, 0 ),
255 MT_E( PROP_CharRelief
, XML_NAMESPACE_STYLE
, XML_FONT_RELIEF
, XML_TYPE_TEXT_FONT_RELIEF
, 0 ),
257 MT_E( PROP_CharHidden
, XML_NAMESPACE_TEXT
, XML_DISPLAY
, XML_TYPE_TEXT_HIDDEN_AS_DISPLAY
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_TEXT_DISPLAY
),
258 // RES_CHRATR_OVERLINE
259 MT_E( PROP_CharOverline
, XML_NAMESPACE_STYLE
, XML_TEXT_OVERLINE_STYLE
, XML_TYPE_TEXT_OVERLINE_STYLE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
260 MT_E( PROP_CharOverline
, XML_NAMESPACE_STYLE
, XML_TEXT_OVERLINE_TYPE
, XML_TYPE_TEXT_OVERLINE_TYPE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
261 MT_E( PROP_CharOverline
, XML_NAMESPACE_STYLE
, XML_TEXT_OVERLINE_WIDTH
, XML_TYPE_TEXT_OVERLINE_WIDTH
|MID_FLAG_MERGE_PROPERTY
, 0 ),
262 MT_E( PROP_CharOverlineColor
, XML_NAMESPACE_STYLE
, XML_TEXT_OVERLINE_COLOR
, XML_TYPE_TEXT_OVERLINE_COLOR
|MID_FLAG_MULTI_PROPERTY
, 0 ),
263 MT_E( PROP_CharOverlineHasColor
, XML_NAMESPACE_STYLE
, XML_TEXT_OVERLINE_COLOR
, XML_TYPE_TEXT_OVERLINE_HASCOLOR
|MID_FLAG_MERGE_ATTRIBUTE
, 0 ),
265 MAP_EXT( PROP_CharLeftBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_LINE_WIDTH
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARALLBORDERWIDTH
),
266 MAP_EXT( PROP_CharLeftBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_LINE_WIDTH_LEFT
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARLEFTBORDERWIDTH
),
267 MAP_EXT( PROP_CharRightBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_LINE_WIDTH_RIGHT
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARRIGHTBORDERWIDTH
),
268 MAP_EXT( PROP_CharTopBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_LINE_WIDTH_TOP
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARTOPBORDERWIDTH
),
269 MAP_EXT( PROP_CharBottomBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_LINE_WIDTH_BOTTOM
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARBOTTOMBORDERWIDTH
),
270 MAP_EXT_I( PROP_CharLeftBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARALLBORDERWIDTH
),
271 MAP_EXT_I( PROP_CharLeftBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_LEFT
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARLEFTBORDERWIDTH
),
272 MAP_EXT_I( PROP_CharRightBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_RIGHT
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARRIGHTBORDERWIDTH
),
273 MAP_EXT_I( PROP_CharTopBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_TOP
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARTOPBORDERWIDTH
),
274 MAP_EXT_I( PROP_CharBottomBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_BOTTOM
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARBOTTOMBORDERWIDTH
),
276 MAP_EXT( PROP_CharLeftBorderDistance
, XML_NAMESPACE_LO_EXT
, XML_PADDING
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARALLBORDERDISTANCE
),
277 MAP_EXT( PROP_CharLeftBorderDistance
, XML_NAMESPACE_LO_EXT
, XML_PADDING_LEFT
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARLEFTBORDERDISTANCE
),
278 MAP_EXT( PROP_CharRightBorderDistance
, XML_NAMESPACE_LO_EXT
, XML_PADDING_RIGHT
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARRIGHTBORDERDISTANCE
),
279 MAP_EXT( PROP_CharTopBorderDistance
, XML_NAMESPACE_LO_EXT
, XML_PADDING_TOP
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARTOPBORDERDISTANCE
),
280 MAP_EXT( PROP_CharBottomBorderDistance
, XML_NAMESPACE_LO_EXT
, XML_PADDING_BOTTOM
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARBOTTOMBORDERDISTANCE
),
281 MAP_EXT_I( PROP_CharLeftBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARALLBORDERDISTANCE
),
282 MAP_EXT_I( PROP_CharLeftBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_LEFT
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARLEFTBORDERDISTANCE
),
283 MAP_EXT_I( PROP_CharRightBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_RIGHT
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARRIGHTBORDERDISTANCE
),
284 MAP_EXT_I( PROP_CharTopBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_TOP
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARTOPBORDERDISTANCE
),
285 MAP_EXT_I( PROP_CharBottomBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_BOTTOM
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARBOTTOMBORDERDISTANCE
),
287 MAP_EXT( PROP_CharLeftBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARALLBORDER
),
288 MAP_EXT( PROP_CharLeftBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_LEFT
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARLEFTBORDER
),
289 MAP_EXT( PROP_CharRightBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_RIGHT
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARRIGHTBORDER
),
290 MAP_EXT( PROP_CharTopBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_TOP
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARTOPBORDER
),
291 MAP_EXT( PROP_CharBottomBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_BOTTOM
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARBOTTOMBORDER
),
292 MAP_EXT_I( PROP_CharLeftBorder
, XML_NAMESPACE_FO
, XML_BORDER
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARALLBORDER
),
293 MAP_EXT_I( PROP_CharLeftBorder
, XML_NAMESPACE_FO
, XML_BORDER_LEFT
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARLEFTBORDER
),
294 MAP_EXT_I( PROP_CharRightBorder
, XML_NAMESPACE_FO
, XML_BORDER_RIGHT
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARRIGHTBORDER
),
295 MAP_EXT_I( PROP_CharTopBorder
, XML_NAMESPACE_FO
, XML_BORDER_TOP
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARTOPBORDER
),
296 MAP_EXT_I( PROP_CharBottomBorder
, XML_NAMESPACE_FO
, XML_BORDER_BOTTOM
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARBOTTOMBORDER
),
298 MAP_EXT( PROP_CharShadowFormat
, XML_NAMESPACE_LO_EXT
, XML_SHADOW
, XML_TYPE_TEXT_SHADOW
|XML_TYPE_PROP_TEXT
, 0 ),
299 MAP_EXT_I( PROP_CharShadowFormat
, XML_NAMESPACE_STYLE
, XML_SHADOW
, XML_TYPE_TEXT_SHADOW
|XML_TYPE_PROP_TEXT
, 0 ),
300 // RES_CHRATR_HIGHLIGHT
301 MT_E( PROP_CharHighlight
, XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_COLORTRANSPARENT
|MID_FLAG_MULTI_PROPERTY
| MID_FLAG_NO_PROPERTY_IMPORT
, CTF_CHAR_HIGHLIGHT
),
302 // RES_TXTATR_INETFMT
304 // RES_TXTATR_REFMARK
306 // RES_TXTATR_TOXMARK
308 // RES_TXTATR_CHARFMT
309 // M_E_SI( TEXT, style_name, RES_TXTATR_CHARFMT, 0 ),
310 // RES_TXTATR_CJK_RUBY
318 // RES_TXTATR_SOFTHYPH
320 // RES_TXTATR_HARDBLANK
323 // RES_PARATR_LINESPACING
324 MP_E( PROP_ParaLineSpacing
, XML_NAMESPACE_FO
, XML_LINE_HEIGHT
, XML_TYPE_LINE_SPACE_FIXED
, 0 ),
325 MP_E( PROP_ParaLineSpacing
, XML_NAMESPACE_STYLE
, XML_LINE_HEIGHT_AT_LEAST
, XML_TYPE_LINE_SPACE_MINIMUM
, 0 ),
326 MP_E( PROP_ParaLineSpacing
, XML_NAMESPACE_STYLE
, XML_LINE_SPACING
, XML_TYPE_LINE_SPACE_DISTANCE
, 0 ),
328 MP_E( PROP_ParaAdjust
, XML_NAMESPACE_FO
, XML_TEXT_ALIGN
, XML_TYPE_TEXT_ADJUST
, CTF_SD_SHAPE_PARA_ADJUST
),
329 MP_E( PROP_ParaLastLineAdjust
, XML_NAMESPACE_FO
, XML_TEXT_ALIGN_LAST
, XML_TYPE_TEXT_ADJUSTLAST
, CTF_PARA_ADJUSTLAST
),
330 MP_E( PROP_ParaExpandSingleWord
, XML_NAMESPACE_STYLE
, XML_JUSTIFY_SINGLE_WORD
, XML_TYPE_BOOL
, 0 ),
332 MP_E( PROP_ParaSplit
, XML_NAMESPACE_FO
, XML_KEEP_TOGETHER
, XML_TYPE_TEXT_SPLIT
, 0 ),
333 // RES_PARATR_ORPHANS
334 MP_E( PROP_ParaOrphans
, XML_NAMESPACE_FO
, XML_ORPHANS
, XML_TYPE_NUMBER8
, 0 ),
336 MP_E( PROP_ParaWidows
, XML_NAMESPACE_FO
, XML_WIDOWS
, XML_TYPE_NUMBER8
, 0 ),
337 // RES_PARATR_TABSTOP
338 MP_ED( PROP_ParaTabStops
, XML_NAMESPACE_STYLE
, XML_TAB_STOPS
, MID_FLAG_ELEMENT_ITEM
|XML_TYPE_TEXT_TABSTOP
, CTF_TABSTOP
), // this is not really a string!
339 // RES_PARATR_HYPHENZONE
340 MT_E( PROP_ParaIsHyphenation
, XML_NAMESPACE_FO
, XML_HYPHENATE
, XML_TYPE_BOOL
, 0 ),
341 MT_E( PROP_ParaHyphenationMaxLeadingChars
, XML_NAMESPACE_FO
, XML_HYPHENATION_REMAIN_CHAR_COUNT
, XML_TYPE_NUMBER16_NO_ZERO
, 0 ),
342 MT_E( PROP_ParaHyphenationMaxTrailingChars
, XML_NAMESPACE_FO
, XML_HYPHENATION_PUSH_CHAR_COUNT
, XML_TYPE_NUMBER16_NO_ZERO
, 0 ),
343 MP_E( PROP_ParaHyphenationMaxHyphens
, XML_NAMESPACE_FO
, XML_HYPHENATION_LADDER_COUNT
, XML_TYPE_NUMBER16_NONE
, 0 ),
344 MAP_EXT( PROP_ParaHyphenationNoCaps
, XML_NAMESPACE_LO_EXT
, XML_HYPHENATION_NO_CAPS
, XML_TYPE_BOOL
|XML_TYPE_PROP_TEXT
, 0 ),
345 MAP_EXT( PROP_ParaHyphenationNoLastWord
, XML_NAMESPACE_LO_EXT
, XML_HYPHENATION_NO_LAST_WORD
, XML_TYPE_BOOL
|XML_TYPE_PROP_TEXT
, 0 ),
346 MAP_EXT( PROP_ParaHyphenationMinWordLength
, XML_NAMESPACE_LO_EXT
, XML_HYPHENATION_WORD_CHAR_COUNT
, XML_TYPE_NUMBER16_NONE
|XML_TYPE_PROP_TEXT
, 0 ),
347 MAP_EXT( PROP_ParaHyphenationZone
, XML_NAMESPACE_LO_EXT
, XML_HYPHENATION_ZONE
, XML_TYPE_NUMBER16_NONE
|XML_TYPE_PROP_TEXT
, 0 ),
349 MP_E( PROP_DropCapWholeWord
, XML_NAMESPACE_STYLE
, XML_LENGTH
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_BOOL
, CTF_DROPCAPWHOLEWORD
),
350 MP_E( PROP_DropCapCharStyleName
, XML_NAMESPACE_STYLE
, XML_STYLE_NAME
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_STRING
, CTF_DROPCAPCHARSTYLE
),
351 MP_E( PROP_DropCapFormat
, XML_NAMESPACE_STYLE
, XML_DROP_CAP
, MID_FLAG_ELEMENT_ITEM
|XML_TYPE_TEXT_DROPCAP
, CTF_DROPCAPFORMAT
),
352 // RES_PARATR_REGISTER
353 MP_E( PROP_ParaRegisterModeActive
, XML_NAMESPACE_STYLE
, XML_REGISTER_TRUE
, XML_TYPE_BOOL
, 0 ),
354 // RES_PARATR_NUMRULE
355 MP_E( PROP_NumberingStyleName
, XML_NAMESPACE_STYLE
, XML_LIST_STYLE_NAME
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_STYLENAME
, CTF_NUMBERINGSTYLENAME
),
365 MP_E( PROP_ParaFirstLineIndent
, XML_NAMESPACE_FO
, XML_TEXT_INDENT
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, CTF_PARAFIRSTLINE
),
366 MP_E( PROP_ParaFirstLineIndentRelative
, XML_NAMESPACE_FO
, XML_TEXT_INDENT
, XML_TYPE_PERCENT
, CTF_PARAFIRSTLINE_REL
),
367 MP_E( PROP_ParaIsAutoFirstLineIndent
, XML_NAMESPACE_STYLE
, XML_AUTO_TEXT_INDENT
, XML_TYPE_BOOL
, 0 ),
369 MP_E( PROP_PageDescName
, XML_NAMESPACE_STYLE
, XML_MASTER_PAGE_NAME
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_STYLENAME
, CTF_PAGEDESCNAME
),
370 MP_E( PROP_PageNumberOffset
, XML_NAMESPACE_STYLE
, XML_PAGE_NUMBER
, XML_TYPE_NUMBER16_AUTO
|MID_FLAG_SPECIAL_ITEM_EXPORT
, CTF_PAGENUMBEROFFSET
),
371 // RES_BREAK : TODO: does this work?
372 MP_E( PROP_BreakType
, XML_NAMESPACE_FO
, XML_BREAK_BEFORE
, XML_TYPE_TEXT_BREAKBEFORE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
373 MP_E( PROP_BreakType
, XML_NAMESPACE_FO
, XML_BREAK_AFTER
, XML_TYPE_TEXT_BREAKAFTER
, 0 ),
395 // DO NOT REORDER these!
396 MP_E( PROP_ParaBackColor
, XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_COLORTRANSPARENT
|MID_FLAG_MULTI_PROPERTY
, 0 ),
397 MP_E( PROP_ParaBackTransparent
, XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_ISTRANSPARENT
|MID_FLAG_MERGE_ATTRIBUTE
, 0 ),
398 MP_E( PROP_ParaBackGraphicLocation
, XML_NAMESPACE_STYLE
, XML_POSITION
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_BUILDIN_CMP_ONLY
, CTF_BACKGROUND_POS
),
399 MP_E( PROP_ParaBackGraphicFilter
, XML_NAMESPACE_STYLE
, XML_FILTER_NAME
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_STRING
, CTF_BACKGROUND_FILTER
),
400 MP_E( PROP_ParaBackGraphic
, XML_NAMESPACE_STYLE
, XML_BACKGROUND_IMAGE
, MID_FLAG_ELEMENT_ITEM
|XML_TYPE_GRAPHIC
, CTF_BACKGROUND_URL
),
403 MP_E( PROP_LeftBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH
, XML_TYPE_BORDER_WIDTH
, CTF_ALLBORDERWIDTH
),
404 MP_E( PROP_LeftBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_LEFT
, XML_TYPE_BORDER_WIDTH
, CTF_LEFTBORDERWIDTH
),
405 MP_E( PROP_RightBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_RIGHT
, XML_TYPE_BORDER_WIDTH
, CTF_RIGHTBORDERWIDTH
),
406 MP_E( PROP_TopBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_TOP
, XML_TYPE_BORDER_WIDTH
, CTF_TOPBORDERWIDTH
),
407 MP_E( PROP_BottomBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_BOTTOM
, XML_TYPE_BORDER_WIDTH
, CTF_BOTTOMBORDERWIDTH
),
409 MP_E( PROP_LeftBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, CTF_ALLBORDERDISTANCE
), // need special import filtering
410 MP_E( PROP_LeftBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_LEFT
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, CTF_LEFTBORDERDISTANCE
),
411 MP_E( PROP_RightBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_RIGHT
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, CTF_RIGHTBORDERDISTANCE
),
412 MP_E( PROP_TopBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_TOP
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, CTF_TOPBORDERDISTANCE
),
413 MP_E( PROP_BottomBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_BOTTOM
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, CTF_BOTTOMBORDERDISTANCE
),
415 MP_E( PROP_LeftBorder
, XML_NAMESPACE_FO
, XML_BORDER
, XML_TYPE_BORDER
, CTF_ALLBORDER
),
416 MP_E( PROP_LeftBorder
, XML_NAMESPACE_FO
, XML_BORDER_LEFT
, XML_TYPE_BORDER
, CTF_LEFTBORDER
),
417 MP_E( PROP_RightBorder
, XML_NAMESPACE_FO
, XML_BORDER_RIGHT
, XML_TYPE_BORDER
, CTF_RIGHTBORDER
),
418 MP_E( PROP_TopBorder
, XML_NAMESPACE_FO
, XML_BORDER_TOP
, XML_TYPE_BORDER
, CTF_TOPBORDER
),
419 MP_E( PROP_BottomBorder
, XML_NAMESPACE_FO
, XML_BORDER_BOTTOM
, XML_TYPE_BORDER
, CTF_BOTTOMBORDER
),
421 MP_E( PROP_ParaShadowFormat
, XML_NAMESPACE_STYLE
, XML_SHADOW
, XML_TYPE_TEXT_SHADOW
, 0 ),
427 MP_E( PROP_ParaKeepTogether
, XML_NAMESPACE_FO
, XML_KEEP_WITH_NEXT
, XML_TYPE_TEXT_KEEP
, 0 ),
430 // RES_EDIT_IN_READONLY
438 MP_E( PROP_ParaLineNumberCount
, XML_NAMESPACE_TEXT
, XML_NUMBER_LINES
, XML_TYPE_BOOL
, 0 ),
439 MP_E( PROP_ParaLineNumberStartValue
, XML_NAMESPACE_TEXT
, XML_LINE_NUMBER
, XML_TYPE_NUMBER
, 0 ),
445 MP_ED( PROP_ParaIsCharacterDistance
, XML_NAMESPACE_STYLE
, XML_TEXT_AUTOSPACE
, XML_TYPE_TEXT_AUTOSPACE
, 0 ),
446 MP_ED( PROP_ParaIsHangingPunctuation
, XML_NAMESPACE_STYLE
, XML_PUNCTUATION_WRAP
, XML_TYPE_TEXT_PUNCTUATION_WRAP
, 0 ),
447 MP_ED( PROP_ParaIsForbiddenRules
, XML_NAMESPACE_STYLE
, XML_LINE_BREAK
, XML_TYPE_TEXT_LINE_BREAK
, 0 ),
448 MP_E( PROP_TabStopDistance
, XML_NAMESPACE_STYLE
, XML_TAB_STOP_DISTANCE
, XML_TYPE_MEASURE
, 0 ),
449 MAP_EXT_I( PROP_ParaTabStopDefaultDistance
, XML_NAMESPACE_STYLE
, XML_TAB_STOP_DISTANCE
, XML_TYPE_MEASURE
|XML_TYPE_PROP_PARAGRAPH
, 0 ),
450 MAP_EXT( PROP_ParaTabStopDefaultDistance
, XML_NAMESPACE_LO_EXT
, XML_TAB_STOP_DISTANCE
, XML_TYPE_MEASURE
|XML_TYPE_PROP_PARAGRAPH
, 0 ),
452 // RES_PARATR_VERTALIGN
453 MP_E( PROP_ParaVertAlignment
, XML_NAMESPACE_STYLE
, XML_VERTICAL_ALIGN
, XML_TYPE_TEXT_VERTICAL_ALIGN
, 0 ),
455 // RES_PARATR_SNAPTOGRID
456 MP_E( PROP_SnapToGrid
, XML_NAMESPACE_STYLE
, XML_SNAP_TO_LAYOUT_GRID
, XML_TYPE_BOOL
, 0 ),
458 MP_ED( PROP_WritingMode
, XML_NAMESPACE_STYLE
, XML_WRITING_MODE
, XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT
, CTF_TEXTWRITINGMODE
),
460 MP_E( PROP_ParaIsConnectBorder
, XML_NAMESPACE_STYLE
, XML_JOIN_BORDER
, XML_TYPE_BOOL
, 0 ),
462 MP_E( PROP_DefaultOutlineLevel
, XML_NAMESPACE_STYLE
, XML_DEFAULT_OUTLINE_LEVEL
, XML_TYPE_TEXT_NUMBER8_ONE_BASED
|MID_FLAG_SPECIAL_ITEM_EXPORT
|MID_FLAG_NO_PROPERTY_IMPORT
, CTF_DEFAULT_OUTLINE_LEVEL
),
464 MP_ED( PROP_FontIndependentLineSpacing
, XML_NAMESPACE_STYLE
, XML_FONT_INDEPENDENT_LINE_SPACING
, XML_TYPE_BOOL
, 0 ),
466 MAP_EXT( PROP_ListAutoFormat
, XML_NAMESPACE_LO_EXT
, XML_MARKER_STYLE_NAME
, XML_TYPE_STYLENAME
|XML_TYPE_PROP_PARAGRAPH
, 0 ),
472 XMLPropertyMapEntry
constexpr aXMLAdditionalTextDefaultsMap
[] =
474 // RES_FOLLOW_TEXT_FLOW - DVO #i18732#
475 MG_ED( PROP_IsFollowingTextFlow
, XML_NAMESPACE_STYLE
, XML_FLOW_WITH_TEXT
, XML_TYPE_BOOL
, 0 ),
477 // #i28701# - RES_WRAP_INFLUENCE_ON_OBJPOS
478 MG_ED( PROP_WrapInfluenceOnPosition
, XML_NAMESPACE_DRAW
, XML_WRAP_INFLUENCE_ON_POSITION
, XML_TYPE_WRAP_INFLUENCE_ON_POSITION
, 0 ),
483 XMLPropertyMapEntry
constexpr aXMLTextPropMap
[] =
485 // RES_CHRATR_CASEMAP
486 MT_E( PROP_CharCaseMap
, XML_NAMESPACE_FO
, XML_FONT_VARIANT
, XML_TYPE_TEXT_CASEMAP_VAR
, 0 ),
487 MT_E( PROP_CharCaseMap
, XML_NAMESPACE_FO
, XML_TEXT_TRANSFORM
, XML_TYPE_TEXT_CASEMAP
, 0 ),
489 MT_ED( PROP_CharColor
, XML_NAMESPACE_FO
, XML_COLOR
, XML_TYPE_COLORAUTO
|MID_FLAG_MERGE_PROPERTY
, 0 ),
490 MT_ED( PROP_CharColor
, XML_NAMESPACE_STYLE
, XML_USE_WINDOW_FONT_COLOR
, XML_TYPE_ISAUTOCOLOR
|MID_FLAG_MERGE_PROPERTY
, 0 ),
491 MAP_EXT_I( PROP_CharTransparence
, XML_NAMESPACE_DRAW
, XML_OPACITY
, XML_TYPE_NEG_PERCENT16
| XML_TYPE_PROP_TEXT
, 0 ),
492 MAP_EXT( PROP_CharTransparence
, XML_NAMESPACE_LO_EXT
, XML_OPACITY
, XML_TYPE_NEG_PERCENT16
| XML_TYPE_PROP_TEXT
, 0 ),
493 MAP_EXT( PROP_CharComplexColor
, XML_NAMESPACE_LO_EXT
, XML_CHAR_COMPLEX_COLOR
, XML_TYPE_COMPLEX_COLOR
|XML_TYPE_PROP_TEXT
|MID_FLAG_ELEMENT_ITEM
, CTF_COMPLEX_COLOR
),
494 // RES_CHRATR_CONTOUR
495 MT_E( PROP_CharContoured
, XML_NAMESPACE_STYLE
, XML_TEXT_OUTLINE
, XML_TYPE_BOOL
, 0 ),
496 // RES_CHRATR_CROSSEDOUT
497 MT_E( PROP_CharStrikeout
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_STYLE
, XML_TYPE_TEXT_CROSSEDOUT_STYLE
|MID_FLAG_MERGE_PROPERTY
, 0),
498 MT_E( PROP_CharStrikeout
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_TYPE
, XML_TYPE_TEXT_CROSSEDOUT_TYPE
|MID_FLAG_MERGE_PROPERTY
, 0),
499 MT_E( PROP_CharStrikeout
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_WIDTH
, XML_TYPE_TEXT_CROSSEDOUT_WIDTH
|MID_FLAG_MERGE_PROPERTY
, 0),
500 MT_E( PROP_CharStrikeout
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_TEXT
, XML_TYPE_TEXT_CROSSEDOUT_TEXT
|MID_FLAG_MERGE_PROPERTY
, 0),
501 // RES_CHRATR_ESCAPEMENT
502 MT_E( PROP_CharEscapement
, XML_NAMESPACE_STYLE
, XML_TEXT_POSITION
, XML_TYPE_TEXT_ESCAPEMENT
|MID_FLAG_MERGE_ATTRIBUTE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
503 MT_E( PROP_CharEscapementHeight
, XML_NAMESPACE_STYLE
, XML_TEXT_POSITION
, XML_TYPE_TEXT_ESCAPEMENT_HEIGHT
|MID_FLAG_MERGE_ATTRIBUTE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
505 MT_ED( PROP_CharFontName
, XML_NAMESPACE_STYLE
, XML_FONT_NAME
, XML_TYPE_STRING
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTNAME
),
506 MT_ED( PROP_CharFontName
, XML_NAMESPACE_FO
, XML_FONT_FAMILY
, XML_TYPE_TEXT_FONTFAMILYNAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTFAMILYNAME
),
507 MT_ED( PROP_CharFontStyleName
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_NAME
, XML_TYPE_STRING
, CTF_FONTSTYLENAME
),
508 MT_ED( PROP_CharFontFamily
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_GENERIC
, XML_TYPE_TEXT_FONTFAMILY
, CTF_FONTFAMILY
),
509 MT_ED( PROP_CharFontPitch
, XML_NAMESPACE_STYLE
, XML_FONT_PITCH
, XML_TYPE_TEXT_FONTPITCH
, CTF_FONTPITCH
),
510 MT_ED( PROP_CharFontCharSet
, XML_NAMESPACE_STYLE
, XML_FONT_CHARSET
, XML_TYPE_TEXT_FONTENCODING
, CTF_FONTCHARSET
),
511 // RES_CHRATR_FONTSIZE
512 MT_ED( PROP_CharHeight
, XML_NAMESPACE_FO
, XML_FONT_SIZE
, XML_TYPE_CHAR_HEIGHT
|MID_FLAG_MULTI_PROPERTY
, CTF_CHARHEIGHT
),
513 MT_ED( PROP_CharPropHeight
, XML_NAMESPACE_FO
, XML_FONT_SIZE
, XML_TYPE_CHAR_HEIGHT_PROP
|MID_FLAG_MULTI_PROPERTY
, CTF_CHARHEIGHT_REL
),
514 MT_ED( PROP_CharDiffHeight
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_REL
, XML_TYPE_CHAR_HEIGHT_DIFF
, CTF_CHARHEIGHT_DIFF
),
515 // RES_CHRATR_KERNING
516 MT_E( PROP_CharKerning
, XML_NAMESPACE_FO
, XML_LETTER_SPACING
, XML_TYPE_TEXT_KERNING
, 0 ),
517 // RES_CHRATR_LANGUAGE
518 MT_ED( PROP_CharLocale
, XML_NAMESPACE_STYLE
, XML_RFC_LANGUAGE_TAG
, XML_TYPE_CHAR_RFC_LANGUAGE_TAG
|MID_FLAG_MERGE_PROPERTY
, 0 ),
519 MT_ED( PROP_CharLocale
, XML_NAMESPACE_FO
, XML_LANGUAGE
, XML_TYPE_CHAR_LANGUAGE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
520 MT_ED( PROP_CharLocale
, XML_NAMESPACE_FO
, XML_SCRIPT
, XML_TYPE_CHAR_SCRIPT
|MID_FLAG_MERGE_PROPERTY
, 0 ),
521 MT_ED( PROP_CharLocale
, XML_NAMESPACE_FO
, XML_COUNTRY
, XML_TYPE_CHAR_COUNTRY
|MID_FLAG_MERGE_PROPERTY
, 0 ),
522 // RES_CHRATR_POSTURE
523 MT_E( PROP_CharPosture
, XML_NAMESPACE_FO
, XML_FONT_STYLE
, XML_TYPE_TEXT_POSTURE
, 0 ),
524 // RES_CHRATR_UNUSED1
525 // RES_CHRATR_SHADOWED
526 MT_E( PROP_CharShadowed
, XML_NAMESPACE_FO
, XML_TEXT_SHADOW
, XML_TYPE_TEXT_SHADOWED
, 0 ),
527 // VALIDATED UP TO THIS LINE
528 // RES_CHRATR_UNDERLINE
529 MT_E( PROP_CharUnderline
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_STYLE
, XML_TYPE_TEXT_UNDERLINE_STYLE
|MID_FLAG_MERGE_PROPERTY
, CTF_UNDERLINE
),
530 MT_E( PROP_CharUnderline
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_TYPE
, XML_TYPE_TEXT_UNDERLINE_TYPE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
531 MT_E( PROP_CharUnderline
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_WIDTH
, XML_TYPE_TEXT_UNDERLINE_WIDTH
|MID_FLAG_MERGE_PROPERTY
, 0 ),
532 MT_E( PROP_CharUnderlineColor
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_COLOR
, XML_TYPE_TEXT_UNDERLINE_COLOR
|MID_FLAG_MULTI_PROPERTY
, CTF_UNDERLINE_COLOR
),
533 MT_E( PROP_CharUnderlineHasColor
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_COLOR
, XML_TYPE_TEXT_UNDERLINE_HASCOLOR
|MID_FLAG_MERGE_ATTRIBUTE
, CTF_UNDERLINE_HASCOLOR
),
535 MT_E( PROP_CharWeight
, XML_NAMESPACE_FO
, XML_FONT_WEIGHT
, XML_TYPE_TEXT_WEIGHT
, 0 ),
537 { PROP_Rsid
, XML_NAMESPACE_OFFICE_EXT
, XML_RSID
, XML_TYPE_HEX
|XML_TYPE_PROP_TEXT
, 0, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED
, false },
539 { PROP_ParRsid
, XML_NAMESPACE_OFFICE_EXT
, XML_PARRSID
, XML_TYPE_HEX
|XML_TYPE_PROP_TEXT
, 0, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED
, false },
540 // RES_CHRATR_WORDLINEMODE
541 MT_E( PROP_CharWordMode
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_MODE
, XML_TYPE_TEXT_LINE_MODE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
542 MT_E( PROP_CharWordMode
, XML_NAMESPACE_STYLE
, XML_TEXT_OVERLINE_MODE
, XML_TYPE_TEXT_LINE_MODE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
543 MT_E( PROP_CharWordMode
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_MODE
, XML_TYPE_TEXT_LINE_MODE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
544 // RES_CHRATR_AUTOKERN
545 MT_E( PROP_CharAutoKerning
, XML_NAMESPACE_STYLE
, XML_LETTER_KERNING
, XML_TYPE_BOOL
, 0 ),
547 MT_E( PROP_CharFlash
, XML_NAMESPACE_STYLE
, XML_TEXT_BLINKING
, XML_TYPE_BOOL
, 0 ),
548 // RES_CHRATR_NOHYPHEN
549 MT_E( PROP_CharNoHyphenation
, XML_NAMESPACE_FO
, XML_HYPHENATE
, XML_TYPE_NBOOL
, 0 ),
550 // RES_CHRATR_UNUSED2
551 // RES_CHRATR_BACKGROUND
552 MT_E( PROP_CharBackColor
, XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_COLORTRANSPARENT
|MID_FLAG_MULTI_PROPERTY
, CTF_CHAR_BACKGROUND
),
553 MT_E( PROP_CharBackTransparent
, XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_ISTRANSPARENT
|MID_FLAG_MERGE_ATTRIBUTE
, CTF_CHAR_BACKGROUND_TRANSPARENCY
),
554 { PROP_CharShadingValue
, XML_NAMESPACE_LO_EXT
, XML_CHAR_SHADING_VALUE
, XML_TYPE_NUMBER
|XML_TYPE_PROP_TEXT
, 0, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED
, false },
555 MT_E( PROP_CharBackColor
, XML_NAMESPACE_FO
, XML_TEXT_BACKGROUND_COLOR
, XML_TYPE_COLOR
|MID_FLAG_SPECIAL_ITEM_EXPORT
, CTF_OLDTEXTBACKGROUND
),
556 // RES_CHRATR_CJK_FONT
557 MT_ED( PROP_CharFontNameAsian
, XML_NAMESPACE_STYLE
, XML_FONT_NAME_ASIAN
, XML_TYPE_STRING
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTNAME_CJK
),
558 MT_ED( PROP_CharFontNameAsian
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_ASIAN
, XML_TYPE_TEXT_FONTFAMILYNAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTFAMILYNAME_CJK
),
559 MT_ED( PROP_CharFontStyleNameAsian
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_NAME_ASIAN
, XML_TYPE_STRING
, CTF_FONTSTYLENAME_CJK
),
560 MT_ED( PROP_CharFontFamilyAsian
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_GENERIC_ASIAN
, XML_TYPE_TEXT_FONTFAMILY
, CTF_FONTFAMILY_CJK
),
561 MT_ED( PROP_CharFontPitchAsian
, XML_NAMESPACE_STYLE
, XML_FONT_PITCH_ASIAN
, XML_TYPE_TEXT_FONTPITCH
, CTF_FONTPITCH_CJK
),
562 MT_ED( PROP_CharFontCharSetAsian
, XML_NAMESPACE_STYLE
, XML_FONT_CHARSET_ASIAN
, XML_TYPE_TEXT_FONTENCODING
, CTF_FONTCHARSET_CJK
),
563 // RES_CHRATR_CJK_FONTSIZE
564 MT_ED( PROP_CharHeightAsian
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_ASIAN
, XML_TYPE_CHAR_HEIGHT
|MID_FLAG_MULTI_PROPERTY
, CTF_CHARHEIGHT_CJK
),
565 MT_ED( PROP_CharPropHeightAsian
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_ASIAN
, XML_TYPE_CHAR_HEIGHT_PROP
|MID_FLAG_MULTI_PROPERTY
, CTF_CHARHEIGHT_REL_CJK
),
566 MT_ED( PROP_CharDiffHeightAsian
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_REL_ASIAN
, XML_TYPE_CHAR_HEIGHT_DIFF
, CTF_CHARHEIGHT_DIFF_CJK
),
567 // RES_CHRATR_CJK_LANGUAGE
568 MT_ED( PROP_CharLocaleAsian
, XML_NAMESPACE_STYLE
, XML_RFC_LANGUAGE_TAG_ASIAN
, XML_TYPE_CHAR_RFC_LANGUAGE_TAG
|MID_FLAG_MERGE_PROPERTY
, 0 ),
569 MT_ED( PROP_CharLocaleAsian
, XML_NAMESPACE_STYLE
, XML_LANGUAGE_ASIAN
, XML_TYPE_CHAR_LANGUAGE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
570 MT_ED( PROP_CharLocaleAsian
, XML_NAMESPACE_STYLE
, XML_SCRIPT_ASIAN
, XML_TYPE_CHAR_SCRIPT
|MID_FLAG_MERGE_PROPERTY
, 0 ),
571 MT_ED( PROP_CharLocaleAsian
, XML_NAMESPACE_STYLE
, XML_COUNTRY_ASIAN
, XML_TYPE_CHAR_COUNTRY
|MID_FLAG_MERGE_PROPERTY
, 0 ),
572 // RES_CHRATR_CJK_POSTURE
573 MT_E( PROP_CharPostureAsian
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_ASIAN
, XML_TYPE_TEXT_POSTURE
, 0 ),
574 // RES_CHRATR_CJK_WEIGHT
575 MT_E( PROP_CharWeightAsian
, XML_NAMESPACE_STYLE
, XML_FONT_WEIGHT_ASIAN
, XML_TYPE_TEXT_WEIGHT
, 0 ),
576 // RES_CHRATR_CTL_FONT
577 MT_ED( PROP_CharFontNameComplex
, XML_NAMESPACE_STYLE
, XML_FONT_NAME_COMPLEX
, XML_TYPE_STRING
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTNAME_CTL
),
578 MT_ED( PROP_CharFontNameComplex
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_COMPLEX
, XML_TYPE_TEXT_FONTFAMILYNAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTFAMILYNAME_CTL
),
579 MT_ED( PROP_CharFontStyleNameComplex
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_NAME_COMPLEX
, XML_TYPE_STRING
, CTF_FONTSTYLENAME_CTL
),
580 MT_ED( PROP_CharFontFamilyComplex
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_GENERIC_COMPLEX
, XML_TYPE_TEXT_FONTFAMILY
, CTF_FONTFAMILY_CTL
),
581 MT_ED( PROP_CharFontPitchComplex
, XML_NAMESPACE_STYLE
, XML_FONT_PITCH_COMPLEX
, XML_TYPE_TEXT_FONTPITCH
, CTF_FONTPITCH_CTL
),
582 MT_ED( PROP_CharFontCharSetComplex
, XML_NAMESPACE_STYLE
, XML_FONT_CHARSET_COMPLEX
, XML_TYPE_TEXT_FONTENCODING
, CTF_FONTCHARSET_CTL
),
583 // RES_CHRATR_CTL_FONTSIZE
584 MT_ED( PROP_CharHeightComplex
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_COMPLEX
, XML_TYPE_CHAR_HEIGHT
|MID_FLAG_MULTI_PROPERTY
, CTF_CHARHEIGHT_CTL
),
585 MT_ED( PROP_CharPropHeightComplex
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_COMPLEX
, XML_TYPE_CHAR_HEIGHT_PROP
|MID_FLAG_MULTI_PROPERTY
, CTF_CHARHEIGHT_REL_CTL
),
586 MT_ED( PROP_CharDiffHeightComplex
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_REL_COMPLEX
, XML_TYPE_CHAR_HEIGHT_DIFF
, CTF_CHARHEIGHT_DIFF_CTL
),
587 // RES_CHRATR_CTL_LANGUAGE
588 MT_ED( PROP_CharLocaleComplex
, XML_NAMESPACE_STYLE
, XML_RFC_LANGUAGE_TAG_COMPLEX
, XML_TYPE_CHAR_RFC_LANGUAGE_TAG
|MID_FLAG_MERGE_PROPERTY
, 0 ),
589 MT_ED( PROP_CharLocaleComplex
, XML_NAMESPACE_STYLE
, XML_LANGUAGE_COMPLEX
, XML_TYPE_CHAR_LANGUAGE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
590 MT_ED( PROP_CharLocaleComplex
, XML_NAMESPACE_STYLE
, XML_SCRIPT_COMPLEX
, XML_TYPE_CHAR_SCRIPT
|MID_FLAG_MERGE_PROPERTY
, 0 ),
591 MT_ED( PROP_CharLocaleComplex
, XML_NAMESPACE_STYLE
, XML_COUNTRY_COMPLEX
, XML_TYPE_CHAR_COUNTRY
|MID_FLAG_MERGE_PROPERTY
, 0 ),
592 // RES_CHRATR_CTL_POSTURE
593 MT_E( PROP_CharPostureComplex
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_COMPLEX
, XML_TYPE_TEXT_POSTURE
, 0 ),
594 // RES_CHRATR_CTL_WEIGHT
595 MT_E( PROP_CharWeightComplex
, XML_NAMESPACE_STYLE
, XML_FONT_WEIGHT_COMPLEX
, XML_TYPE_TEXT_WEIGHT
, 0 ),
597 MT_E( PROP_CharRotation
, XML_NAMESPACE_STYLE
, XML_TEXT_ROTATION_ANGLE
, XML_TYPE_TEXT_ROTATION_ANGLE
, 0 ),
598 MT_E( PROP_CharRotationIsFitToLine
, XML_NAMESPACE_STYLE
, XML_TEXT_ROTATION_SCALE
, XML_TYPE_TEXT_ROTATION_SCALE
, 0 ),
599 // RES_CHRATR_EMPHASIS_MARK
600 MT_E( PROP_CharEmphasis
, XML_NAMESPACE_STYLE
, XML_TEXT_EMPHASIZE
, XML_TYPE_TEXT_EMPHASIZE
, 0 ),
601 // RES_CHRATR_TWO_LINES
602 MT_E( PROP_CharCombineIsOn
, XML_NAMESPACE_STYLE
, XML_TEXT_COMBINE
, XML_TYPE_TEXT_COMBINE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
603 MT_E( PROP_CharCombinePrefix
, XML_NAMESPACE_STYLE
, XML_TEXT_COMBINE_START_CHAR
, XML_TYPE_TEXT_COMBINECHAR
, 0 ),
604 MT_E( PROP_CharCombineSuffix
, XML_NAMESPACE_STYLE
, XML_TEXT_COMBINE_END_CHAR
, XML_TYPE_TEXT_COMBINECHAR
, 0 ),
606 MT_E( PROP_CharScaleWidth
, XML_NAMESPACE_STYLE
, XML_TEXT_SCALE
, XML_TYPE_PERCENT16
, 0 ),
607 // combined characters field, does not correspond to a property
608 MT_E( PROP_
, XML_NAMESPACE_STYLE
, XML_TEXT_COMBINE
, XML_TYPE_TEXT_COMBINE_CHARACTERS
|MID_FLAG_NO_PROPERTY
, CTF_COMBINED_CHARACTERS_FIELD
),
610 MT_E( PROP_CharRelief
, XML_NAMESPACE_STYLE
, XML_FONT_RELIEF
, XML_TYPE_TEXT_FONT_RELIEF
, 0 ),
612 MT_E( PROP_CharHidden
, XML_NAMESPACE_TEXT
, XML_DISPLAY
, XML_TYPE_TEXT_HIDDEN_AS_DISPLAY
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_TEXT_DISPLAY
),
613 // RES_CHRATR_OVERLINE
614 MT_E( PROP_CharOverline
, XML_NAMESPACE_STYLE
, XML_TEXT_OVERLINE_STYLE
, XML_TYPE_TEXT_OVERLINE_STYLE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
615 MT_E( PROP_CharOverline
, XML_NAMESPACE_STYLE
, XML_TEXT_OVERLINE_TYPE
, XML_TYPE_TEXT_OVERLINE_TYPE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
616 MT_E( PROP_CharOverline
, XML_NAMESPACE_STYLE
, XML_TEXT_OVERLINE_WIDTH
, XML_TYPE_TEXT_OVERLINE_WIDTH
|MID_FLAG_MERGE_PROPERTY
, 0 ),
617 MT_E( PROP_CharOverlineColor
, XML_NAMESPACE_STYLE
, XML_TEXT_OVERLINE_COLOR
, XML_TYPE_TEXT_OVERLINE_COLOR
|MID_FLAG_MULTI_PROPERTY
, 0 ),
618 MT_E( PROP_CharOverlineHasColor
, XML_NAMESPACE_STYLE
, XML_TEXT_OVERLINE_COLOR
, XML_TYPE_TEXT_OVERLINE_HASCOLOR
|MID_FLAG_MERGE_ATTRIBUTE
, 0 ),
620 MAP_EXT( PROP_CharLeftBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_LINE_WIDTH
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARALLBORDERWIDTH
),
621 MAP_EXT( PROP_CharLeftBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_LINE_WIDTH_LEFT
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARLEFTBORDERWIDTH
),
622 MAP_EXT( PROP_CharRightBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_LINE_WIDTH_RIGHT
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARRIGHTBORDERWIDTH
),
623 MAP_EXT( PROP_CharTopBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_LINE_WIDTH_TOP
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARTOPBORDERWIDTH
),
624 MAP_EXT( PROP_CharBottomBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_LINE_WIDTH_BOTTOM
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARBOTTOMBORDERWIDTH
),
625 MAP_EXT_I( PROP_CharLeftBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARALLBORDERWIDTH
),
626 MAP_EXT_I( PROP_CharLeftBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_LEFT
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARLEFTBORDERWIDTH
),
627 MAP_EXT_I( PROP_CharRightBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_RIGHT
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARRIGHTBORDERWIDTH
),
628 MAP_EXT_I( PROP_CharTopBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_TOP
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARTOPBORDERWIDTH
),
629 MAP_EXT_I( PROP_CharBottomBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_BOTTOM
, XML_TYPE_BORDER_WIDTH
|XML_TYPE_PROP_TEXT
, CTF_CHARBOTTOMBORDERWIDTH
),
631 MAP_EXT( PROP_CharLeftBorderDistance
, XML_NAMESPACE_LO_EXT
, XML_PADDING
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARALLBORDERDISTANCE
),
632 MAP_EXT( PROP_CharLeftBorderDistance
, XML_NAMESPACE_LO_EXT
, XML_PADDING_LEFT
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARLEFTBORDERDISTANCE
),
633 MAP_EXT( PROP_CharRightBorderDistance
, XML_NAMESPACE_LO_EXT
, XML_PADDING_RIGHT
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARRIGHTBORDERDISTANCE
),
634 MAP_EXT( PROP_CharTopBorderDistance
, XML_NAMESPACE_LO_EXT
, XML_PADDING_TOP
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARTOPBORDERDISTANCE
),
635 MAP_EXT( PROP_CharBottomBorderDistance
, XML_NAMESPACE_LO_EXT
, XML_PADDING_BOTTOM
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARBOTTOMBORDERDISTANCE
),
636 MAP_EXT_I( PROP_CharLeftBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARALLBORDERDISTANCE
),
637 MAP_EXT_I( PROP_CharLeftBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_LEFT
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARLEFTBORDERDISTANCE
),
638 MAP_EXT_I( PROP_CharRightBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_RIGHT
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARRIGHTBORDERDISTANCE
),
639 MAP_EXT_I( PROP_CharTopBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_TOP
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARTOPBORDERDISTANCE
),
640 MAP_EXT_I( PROP_CharBottomBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_BOTTOM
, XML_TYPE_MEASURE
|XML_TYPE_PROP_TEXT
, CTF_CHARBOTTOMBORDERDISTANCE
),
642 MAP_EXT( PROP_CharLeftBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARALLBORDER
),
643 MAP_EXT( PROP_CharLeftBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_LEFT
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARLEFTBORDER
),
644 MAP_EXT( PROP_CharRightBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_RIGHT
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARRIGHTBORDER
),
645 MAP_EXT( PROP_CharTopBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_TOP
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARTOPBORDER
),
646 MAP_EXT( PROP_CharBottomBorder
, XML_NAMESPACE_LO_EXT
, XML_BORDER_BOTTOM
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARBOTTOMBORDER
),
647 MAP_EXT_I( PROP_CharLeftBorder
, XML_NAMESPACE_FO
, XML_BORDER
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARALLBORDER
),
648 MAP_EXT_I( PROP_CharLeftBorder
, XML_NAMESPACE_FO
, XML_BORDER_LEFT
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARLEFTBORDER
),
649 MAP_EXT_I( PROP_CharRightBorder
, XML_NAMESPACE_FO
, XML_BORDER_RIGHT
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARRIGHTBORDER
),
650 MAP_EXT_I( PROP_CharTopBorder
, XML_NAMESPACE_FO
, XML_BORDER_TOP
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARTOPBORDER
),
651 MAP_EXT_I( PROP_CharBottomBorder
, XML_NAMESPACE_FO
, XML_BORDER_BOTTOM
, XML_TYPE_BORDER
|XML_TYPE_PROP_TEXT
, CTF_CHARBOTTOMBORDER
),
653 MAP_EXT( PROP_CharShadowFormat
, XML_NAMESPACE_LO_EXT
, XML_SHADOW
, XML_TYPE_TEXT_SHADOW
|XML_TYPE_PROP_TEXT
, 0 ),
654 MAP_EXT_I( PROP_CharShadowFormat
, XML_NAMESPACE_STYLE
, XML_SHADOW
, XML_TYPE_TEXT_SHADOW
|XML_TYPE_PROP_TEXT
, 0 ),
655 // RES_CHRATR_HIGHLIGHT
656 MT_E( PROP_CharHighlight
, XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_COLORTRANSPARENT
|MID_FLAG_MULTI_PROPERTY
|MID_FLAG_NO_PROPERTY_IMPORT
, CTF_CHAR_HIGHLIGHT
),
657 // RES_TXTATR_INETFMT
658 MT_E( PROP_HyperLinkURL
, XML_NAMESPACE_TEXT
, XML_XMLNS
, XML_TYPE_STRING
|MID_FLAG_NO_PROPERTY_IMPORT
, CTF_HYPERLINK_URL
),
659 // RES_TXTATR_REFMARK
661 // RES_TXTATR_TOXMARK
663 // RES_TXTATR_CHARFMT
664 MT_E( PROP_CharStyleName
, XML_NAMESPACE_TEXT
, XML_STYLE_NAME
, XML_TYPE_STRING
|MID_FLAG_NO_PROPERTY_IMPORT
, CTF_CHAR_STYLE_NAME
),
665 // RES_TXTATR_CJK_RUBY
673 // RES_TXTATR_SOFTHYPH
675 // RES_TXTATR_HARDBLANK
677 // RES_UNKNOWNATR_CONTAINER
678 MT_E( PROP_TextUserDefinedAttributes
, XML_NAMESPACE_TEXT
, XML_XMLNS
, XML_TYPE_ATTRIBUTE_CONTAINER
| MID_FLAG_SPECIAL_ITEM
, 0 ),
679 MT_ED( PROP_ParaIsCharacterDistance
, XML_NAMESPACE_STYLE
, XML_TEXT_AUTOSPACE
, XML_TYPE_TEXT_AUTOSPACE
, 0 ),
680 MT_ED( PROP_ParaIsHangingPunctuation
, XML_NAMESPACE_STYLE
, XML_PUNCTUATION_WRAP
, XML_TYPE_TEXT_PUNCTUATION_WRAP
, 0 ),
681 MT_ED( PROP_ParaIsForbiddenRules
, XML_NAMESPACE_STYLE
, XML_LINE_BREAK
, XML_TYPE_TEXT_LINE_BREAK
, 0 ),
682 MT_E( PROP_TabStopDistance
, XML_NAMESPACE_STYLE
, XML_TAB_STOP_DISTANCE
, XML_TYPE_MEASURE
, 0 ),
687 XMLPropertyMapEntry
constexpr aXMLFramePropMap
[] =
690 // TODO: not required???
692 MG_ED( PROP_Width
, XML_NAMESPACE_SVG
, XML_WIDTH
, XML_TYPE_MEASURE
, CTF_FRAMEWIDTH_ABS
),
693 MG_ED( PROP_Width
, XML_NAMESPACE_FO
, XML_MIN_WIDTH
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, CTF_FRAMEWIDTH_MIN_ABS
),
694 MG_ED( PROP_RelativeWidth
, XML_NAMESPACE_FO
, XML_MIN_WIDTH
, XML_TYPE_TEXT_REL_WIDTH_HEIGHT
, CTF_FRAMEWIDTH_MIN_REL
),
695 MG_ED( PROP_RelativeWidth
, XML_NAMESPACE_STYLE
, XML_REL_WIDTH
, XML_TYPE_TEXT_REL_WIDTH_HEIGHT
, CTF_FRAMEWIDTH_REL
),
696 MG_ED( PROP_WidthType
, XML_NAMESPACE_FO
, XML_TEXT_BOX
, XML_TYPE_NUMBER16
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FRAMEWIDTH_TYPE
),
697 // M_ED( "RelativeWidth", XML_NAMESPACE_STYLE, XML_REL_WIDTH, XML_TYPE_TEXT_REL_WIDTH_HEIGHT|MID_FLAG_MULTI_PROPERTY, 0 ),
698 // M_ED( "IsSyncWidthToHeight", XML_NAMESPACE_STYLE, XML_REL_WIDTH, XML_TYPE_TEXT_SYNC_WIDTH_HEIGHT|MID_FLAG_MULTI_PROPERTY, 0 ),
700 MG_ED( PROP_Height
, XML_NAMESPACE_SVG
, XML_HEIGHT
, XML_TYPE_MEASURE
, CTF_FRAMEHEIGHT_ABS
),
701 MG_ED( PROP_Height
, XML_NAMESPACE_FO
, XML_MIN_HEIGHT
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, CTF_FRAMEHEIGHT_MIN_ABS
),
702 MG_ED( PROP_RelativeHeight
, XML_NAMESPACE_FO
, XML_MIN_HEIGHT
, XML_TYPE_TEXT_REL_WIDTH_HEIGHT
, CTF_FRAMEHEIGHT_MIN_REL
),
703 MG_ED( PROP_RelativeHeight
, XML_NAMESPACE_STYLE
, XML_REL_HEIGHT
, XML_TYPE_TEXT_REL_WIDTH_HEIGHT
, CTF_FRAMEHEIGHT_REL
),
704 // M_ED( "RelativeHeight", XML_NAMESPACE_STYLE, XML_REL_HEIGHT, XML_TYPE_TEXT_REL_WIDTH_HEIGHT|MID_FLAG_MULTI_PROPERTY, CTF_FRAMEHEIGHT_REL ),
705 // M_ED( "IsSyncHeightToWidth", XML_NAMESPACE_STYLE, XML_REL_HEIGHT, XML_TYPE_TEXT_SYNC_WIDTH_HEIGHT|MID_FLAG_MULTI_PROPERTY, CTF_SYNCHEIGHT ),
706 // M_ED( "IsSyncHeightToWidth", XML_NAMESPACE_STYLE, XML_REL_HEIGHT, XML_TYPE_TEXT_SYNC_WIDTH_HEIGHT_MIN, CTF_SYNCHEIGHT_MIN ),
707 MG_ED( PROP_SizeType
, XML_NAMESPACE_FO
, XML_TEXT_BOX
, XML_TYPE_NUMBER16
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_SIZETYPE
),
711 // moved to here because it is not used for automatic styles
712 MG_ED( PROP_AnchorType
, XML_NAMESPACE_TEXT
, XML_ANCHOR_TYPE
, XML_TYPE_TEXT_ANCHOR_TYPE
, CTF_ANCHORTYPE
),
713 // AnchorPage number is not required for styles!
714 MG_ED( PROP_HoriOrientPosition
, XML_NAMESPACE_SVG
, XML_X
, XML_TYPE_MEASURE
, 0 ),
715 MG_ED( PROP_VertOrientPosition
, XML_NAMESPACE_SVG
, XML_Y
, XML_TYPE_MEASURE
, 0 ),
716 // ***** The map for automatic styles starts here *****
718 MG_E( PROP_LeftMargin
, XML_NAMESPACE_FO
, XML_MARGIN
, XML_TYPE_MEASURE
, CTF_MARGINALL
),
719 MG_E( PROP_LeftMargin
, XML_NAMESPACE_FO
, XML_MARGIN_LEFT
, XML_TYPE_MEASURE
, CTF_MARGINLEFT
),
720 MG_E( PROP_RightMargin
, XML_NAMESPACE_FO
, XML_MARGIN_RIGHT
, XML_TYPE_MEASURE
, CTF_MARGINRIGHT
),
722 MG_E( PROP_TopMargin
, XML_NAMESPACE_FO
, XML_MARGIN_TOP
, XML_TYPE_MEASURE
, CTF_MARGINTOP
),
723 MG_E( PROP_BottomMargin
, XML_NAMESPACE_FO
, XML_MARGIN_BOTTOM
, XML_TYPE_MEASURE
, CTF_MARGINBOTTOM
),
729 // not required (accessed using API)
735 MG_E( PROP_Print
, XML_NAMESPACE_STYLE
, XML_PRINT_CONTENT
, XML_TYPE_BOOL
, 0 ),
737 MG_ED( PROP_Opaque
, XML_NAMESPACE_STYLE
, XML_RUN_THROUGH
, XML_TYPE_TEXT_OPAQUE
, 0 ),
739 MG_E( PROP_ContentProtected
, XML_NAMESPACE_STYLE
, XML_PROTECT
, XML_TYPE_TEXT_PROTECT_CONTENT
|MID_FLAG_MERGE_ATTRIBUTE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
740 MG_E( PROP_SizeProtected
, XML_NAMESPACE_STYLE
, XML_PROTECT
, XML_TYPE_TEXT_PROTECT_SIZE
|MID_FLAG_MERGE_ATTRIBUTE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
741 MG_E( PROP_PositionProtected
, XML_NAMESPACE_STYLE
, XML_PROTECT
, XML_TYPE_TEXT_PROTECT_POSITION
|MID_FLAG_MERGE_ATTRIBUTE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
743 MG_ED( PROP_TextWrap
, XML_NAMESPACE_STYLE
, XML_WRAP
, XML_TYPE_TEXT_WRAP
, CTF_WRAP
),
744 MG_ED( PROP_SurroundAnchorOnly
, XML_NAMESPACE_STYLE
, XML_NUMBER_WRAPPED_PARAGRAPHS
, XML_TYPE_TEXT_PARAGRAPH_ONLY
, CTF_WRAP_PARAGRAPH_ONLY
),
745 MG_E( PROP_SurroundContour
, XML_NAMESPACE_STYLE
, XML_WRAP_CONTOUR
, XML_TYPE_BOOL
, CTF_WRAP_CONTOUR
),
746 MG_E( PROP_ContourOutside
, XML_NAMESPACE_STYLE
, XML_WRAP_CONTOUR_MODE
, XML_TYPE_TEXT_WRAP_OUTSIDE
, CTF_WRAP_CONTOUR_MODE
),
748 MG_ED( PROP_VertOrient
, XML_NAMESPACE_STYLE
, XML_VERTICAL_POS
, XML_TYPE_TEXT_VERTICAL_POS
, CTF_VERTICALPOS
),
749 MG_ED( PROP_VertOrient
, XML_NAMESPACE_STYLE
, XML_VERTICAL_POS
, XML_TYPE_TEXT_VERTICAL_POS_AT_CHAR
, CTF_VERTICALPOS_ATCHAR
),
750 MG_ED( PROP_VertOrient
, XML_NAMESPACE_STYLE
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL_AS_CHAR
|MID_FLAG_MULTI_PROPERTY
, CTF_VERTICALREL_ASCHAR
),
751 MG_ED( PROP_VertOrientRelation
, XML_NAMESPACE_STYLE
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL
, CTF_VERTICALREL
),
752 MG_ED( PROP_VertOrientRelation
, XML_NAMESPACE_STYLE
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL_PAGE
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_VERTICALREL_PAGE
),
753 MG_ED( PROP_VertOrientRelation
, XML_NAMESPACE_STYLE
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL_FRAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_VERTICALREL_FRAME
),
754 MAP_EXT_I( PROP_VertOrientRelation
, XML_NAMESPACE_LO_EXT
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL
|XML_TYPE_PROP_GRAPHIC
|MID_FLAG_DEFAULT_ITEM_EXPORT
, CTF_VERTICALREL
),
755 MAP_EXT_I( PROP_VertOrientRelation
, XML_NAMESPACE_LO_EXT
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL_PAGE
|MID_FLAG_SPECIAL_ITEM_IMPORT
|XML_TYPE_PROP_GRAPHIC
|MID_FLAG_DEFAULT_ITEM_EXPORT
, CTF_VERTICALREL_PAGE
),
756 MAP_EXT_I( PROP_VertOrientRelation
, XML_NAMESPACE_LO_EXT
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL_FRAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
|XML_TYPE_PROP_GRAPHIC
|MID_FLAG_DEFAULT_ITEM_EXPORT
, CTF_VERTICALREL_FRAME
),
758 MG_ED( PROP_HoriOrient
, XML_NAMESPACE_STYLE
, XML_HORIZONTAL_POS
, XML_TYPE_TEXT_HORIZONTAL_POS
|MID_FLAG_MULTI_PROPERTY
, CTF_HORIZONTALPOS
),
759 MG_ED( PROP_PageToggle
, XML_NAMESPACE_STYLE
, XML_HORIZONTAL_POS
, XML_TYPE_TEXT_HORIZONTAL_MIRROR
, CTF_HORIZONTALMIRROR
),
760 MG_ED( PROP_HoriOrient
, XML_NAMESPACE_STYLE
, XML_HORIZONTAL_POS
, XML_TYPE_TEXT_HORIZONTAL_POS_MIRRORED
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_HORIZONTALPOS_MIRRORED
),
761 MG_ED( PROP_HoriOrientRelation
, XML_NAMESPACE_STYLE
, XML_HORIZONTAL_REL
, XML_TYPE_TEXT_HORIZONTAL_REL
, CTF_HORIZONTALREL
),
762 MG_ED( PROP_HoriOrientRelation
, XML_NAMESPACE_STYLE
, XML_HORIZONTAL_REL
, XML_TYPE_TEXT_HORIZONTAL_REL_FRAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_HORIZONTALREL_FRAME
),
766 // DO NOT REORDER these!
767 MG_ED( PROP_BackColorRGB
, XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_COLORTRANSPARENT
|MID_FLAG_MULTI_PROPERTY
, 0 ),
768 MG_ED( PROP_BackTransparent
, XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_ISTRANSPARENT
|MID_FLAG_MERGE_ATTRIBUTE
|MID_FLAG_MULTI_PROPERTY
, CTF_BACKGROUND_TRANSPARENT
),
769 MG_ED( PROP_BackColorTransparency
, XML_NAMESPACE_STYLE
, XML_BACKGROUND_TRANSPARENCY
, XML_TYPE_PERCENT8
, CTF_BACKGROUND_TRANSPARENCY
),
771 MG_E( PROP_BackGraphicTransparency
, XML_NAMESPACE_STYLE
, XML_BACKGROUND_IMAGE_TRANSPARENCY
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_PERCENT8
, CTF_BACKGROUND_TRANSPARENCY
),
772 MG_E( PROP_BackGraphicLocation
, XML_NAMESPACE_STYLE
, XML_POSITION
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_BUILDIN_CMP_ONLY
, CTF_BACKGROUND_POS
),
773 MG_E( PROP_BackGraphicFilter
, XML_NAMESPACE_STYLE
, XML_FILTER_NAME
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_STRING
, CTF_BACKGROUND_FILTER
),
774 MG_E( PROP_BackGraphic
, XML_NAMESPACE_STYLE
, XML_BACKGROUND_IMAGE
, MID_FLAG_ELEMENT_ITEM
|XML_TYPE_GRAPHIC
, CTF_BACKGROUND_URL
),
777 GMAP( PROP_FillStyle
, XML_NAMESPACE_DRAW
, XML_FILL
, XML_SW_TYPE_FILLSTYLE
, 0 ),
778 GMAP( PROP_FillColor
, XML_NAMESPACE_DRAW
, XML_FILL_COLOR
, XML_TYPE_COLOR
, 0 ),
779 GMAP( PROP_FillColor2
, XML_NAMESPACE_DRAW
, XML_SECONDARY_FILL_COLOR
, XML_TYPE_COLOR
, 0 ),
780 GMAP( PROP_FillGradientName
, XML_NAMESPACE_DRAW
, XML_FILL_GRADIENT_NAME
, XML_TYPE_STYLENAME
|MID_FLAG_NO_PROPERTY_IMPORT
, CTF_FILLGRADIENTNAME
),
781 GMAP( PROP_FillGradientStepCount
, XML_NAMESPACE_DRAW
, XML_GRADIENT_STEP_COUNT
, XML_TYPE_NUMBER16
, 0 ),
782 GMAP( PROP_FillHatchName
, XML_NAMESPACE_DRAW
, XML_FILL_HATCH_NAME
, XML_TYPE_STYLENAME
|MID_FLAG_NO_PROPERTY_IMPORT
, CTF_FILLHATCHNAME
),
783 GMAP( PROP_FillBackground
, XML_NAMESPACE_DRAW
, XML_FILL_HATCH_SOLID
, XML_TYPE_BOOL
, 0 ),
784 GMAP( PROP_FillBitmapName
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_NAME
, XML_TYPE_STYLENAME
|MID_FLAG_NO_PROPERTY_IMPORT
, CTF_FILLBITMAPNAME
),
785 GMAP( PROP_FillTransparence
, XML_NAMESPACE_DRAW
, XML_OPACITY
, XML_TYPE_NEG_PERCENT16
|MID_FLAG_MULTI_PROPERTY
, 0 ), // exists in SW, too
786 GMAP( PROP_FillTransparenceGradientName
, XML_NAMESPACE_DRAW
, XML_OPACITY_NAME
, XML_TYPE_STYLENAME
|MID_FLAG_NO_PROPERTY_IMPORT
, CTF_FILLTRANSNAME
),
787 GMAP( PROP_FillBitmapSizeX
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_WIDTH
, XML_SW_TYPE_FILLBITMAPSIZE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
788 GMAP( PROP_FillBitmapLogicalSize
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_WIDTH
, XML_SW_TYPE_LOGICAL_SIZE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
789 GMAP( PROP_FillBitmapSizeY
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_HEIGHT
, XML_SW_TYPE_FILLBITMAPSIZE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
790 GMAP( PROP_FillBitmapLogicalSize
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_HEIGHT
, XML_SW_TYPE_LOGICAL_SIZE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
791 GMAP( PROP_FillBitmapMode
, XML_NAMESPACE_STYLE
, XML_REPEAT
, XML_SW_TYPE_BITMAP_MODE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
792 GMAP( PROP_FillBitmapPositionOffsetX
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_REF_POINT_X
, XML_TYPE_PERCENT
, 0 ),
793 GMAP( PROP_FillBitmapPositionOffsetY
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_REF_POINT_Y
, XML_TYPE_PERCENT
, 0 ),
794 GMAP( PROP_FillBitmapRectanglePoint
, XML_NAMESPACE_DRAW
, XML_FILL_IMAGE_REF_POINT
, XML_SW_TYPE_BITMAP_REFPOINT
, 0 ),
795 GMAP( PROP_FillBitmapOffsetX
, XML_NAMESPACE_DRAW
, XML_TILE_REPEAT_OFFSET
, XML_SW_TYPE_BITMAPREPOFFSETX
|MID_FLAG_MULTI_PROPERTY
, CTF_REPEAT_OFFSET_X
),
796 GMAP( PROP_FillBitmapOffsetY
, XML_NAMESPACE_DRAW
, XML_TILE_REPEAT_OFFSET
, XML_SW_TYPE_BITMAPREPOFFSETY
|MID_FLAG_MULTI_PROPERTY
, CTF_REPEAT_OFFSET_Y
),
799 MG_ED( PROP_LeftBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH
, XML_TYPE_BORDER_WIDTH
, CTF_ALLBORDERWIDTH
),
800 MG_ED( PROP_LeftBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_LEFT
, XML_TYPE_BORDER_WIDTH
, CTF_LEFTBORDERWIDTH
),
801 MG_ED( PROP_RightBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_RIGHT
, XML_TYPE_BORDER_WIDTH
, CTF_RIGHTBORDERWIDTH
),
802 MG_ED( PROP_TopBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_TOP
, XML_TYPE_BORDER_WIDTH
, CTF_TOPBORDERWIDTH
),
803 MG_ED( PROP_BottomBorder
, XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_BOTTOM
, XML_TYPE_BORDER_WIDTH
, CTF_BOTTOMBORDERWIDTH
),
805 MG_ED( PROP_LeftBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING
, XML_TYPE_MEASURE
, CTF_ALLBORDERDISTANCE
), // need special import filtering
806 MG_ED( PROP_LeftBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_LEFT
, XML_TYPE_MEASURE
, CTF_LEFTBORDERDISTANCE
),
807 MG_ED( PROP_RightBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_RIGHT
, XML_TYPE_MEASURE
, CTF_RIGHTBORDERDISTANCE
),
808 MG_ED( PROP_TopBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_TOP
, XML_TYPE_MEASURE
, CTF_TOPBORDERDISTANCE
),
809 MG_ED( PROP_BottomBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_BOTTOM
, XML_TYPE_MEASURE
, CTF_BOTTOMBORDERDISTANCE
),
811 // There is an additional property for controls!
812 MG_ED( PROP_LeftBorder
, XML_NAMESPACE_FO
, XML_BORDER
, XML_TYPE_BORDER
|MID_FLAG_MULTI_PROPERTY
, CTF_ALLBORDER
),
813 MG_ED( PROP_LeftBorder
, XML_NAMESPACE_FO
, XML_BORDER_LEFT
, XML_TYPE_BORDER
, CTF_LEFTBORDER
),
814 MG_ED( PROP_RightBorder
, XML_NAMESPACE_FO
, XML_BORDER_RIGHT
, XML_TYPE_BORDER
, CTF_RIGHTBORDER
),
815 MG_ED( PROP_TopBorder
, XML_NAMESPACE_FO
, XML_BORDER_TOP
, XML_TYPE_BORDER
, CTF_TOPBORDER
),
816 MG_ED( PROP_BottomBorder
, XML_NAMESPACE_FO
, XML_BORDER_BOTTOM
, XML_TYPE_BORDER
, CTF_BOTTOMBORDER
),
818 MG_E( PROP_ShadowFormat
, XML_NAMESPACE_STYLE
, XML_SHADOW
, XML_TYPE_TEXT_SHADOW
, 0 ),
819 MG_E( PROP_ShadowTransparence
, XML_NAMESPACE_DRAW
, XML_SHADOW_OPACITY
, XML_TYPE_NEG_PERCENT
, 0 ),
823 MG_E( PROP_TextColumns
, XML_NAMESPACE_STYLE
, XML_COLUMNS
, MID_FLAG_ELEMENT_ITEM
|XML_TYPE_TEXT_COLUMNS
, CTF_TEXTCOLUMNS
),
827 // not required (exported as draw:a element)
828 // RES_EDIT_IN_READONLY
829 MG_ED( PROP_EditInReadonly
, XML_NAMESPACE_STYLE
, XML_EDITABLE
, XML_TYPE_BOOL
, 0 ),
833 // not required (exported at text:text-box element)
842 // RES_UNKNOWNATR_CONTAINER
843 // M_E_SE( TEXT, xmlns, RES_UNKNOWNATR_CONTAINER, 0 ),
844 // RES_GRFATR_MIRRORGRF (vertical MUST be processed after horizontal!)
845 MG_E( PROP_HoriMirroredOnEvenPages
, XML_NAMESPACE_STYLE
, XML_MIRROR
, XML_TYPE_TEXT_MIRROR_HORIZONTAL_LEFT
|MID_FLAG_MERGE_ATTRIBUTE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
846 MG_E( PROP_HoriMirroredOnOddPages
, XML_NAMESPACE_STYLE
, XML_MIRROR
, XML_TYPE_TEXT_MIRROR_HORIZONTAL_RIGHT
|MID_FLAG_MERGE_ATTRIBUTE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
847 MG_E( PROP_VertMirrored
, XML_NAMESPACE_STYLE
, XML_MIRROR
, XML_TYPE_TEXT_MIRROR_VERTICAL
|MID_FLAG_MERGE_ATTRIBUTE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
848 // RES_GRFATR_CROPGRF
849 MG_EV( PROP_GraphicCrop
, XML_NAMESPACE_FO
, XML_CLIP
, XML_TYPE_TEXT_CLIP
, CTF_TEXT_CLIP
, SvtSaveOptions::ODFSVER_012
),
850 MG_E( PROP_GraphicCrop
, XML_NAMESPACE_FO
, XML_CLIP
, XML_TYPE_TEXT_CLIP11
, CTF_TEXT_CLIP11
),
851 // RES_GRFATR_ROTATION
852 // not required (exported as svg:transform attribute)
853 // RES_GRFATR_LUMINANCE
854 MG_E( PROP_AdjustLuminance
, XML_NAMESPACE_DRAW
, XML_LUMINANCE
, XML_TYPE_PERCENT16
, 0 ), // signed?
855 // RES_GRFATR_CONTRAST
856 MG_E( PROP_AdjustContrast
, XML_NAMESPACE_DRAW
, XML_CONTRAST
, XML_TYPE_PERCENT16
, 0 ), // signed?
857 // RES_GRFATR_CHANNELR
858 MG_E( PROP_AdjustRed
, XML_NAMESPACE_DRAW
, XML_RED
, XML_TYPE_PERCENT16
, 0 ), // signed?
859 // RES_GRFATR_CHANNELG
860 MG_E( PROP_AdjustGreen
, XML_NAMESPACE_DRAW
, XML_GREEN
, XML_TYPE_PERCENT16
, 0 ), // signed?
861 // RES_GRFATR_CHANNELB
862 MG_E( PROP_AdjustBlue
, XML_NAMESPACE_DRAW
, XML_BLUE
, XML_TYPE_PERCENT16
, 0 ), // signed?
864 MG_E( PROP_Gamma
, XML_NAMESPACE_DRAW
, XML_GAMMA
, XML_TYPE_DOUBLE_PERCENT
, 0 ), // signed?
866 MG_E( PROP_GraphicIsInverted
, XML_NAMESPACE_DRAW
, XML_COLOR_INVERSION
, XML_TYPE_BOOL
, 0 ),
867 // RES_GRFATR_TRANSPARENCY
868 MG_E( PROP_Transparency
, XML_NAMESPACE_DRAW
, XML_IMAGE_OPACITY
, XML_TYPE_NEG_PERCENT16
|MID_FLAG_MULTI_PROPERTY
, 0 ), // #i25616#
869 // RES_GRFATR_DRAWMODE
870 MG_E( PROP_GraphicColorMode
, XML_NAMESPACE_DRAW
, XML_COLOR_MODE
, XML_TYPE_COLOR_MODE
, 0 ),
871 MG_E( PROP_WritingMode
, XML_NAMESPACE_STYLE
, XML_WRITING_MODE
, XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT
, 0 ),
872 MAP_EXT_I( PROP_WritingMode
, XML_NAMESPACE_LO_EXT
, XML_WRITING_MODE
, XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT
|XML_TYPE_PROP_GRAPHIC
, 0),
873 // RES_FOLLOW_TEXT_FLOW - DVO #i18732#
874 MG_E( PROP_IsFollowingTextFlow
, XML_NAMESPACE_DRAW
, XML_FLOW_WITH_TEXT
, XML_TYPE_BOOL
|MID_FLAG_SPECIAL_ITEM_EXPORT
, CTF_OLD_FLOW_WITH_TEXT
),
875 MG_E( PROP_IsFollowingTextFlow
, XML_NAMESPACE_STYLE
, XML_FLOW_WITH_TEXT
, XML_TYPE_BOOL
, 0 ),
876 // #i28701# - RES_WRAP_INFLUENCE_ON_OBJPOS
877 MG_E( PROP_WrapInfluenceOnPosition
, XML_NAMESPACE_DRAW
, XML_WRAP_INFLUENCE_ON_POSITION
, XML_TYPE_WRAP_INFLUENCE_ON_POSITION
, 0 ),
878 MAP_EXT( PROP_AllowOverlap
, XML_NAMESPACE_LO_EXT
, XML_ALLOW_OVERLAP
, XML_TYPE_BOOL
|XML_TYPE_PROP_GRAPHIC
, 0 ),
879 MAP_EXT( PROP_WrapTextAtFlyStart
, XML_NAMESPACE_LO_EXT
, XML_WRAP_TEXT_AT_FRAME_START
, XML_TYPE_BOOL
|XML_TYPE_PROP_GRAPHIC
, 0 ),
881 // special entries for floating frames
882 MG_E( PROP_
, XML_NAMESPACE_DRAW
, XML_FRAME_DISPLAY_SCROLLBAR
, XML_TYPE_BOOL
|MID_FLAG_NO_PROPERTY
|MID_FLAG_MULTI_PROPERTY
, CTF_FRAME_DISPLAY_SCROLLBAR
),
883 MG_E( PROP_
, XML_NAMESPACE_DRAW
, XML_FRAME_DISPLAY_BORDER
, XML_TYPE_BOOL
|MID_FLAG_NO_PROPERTY
|MID_FLAG_MULTI_PROPERTY
, CTF_FRAME_DISPLAY_BORDER
),
884 MG_E( PROP_
, XML_NAMESPACE_DRAW
, XML_FRAME_MARGIN_HORIZONTAL
, XML_TYPE_MEASURE_PX
|MID_FLAG_NO_PROPERTY
|MID_FLAG_MULTI_PROPERTY
, CTF_FRAME_MARGIN_HORI
),
885 MG_E( PROP_
, XML_NAMESPACE_DRAW
, XML_FRAME_MARGIN_VERTICAL
, XML_TYPE_MEASURE_PX
|MID_FLAG_NO_PROPERTY
|MID_FLAG_MULTI_PROPERTY
, CTF_FRAME_MARGIN_VERT
),
886 MG_E( PROP_
, XML_NAMESPACE_DRAW
, XML_VISIBLE_AREA_LEFT
, XML_TYPE_MEASURE
|MID_FLAG_NO_PROPERTY
|MID_FLAG_MULTI_PROPERTY
, CTF_OLE_VIS_AREA_LEFT
),
887 MG_E( PROP_
, XML_NAMESPACE_DRAW
, XML_VISIBLE_AREA_TOP
, XML_TYPE_MEASURE
|MID_FLAG_NO_PROPERTY
|MID_FLAG_MULTI_PROPERTY
, CTF_OLE_VIS_AREA_TOP
),
888 MG_E( PROP_
, XML_NAMESPACE_DRAW
, XML_VISIBLE_AREA_WIDTH
, XML_TYPE_MEASURE
|MID_FLAG_NO_PROPERTY
|MID_FLAG_MULTI_PROPERTY
, CTF_OLE_VIS_AREA_WIDTH
),
889 MG_E( PROP_
, XML_NAMESPACE_DRAW
, XML_VISIBLE_AREA_HEIGHT
, XML_TYPE_MEASURE
|MID_FLAG_NO_PROPERTY
|MID_FLAG_MULTI_PROPERTY
, CTF_OLE_VIS_AREA_HEIGHT
),
890 MG_E( PROP_
, XML_NAMESPACE_DRAW
, XML_DRAW_ASPECT
, XML_TYPE_TEXT_DRAW_ASPECT
|MID_FLAG_NO_PROPERTY
|MID_FLAG_MULTI_PROPERTY
, CTF_OLE_DRAW_ASPECT
),
892 MG_E( PROP_UserDefinedAttributes
, XML_NAMESPACE_TEXT
, XML_XMLNS
, XML_TYPE_ATTRIBUTE_CONTAINER
| MID_FLAG_SPECIAL_ITEM
, 0 ),
893 MAP_EXT( PROP_RelativeWidthRelation
, XML_NAMESPACE_LO_EXT
, XML_REL_WIDTH_REL
, XML_TYPE_TEXT_HORIZONTAL_REL
|XML_TYPE_PROP_GRAPHIC
, CTF_RELWIDTHREL
),
894 MAP_EXT( PROP_RelativeHeightRelation
, XML_NAMESPACE_LO_EXT
, XML_REL_HEIGHT_REL
, XML_TYPE_TEXT_VERTICAL_REL
|XML_TYPE_PROP_GRAPHIC
, CTF_RELHEIGHTREL
),
895 MG_E(PROP_TextVerticalAdjust
, XML_NAMESPACE_DRAW
, XML_TEXTAREA_VERTICAL_ALIGN
, XML_TYPE_VERTICAL_ALIGN
, 0),
896 MAP_EXT(PROP_Decorative
, XML_NAMESPACE_LO_EXT
, XML_DECORATIVE
, XML_TYPE_BOOL
|XML_TYPE_PROP_GRAPHIC
, 0),
901 XMLPropertyMapEntry
constexpr aXMLShapePropMap
[] =
904 MG_E( PROP_LeftMargin
, XML_NAMESPACE_FO
, XML_MARGIN_LEFT
, XML_TYPE_MEASURE
, 0),
905 MG_E( PROP_RightMargin
, XML_NAMESPACE_FO
, XML_MARGIN_RIGHT
, XML_TYPE_MEASURE
, 0 ),
907 MG_E( PROP_TopMargin
, XML_NAMESPACE_FO
, XML_MARGIN_TOP
, XML_TYPE_MEASURE
, 0 ),
908 MG_E( PROP_BottomMargin
, XML_NAMESPACE_FO
, XML_MARGIN_BOTTOM
, XML_TYPE_MEASURE
, 0 ),
910 MG_ED( PROP_Opaque
, XML_NAMESPACE_STYLE
, XML_RUN_THROUGH
, XML_TYPE_TEXT_OPAQUE
, 0 ),
912 MG_E( PROP_TextWrap
, XML_NAMESPACE_STYLE
, XML_WRAP
, XML_TYPE_TEXT_WRAP
, CTF_WRAP
),
913 MG_E( PROP_SurroundAnchorOnly
, XML_NAMESPACE_STYLE
, XML_NUMBER_WRAPPED_PARAGRAPHS
, XML_TYPE_TEXT_PARAGRAPH_ONLY
, CTF_WRAP_PARAGRAPH_ONLY
),
914 MG_E( PROP_SurroundContour
, XML_NAMESPACE_STYLE
, XML_WRAP_CONTOUR
, XML_TYPE_BOOL
, CTF_WRAP_CONTOUR
),
915 MG_E( PROP_ContourOutside
, XML_NAMESPACE_STYLE
, XML_WRAP_CONTOUR_MODE
, XML_TYPE_TEXT_WRAP_OUTSIDE
, CTF_WRAP_CONTOUR_MODE
),
916 // Use own CTF ids for positioning attributes (#i28749#)
918 MG_E( PROP_VertOrient
, XML_NAMESPACE_STYLE
, XML_VERTICAL_POS
, XML_TYPE_TEXT_VERTICAL_POS
, CTF_SHAPE_VERTICALPOS
),
919 // Add property for at-character anchored shapes (#i26791#)
920 MG_E( PROP_VertOrient
, XML_NAMESPACE_STYLE
, XML_VERTICAL_POS
, XML_TYPE_TEXT_VERTICAL_POS_AT_CHAR
, CTF_SHAPE_VERTICALPOS_ATCHAR
),
921 MG_E( PROP_VertOrient
, XML_NAMESPACE_STYLE
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL_AS_CHAR
|MID_FLAG_MULTI_PROPERTY
, CTF_VERTICALREL_ASCHAR
),
922 MG_E( PROP_VertOrientRelation
, XML_NAMESPACE_STYLE
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL
, CTF_SHAPE_VERTICALREL
),
923 MG_E( PROP_VertOrientRelation
, XML_NAMESPACE_STYLE
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL_PAGE
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_SHAPE_VERTICALREL_PAGE
),
924 MG_E( PROP_VertOrientRelation
, XML_NAMESPACE_STYLE
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL_FRAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_SHAPE_VERTICALREL_FRAME
),
925 MAP_EXT_I( PROP_VertOrientRelation
, XML_NAMESPACE_LO_EXT
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL
|XML_TYPE_PROP_GRAPHIC
, CTF_VERTICALREL
),
926 MAP_EXT_I( PROP_VertOrientRelation
, XML_NAMESPACE_LO_EXT
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL_PAGE
|MID_FLAG_SPECIAL_ITEM_IMPORT
|XML_TYPE_PROP_GRAPHIC
, CTF_VERTICALREL_PAGE
),
927 MAP_EXT_I( PROP_VertOrientRelation
, XML_NAMESPACE_LO_EXT
, XML_VERTICAL_REL
, XML_TYPE_TEXT_VERTICAL_REL_FRAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
|XML_TYPE_PROP_GRAPHIC
, CTF_VERTICALREL_FRAME
),
929 MG_E( PROP_HoriOrient
, XML_NAMESPACE_STYLE
, XML_HORIZONTAL_POS
, XML_TYPE_TEXT_HORIZONTAL_POS
|MID_FLAG_MULTI_PROPERTY
, CTF_SHAPE_HORIZONTALPOS
),
930 MG_E( PROP_PageToggle
, XML_NAMESPACE_STYLE
, XML_HORIZONTAL_POS
, XML_TYPE_TEXT_HORIZONTAL_MIRROR
, CTF_SHAPE_HORIZONTALMIRROR
),
931 MG_E( PROP_HoriOrient
, XML_NAMESPACE_STYLE
, XML_HORIZONTAL_POS
, XML_TYPE_TEXT_HORIZONTAL_POS_MIRRORED
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_SHAPE_HORIZONTALPOS_MIRRORED
),
932 MG_E( PROP_HoriOrientRelation
, XML_NAMESPACE_STYLE
, XML_HORIZONTAL_REL
, XML_TYPE_TEXT_HORIZONTAL_REL
, CTF_SHAPE_HORIZONTALREL
),
933 MG_E( PROP_HoriOrientRelation
, XML_NAMESPACE_STYLE
, XML_HORIZONTAL_REL
, XML_TYPE_TEXT_HORIZONTAL_REL_FRAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_SHAPE_HORIZONTALREL_FRAME
),
934 // RES_WRAP_INFLUENCE_ON_OBJPOS (#i28701#)
935 MG_ED( PROP_WrapInfluenceOnPosition
, XML_NAMESPACE_DRAW
, XML_WRAP_INFLUENCE_ON_POSITION
, XML_TYPE_WRAP_INFLUENCE_ON_POSITION
, 0 ),
936 MAP_EXT( PROP_AllowOverlap
, XML_NAMESPACE_LO_EXT
, XML_ALLOW_OVERLAP
, XML_TYPE_BOOL
|XML_TYPE_PROP_GRAPHIC
, 0 ),
937 // UserDefinedAttributes is already contained in the map this one is
940 // RES_FOLLOW_TEXT_FLOW (#i26791#)
941 MG_ED( PROP_IsFollowingTextFlow
, XML_NAMESPACE_STYLE
, XML_FLOW_WITH_TEXT
, XML_TYPE_BOOL
, 0 ),
944 MAP_EXT( PROP_RelativeWidthRelation
, XML_NAMESPACE_LO_EXT
, XML_REL_WIDTH_REL
, XML_TYPE_TEXT_HORIZONTAL_REL
|XML_TYPE_PROP_GRAPHIC
, CTF_RELWIDTHREL
),
945 MAP_EXT( PROP_RelativeHeightRelation
, XML_NAMESPACE_LO_EXT
, XML_REL_HEIGHT_REL
, XML_TYPE_TEXT_VERTICAL_REL
|XML_TYPE_PROP_GRAPHIC
, CTF_RELHEIGHTREL
),
950 XMLPropertyMapEntry
constexpr aXMLSectionPropMap
[] =
953 MS_E( PROP_TextColumns
, XML_NAMESPACE_STYLE
, XML_COLUMNS
, MID_FLAG_ELEMENT_ITEM
|XML_TYPE_TEXT_COLUMNS
, CTF_TEXTCOLUMNS
),
956 // DO NOT REORDER these!
957 MS_E( PROP_BackColor
, XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_COLORTRANSPARENT
|MID_FLAG_MULTI_PROPERTY
, 0 ),
958 MS_E( PROP_BackTransparent
, XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_ISTRANSPARENT
|MID_FLAG_MERGE_ATTRIBUTE
, 0 ),
959 MS_E( PROP_BackGraphicLocation
, XML_NAMESPACE_STYLE
, XML_POSITION
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_BUILDIN_CMP_ONLY
, CTF_BACKGROUND_POS
),
960 MS_E( PROP_BackGraphicFilter
, XML_NAMESPACE_STYLE
, XML_FILTER_NAME
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_STRING
, CTF_BACKGROUND_FILTER
),
961 MS_E( PROP_BackGraphic
, XML_NAMESPACE_STYLE
, XML_BACKGROUND_IMAGE
, MID_FLAG_ELEMENT_ITEM
|XML_TYPE_GRAPHIC
, CTF_BACKGROUND_URL
),
963 // move protect-flag into section element
964 // M_E( "IsProtected", STYLE, PROTECT, XML_TYPE_BOOL, 0 ),
966 MS_E( PROP_DontBalanceTextColumns
, XML_NAMESPACE_TEXT
, XML_DONT_BALANCE_TEXT_COLUMNS
, XML_TYPE_BOOL
, 0 ),
968 MS_E( PROP_WritingMode
, XML_NAMESPACE_STYLE
, XML_WRITING_MODE
, XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT
, 0 ),
970 MS_E( PROP_SectionLeftMargin
, XML_NAMESPACE_FO
, XML_MARGIN_LEFT
, XML_TYPE_MEASURE
, 0 ),
971 MS_E( PROP_SectionRightMargin
, XML_NAMESPACE_FO
, XML_MARGIN_RIGHT
, XML_TYPE_MEASURE
, 0 ),
973 // section footnote settings
974 MS_E( PROP_FootnoteIsOwnNumbering
, XML_NAMESPACE_TEXT
, XML__EMPTY
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_BOOL
, CTF_SECTION_FOOTNOTE_NUM_OWN
),
975 MS_E( PROP_FootnoteIsRestartNumbering
, XML_NAMESPACE_TEXT
, XML__EMPTY
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_BOOL
, CTF_SECTION_FOOTNOTE_NUM_RESTART
),
976 MS_E( PROP_FootnoteRestartNumberingAt
, XML_NAMESPACE_TEXT
, XML__EMPTY
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_NUMBER16
, CTF_SECTION_FOOTNOTE_NUM_RESTART_AT
),
977 MS_E( PROP_FootnoteNumberingType
, XML_NAMESPACE_TEXT
, XML__EMPTY
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_NUMBER16
, CTF_SECTION_FOOTNOTE_NUM_TYPE
),
978 MS_E( PROP_FootnoteNumberingPrefix
, XML_NAMESPACE_TEXT
, XML__EMPTY
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_STRING
, CTF_SECTION_FOOTNOTE_NUM_PREFIX
),
979 MS_E( PROP_FootnoteNumberingSuffix
, XML_NAMESPACE_TEXT
, XML__EMPTY
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_STRING
, CTF_SECTION_FOOTNOTE_NUM_SUFFIX
),
980 MS_E( PROP_FootnoteIsCollectAtTextEnd
, XML_NAMESPACE_TEXT
, XML_NOTES_CONFIGURATION
, MID_FLAG_ELEMENT_ITEM
|XML_TYPE_BOOL
, CTF_SECTION_FOOTNOTE_END
),
982 // section footnote settings
983 MS_E( PROP_EndnoteIsOwnNumbering
, XML_NAMESPACE_TEXT
, XML__EMPTY
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_BOOL
, CTF_SECTION_ENDNOTE_NUM_OWN
),
984 MS_E( PROP_EndnoteIsRestartNumbering
, XML_NAMESPACE_TEXT
, XML__EMPTY
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_BOOL
, CTF_SECTION_ENDNOTE_NUM_RESTART
),
985 MS_E( PROP_EndnoteRestartNumberingAt
, XML_NAMESPACE_TEXT
, XML__EMPTY
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_NUMBER16
, CTF_SECTION_ENDNOTE_NUM_RESTART_AT
),
986 MS_E( PROP_EndnoteNumberingType
, XML_NAMESPACE_TEXT
, XML__EMPTY
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_NUMBER16
, CTF_SECTION_ENDNOTE_NUM_TYPE
),
987 MS_E( PROP_EndnoteNumberingPrefix
, XML_NAMESPACE_TEXT
, XML__EMPTY
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_STRING
, CTF_SECTION_ENDNOTE_NUM_PREFIX
),
988 MS_E( PROP_EndnoteNumberingSuffix
, XML_NAMESPACE_TEXT
, XML__EMPTY
, MID_FLAG_SPECIAL_ITEM
|XML_TYPE_STRING
, CTF_SECTION_ENDNOTE_NUM_SUFFIX
),
989 MS_E( PROP_EndnoteIsCollectAtTextEnd
, XML_NAMESPACE_TEXT
, XML_NOTES_CONFIGURATION
, MID_FLAG_ELEMENT_ITEM
|XML_TYPE_BOOL
, CTF_SECTION_ENDNOTE_END
),
990 MS_E( PROP_UserDefinedAttributes
, XML_NAMESPACE_TEXT
, XML_XMLNS
, XML_TYPE_ATTRIBUTE_CONTAINER
| MID_FLAG_SPECIAL_ITEM
, 0 ),
991 // RES_EDIT_IN_READONLY
992 MS_E( PROP_EditInReadonly
, XML_NAMESPACE_STYLE
, XML_EDITABLE
, XML_TYPE_BOOL
, 0 ),
996 XMLPropertyMapEntry
constexpr aXMLRubyPropMap
[] =
998 MR_E( PROP_RubyAdjust
, XML_NAMESPACE_STYLE
, XML_RUBY_ALIGN
, XML_TYPE_TEXT_RUBY_ADJUST
, 0 ),
999 MR_E( PROP_RubyIsAbove
, XML_NAMESPACE_STYLE
, XML_RUBY_POSITION
, XML_TYPE_TEXT_RUBY_IS_ABOVE
, 0 ),
1000 MR_EV( PROP_RubyPosition
, XML_NAMESPACE_LO_EXT
, XML_RUBY_POSITION
, XML_TYPE_TEXT_RUBY_POSITION
, 0, SvtSaveOptions::ODFSVER_FUTURE_EXTENDED
),
1005 XMLPropertyMapEntry
constexpr aXMLTableDefaultsMap
[] =
1007 // RES_COLLAPSING_BORDERS: only occurs in tables, but we need to
1008 // read/write the default for this item
1009 M_ED_( PROP_CollapsingBorders
, XML_NAMESPACE_TABLE
, XML_BORDER_MODEL
, XML_TYPE_PROP_TABLE
| XML_TYPE_BORDER_MODEL
| MID_FLAG_NO_PROPERTY_IMPORT
, CTF_BORDER_MODEL
),
1014 XMLPropertyMapEntry
constexpr aXMLTableRowDefaultsMap
[] =
1016 // RES_ROW_SPLIT: only occurs in table rows, but we need to
1017 // read/write the default for this item
1018 M_ED_( PROP_IsSplitAllowed
, XML_NAMESPACE_FO
, XML_KEEP_TOGETHER
, XML_TYPE_PROP_TABLE_ROW
| XML_TYPE_TEXT_NKEEP
| MID_FLAG_NO_PROPERTY_IMPORT
, CTF_KEEP_TOGETHER
),
1023 XMLPropertyMapEntry
constexpr aXMLCellPropMap
[] =
1025 MC_E( PROP_BackColor
, XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_COLORTRANSPARENT
|MID_FLAG_MULTI_PROPERTY
, 0 ),
1026 MC_E( PROP_LeftBorder
, XML_NAMESPACE_FO
, XML_BORDER_LEFT
, XML_TYPE_BORDER
, 0 ),
1027 MC_E( PROP_RightBorder
, XML_NAMESPACE_FO
, XML_BORDER_RIGHT
, XML_TYPE_BORDER
, 0 ),
1028 MC_E( PROP_TopBorder
, XML_NAMESPACE_FO
, XML_BORDER_TOP
, XML_TYPE_BORDER
, 0 ),
1029 MC_E( PROP_BottomBorder
, XML_NAMESPACE_FO
, XML_BORDER_BOTTOM
, XML_TYPE_BORDER
, 0 ),
1030 MC_E( PROP_BorderDistance
, XML_NAMESPACE_FO
, XML_PADDING
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
1031 MC_E( PROP_LeftBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_LEFT
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
1032 MC_E( PROP_RightBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_RIGHT
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
1033 MC_E( PROP_TopBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_TOP
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
1034 MC_E( PROP_BottomBorderDistance
, XML_NAMESPACE_FO
, XML_PADDING_BOTTOM
, XML_TYPE_MEASURE
|MID_FLAG_MULTI_PROPERTY
, 0 ),
1035 MC_E( PROP_VertOrient
, XML_NAMESPACE_STYLE
, XML_VERTICAL_ALIGN
, XML_TYPE_TEXT_VERTICAL_POS
, 0 ),
1036 MC_E( PROP_WritingMode
, XML_NAMESPACE_STYLE
, XML_WRITING_MODE
, XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT
, 0 ),
1037 MC_E( PROP_NumberFormat
, XML_NAMESPACE_STYLE
, XML_DATA_STYLE_NAME
, XML_TYPE_NUMBER
|MID_FLAG_SPECIAL_ITEM_EXPORT
, 0 ),
1038 // paragraph properties
1039 MP_E( PROP_ParaAdjust
, XML_NAMESPACE_FO
, XML_TEXT_ALIGN
, XML_TYPE_TEXT_ADJUST
, 0 ),
1041 MT_ED( PROP_CharColor
, XML_NAMESPACE_FO
, XML_COLOR
, XML_TYPE_COLORAUTO
|MID_FLAG_MERGE_PROPERTY
, 0 ),
1042 MT_ED( PROP_CharColor
, XML_NAMESPACE_STYLE
, XML_USE_WINDOW_FONT_COLOR
, XML_TYPE_ISAUTOCOLOR
|MID_FLAG_MERGE_PROPERTY
, 0 ),
1043 MAP_EXT( PROP_CharComplexColor
, XML_NAMESPACE_LO_EXT
, XML_CHAR_COMPLEX_COLOR
, XML_TYPE_COMPLEX_COLOR
|XML_TYPE_PROP_TEXT
|MID_FLAG_ELEMENT_ITEM
, CTF_COMPLEX_COLOR
),
1044 MT_E( PROP_CharShadowed
, XML_NAMESPACE_FO
, XML_TEXT_SHADOW
, XML_TYPE_TEXT_SHADOWED
, 0 ),
1045 MT_E( PROP_CharContoured
, XML_NAMESPACE_STYLE
, XML_TEXT_OUTLINE
, XML_TYPE_BOOL
, 0 ),
1046 MT_E( PROP_CharStrikeout
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_STYLE
, XML_TYPE_TEXT_CROSSEDOUT_STYLE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
1047 MT_E( PROP_CharStrikeout
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_TYPE
, XML_TYPE_TEXT_CROSSEDOUT_TYPE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
1048 MT_E( PROP_CharStrikeout
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_WIDTH
, XML_TYPE_TEXT_CROSSEDOUT_WIDTH
|MID_FLAG_MERGE_PROPERTY
, 0 ),
1049 MT_E( PROP_CharStrikeout
, XML_NAMESPACE_STYLE
, XML_TEXT_LINE_THROUGH_TEXT
, XML_TYPE_TEXT_CROSSEDOUT_TEXT
|MID_FLAG_MERGE_PROPERTY
, 0 ),
1050 MT_E( PROP_CharUnderline
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_STYLE
, XML_TYPE_TEXT_UNDERLINE_STYLE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
1051 MT_E( PROP_CharUnderline
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_TYPE
, XML_TYPE_TEXT_UNDERLINE_TYPE
|MID_FLAG_MERGE_PROPERTY
, 0 ),
1052 MT_E( PROP_CharUnderline
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_WIDTH
, XML_TYPE_TEXT_UNDERLINE_WIDTH
|MID_FLAG_MERGE_PROPERTY
, 0 ),
1053 MT_E( PROP_CharUnderlineColor
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_COLOR
, XML_TYPE_TEXT_UNDERLINE_COLOR
|MID_FLAG_MULTI_PROPERTY
, 0 ),
1054 MT_E( PROP_CharUnderlineHasColor
, XML_NAMESPACE_STYLE
, XML_TEXT_UNDERLINE_COLOR
, XML_TYPE_TEXT_UNDERLINE_HASCOLOR
|MID_FLAG_MERGE_ATTRIBUTE
, 0 ),
1056 MT_ED( PROP_CharHeight
, XML_NAMESPACE_FO
, XML_FONT_SIZE
, XML_TYPE_CHAR_HEIGHT
|MID_FLAG_MULTI_PROPERTY
, 0 ),
1057 MT_E( PROP_CharWeight
, XML_NAMESPACE_FO
, XML_FONT_WEIGHT
, XML_TYPE_TEXT_WEIGHT
, 0 ),
1058 MT_E( PROP_CharPosture
, XML_NAMESPACE_FO
, XML_FONT_STYLE
, XML_TYPE_TEXT_POSTURE
, 0 ),
1060 MT_ED( PROP_CharFontName
, XML_NAMESPACE_STYLE
, XML_FONT_NAME
, XML_TYPE_STRING
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTNAME
),
1061 MT_ED( PROP_CharFontName
, XML_NAMESPACE_FO
, XML_FONT_FAMILY
, XML_TYPE_TEXT_FONTFAMILYNAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTFAMILYNAME
),
1062 MT_ED( PROP_CharFontStyleName
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_NAME
, XML_TYPE_STRING
, CTF_FONTSTYLENAME
),
1063 MT_ED( PROP_CharFontFamily
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_GENERIC
, XML_TYPE_TEXT_FONTFAMILY
, CTF_FONTFAMILY
),
1064 MT_ED( PROP_CharFontPitch
, XML_NAMESPACE_STYLE
, XML_FONT_PITCH
, XML_TYPE_TEXT_FONTPITCH
, CTF_FONTPITCH
),
1065 MT_ED( PROP_CharFontCharSet
, XML_NAMESPACE_STYLE
, XML_FONT_CHARSET
, XML_TYPE_TEXT_FONTENCODING
, CTF_FONTCHARSET
),
1067 MT_ED( PROP_CharHeightAsian
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_ASIAN
, XML_TYPE_CHAR_HEIGHT
|MID_FLAG_MULTI_PROPERTY
, 0 ),
1068 MT_E( PROP_CharWeightAsian
, XML_NAMESPACE_STYLE
, XML_FONT_WEIGHT_ASIAN
, XML_TYPE_TEXT_WEIGHT
, 0 ),
1069 MT_E( PROP_CharPostureAsian
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_ASIAN
, XML_TYPE_TEXT_POSTURE
, 0 ),
1070 // RES_CHRATR_CJK_FONT
1071 MT_ED( PROP_CharFontNameAsian
, XML_NAMESPACE_STYLE
, XML_FONT_NAME_ASIAN
, XML_TYPE_STRING
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTNAME_CJK
),
1072 MT_ED( PROP_CharFontNameAsian
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_ASIAN
, XML_TYPE_TEXT_FONTFAMILYNAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTFAMILYNAME_CJK
),
1073 MT_ED( PROP_CharFontStyleNameAsian
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_NAME_ASIAN
, XML_TYPE_STRING
, CTF_FONTSTYLENAME_CJK
),
1074 MT_ED( PROP_CharFontFamilyAsian
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_GENERIC_ASIAN
, XML_TYPE_TEXT_FONTFAMILY
, CTF_FONTFAMILY_CJK
),
1075 MT_ED( PROP_CharFontPitchAsian
, XML_NAMESPACE_STYLE
, XML_FONT_PITCH_ASIAN
, XML_TYPE_TEXT_FONTPITCH
, CTF_FONTPITCH_CJK
),
1076 MT_ED( PROP_CharFontCharSetAsian
, XML_NAMESPACE_STYLE
, XML_FONT_CHARSET_ASIAN
, XML_TYPE_TEXT_FONTENCODING
, CTF_FONTCHARSET_CJK
),
1078 MT_ED( PROP_CharHeightComplex
, XML_NAMESPACE_STYLE
, XML_FONT_SIZE_COMPLEX
, XML_TYPE_CHAR_HEIGHT
|MID_FLAG_MULTI_PROPERTY
, 0),
1079 MT_E( PROP_CharWeightComplex
, XML_NAMESPACE_STYLE
, XML_FONT_WEIGHT_COMPLEX
, XML_TYPE_TEXT_WEIGHT
, 0),
1080 MT_E( PROP_CharPostureComplex
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_COMPLEX
, XML_TYPE_TEXT_POSTURE
, 0),
1081 // RES_CHRATR_CTL_FONT
1082 MT_ED( PROP_CharFontNameComplex
, XML_NAMESPACE_STYLE
, XML_FONT_NAME_COMPLEX
, XML_TYPE_STRING
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTNAME_CTL
),
1083 MT_ED( PROP_CharFontNameComplex
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_COMPLEX
, XML_TYPE_TEXT_FONTFAMILYNAME
|MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_FONTFAMILYNAME_CTL
),
1084 MT_ED( PROP_CharFontStyleNameComplex
, XML_NAMESPACE_STYLE
, XML_FONT_STYLE_NAME_COMPLEX
, XML_TYPE_STRING
, CTF_FONTSTYLENAME_CTL
),
1085 MT_ED( PROP_CharFontFamilyComplex
, XML_NAMESPACE_STYLE
, XML_FONT_FAMILY_GENERIC_COMPLEX
, XML_TYPE_TEXT_FONTFAMILY
, CTF_FONTFAMILY_CTL
),
1086 MT_ED( PROP_CharFontPitchComplex
, XML_NAMESPACE_STYLE
, XML_FONT_PITCH_COMPLEX
, XML_TYPE_TEXT_FONTPITCH
, CTF_FONTPITCH_CTL
),
1087 MT_ED( PROP_CharFontCharSetComplex
, XML_NAMESPACE_STYLE
, XML_FONT_CHARSET_COMPLEX
, XML_TYPE_TEXT_FONTENCODING
, CTF_FONTCHARSET_CTL
),
1092 static XMLPropertyMapEntry
const *lcl_txtprmap_getMap( TextPropMap nType
)
1094 XMLPropertyMapEntry
const *pMap
= nullptr;
1097 case TextPropMap::TEXT
:
1098 pMap
= aXMLTextPropMap
;
1100 case TextPropMap::SHAPE_PARA
:
1101 // #i125045# use [21] instead of [1] for text props for Shapes, indices
1102 // [1..20] contain the DrawingLayer FillStyle attributes corresponding to
1103 // [XATTR_FILL_FIRST .. XATTR_FILL_LAST] and would be double since Shapes
1104 // already contain these (usually in aXMLSDProperties)
1105 pMap
= &(aXMLParaPropMap
[21]);
1106 assert( pMap
->meXMLName
== XML_MARGIN
&& " shape para map changed" );
1108 case TextPropMap::PARA
:
1109 pMap
= aXMLParaPropMap
;
1111 case TextPropMap::FRAME
:
1112 pMap
= aXMLFramePropMap
;
1114 case TextPropMap::AUTO_FRAME
:
1115 pMap
= &(aXMLFramePropMap
[13]);
1116 assert( pMap
->meXMLName
== XML_MARGIN
&& " frame map changed" );
1118 case TextPropMap::SHAPE
:
1119 pMap
= aXMLShapePropMap
;
1121 case TextPropMap::SECTION
:
1122 pMap
= aXMLSectionPropMap
;
1124 case TextPropMap::RUBY
:
1125 pMap
= aXMLRubyPropMap
;
1127 case TextPropMap::TEXT_ADDITIONAL_DEFAULTS
:
1128 pMap
= aXMLAdditionalTextDefaultsMap
;
1130 case TextPropMap::TABLE_DEFAULTS
:
1131 pMap
= aXMLTableDefaultsMap
;
1133 case TextPropMap::TABLE_ROW_DEFAULTS
:
1134 pMap
= aXMLTableRowDefaultsMap
;
1136 case TextPropMap::CELL
:
1137 pMap
= aXMLCellPropMap
;
1140 SAL_WARN_IF( !pMap
, "xmloff", "illegal map type" );
1144 const XMLPropertyMapEntry
* XMLTextPropertySetMapper::getPropertyMapForType( TextPropMap _nType
)
1146 return lcl_txtprmap_getMap( _nType
);
1149 XMLTextPropertySetMapper::XMLTextPropertySetMapper( TextPropMap nType
, bool bForExport
) :
1150 XMLPropertySetMapper( lcl_txtprmap_getMap( nType
),
1151 new XMLTextPropertyHandlerFactory
, bForExport
)
1155 XMLTextPropertySetMapper::~XMLTextPropertySetMapper()
1159 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */