163bba73cSAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
363bba73cSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
463bba73cSAndrew Rist * or more contributor license agreements. See the NOTICE file
563bba73cSAndrew Rist * distributed with this work for additional information
663bba73cSAndrew Rist * regarding copyright ownership. The ASF licenses this file
763bba73cSAndrew Rist * to you under the Apache License, Version 2.0 (the
863bba73cSAndrew Rist * "License"); you may not use this file except in compliance
963bba73cSAndrew Rist * with the License. You may obtain a copy of the License at
1063bba73cSAndrew Rist *
1163bba73cSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
1263bba73cSAndrew Rist *
1363bba73cSAndrew Rist * Unless required by applicable law or agreed to in writing,
1463bba73cSAndrew Rist * software distributed under the License is distributed on an
1563bba73cSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1663bba73cSAndrew Rist * KIND, either express or implied. See the License for the
1763bba73cSAndrew Rist * specific language governing permissions and limitations
1863bba73cSAndrew Rist * under the License.
1963bba73cSAndrew Rist *
2063bba73cSAndrew Rist *************************************************************/
2163bba73cSAndrew Rist
22cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
23cdf0e10cSrcweir #include "precompiled_xmloff.hxx"
24cdf0e10cSrcweir
25cdf0e10cSrcweir #include <xmloff/txtprmap.hxx>
26cdf0e10cSrcweir #include <tools/debug.hxx>
27cdf0e10cSrcweir #include <xmloff/xmlnmspe.hxx>
28cdf0e10cSrcweir #include <xmloff/xmltoken.hxx>
29cdf0e10cSrcweir #include "txtprhdl.hxx"
30cdf0e10cSrcweir
3156b35d86SArmin Le Grand //UUUU
3256b35d86SArmin Le Grand #include <xmlsdtypes.hxx>
3356b35d86SArmin Le Grand
34cdf0e10cSrcweir using namespace ::com::sun::star;
35cdf0e10cSrcweir using namespace ::com::sun::star::uno;
36cdf0e10cSrcweir using namespace ::xmloff::token;
37cdf0e10cSrcweir
38cdf0e10cSrcweir #define _M_E( a, p, l, t, c ) \
391d438f2aSHerbert Dürr { a, sizeof(a)-1, XML_NAMESPACE_##p, XML_##l, static_cast<sal_Int32>(t), c, SvtSaveOptions::ODFVER_010 }
40cdf0e10cSrcweir
41cdf0e10cSrcweir #define _M_EV( a, p, l, t, c, v ) \
421d438f2aSHerbert Dürr { a, sizeof(a)-1, XML_NAMESPACE_##p, XML_##l, static_cast<sal_Int32>(t), c, v }
43cdf0e10cSrcweir
44cdf0e10cSrcweir #define _M_ED( a, p, l, t, c ) \
451d438f2aSHerbert Dürr { a, sizeof(a)-1, XML_NAMESPACE_##p, XML_##l, static_cast<sal_Int32>((t) | MID_FLAG_DEFAULT_ITEM_EXPORT), c, SvtSaveOptions::ODFVER_010 }
46cdf0e10cSrcweir
47cdf0e10cSrcweir // text properties
48cdf0e10cSrcweir #define MT_E( a, p, l, t, c ) \
49cdf0e10cSrcweir _M_E( a, p, l, (t|XML_TYPE_PROP_TEXT), c )
50cdf0e10cSrcweir #define MT_ED( a, p, l, t, c ) \
51cdf0e10cSrcweir _M_ED( a, p, l, (t|XML_TYPE_PROP_TEXT), c )
52cdf0e10cSrcweir
53cdf0e10cSrcweir // paragraph properties
54cdf0e10cSrcweir #define MP_E( a, p, l, t, c ) \
55cdf0e10cSrcweir _M_E( a, p, l, (t|XML_TYPE_PROP_PARAGRAPH), c )
56cdf0e10cSrcweir #define MP_ED( a, p, l, t, c ) \
57cdf0e10cSrcweir _M_ED( a, p, l, (t|XML_TYPE_PROP_PARAGRAPH), c )
58cdf0e10cSrcweir
59cdf0e10cSrcweir // graphic properties
60cdf0e10cSrcweir #define MG_E( a, p, l, t, c ) \
61cdf0e10cSrcweir _M_E( a, p, l, (t|XML_TYPE_PROP_GRAPHIC), c )
62cdf0e10cSrcweir #define MG_ED( a, p, l, t, c ) \
63cdf0e10cSrcweir _M_ED( a, p, l, (t|XML_TYPE_PROP_GRAPHIC), c )
64cdf0e10cSrcweir #define MG_EV( a, p, l, t, c, v ) \
65cdf0e10cSrcweir _M_EV( a, p, l, (t|XML_TYPE_PROP_GRAPHIC), c, v )
66cdf0e10cSrcweir
67cdf0e10cSrcweir // section properties
68cdf0e10cSrcweir #define MS_E( a, p, l, t, c ) \
69cdf0e10cSrcweir _M_E( a, p, l, (t|XML_TYPE_PROP_SECTION), c )
70cdf0e10cSrcweir #define MS_ED( a, p, l, t, c ) \
71cdf0e10cSrcweir _M_ED( a, p, l, (t|XML_TYPE_PROP_SECTION), c )
72cdf0e10cSrcweir
73cdf0e10cSrcweir // ruby properties
74cdf0e10cSrcweir #define MR_E( a, p, l, t, c ) \
75cdf0e10cSrcweir _M_E( a, p, l, (t|XML_TYPE_PROP_RUBY), c )
76cdf0e10cSrcweir #define MR_ED( a, p, l, t, c ) \
77cdf0e10cSrcweir _M_ED( a, p, l, (t|XML_TYPE_PROP_RUBY), c )
78cdf0e10cSrcweir
79cdf0e10cSrcweir #define M_END() \
80cdf0e10cSrcweir { NULL, 0, 0, XML_TOKEN_INVALID, 0, 0, SvtSaveOptions::ODFVER_010 }
81cdf0e10cSrcweir
8264b14621SArmin Le Grand //UUUU
8364b14621SArmin Le Grand #define _MAP(name,prefix,token,type,context) { name, sizeof(name)-1, prefix, token, type, context, SvtSaveOptions::ODFVER_010 }
8464b14621SArmin Le Grand #define GMAP(name,prefix,token,type,context) _MAP(name,prefix,token,static_cast<sal_Int32>(type|XML_TYPE_PROP_GRAPHIC),context)
85cdf0e10cSrcweir
86cdf0e10cSrcweir XMLPropertyMapEntry aXMLParaPropMap[] =
87cdf0e10cSrcweir {
88cdf0e10cSrcweir // RES_UNKNOWNATR_CONTAINER
89cdf0e10cSrcweir MP_E( "ParaUserDefinedAttributes", TEXT, XMLNS, XML_TYPE_ATTRIBUTE_CONTAINER | MID_FLAG_SPECIAL_ITEM, 0 ),
90*85ecee34SArmin Le Grand
91*85ecee34SArmin Le Grand //UUUU fill attributes for paragraph backgrounds
92*85ecee34SArmin Le Grand // #125045# moved to the front to be able to exclude these in lcl_txtprmap_getMap
93*85ecee34SArmin Le Grand // for TEXT_PROP_MAP_SHAPE_PARA to not have these double for Shapes (which already have these)
94*85ecee34SArmin Le Grand GMAP( "FillStyle", XML_NAMESPACE_DRAW, XML_FILL, XML_SW_TYPE_FILLSTYLE, 0 ),
95*85ecee34SArmin Le Grand GMAP( "FillColor", XML_NAMESPACE_DRAW, XML_FILL_COLOR, XML_TYPE_COLOR, 0 ),
96*85ecee34SArmin Le Grand GMAP( "FillColor2", XML_NAMESPACE_DRAW, XML_SECONDARY_FILL_COLOR, XML_TYPE_COLOR, 0 ),
97*85ecee34SArmin Le Grand GMAP( "FillGradientName", XML_NAMESPACE_DRAW, XML_FILL_GRADIENT_NAME, XML_TYPE_STYLENAME|MID_FLAG_NO_PROPERTY_IMPORT, CTF_FILLGRADIENTNAME ),
98*85ecee34SArmin Le Grand GMAP( "FillGradientStepCount", XML_NAMESPACE_DRAW, XML_GRADIENT_STEP_COUNT, XML_TYPE_NUMBER16, 0 ),
99*85ecee34SArmin Le Grand GMAP( "FillHatchName", XML_NAMESPACE_DRAW, XML_FILL_HATCH_NAME, XML_TYPE_STYLENAME|MID_FLAG_NO_PROPERTY_IMPORT, CTF_FILLHATCHNAME ),
100*85ecee34SArmin Le Grand GMAP( "FillBackground", XML_NAMESPACE_DRAW, XML_FILL_HATCH_SOLID, XML_TYPE_BOOL, 0 ),
101*85ecee34SArmin Le Grand GMAP( "FillBitmapName", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_NAME, XML_TYPE_STYLENAME|MID_FLAG_NO_PROPERTY_IMPORT, CTF_FILLBITMAPNAME ),
102*85ecee34SArmin Le Grand GMAP( "FillTransparence", XML_NAMESPACE_DRAW, XML_OPACITY, XML_TYPE_NEG_PERCENT16|MID_FLAG_MULTI_PROPERTY, 0 ), // exists in SW, too
103*85ecee34SArmin Le Grand GMAP( "FillTransparenceGradientName", XML_NAMESPACE_DRAW, XML_OPACITY_NAME, XML_TYPE_STYLENAME|MID_FLAG_NO_PROPERTY_IMPORT, CTF_FILLTRANSNAME ),
104*85ecee34SArmin Le Grand GMAP( "FillBitmapSizeX", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_WIDTH, XML_SW_TYPE_FILLBITMAPSIZE|MID_FLAG_MULTI_PROPERTY, 0 ),
105*85ecee34SArmin Le Grand GMAP( "FillBitmapLogicalSize", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_WIDTH, XML_SW_TYPE_LOGICAL_SIZE|MID_FLAG_MULTI_PROPERTY, 0 ),
106*85ecee34SArmin Le Grand GMAP( "FillBitmapSizeY", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_HEIGHT, XML_SW_TYPE_FILLBITMAPSIZE|MID_FLAG_MULTI_PROPERTY, 0 ),
107*85ecee34SArmin Le Grand GMAP( "FillBitmapLogicalSize", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_HEIGHT, XML_SW_TYPE_LOGICAL_SIZE|MID_FLAG_MULTI_PROPERTY, 0 ),
108*85ecee34SArmin Le Grand GMAP( "FillBitmapMode", XML_NAMESPACE_STYLE,XML_REPEAT, XML_SW_TYPE_BITMAP_MODE|MID_FLAG_MULTI_PROPERTY, 0 ),
109*85ecee34SArmin Le Grand GMAP( "FillBitmapPositionOffsetX", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_REF_POINT_X, XML_TYPE_PERCENT, 0 ),
110*85ecee34SArmin Le Grand GMAP( "FillBitmapPositionOffsetY", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_REF_POINT_Y, XML_TYPE_PERCENT, 0 ),
111*85ecee34SArmin Le Grand GMAP( "FillBitmapRectanglePoint", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_REF_POINT, XML_SW_TYPE_BITMAP_REFPOINT, 0 ),
112*85ecee34SArmin Le Grand GMAP( "FillBitmapOffsetX", XML_NAMESPACE_DRAW, XML_TILE_REPEAT_OFFSET, XML_SW_TYPE_BITMAPREPOFFSETX|MID_FLAG_MULTI_PROPERTY, CTF_REPEAT_OFFSET_X ),
113*85ecee34SArmin Le Grand GMAP( "FillBitmapOffsetY", XML_NAMESPACE_DRAW, XML_TILE_REPEAT_OFFSET, XML_SW_TYPE_BITMAPREPOFFSETY|MID_FLAG_MULTI_PROPERTY, CTF_REPEAT_OFFSET_Y ),
114*85ecee34SArmin Le Grand
115*85ecee34SArmin Le Grand // RES_LR_SPACE
116cdf0e10cSrcweir // !!! DO NOT REORDER THE MARGINS !!!
117cdf0e10cSrcweir MP_E( "ParaLeftMargin", FO, MARGIN, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_PARAMARGINALL ),
118cdf0e10cSrcweir MP_E( "ParaLeftMarginRelative", FO, MARGIN, XML_TYPE_PERCENT16, CTF_PARAMARGINALL_REL ),
119cdf0e10cSrcweir MP_E( "ParaLeftMargin", FO, MARGIN_LEFT, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_PARALEFTMARGIN ),
120cdf0e10cSrcweir MP_E( "ParaLeftMarginRelative", FO, MARGIN_LEFT, XML_TYPE_PERCENT16, CTF_PARALEFTMARGIN_REL ),
121cdf0e10cSrcweir MP_E( "ParaRightMargin", FO, MARGIN_RIGHT, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_PARARIGHTMARGIN ),
122cdf0e10cSrcweir MP_E( "ParaRightMarginRelative", FO, MARGIN_RIGHT, XML_TYPE_PERCENT16, CTF_PARARIGHTMARGIN_REL ),
123cdf0e10cSrcweir // RES_UL_SPACE
124cdf0e10cSrcweir MP_E( "ParaTopMargin", FO, MARGIN_TOP, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_PARATOPMARGIN ),
125cdf0e10cSrcweir MP_E( "ParaTopMarginRelative", FO, MARGIN_TOP, XML_TYPE_PERCENT16, CTF_PARATOPMARGIN_REL ),
126cdf0e10cSrcweir MP_E( "ParaBottomMargin", FO, MARGIN_BOTTOM, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_PARABOTTOMMARGIN ),
127cdf0e10cSrcweir MP_E( "ParaBottomMarginRelative",FO, MARGIN_BOTTOM, XML_TYPE_PERCENT16, CTF_PARABOTTOMMARGIN_REL ),
128cdf0e10cSrcweir // RES_CHRATR_CASEMAP
129cdf0e10cSrcweir MT_E( "CharCaseMap", FO, FONT_VARIANT, XML_TYPE_TEXT_CASEMAP_VAR, 0 ),
130cdf0e10cSrcweir MT_E( "CharCaseMap", FO, TEXT_TRANSFORM, XML_TYPE_TEXT_CASEMAP, 0 ),
131cdf0e10cSrcweir // RES_CHRATR_COLOR
132cdf0e10cSrcweir MT_ED( "CharColor", FO, COLOR, XML_TYPE_COLORAUTO|MID_FLAG_MERGE_PROPERTY, 0 ),
133cdf0e10cSrcweir MT_ED( "CharColor", STYLE, USE_WINDOW_FONT_COLOR, XML_TYPE_ISAUTOCOLOR|MID_FLAG_MERGE_PROPERTY, 0 ),
134cdf0e10cSrcweir // RES_CHRATR_CONTOUR
135cdf0e10cSrcweir MT_E( "CharContoured", STYLE, TEXT_OUTLINE, XML_TYPE_BOOL, 0 ),
136cdf0e10cSrcweir // RES_CHRATR_CROSSEDOUT
137cdf0e10cSrcweir MT_E( "CharStrikeout", STYLE, TEXT_LINE_THROUGH_STYLE, XML_TYPE_TEXT_CROSSEDOUT_STYLE|MID_FLAG_MERGE_PROPERTY, 0),
138cdf0e10cSrcweir MT_E( "CharStrikeout", STYLE, TEXT_LINE_THROUGH_TYPE, XML_TYPE_TEXT_CROSSEDOUT_TYPE|MID_FLAG_MERGE_PROPERTY, 0),
139cdf0e10cSrcweir MT_E( "CharStrikeout", STYLE, TEXT_LINE_THROUGH_WIDTH, XML_TYPE_TEXT_CROSSEDOUT_WIDTH|MID_FLAG_MERGE_PROPERTY, 0),
140cdf0e10cSrcweir MT_E( "CharStrikeout", STYLE, TEXT_LINE_THROUGH_TEXT, XML_TYPE_TEXT_CROSSEDOUT_TEXT|MID_FLAG_MERGE_PROPERTY, 0),
141cdf0e10cSrcweir // RES_CHRATR_ESCAPEMENT
142cdf0e10cSrcweir MT_E( "CharEscapement", STYLE, TEXT_POSITION, XML_TYPE_TEXT_ESCAPEMENT|MID_FLAG_MERGE_ATTRIBUTE|MID_FLAG_MULTI_PROPERTY, 0 ),
143cdf0e10cSrcweir MT_E( "CharEscapementHeight", STYLE, TEXT_POSITION, XML_TYPE_TEXT_ESCAPEMENT_HEIGHT|MID_FLAG_MERGE_ATTRIBUTE|MID_FLAG_MULTI_PROPERTY, 0 ),
144cdf0e10cSrcweir // RES_CHRATR_FONT
145cdf0e10cSrcweir MT_ED( "CharFontName", STYLE, FONT_NAME, XML_TYPE_STRING|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTNAME ),
146cdf0e10cSrcweir MT_ED( "CharFontName", FO, FONT_FAMILY, XML_TYPE_TEXT_FONTFAMILYNAME|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTFAMILYNAME ),
147cdf0e10cSrcweir MT_ED( "CharFontStyleName",STYLE, FONT_STYLE_NAME, XML_TYPE_STRING, CTF_FONTSTYLENAME ),
148cdf0e10cSrcweir MT_ED( "CharFontFamily", STYLE, FONT_FAMILY_GENERIC,XML_TYPE_TEXT_FONTFAMILY, CTF_FONTFAMILY ),
149cdf0e10cSrcweir MT_ED( "CharFontPitch", STYLE, FONT_PITCH, XML_TYPE_TEXT_FONTPITCH, CTF_FONTPITCH ),
150cdf0e10cSrcweir MT_ED( "CharFontCharSet", STYLE, FONT_CHARSET, XML_TYPE_TEXT_FONTENCODING, CTF_FONTCHARSET ),
151cdf0e10cSrcweir // RES_CHRATR_FONTSIZE
152cdf0e10cSrcweir MT_ED( "CharHeight", FO, FONT_SIZE, XML_TYPE_CHAR_HEIGHT|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT ),
153cdf0e10cSrcweir MT_ED( "CharPropHeight",FO, FONT_SIZE, XML_TYPE_CHAR_HEIGHT_PROP|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_REL ),
154cdf0e10cSrcweir MT_ED( "CharDiffHeight",STYLE,FONT_SIZE_REL, XML_TYPE_CHAR_HEIGHT_DIFF, CTF_CHARHEIGHT_DIFF ),
155cdf0e10cSrcweir // RES_CHRATR_KERNING
156cdf0e10cSrcweir MT_E( "CharKerning", FO, LETTER_SPACING, XML_TYPE_TEXT_KERNING, 0 ),
157cdf0e10cSrcweir // RES_CHRATR_LANGUAGE
158cdf0e10cSrcweir MT_ED( "CharLocale", FO, LANGUAGE, XML_TYPE_CHAR_LANGUAGE|MID_FLAG_MERGE_PROPERTY, 0 ),
159cdf0e10cSrcweir MT_ED( "CharLocale", FO, COUNTRY, XML_TYPE_CHAR_COUNTRY|MID_FLAG_MERGE_PROPERTY, 0 ),
160cdf0e10cSrcweir // RES_CHRATR_POSTURE
161cdf0e10cSrcweir MT_E( "CharPosture", FO, FONT_STYLE, XML_TYPE_TEXT_POSTURE, 0 ),
162cdf0e10cSrcweir // RES_CHRATR_PROPORTIONALFONTSIZE
163cdf0e10cSrcweir // TODO: not used?
164cdf0e10cSrcweir // RES_CHRATR_SHADOWED
165cdf0e10cSrcweir MT_E( "CharShadowed", FO, TEXT_SHADOW, XML_TYPE_TEXT_SHADOWED, 0 ),
166cdf0e10cSrcweir // RES_CHRATR_UNDERLINE
167cdf0e10cSrcweir MT_E( "CharUnderline", STYLE, TEXT_UNDERLINE_STYLE, XML_TYPE_TEXT_UNDERLINE_STYLE|MID_FLAG_MERGE_PROPERTY, CTF_UNDERLINE ),
168cdf0e10cSrcweir MT_E( "CharUnderline", STYLE, TEXT_UNDERLINE_TYPE, XML_TYPE_TEXT_UNDERLINE_TYPE|MID_FLAG_MERGE_PROPERTY, 0 ),
169cdf0e10cSrcweir MT_E( "CharUnderline", STYLE, TEXT_UNDERLINE_WIDTH, XML_TYPE_TEXT_UNDERLINE_WIDTH|MID_FLAG_MERGE_PROPERTY, 0 ),
170cdf0e10cSrcweir MT_E( "CharUnderlineColor", STYLE, TEXT_UNDERLINE_COLOR, XML_TYPE_TEXT_UNDERLINE_COLOR|MID_FLAG_MULTI_PROPERTY, CTF_UNDERLINE_COLOR ),
171cdf0e10cSrcweir MT_E( "CharUnderlineHasColor", STYLE, TEXT_UNDERLINE_COLOR, XML_TYPE_TEXT_UNDERLINE_HASCOLOR|MID_FLAG_MERGE_ATTRIBUTE, CTF_UNDERLINE_HASCOLOR ),
172cdf0e10cSrcweir // RES_CHRATR_WEIGHT
173cdf0e10cSrcweir MT_E( "CharWeight", FO, FONT_WEIGHT, XML_TYPE_TEXT_WEIGHT, 0 ),
174cdf0e10cSrcweir // RES_CHRATR_WORDLINEMODE
175cdf0e10cSrcweir MT_E( "CharWordMode", STYLE, TEXT_UNDERLINE_MODE, XML_TYPE_TEXT_LINE_MODE|MID_FLAG_MERGE_PROPERTY, 0 ),
176cdf0e10cSrcweir MT_E( "CharWordMode", STYLE, TEXT_OVERLINE_MODE, XML_TYPE_TEXT_LINE_MODE|MID_FLAG_MERGE_PROPERTY, 0 ),
177cdf0e10cSrcweir MT_E( "CharWordMode", STYLE, TEXT_LINE_THROUGH_MODE, XML_TYPE_TEXT_LINE_MODE|MID_FLAG_MERGE_PROPERTY, 0 ),
178cdf0e10cSrcweir // RES_CHRATR_AUTOKERN
179cdf0e10cSrcweir MT_E( "CharAutoKerning", STYLE, LETTER_KERNING, XML_TYPE_BOOL, 0 ),
180cdf0e10cSrcweir // RES_CHRATR_BLINK
181cdf0e10cSrcweir MT_E( "CharFlash", STYLE, TEXT_BLINKING, XML_TYPE_BOOL, 0 ),
182cdf0e10cSrcweir // RES_CHRATR_NOHYPHEN
183cdf0e10cSrcweir // TODO: not used?
184cdf0e10cSrcweir // RES_CHRATR_NOLINEBREAK
185cdf0e10cSrcweir // TODO: not used?
186cdf0e10cSrcweir // RES_CHRATR_BACKGROUND
187cdf0e10cSrcweir MT_E( "CharBackColor", FO, BACKGROUND_COLOR, XML_TYPE_COLORTRANSPARENT|MID_FLAG_MULTI_PROPERTY, 0 ),
188cdf0e10cSrcweir MT_E( "CharBackTransparent", FO, BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
189cdf0e10cSrcweir MT_E( "CharBackColor", FO, TEXT_BACKGROUND_COLOR, XML_TYPE_COLOR|MID_FLAG_SPECIAL_ITEM_EXPORT, CTF_OLDTEXTBACKGROUND ),
190cdf0e10cSrcweir // RES_CHRATR_CJK_FONT
191cdf0e10cSrcweir MT_ED( "CharFontNameAsian", STYLE, FONT_NAME_ASIAN, XML_TYPE_STRING|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTNAME_CJK ),
192cdf0e10cSrcweir MT_ED( "CharFontNameAsian", STYLE, FONT_FAMILY_ASIAN, XML_TYPE_TEXT_FONTFAMILYNAME|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTFAMILYNAME_CJK ),
193cdf0e10cSrcweir MT_ED( "CharFontStyleNameAsian",STYLE, FONT_STYLE_NAME_ASIAN, XML_TYPE_STRING, CTF_FONTSTYLENAME_CJK ),
194cdf0e10cSrcweir MT_ED( "CharFontFamilyAsian", STYLE, FONT_FAMILY_GENERIC_ASIAN,XML_TYPE_TEXT_FONTFAMILY, CTF_FONTFAMILY_CJK ),
195cdf0e10cSrcweir MT_ED( "CharFontPitchAsian", STYLE, FONT_PITCH_ASIAN, XML_TYPE_TEXT_FONTPITCH, CTF_FONTPITCH_CJK ),
196cdf0e10cSrcweir MT_ED( "CharFontCharSetAsian", STYLE, FONT_CHARSET_ASIAN, XML_TYPE_TEXT_FONTENCODING, CTF_FONTCHARSET_CJK ),
197cdf0e10cSrcweir // RES_CHRATR_CJK_FONTSIZE
198cdf0e10cSrcweir MT_ED( "CharHeightAsian", STYLE, FONT_SIZE_ASIAN, XML_TYPE_CHAR_HEIGHT|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_CJK ),
199cdf0e10cSrcweir MT_ED( "CharPropHeightAsian",STYLE, FONT_SIZE_ASIAN, XML_TYPE_CHAR_HEIGHT_PROP|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_REL_CJK ),
200cdf0e10cSrcweir MT_ED( "CharDiffHeightAsian",STYLE,FONT_SIZE_REL_ASIAN, XML_TYPE_CHAR_HEIGHT_DIFF, CTF_CHARHEIGHT_DIFF_CJK ),
201cdf0e10cSrcweir // RES_CHRATR_CJK_LANGUAGE
202cdf0e10cSrcweir MT_ED( "CharLocaleAsian", STYLE, LANGUAGE_ASIAN, XML_TYPE_CHAR_LANGUAGE|MID_FLAG_MERGE_PROPERTY, 0 ),
203cdf0e10cSrcweir MT_ED( "CharLocaleAsian", STYLE, COUNTRY_ASIAN, XML_TYPE_CHAR_COUNTRY|MID_FLAG_MERGE_PROPERTY, 0 ),
204cdf0e10cSrcweir // RES_CHRATR_CJK_POSTURE
205cdf0e10cSrcweir MT_E( "CharPostureAsian", STYLE, FONT_STYLE_ASIAN, XML_TYPE_TEXT_POSTURE, 0 ),
206cdf0e10cSrcweir // RES_CHRATR_CJK_WEIGHT
207cdf0e10cSrcweir MT_E( "CharWeightAsian", STYLE, FONT_WEIGHT_ASIAN, XML_TYPE_TEXT_WEIGHT, 0 ),
208cdf0e10cSrcweir // RES_CHRATR_CTL_FONT
209cdf0e10cSrcweir MT_ED( "CharFontNameComplex", STYLE, FONT_NAME_COMPLEX, XML_TYPE_STRING|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTNAME_CTL ),
210cdf0e10cSrcweir MT_ED( "CharFontNameComplex", STYLE, FONT_FAMILY_COMPLEX, XML_TYPE_TEXT_FONTFAMILYNAME|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTFAMILYNAME_CTL ),
211cdf0e10cSrcweir MT_ED( "CharFontStyleNameComplex",STYLE, FONT_STYLE_NAME_COMPLEX, XML_TYPE_STRING, CTF_FONTSTYLENAME_CTL ),
212cdf0e10cSrcweir MT_ED( "CharFontFamilyComplex", STYLE, FONT_FAMILY_GENERIC_COMPLEX,XML_TYPE_TEXT_FONTFAMILY, CTF_FONTFAMILY_CTL ),
213cdf0e10cSrcweir MT_ED( "CharFontPitchComplex", STYLE, FONT_PITCH_COMPLEX, XML_TYPE_TEXT_FONTPITCH, CTF_FONTPITCH_CTL ),
214cdf0e10cSrcweir MT_ED( "CharFontCharSetComplex", STYLE, FONT_CHARSET_COMPLEX, XML_TYPE_TEXT_FONTENCODING, CTF_FONTCHARSET_CTL ),
215cdf0e10cSrcweir // RES_CHRATR_CTL_FONTSIZE
216cdf0e10cSrcweir MT_ED( "CharHeightComplex", STYLE, FONT_SIZE_COMPLEX, XML_TYPE_CHAR_HEIGHT|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_CTL ),
217cdf0e10cSrcweir MT_ED( "CharPropHeightComplex",STYLE, FONT_SIZE_COMPLEX, XML_TYPE_CHAR_HEIGHT_PROP|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_REL_CTL ),
218cdf0e10cSrcweir MT_ED( "CharDiffHeightComplex",STYLE,FONT_SIZE_REL_COMPLEX, XML_TYPE_CHAR_HEIGHT_DIFF, CTF_CHARHEIGHT_DIFF_CTL ),
219cdf0e10cSrcweir // RES_CHRATR_CTL_LANGUAGE
220cdf0e10cSrcweir MT_ED( "CharLocaleComplex", STYLE, LANGUAGE_COMPLEX, XML_TYPE_CHAR_LANGUAGE|MID_FLAG_MERGE_PROPERTY, 0 ),
221cdf0e10cSrcweir MT_ED( "CharLocaleComplex", STYLE, COUNTRY_COMPLEX, XML_TYPE_CHAR_COUNTRY|MID_FLAG_MERGE_PROPERTY, 0 ),
222cdf0e10cSrcweir // RES_CHRATR_CTL_POSTURE
223cdf0e10cSrcweir MT_E( "CharPostureComplex", STYLE, FONT_STYLE_COMPLEX, XML_TYPE_TEXT_POSTURE, 0 ),
224cdf0e10cSrcweir // RES_CHRATR_CTL_WEIGHT
225cdf0e10cSrcweir MT_E( "CharWeightComplex", STYLE, FONT_WEIGHT_COMPLEX, XML_TYPE_TEXT_WEIGHT, 0 ),
226cdf0e10cSrcweir // RES_CHRATR_ROTATE
227cdf0e10cSrcweir MT_E( "CharRotation", STYLE, TEXT_ROTATION_ANGLE, XML_TYPE_TEXT_ROTATION_ANGLE, 0 ),
228cdf0e10cSrcweir MT_E( "CharRotationIsFitToLine", STYLE, TEXT_ROTATION_SCALE, XML_TYPE_TEXT_ROTATION_SCALE, 0 ),
229cdf0e10cSrcweir // RES_CHRATR_EMPHASIS_MARK
230cdf0e10cSrcweir MT_E( "CharEmphasis", STYLE, TEXT_EMPHASIZE, XML_TYPE_TEXT_EMPHASIZE, 0 ),
231cdf0e10cSrcweir // RES_CHRATR_TWO_LINES
232cdf0e10cSrcweir MT_E( "CharCombineIsOn", STYLE, TEXT_COMBINE, XML_TYPE_TEXT_COMBINE, 0 ),
233cdf0e10cSrcweir MT_E( "CharCombinePrefix", STYLE, TEXT_COMBINE_START_CHAR, XML_TYPE_TEXT_COMBINECHAR, 0 ),
234cdf0e10cSrcweir MT_E( "CharCombineSuffix", STYLE, TEXT_COMBINE_END_CHAR, XML_TYPE_TEXT_COMBINECHAR, 0 ),
235cdf0e10cSrcweir // RES_CHRATR_SCALEW
236cdf0e10cSrcweir MT_E( "CharScaleWidth", STYLE, TEXT_SCALE, XML_TYPE_PERCENT16, 0 ),
237cdf0e10cSrcweir //RES_CHRATR_RELIEF
238cdf0e10cSrcweir MT_E( "CharRelief", STYLE, FONT_RELIEF, XML_TYPE_TEXT_FONT_RELIEF, 0 ),
239cdf0e10cSrcweir // RES_CHRATR_HIDDEN
240cdf0e10cSrcweir MT_E( "CharHidden", TEXT, DISPLAY, XML_TYPE_TEXT_HIDDEN_AS_DISPLAY|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_TEXT_DISPLAY ),
241cdf0e10cSrcweir // RES_CHRATR_OVERLINE
242cdf0e10cSrcweir MT_E( "CharOverline", STYLE, TEXT_OVERLINE_STYLE, XML_TYPE_TEXT_OVERLINE_STYLE|MID_FLAG_MERGE_PROPERTY, 0 ),
243cdf0e10cSrcweir MT_E( "CharOverline", STYLE, TEXT_OVERLINE_TYPE, XML_TYPE_TEXT_OVERLINE_TYPE|MID_FLAG_MERGE_PROPERTY, 0 ),
244cdf0e10cSrcweir MT_E( "CharOverline", STYLE, TEXT_OVERLINE_WIDTH, XML_TYPE_TEXT_OVERLINE_WIDTH|MID_FLAG_MERGE_PROPERTY, 0 ),
245cdf0e10cSrcweir MT_E( "CharOverlineColor", STYLE, TEXT_OVERLINE_COLOR, XML_TYPE_TEXT_OVERLINE_COLOR|MID_FLAG_MULTI_PROPERTY, 0 ),
246cdf0e10cSrcweir MT_E( "CharOverlineHasColor", STYLE, TEXT_OVERLINE_COLOR, XML_TYPE_TEXT_OVERLINE_HASCOLOR|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
247cdf0e10cSrcweir
248cdf0e10cSrcweir // RES_TXTATR_INETFMT
249cdf0e10cSrcweir // TODO
250cdf0e10cSrcweir // RES_TXTATR_REFMARK
251cdf0e10cSrcweir // TODO
252cdf0e10cSrcweir // RES_TXTATR_TOXMARK
253cdf0e10cSrcweir // TODO
254cdf0e10cSrcweir // RES_TXTATR_CHARFMT
255cdf0e10cSrcweir // M_E_SI( TEXT, style_name, RES_TXTATR_CHARFMT, 0 ),
256cdf0e10cSrcweir // RES_TXTATR_CJK_RUBY
257cdf0e10cSrcweir // TODO
258cdf0e10cSrcweir // RES_TXTATR_FIELD
259cdf0e10cSrcweir // TODO
260cdf0e10cSrcweir // RES_TXTATR_FLYCNT
261cdf0e10cSrcweir // TODO
262cdf0e10cSrcweir // RES_TXTATR_FTN
263cdf0e10cSrcweir // TODO
264cdf0e10cSrcweir // RES_TXTATR_SOFTHYPH
265cdf0e10cSrcweir // TODO
266cdf0e10cSrcweir // RES_TXTATR_HARDBLANK
267cdf0e10cSrcweir // TODO
268cdf0e10cSrcweir
269cdf0e10cSrcweir // RES_PARATR_LINESPACING
270cdf0e10cSrcweir MP_E( "ParaLineSpacing", FO, LINE_HEIGHT, XML_TYPE_LINE_SPACE_FIXED, 0 ),
271cdf0e10cSrcweir MP_E( "ParaLineSpacing", STYLE, LINE_HEIGHT_AT_LEAST, XML_TYPE_LINE_SPACE_MINIMUM, 0 ),
272cdf0e10cSrcweir MP_E( "ParaLineSpacing", STYLE, LINE_SPACING, XML_TYPE_LINE_SPACE_DISTANCE, 0 ),
273cdf0e10cSrcweir // RES_PARATR_ADJUST
274cdf0e10cSrcweir MP_E( "ParaAdjust", FO, TEXT_ALIGN, XML_TYPE_TEXT_ADJUST, CTF_SD_SHAPE_PARA_ADJUST ),
275cdf0e10cSrcweir MP_E( "ParaLastLineAdjust", FO, TEXT_ALIGN_LAST, XML_TYPE_TEXT_ADJUSTLAST, CTF_PARA_ADJUSTLAST ),
276cdf0e10cSrcweir MP_E( "ParaExpandSingleWord",STYLE, JUSTIFY_SINGLE_WORD,XML_TYPE_BOOL, 0 ),
277cdf0e10cSrcweir // RES_PARATR_SPLIT
278cdf0e10cSrcweir MP_E( "ParaSplit", FO, KEEP_TOGETHER, XML_TYPE_TEXT_SPLIT, 0 ),
279cdf0e10cSrcweir // RES_PARATR_ORPHANS
280cdf0e10cSrcweir MP_E( "ParaOrphans", FO, ORPHANS, XML_TYPE_NUMBER8, 0 ),
281cdf0e10cSrcweir // RES_PARATR_WIDOWS
282cdf0e10cSrcweir MP_E( "ParaWidows", FO, WIDOWS, XML_TYPE_NUMBER8, 0 ),
283cdf0e10cSrcweir // RES_PARATR_TABSTOP
28486e1cf34SPedro Giffuni MP_ED( "ParaTabStops", STYLE, TAB_STOPS, MID_FLAG_ELEMENT_ITEM|XML_TYPE_TEXT_TABSTOP, CTF_TABSTOP ), // this is not really a string!
285cdf0e10cSrcweir // RES_PARATR_HYPHENZONE
286cdf0e10cSrcweir MT_E( "ParaIsHyphenation", FO, HYPHENATE, XML_TYPE_BOOL, 0 ),
287cdf0e10cSrcweir MT_E( "ParaHyphenationMaxLeadingChars", FO, HYPHENATION_REMAIN_CHAR_COUNT, XML_TYPE_NUMBER16, 0 ),
288cdf0e10cSrcweir MT_E( "ParaHyphenationMaxTrailingChars",FO, HYPHENATION_PUSH_CHAR_COUNT, XML_TYPE_NUMBER16, 0 ),
289cdf0e10cSrcweir MP_E( "ParaHyphenationMaxHyphens", FO, HYPHENATION_LADDER_COUNT, XML_TYPE_NUMBER16_NONE, 0 ),
290cdf0e10cSrcweir // RES_PARATR_DROP
291cdf0e10cSrcweir MP_E( "DropCapWholeWord", STYLE, LENGTH, MID_FLAG_SPECIAL_ITEM|XML_TYPE_BOOL, CTF_DROPCAPWHOLEWORD ),
292cdf0e10cSrcweir MP_E( "DropCapCharStyleName", STYLE, STYLE_NAME, MID_FLAG_SPECIAL_ITEM|XML_TYPE_STRING, CTF_DROPCAPCHARSTYLE ),
293cdf0e10cSrcweir MP_E( "DropCapFormat", STYLE, DROP_CAP, MID_FLAG_ELEMENT_ITEM|XML_TYPE_TEXT_DROPCAP, CTF_DROPCAPFORMAT ),
294cdf0e10cSrcweir // RES_PARATR_REGISTER
295cdf0e10cSrcweir MP_E( "ParaRegisterModeActive", STYLE, REGISTER_TRUE, XML_TYPE_BOOL, 0 ),
296cdf0e10cSrcweir // RES_PARATR_NUMRULE
297cdf0e10cSrcweir MP_E( "NumberingStyleName", STYLE, LIST_STYLE_NAME, MID_FLAG_SPECIAL_ITEM|XML_TYPE_STYLENAME, CTF_NUMBERINGSTYLENAME ),
298cdf0e10cSrcweir MP_E( "NumberingRules", TEXT, ENABLE_NUMBERING, MID_FLAG_NO_PROPERTY|XML_TYPE_BOOL, CTF_ALIEN_ATTRIBUTE_IMPORT ),
299cdf0e10cSrcweir
300cdf0e10cSrcweir // RES_FILL_ORDER
301cdf0e10cSrcweir // not required
302cdf0e10cSrcweir // RES_FRM_SIZE
303cdf0e10cSrcweir // not required
304cdf0e10cSrcweir // RES_PAPER_BIN
305cdf0e10cSrcweir // not required
306cdf0e10cSrcweir // RES_LR_SPACE
307cdf0e10cSrcweir
308cdf0e10cSrcweir MP_E( "ParaFirstLineIndent", FO, TEXT_INDENT, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_PARAFIRSTLINE ),
309cdf0e10cSrcweir MP_E( "ParaFirstLineIndentRelative", FO, TEXT_INDENT, XML_TYPE_PERCENT, CTF_PARAFIRSTLINE_REL ),
310cdf0e10cSrcweir MP_E( "ParaIsAutoFirstLineIndent", STYLE, AUTO_TEXT_INDENT, XML_TYPE_BOOL, 0 ),
311cdf0e10cSrcweir // RES_PAGEDESC
312cdf0e10cSrcweir MP_E( "PageDescName", STYLE, MASTER_PAGE_NAME, MID_FLAG_SPECIAL_ITEM|XML_TYPE_STYLENAME, CTF_PAGEDESCNAME ),
313cdf0e10cSrcweir MP_E( "PageNumberOffset", STYLE, PAGE_NUMBER, XML_TYPE_NUMBER16_AUTO, 0 ),
314cdf0e10cSrcweir // RES_BREAK : TODO: does this work?
315cdf0e10cSrcweir MP_E( "BreakType", FO, BREAK_BEFORE, XML_TYPE_TEXT_BREAKBEFORE|MID_FLAG_MULTI_PROPERTY, 0 ),
316cdf0e10cSrcweir MP_E( "BreakType", FO, BREAK_AFTER, XML_TYPE_TEXT_BREAKAFTER, 0 ),
317cdf0e10cSrcweir // RES_CNTNT
318cdf0e10cSrcweir // not required
319cdf0e10cSrcweir // RES_HEADER
320cdf0e10cSrcweir // not required
321cdf0e10cSrcweir // RES_FOOTER
322cdf0e10cSrcweir // not required
323cdf0e10cSrcweir // RES_PRINT
324cdf0e10cSrcweir // not required
325cdf0e10cSrcweir // RES_OPAQUE
326cdf0e10cSrcweir // not required
327cdf0e10cSrcweir // RES_PROTECT
328cdf0e10cSrcweir // not required
329cdf0e10cSrcweir // RES_SURROUND
330cdf0e10cSrcweir // not required
331cdf0e10cSrcweir // RES_VERT_ORIENT
332cdf0e10cSrcweir // not required
333cdf0e10cSrcweir // RES_HORI_ORIENT
334cdf0e10cSrcweir // not required
335cdf0e10cSrcweir // RES_ANCHOR
336cdf0e10cSrcweir // not required
337cdf0e10cSrcweir // RES_BACKGROUND
338cdf0e10cSrcweir MP_E( "ParaBackColor", FO, BACKGROUND_COLOR, XML_TYPE_COLORTRANSPARENT|MID_FLAG_MULTI_PROPERTY, 0 ),
339cdf0e10cSrcweir MP_E( "ParaBackTransparent", FO, BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
340cdf0e10cSrcweir MP_E( "ParaBackGraphicLocation", STYLE, POSITION, MID_FLAG_SPECIAL_ITEM|XML_TYPE_BUILDIN_CMP_ONLY, CTF_BACKGROUND_POS ),
341cdf0e10cSrcweir MP_E( "ParaBackGraphicFilter",STYLE, FILTER_NAME, MID_FLAG_SPECIAL_ITEM|XML_TYPE_STRING, CTF_BACKGROUND_FILTER ),
342cdf0e10cSrcweir MP_E( "ParaBackGraphicURL", STYLE, BACKGROUND_IMAGE, MID_FLAG_ELEMENT_ITEM|XML_TYPE_STRING, CTF_BACKGROUND_URL ),
34356b35d86SArmin Le Grand
34456b35d86SArmin Le Grand // RES_BOX
345cdf0e10cSrcweir MP_E( "LeftBorder", STYLE, BORDER_LINE_WIDTH, XML_TYPE_BORDER_WIDTH, CTF_ALLBORDERWIDTH ),
346cdf0e10cSrcweir MP_E( "LeftBorder", STYLE, BORDER_LINE_WIDTH_LEFT, XML_TYPE_BORDER_WIDTH, CTF_LEFTBORDERWIDTH ),
347cdf0e10cSrcweir MP_E( "RightBorder", STYLE, BORDER_LINE_WIDTH_RIGHT, XML_TYPE_BORDER_WIDTH, CTF_RIGHTBORDERWIDTH ),
348cdf0e10cSrcweir MP_E( "TopBorder", STYLE, BORDER_LINE_WIDTH_TOP, XML_TYPE_BORDER_WIDTH, CTF_TOPBORDERWIDTH ),
349cdf0e10cSrcweir MP_E( "BottomBorder", STYLE, BORDER_LINE_WIDTH_BOTTOM, XML_TYPE_BORDER_WIDTH, CTF_BOTTOMBORDERWIDTH ),
350cdf0e10cSrcweir
351cdf0e10cSrcweir MP_E( "LeftBorderDistance", FO, PADDING, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_ALLBORDERDISTANCE ), // need special import filtering
352cdf0e10cSrcweir MP_E( "LeftBorderDistance", FO, PADDING_LEFT, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_LEFTBORDERDISTANCE ),
353cdf0e10cSrcweir MP_E( "RightBorderDistance", FO, PADDING_RIGHT, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_RIGHTBORDERDISTANCE ),
354cdf0e10cSrcweir MP_E( "TopBorderDistance", FO, PADDING_TOP, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_TOPBORDERDISTANCE ),
355cdf0e10cSrcweir MP_E( "BottomBorderDistance",FO, PADDING_BOTTOM, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_BOTTOMBORDERDISTANCE ),
356cdf0e10cSrcweir
357cdf0e10cSrcweir MP_E( "LeftBorder", FO, BORDER, XML_TYPE_BORDER, CTF_ALLBORDER ),
358cdf0e10cSrcweir MP_E( "LeftBorder", FO, BORDER_LEFT, XML_TYPE_BORDER, CTF_LEFTBORDER ),
359cdf0e10cSrcweir MP_E( "RightBorder", FO, BORDER_RIGHT, XML_TYPE_BORDER, CTF_RIGHTBORDER ),
360cdf0e10cSrcweir MP_E( "TopBorder", FO, BORDER_TOP, XML_TYPE_BORDER, CTF_TOPBORDER ),
361cdf0e10cSrcweir MP_E( "BottomBorder", FO, BORDER_BOTTOM, XML_TYPE_BORDER, CTF_BOTTOMBORDER ),
362cdf0e10cSrcweir // RES_SHADOW
363cdf0e10cSrcweir MP_E( "ParaShadowFormat", STYLE, SHADOW, XML_TYPE_TEXT_SHADOW, 0 ),
364cdf0e10cSrcweir // RES_FRMMACRO
365cdf0e10cSrcweir // not required
366cdf0e10cSrcweir // RES_COL
367cdf0e10cSrcweir // not required
368cdf0e10cSrcweir // RES_KEEP
369cdf0e10cSrcweir MP_E( "ParaKeepTogether", FO, KEEP_WITH_NEXT, XML_TYPE_TEXT_KEEP, 0 ),
370cdf0e10cSrcweir // RES_URL
371cdf0e10cSrcweir // not required
372cdf0e10cSrcweir // RES_EDIT_IN_READONLY
373cdf0e10cSrcweir // not required
374cdf0e10cSrcweir // RES_LAYOUT_SPLIT
375cdf0e10cSrcweir // not required
376cdf0e10cSrcweir // RES_CHAIN
377cdf0e10cSrcweir // not required
378cdf0e10cSrcweir
379cdf0e10cSrcweir // RES_LINENUMBER
380cdf0e10cSrcweir MP_E( "ParaLineNumberCount", TEXT, NUMBER_LINES, XML_TYPE_BOOL, 0 ),
381cdf0e10cSrcweir MP_E( "ParaLineNumberStartValue", TEXT, LINE_NUMBER, XML_TYPE_NUMBER, 0 ),
382cdf0e10cSrcweir
383cdf0e10cSrcweir // RES_FTN_AT_TXTEND
384cdf0e10cSrcweir // not required
385cdf0e10cSrcweir // RES_END_AT_TXTEND
386cdf0e10cSrcweir // not required
387cdf0e10cSrcweir MP_ED( "ParaIsCharacterDistance", STYLE, TEXT_AUTOSPACE, XML_TYPE_TEXT_AUTOSPACE, 0 ),
388cdf0e10cSrcweir MP_ED( "ParaIsHangingPunctuation", STYLE, PUNCTUATION_WRAP, XML_TYPE_TEXT_PUNCTUATION_WRAP, 0 ),
389cdf0e10cSrcweir MP_ED( "ParaIsForbiddenRules", STYLE, LINE_BREAK, XML_TYPE_TEXT_LINE_BREAK, 0 ),
390cdf0e10cSrcweir MP_E( "TabStopDistance", STYLE, TAB_STOP_DISTANCE, XML_TYPE_MEASURE, 0 ),
391cdf0e10cSrcweir
392cdf0e10cSrcweir // RES_PARATR_VERTALIGN
393cdf0e10cSrcweir MP_E( "ParaVertAlignment", STYLE, VERTICAL_ALIGN, XML_TYPE_TEXT_VERTICAL_ALIGN, 0 ),
394cdf0e10cSrcweir
395cdf0e10cSrcweir // RES_PARATR_SNAPTOGRID
396cdf0e10cSrcweir MP_E( "SnapToGrid", STYLE, SNAP_TO_LAYOUT_GRID, XML_TYPE_BOOL, 0 ),
397cdf0e10cSrcweir
398cdf0e10cSrcweir MP_ED( "WritingMode", STYLE, WRITING_MODE, XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT, CTF_TEXTWRITINGMODE ),
399cdf0e10cSrcweir
400cdf0e10cSrcweir MP_E( "ParaIsConnectBorder", STYLE, JOIN_BORDER, XML_TYPE_BOOL, 0 ),
401cdf0e10cSrcweir
402cdf0e10cSrcweir MP_E( "DefaultOutlineLevel", STYLE, DEFAULT_OUTLINE_LEVEL, XML_TYPE_TEXT_NUMBER8_ONE_BASED|MID_FLAG_SPECIAL_ITEM_EXPORT|MID_FLAG_NO_PROPERTY_IMPORT, CTF_DEFAULT_OUTLINE_LEVEL ),
403cdf0e10cSrcweir
404cdf0e10cSrcweir MP_ED( "FontIndependentLineSpacing", STYLE, FONT_INDEPENDENT_LINE_SPACING, XML_TYPE_BOOL, 0 ),
405cdf0e10cSrcweir
406cdf0e10cSrcweir M_END()
407cdf0e10cSrcweir };
408cdf0e10cSrcweir
409cdf0e10cSrcweir
410cdf0e10cSrcweir XMLPropertyMapEntry aXMLAdditionalTextDefaultsMap[] =
411cdf0e10cSrcweir {
412cdf0e10cSrcweir // RES_FOLLOW_TEXT_FLOW - DVO, OD 01.10.2003 #i18732#
413cdf0e10cSrcweir MG_ED( "IsFollowingTextFlow", STYLE, FLOW_WITH_TEXT, XML_TYPE_BOOL, 0 ),
414cdf0e10cSrcweir
415cdf0e10cSrcweir // OD 2004-05-05 #i28701# - RES_WRAP_INFLUENCE_ON_OBJPOS
416cdf0e10cSrcweir MG_ED( "WrapInfluenceOnPosition", DRAW, WRAP_INFLUENCE_ON_POSITION, XML_TYPE_WRAP_INFLUENCE_ON_POSITION, 0 ),
417cdf0e10cSrcweir
418cdf0e10cSrcweir M_END()
419cdf0e10cSrcweir };
420cdf0e10cSrcweir
421cdf0e10cSrcweir XMLPropertyMapEntry aXMLTextPropMap[] =
422cdf0e10cSrcweir {
423cdf0e10cSrcweir // RES_CHRATR_CASEMAP
424cdf0e10cSrcweir MT_E( "CharCaseMap", FO, FONT_VARIANT, XML_TYPE_TEXT_CASEMAP_VAR, 0 ),
425cdf0e10cSrcweir MT_E( "CharCaseMap", FO, TEXT_TRANSFORM, XML_TYPE_TEXT_CASEMAP, 0 ),
426cdf0e10cSrcweir // RES_CHRATR_COLOR
427cdf0e10cSrcweir MT_ED( "CharColor", FO, COLOR, XML_TYPE_COLORAUTO|MID_FLAG_MERGE_PROPERTY, 0 ),
428cdf0e10cSrcweir MT_ED( "CharColor", STYLE, USE_WINDOW_FONT_COLOR, XML_TYPE_ISAUTOCOLOR|MID_FLAG_MERGE_PROPERTY, 0 ),
429cdf0e10cSrcweir // RES_CHRATR_CONTOUR
430cdf0e10cSrcweir MT_E( "CharContoured", STYLE, TEXT_OUTLINE, XML_TYPE_BOOL, 0 ),
431cdf0e10cSrcweir // RES_CHRATR_CROSSEDOUT
432cdf0e10cSrcweir MT_E( "CharStrikeout", STYLE, TEXT_LINE_THROUGH_STYLE, XML_TYPE_TEXT_CROSSEDOUT_STYLE|MID_FLAG_MERGE_PROPERTY, 0),
433cdf0e10cSrcweir MT_E( "CharStrikeout", STYLE, TEXT_LINE_THROUGH_TYPE, XML_TYPE_TEXT_CROSSEDOUT_TYPE|MID_FLAG_MERGE_PROPERTY, 0),
434cdf0e10cSrcweir MT_E( "CharStrikeout", STYLE, TEXT_LINE_THROUGH_WIDTH, XML_TYPE_TEXT_CROSSEDOUT_WIDTH|MID_FLAG_MERGE_PROPERTY, 0),
435cdf0e10cSrcweir MT_E( "CharStrikeout", STYLE, TEXT_LINE_THROUGH_TEXT, XML_TYPE_TEXT_CROSSEDOUT_TEXT|MID_FLAG_MERGE_PROPERTY, 0),
436cdf0e10cSrcweir // RES_CHRATR_ESCAPEMENT
437cdf0e10cSrcweir MT_E( "CharEscapement", STYLE, TEXT_POSITION, XML_TYPE_TEXT_ESCAPEMENT|MID_FLAG_MERGE_ATTRIBUTE|MID_FLAG_MULTI_PROPERTY, 0 ),
438cdf0e10cSrcweir MT_E( "CharEscapementHeight", STYLE, TEXT_POSITION, XML_TYPE_TEXT_ESCAPEMENT_HEIGHT|MID_FLAG_MERGE_ATTRIBUTE|MID_FLAG_MULTI_PROPERTY, 0 ),
439cdf0e10cSrcweir // RES_CHRATR_FONT
440cdf0e10cSrcweir MT_ED( "CharFontName", STYLE, FONT_NAME, XML_TYPE_STRING|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTNAME ),
441cdf0e10cSrcweir MT_ED( "CharFontName", FO, FONT_FAMILY, XML_TYPE_TEXT_FONTFAMILYNAME|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTFAMILYNAME ),
442cdf0e10cSrcweir MT_ED( "CharFontStyleName",STYLE, FONT_STYLE_NAME, XML_TYPE_STRING, CTF_FONTSTYLENAME ),
443cdf0e10cSrcweir MT_ED( "CharFontFamily", STYLE, FONT_FAMILY_GENERIC,XML_TYPE_TEXT_FONTFAMILY, CTF_FONTFAMILY ),
444cdf0e10cSrcweir MT_ED( "CharFontPitch", STYLE, FONT_PITCH, XML_TYPE_TEXT_FONTPITCH, CTF_FONTPITCH ),
445cdf0e10cSrcweir MT_ED( "CharFontCharSet", STYLE, FONT_CHARSET, XML_TYPE_TEXT_FONTENCODING, CTF_FONTCHARSET ),
446cdf0e10cSrcweir // RES_CHRATR_FONTSIZE
447cdf0e10cSrcweir MT_ED( "CharHeight", FO, FONT_SIZE, XML_TYPE_CHAR_HEIGHT|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT ),
448cdf0e10cSrcweir MT_ED( "CharPropHeight",FO, FONT_SIZE, XML_TYPE_CHAR_HEIGHT_PROP|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_REL ),
449cdf0e10cSrcweir MT_ED( "CharDiffHeight",STYLE,FONT_SIZE_REL, XML_TYPE_CHAR_HEIGHT_DIFF, CTF_CHARHEIGHT_DIFF ),
450cdf0e10cSrcweir // RES_CHRATR_KERNING
451cdf0e10cSrcweir MT_E( "CharKerning", FO, LETTER_SPACING, XML_TYPE_TEXT_KERNING, 0 ),
452cdf0e10cSrcweir // RES_CHRATR_LANGUAGE
453cdf0e10cSrcweir MT_ED( "CharLocale", FO, LANGUAGE, XML_TYPE_CHAR_LANGUAGE|MID_FLAG_MERGE_PROPERTY, 0 ),
454cdf0e10cSrcweir MT_ED( "CharLocale", FO, COUNTRY, XML_TYPE_CHAR_COUNTRY|MID_FLAG_MERGE_PROPERTY, 0 ),
455cdf0e10cSrcweir // RES_CHRATR_POSTURE
456cdf0e10cSrcweir MT_E( "CharPosture", FO, FONT_STYLE, XML_TYPE_TEXT_POSTURE, 0 ),
457cdf0e10cSrcweir // RES_CHRATR_PROPORTIONALFONTSIZE
458cdf0e10cSrcweir // TODO: not used?
459cdf0e10cSrcweir // RES_CHRATR_SHADOWED
460cdf0e10cSrcweir MT_E( "CharShadowed", FO, TEXT_SHADOW, XML_TYPE_TEXT_SHADOWED, 0 ),
461cdf0e10cSrcweir // BIS HIER GEPRUEFT!
462cdf0e10cSrcweir // RES_CHRATR_UNDERLINE
463cdf0e10cSrcweir MT_E( "CharUnderline", STYLE, TEXT_UNDERLINE_STYLE, XML_TYPE_TEXT_UNDERLINE_STYLE|MID_FLAG_MERGE_PROPERTY, CTF_UNDERLINE ),
464cdf0e10cSrcweir MT_E( "CharUnderline", STYLE, TEXT_UNDERLINE_TYPE, XML_TYPE_TEXT_UNDERLINE_TYPE|MID_FLAG_MERGE_PROPERTY, 0 ),
465cdf0e10cSrcweir MT_E( "CharUnderline", STYLE, TEXT_UNDERLINE_WIDTH, XML_TYPE_TEXT_UNDERLINE_WIDTH|MID_FLAG_MERGE_PROPERTY, 0 ),
466cdf0e10cSrcweir MT_E( "CharUnderlineColor", STYLE, TEXT_UNDERLINE_COLOR, XML_TYPE_TEXT_UNDERLINE_COLOR|MID_FLAG_MULTI_PROPERTY, CTF_UNDERLINE_COLOR ),
467cdf0e10cSrcweir MT_E( "CharUnderlineHasColor", STYLE, TEXT_UNDERLINE_COLOR, XML_TYPE_TEXT_UNDERLINE_HASCOLOR|MID_FLAG_MERGE_ATTRIBUTE, CTF_UNDERLINE_HASCOLOR ),
468cdf0e10cSrcweir // RES_CHRATR_WEIGHT
469cdf0e10cSrcweir MT_E( "CharWeight", FO, FONT_WEIGHT, XML_TYPE_TEXT_WEIGHT, 0 ),
470cdf0e10cSrcweir // RES_CHRATR_WORDLINEMODE
471cdf0e10cSrcweir MT_E( "CharWordMode", STYLE, TEXT_UNDERLINE_MODE, XML_TYPE_TEXT_LINE_MODE|MID_FLAG_MERGE_PROPERTY, 0 ),
472cdf0e10cSrcweir MT_E( "CharWordMode", STYLE, TEXT_OVERLINE_MODE, XML_TYPE_TEXT_LINE_MODE|MID_FLAG_MERGE_PROPERTY, 0 ),
473cdf0e10cSrcweir MT_E( "CharWordMode", STYLE, TEXT_LINE_THROUGH_MODE, XML_TYPE_TEXT_LINE_MODE|MID_FLAG_MERGE_PROPERTY, 0 ),
474cdf0e10cSrcweir // RES_CHRATR_AUTOKERN
475cdf0e10cSrcweir MT_E( "CharAutoKerning", STYLE, LETTER_KERNING, XML_TYPE_BOOL, 0 ),
476cdf0e10cSrcweir // RES_CHRATR_BLINK
477cdf0e10cSrcweir MT_E( "CharFlash", STYLE, TEXT_BLINKING, XML_TYPE_BOOL, 0 ),
478cdf0e10cSrcweir // RES_CHRATR_NOHYPHEN
479cdf0e10cSrcweir // TODO: not used?
480cdf0e10cSrcweir // RES_CHRATR_NOLINEBREAK
481cdf0e10cSrcweir // TODO: not used?
482cdf0e10cSrcweir // RES_CHRATR_BACKGROUND
483cdf0e10cSrcweir MT_E( "CharBackColor", FO, BACKGROUND_COLOR, XML_TYPE_COLORTRANSPARENT|MID_FLAG_MULTI_PROPERTY, 0 ),
484cdf0e10cSrcweir MT_E( "CharBackTransparent", FO, BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
485cdf0e10cSrcweir MT_E( "CharBackColor", FO, TEXT_BACKGROUND_COLOR, XML_TYPE_COLOR|MID_FLAG_SPECIAL_ITEM_EXPORT, CTF_OLDTEXTBACKGROUND ),
486cdf0e10cSrcweir // RES_CHRATR_CJK_FONT
487cdf0e10cSrcweir MT_ED( "CharFontNameAsian", STYLE, FONT_NAME_ASIAN, XML_TYPE_STRING|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTNAME_CJK ),
488cdf0e10cSrcweir MT_ED( "CharFontNameAsian", STYLE, FONT_FAMILY_ASIAN, XML_TYPE_TEXT_FONTFAMILYNAME|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTFAMILYNAME_CJK ),
489cdf0e10cSrcweir MT_ED( "CharFontStyleNameAsian",STYLE, FONT_STYLE_NAME_ASIAN, XML_TYPE_STRING, CTF_FONTSTYLENAME_CJK ),
490cdf0e10cSrcweir MT_ED( "CharFontFamilyAsian", STYLE, FONT_FAMILY_GENERIC_ASIAN,XML_TYPE_TEXT_FONTFAMILY, CTF_FONTFAMILY_CJK ),
491cdf0e10cSrcweir MT_ED( "CharFontPitchAsian", STYLE, FONT_PITCH_ASIAN, XML_TYPE_TEXT_FONTPITCH, CTF_FONTPITCH_CJK ),
492cdf0e10cSrcweir MT_ED( "CharFontCharSetAsian", STYLE, FONT_CHARSET_ASIAN, XML_TYPE_TEXT_FONTENCODING, CTF_FONTCHARSET_CJK ),
493cdf0e10cSrcweir // RES_CHRATR_CJK_FONTSIZE
494cdf0e10cSrcweir MT_ED( "CharHeightAsian", STYLE, FONT_SIZE_ASIAN, XML_TYPE_CHAR_HEIGHT|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_CJK ),
495cdf0e10cSrcweir MT_ED( "CharPropHeightAsian",STYLE, FONT_SIZE_ASIAN, XML_TYPE_CHAR_HEIGHT_PROP|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_REL_CJK ),
496cdf0e10cSrcweir MT_ED( "CharDiffHeightAsian",STYLE,FONT_SIZE_REL_ASIAN, XML_TYPE_CHAR_HEIGHT_DIFF, CTF_CHARHEIGHT_DIFF_CJK ),
497cdf0e10cSrcweir // RES_CHRATR_CJK_LANGUAGE
498cdf0e10cSrcweir MT_ED( "CharLocaleAsian", STYLE, LANGUAGE_ASIAN, XML_TYPE_CHAR_LANGUAGE|MID_FLAG_MERGE_PROPERTY, 0 ),
499cdf0e10cSrcweir MT_ED( "CharLocaleAsian", STYLE, COUNTRY_ASIAN, XML_TYPE_CHAR_COUNTRY|MID_FLAG_MERGE_PROPERTY, 0 ),
500cdf0e10cSrcweir // RES_CHRATR_CJK_POSTURE
501cdf0e10cSrcweir MT_E( "CharPostureAsian", STYLE, FONT_STYLE_ASIAN, XML_TYPE_TEXT_POSTURE, 0 ),
502cdf0e10cSrcweir // RES_CHRATR_CJK_WEIGHT
503cdf0e10cSrcweir MT_E( "CharWeightAsian", STYLE, FONT_WEIGHT_ASIAN, XML_TYPE_TEXT_WEIGHT, 0 ),
504cdf0e10cSrcweir // RES_CHRATR_CTL_FONT
505cdf0e10cSrcweir MT_ED( "CharFontNameComplex", STYLE, FONT_NAME_COMPLEX, XML_TYPE_STRING|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTNAME_CTL ),
506cdf0e10cSrcweir MT_ED( "CharFontNameComplex", STYLE, FONT_FAMILY_COMPLEX, XML_TYPE_TEXT_FONTFAMILYNAME|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FONTFAMILYNAME_CTL ),
507cdf0e10cSrcweir MT_ED( "CharFontStyleNameComplex",STYLE, FONT_STYLE_NAME_COMPLEX, XML_TYPE_STRING, CTF_FONTSTYLENAME_CTL ),
508cdf0e10cSrcweir MT_ED( "CharFontFamilyComplex", STYLE, FONT_FAMILY_GENERIC_COMPLEX,XML_TYPE_TEXT_FONTFAMILY, CTF_FONTFAMILY_CTL ),
509cdf0e10cSrcweir MT_ED( "CharFontPitchComplex", STYLE, FONT_PITCH_COMPLEX, XML_TYPE_TEXT_FONTPITCH, CTF_FONTPITCH_CTL ),
510cdf0e10cSrcweir MT_ED( "CharFontCharSetComplex", STYLE, FONT_CHARSET_COMPLEX, XML_TYPE_TEXT_FONTENCODING, CTF_FONTCHARSET_CTL ),
511cdf0e10cSrcweir // RES_CHRATR_CTL_FONTSIZE
512cdf0e10cSrcweir MT_ED( "CharHeightComplex", STYLE, FONT_SIZE_COMPLEX, XML_TYPE_CHAR_HEIGHT|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_CTL ),
513cdf0e10cSrcweir MT_ED( "CharPropHeightComplex",STYLE, FONT_SIZE_COMPLEX, XML_TYPE_CHAR_HEIGHT_PROP|MID_FLAG_MULTI_PROPERTY, CTF_CHARHEIGHT_REL_CTL ),
514cdf0e10cSrcweir MT_ED( "CharDiffHeightComplex",STYLE,FONT_SIZE_REL_COMPLEX, XML_TYPE_CHAR_HEIGHT_DIFF, CTF_CHARHEIGHT_DIFF_CTL ),
515cdf0e10cSrcweir // RES_CHRATR_CTL_LANGUAGE
516cdf0e10cSrcweir MT_ED( "CharLocaleComplex", STYLE, LANGUAGE_COMPLEX, XML_TYPE_CHAR_LANGUAGE|MID_FLAG_MERGE_PROPERTY, 0 ),
517cdf0e10cSrcweir MT_ED( "CharLocaleComplex", STYLE, COUNTRY_COMPLEX, XML_TYPE_CHAR_COUNTRY|MID_FLAG_MERGE_PROPERTY, 0 ),
518cdf0e10cSrcweir // RES_CHRATR_CTL_POSTURE
519cdf0e10cSrcweir MT_E( "CharPostureComplex", STYLE, FONT_STYLE_COMPLEX, XML_TYPE_TEXT_POSTURE, 0 ),
520cdf0e10cSrcweir // RES_CHRATR_CTL_WEIGHT
521cdf0e10cSrcweir MT_E( "CharWeightComplex", STYLE, FONT_WEIGHT_COMPLEX, XML_TYPE_TEXT_WEIGHT, 0 ),
522cdf0e10cSrcweir // RES_CHRATR_ROTATE
523cdf0e10cSrcweir MT_E( "CharRotation", STYLE, TEXT_ROTATION_ANGLE, XML_TYPE_TEXT_ROTATION_ANGLE, 0 ),
524cdf0e10cSrcweir MT_E( "CharRotationIsFitToLine", STYLE, TEXT_ROTATION_SCALE, XML_TYPE_TEXT_ROTATION_SCALE, 0 ),
525cdf0e10cSrcweir // RES_CHRATR_EMPHASIS_MARK
526cdf0e10cSrcweir MT_E( "CharEmphasis", STYLE, TEXT_EMPHASIZE, XML_TYPE_TEXT_EMPHASIZE, 0 ),
527cdf0e10cSrcweir // RES_CHRATR_TWO_LINES
528cdf0e10cSrcweir MT_E( "CharCombineIsOn", STYLE, TEXT_COMBINE, XML_TYPE_TEXT_COMBINE|MID_FLAG_MULTI_PROPERTY, 0 ),
529cdf0e10cSrcweir MT_E( "CharCombinePrefix", STYLE, TEXT_COMBINE_START_CHAR, XML_TYPE_TEXT_COMBINECHAR, 0 ),
530cdf0e10cSrcweir MT_E( "CharCombineSuffix", STYLE, TEXT_COMBINE_END_CHAR, XML_TYPE_TEXT_COMBINECHAR, 0 ),
531cdf0e10cSrcweir // RES_CHRATR_SCALEW
532cdf0e10cSrcweir MT_E( "CharScaleWidth", STYLE, TEXT_SCALE, XML_TYPE_PERCENT16, 0 ),
533cdf0e10cSrcweir // combined characters field, does not correspond to a property
534cdf0e10cSrcweir MT_E( "", STYLE, TEXT_COMBINE, XML_TYPE_TEXT_COMBINE_CHARACTERS|MID_FLAG_NO_PROPERTY, CTF_COMBINED_CHARACTERS_FIELD ),
535cdf0e10cSrcweir //RES_CHRATR_RELIEF
536cdf0e10cSrcweir MT_E( "CharRelief", STYLE, FONT_RELIEF, XML_TYPE_TEXT_FONT_RELIEF, 0 ),
537cdf0e10cSrcweir // RES_CHRATR_HIDDEN
538cdf0e10cSrcweir MT_E( "CharHidden", TEXT, DISPLAY, XML_TYPE_TEXT_HIDDEN_AS_DISPLAY|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_TEXT_DISPLAY ),
539cdf0e10cSrcweir // RES_CHRATR_OVERLINE
540cdf0e10cSrcweir MT_E( "CharOverline", STYLE, TEXT_OVERLINE_STYLE, XML_TYPE_TEXT_OVERLINE_STYLE|MID_FLAG_MERGE_PROPERTY, 0 ),
541cdf0e10cSrcweir MT_E( "CharOverline", STYLE, TEXT_OVERLINE_TYPE, XML_TYPE_TEXT_OVERLINE_TYPE|MID_FLAG_MERGE_PROPERTY, 0 ),
542cdf0e10cSrcweir MT_E( "CharOverline", STYLE, TEXT_OVERLINE_WIDTH, XML_TYPE_TEXT_OVERLINE_WIDTH|MID_FLAG_MERGE_PROPERTY, 0 ),
543cdf0e10cSrcweir MT_E( "CharOverlineColor", STYLE, TEXT_OVERLINE_COLOR, XML_TYPE_TEXT_OVERLINE_COLOR|MID_FLAG_MULTI_PROPERTY, 0 ),
544cdf0e10cSrcweir MT_E( "CharOverlineHasColor", STYLE, TEXT_OVERLINE_COLOR, XML_TYPE_TEXT_OVERLINE_HASCOLOR|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
545cdf0e10cSrcweir
546cdf0e10cSrcweir // RES_TXTATR_INETFMT
547cdf0e10cSrcweir MT_E( "HyperLinkURL", TEXT, XMLNS, XML_TYPE_STRING|MID_FLAG_NO_PROPERTY_IMPORT, CTF_HYPERLINK_URL ),
548cdf0e10cSrcweir // RES_TXTATR_REFMARK
549cdf0e10cSrcweir // TODO
550cdf0e10cSrcweir // RES_TXTATR_TOXMARK
551cdf0e10cSrcweir // TODO
552cdf0e10cSrcweir // RES_TXTATR_CHARFMT
553cdf0e10cSrcweir MT_E( "CharStyleName", TEXT, STYLE_NAME, XML_TYPE_STRING|MID_FLAG_NO_PROPERTY_IMPORT, CTF_CHAR_STYLE_NAME ),
554cdf0e10cSrcweir // RES_TXTATR_CJK_RUBY
555cdf0e10cSrcweir // TODO
556cdf0e10cSrcweir // RES_TXTATR_FIELD
557cdf0e10cSrcweir // TODO
558cdf0e10cSrcweir // RES_TXTATR_FLYCNT
559cdf0e10cSrcweir // TODO
560cdf0e10cSrcweir // RES_TXTATR_FTN
561cdf0e10cSrcweir // TODO
562cdf0e10cSrcweir // RES_TXTATR_SOFTHYPH
563cdf0e10cSrcweir // TODO
564cdf0e10cSrcweir // RES_TXTATR_HARDBLANK
565cdf0e10cSrcweir // TODO
566cdf0e10cSrcweir // RES_UNKNOWNATR_CONTAINER
567cdf0e10cSrcweir MT_E( "TextUserDefinedAttributes", TEXT, XMLNS, XML_TYPE_ATTRIBUTE_CONTAINER | MID_FLAG_SPECIAL_ITEM, 0 ),
568cdf0e10cSrcweir MT_ED( "ParaIsCharacterDistance", STYLE, TEXT_AUTOSPACE, XML_TYPE_TEXT_AUTOSPACE, 0 ),
569cdf0e10cSrcweir MT_ED( "ParaIsHangingPunctuation", STYLE, PUNCTUATION_WRAP, XML_TYPE_TEXT_PUNCTUATION_WRAP, 0 ),
570cdf0e10cSrcweir MT_ED( "ParaIsForbiddenRules", STYLE, LINE_BREAK, XML_TYPE_TEXT_LINE_BREAK, 0 ),
571cdf0e10cSrcweir MT_E( "TabStopDistance", STYLE, TAB_STOP_DISTANCE, XML_TYPE_MEASURE, 0 ),
572cdf0e10cSrcweir
573cdf0e10cSrcweir M_END()
574cdf0e10cSrcweir };
575cdf0e10cSrcweir
576cdf0e10cSrcweir XMLPropertyMapEntry aXMLFramePropMap[] =
577cdf0e10cSrcweir {
578cdf0e10cSrcweir // RES_FILL_ORDER
579cdf0e10cSrcweir // TODO: not required???
580cdf0e10cSrcweir // RES_FRM_SIZE
581cdf0e10cSrcweir MG_ED( "Width", SVG, WIDTH, XML_TYPE_MEASURE, CTF_FRAMEWIDTH_ABS ),
582cdf0e10cSrcweir MG_ED( "Width", FO, MIN_WIDTH, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_FRAMEWIDTH_MIN_ABS ),
583cdf0e10cSrcweir MG_ED( "RelativeWidth", FO, MIN_WIDTH, XML_TYPE_TEXT_REL_WIDTH_HEIGHT, CTF_FRAMEWIDTH_MIN_REL ),
584cdf0e10cSrcweir MG_ED( "RelativeWidth", STYLE, REL_WIDTH, XML_TYPE_TEXT_REL_WIDTH_HEIGHT, CTF_FRAMEWIDTH_REL ),
585cdf0e10cSrcweir MG_ED( "WidthType", FO, TEXT_BOX, XML_TYPE_NUMBER16|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_FRAMEWIDTH_TYPE ),
586cdf0e10cSrcweir // M_ED( "RelativeWidth", STYLE, REL_WIDTH, XML_TYPE_TEXT_REL_WIDTH_HEIGHT|MID_FLAG_MULTI_PROPERTY, 0 ),
587cdf0e10cSrcweir // M_ED( "IsSyncWidthToHeight",STYLE, REL_WIDTH, XML_TYPE_TEXT_SYNC_WIDTH_HEIGHT|MID_FLAG_MULTI_PROPERTY, 0 ),
588cdf0e10cSrcweir
589cdf0e10cSrcweir MG_ED( "Height", SVG, HEIGHT, XML_TYPE_MEASURE, CTF_FRAMEHEIGHT_ABS ),
590cdf0e10cSrcweir MG_ED( "Height", FO, MIN_HEIGHT, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, CTF_FRAMEHEIGHT_MIN_ABS ),
591cdf0e10cSrcweir MG_ED( "RelativeHeight", FO, MIN_HEIGHT, XML_TYPE_TEXT_REL_WIDTH_HEIGHT, CTF_FRAMEHEIGHT_MIN_REL ),
592cdf0e10cSrcweir MG_ED( "RelativeHeight", STYLE, REL_HEIGHT, XML_TYPE_TEXT_REL_WIDTH_HEIGHT, CTF_FRAMEHEIGHT_REL ),
593cdf0e10cSrcweir // M_ED( "RelativeHeight", STYLE, REL_HEIGHT, XML_TYPE_TEXT_REL_WIDTH_HEIGHT|MID_FLAG_MULTI_PROPERTY, CTF_FRAMEHEIGHT_REL ),
594cdf0e10cSrcweir // M_ED( "IsSyncHeightToWidth",STYLE, REL_HEIGHT, XML_TYPE_TEXT_SYNC_WIDTH_HEIGHT|MID_FLAG_MULTI_PROPERTY, CTF_SYNCHEIGHT ),
595cdf0e10cSrcweir // M_ED( "IsSyncHeightToWidth",STYLE, REL_HEIGHT, XML_TYPE_TEXT_SYNC_WIDTH_HEIGHT_MIN, CTF_SYNCHEIGHT_MIN ),
596cdf0e10cSrcweir MG_ED( "SizeType", FO, TEXT_BOX, XML_TYPE_NUMBER16|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_SIZETYPE ),
597cdf0e10cSrcweir // RES_PAPER_BIN
598cdf0e10cSrcweir // not required
599cdf0e10cSrcweir // RES_ANCHOR
600cdf0e10cSrcweir // moved to here because it is not used for automatic styles
601cdf0e10cSrcweir MG_ED( "AnchorType", TEXT, ANCHOR_TYPE, XML_TYPE_TEXT_ANCHOR_TYPE, CTF_ANCHORTYPE ),
602cdf0e10cSrcweir // AnchorPage number is not required for styles!
603cdf0e10cSrcweir MG_ED( "HoriOrientPosition", SVG, X, XML_TYPE_MEASURE, 0 ),
604cdf0e10cSrcweir MG_ED( "VertOrientPosition", SVG, Y, XML_TYPE_MEASURE, 0 ),
605cdf0e10cSrcweir // ***** The map for automatic styles starts here *****
606cdf0e10cSrcweir // RES_LR_SPACE
607cdf0e10cSrcweir MG_E( "LeftMargin", FO, MARGIN, XML_TYPE_MEASURE, CTF_MARGINALL ),
608cdf0e10cSrcweir MG_E( "LeftMargin", FO, MARGIN_LEFT, XML_TYPE_MEASURE, CTF_MARGINLEFT ),
609cdf0e10cSrcweir MG_E( "RightMargin", FO, MARGIN_RIGHT, XML_TYPE_MEASURE, CTF_MARGINRIGHT ),
610cdf0e10cSrcweir // RES_UL_SPACE
611cdf0e10cSrcweir MG_E( "TopMargin", FO, MARGIN_TOP, XML_TYPE_MEASURE, CTF_MARGINTOP ),
612cdf0e10cSrcweir MG_E( "BottomMargin", FO, MARGIN_BOTTOM, XML_TYPE_MEASURE, CTF_MARGINBOTTOM ),
613cdf0e10cSrcweir // RES_PAGEDESC
614cdf0e10cSrcweir // not required
615cdf0e10cSrcweir // RES_BREAK
616cdf0e10cSrcweir // not required
617cdf0e10cSrcweir // RES_CNTNT
618cdf0e10cSrcweir // not required (accessed using API)
619cdf0e10cSrcweir // RES_HEADER
620cdf0e10cSrcweir // not required
621cdf0e10cSrcweir // RES_FOOTER
622cdf0e10cSrcweir // not required
623cdf0e10cSrcweir // RES_PRINT
624cdf0e10cSrcweir MG_E( "Print", STYLE, PRINT_CONTENT, XML_TYPE_BOOL, 0 ),
625cdf0e10cSrcweir // RES_OPAQUE
626cdf0e10cSrcweir MG_ED( "Opaque", STYLE, RUN_THROUGH, XML_TYPE_TEXT_OPAQUE, 0 ),
627cdf0e10cSrcweir // RES_PROTECT
628cdf0e10cSrcweir MG_E( "ContentProtected", STYLE, PROTECT, XML_TYPE_TEXT_PROTECT_CONTENT|MID_FLAG_MERGE_ATTRIBUTE|MID_FLAG_MULTI_PROPERTY, 0 ),
629cdf0e10cSrcweir MG_E( "SizeProtected", STYLE, PROTECT, XML_TYPE_TEXT_PROTECT_SIZE|MID_FLAG_MERGE_ATTRIBUTE|MID_FLAG_MULTI_PROPERTY, 0 ),
630cdf0e10cSrcweir MG_E( "PositionProtected", STYLE, PROTECT, XML_TYPE_TEXT_PROTECT_POSITION|MID_FLAG_MERGE_ATTRIBUTE|MID_FLAG_MULTI_PROPERTY, 0 ),
631cdf0e10cSrcweir // RES_SURROUND
632cdf0e10cSrcweir MG_ED( "TextWrap", STYLE, WRAP, XML_TYPE_TEXT_WRAP, CTF_WRAP ),
633cdf0e10cSrcweir MG_ED( "SurroundAnchorOnly", STYLE, NUMBER_WRAPPED_PARAGRAPHS, XML_TYPE_TEXT_PARAGRAPH_ONLY, CTF_WRAP_PARAGRAPH_ONLY ),
634cdf0e10cSrcweir MG_E( "SurroundContour", STYLE, WRAP_CONTOUR, XML_TYPE_BOOL, CTF_WRAP_CONTOUR ),
635cdf0e10cSrcweir MG_E( "ContourOutside", STYLE, WRAP_CONTOUR_MODE, XML_TYPE_TEXT_WRAP_OUTSIDE, CTF_WRAP_CONTOUR_MODE ),
636cdf0e10cSrcweir // RES_VERT_ORIENT
637cdf0e10cSrcweir MG_ED( "VertOrient", STYLE, VERTICAL_POS, XML_TYPE_TEXT_VERTICAL_POS, CTF_VERTICALPOS ),
638cdf0e10cSrcweir MG_ED( "VertOrient", STYLE, VERTICAL_POS, XML_TYPE_TEXT_VERTICAL_POS_AT_CHAR, CTF_VERTICALPOS_ATCHAR ),
639cdf0e10cSrcweir MG_ED( "VertOrient", STYLE, VERTICAL_REL, XML_TYPE_TEXT_VERTICAL_REL_AS_CHAR|MID_FLAG_MULTI_PROPERTY, CTF_VERTICALREL_ASCHAR ),
640cdf0e10cSrcweir MG_ED( "VertOrientRelation", STYLE, VERTICAL_REL, XML_TYPE_TEXT_VERTICAL_REL, CTF_VERTICALREL ),
641cdf0e10cSrcweir MG_ED( "VertOrientRelation", STYLE, VERTICAL_REL, XML_TYPE_TEXT_VERTICAL_REL_PAGE|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_VERTICALREL_PAGE ),
642cdf0e10cSrcweir MG_ED( "VertOrientRelation", STYLE, VERTICAL_REL, XML_TYPE_TEXT_VERTICAL_REL_FRAME|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_VERTICALREL_FRAME ),
643cdf0e10cSrcweir // RES_HORI_ORIENT
644cdf0e10cSrcweir MG_ED( "HoriOrient", STYLE, HORIZONTAL_POS, XML_TYPE_TEXT_HORIZONTAL_POS|MID_FLAG_MULTI_PROPERTY, CTF_HORIZONTALPOS ),
645cdf0e10cSrcweir MG_ED( "PageToggle", STYLE, HORIZONTAL_POS, XML_TYPE_TEXT_HORIZONTAL_MIRROR, CTF_HORIZONTALMIRROR ),
646cdf0e10cSrcweir MG_ED( "HoriOrient", STYLE, HORIZONTAL_POS, XML_TYPE_TEXT_HORIZONTAL_POS_MIRRORED|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_HORIZONTALPOS_MIRRORED ),
647cdf0e10cSrcweir MG_ED( "HoriOrientRelation", STYLE, HORIZONTAL_REL, XML_TYPE_TEXT_HORIZONTAL_REL, CTF_HORIZONTALREL ),
648cdf0e10cSrcweir MG_ED( "HoriOrientRelation", STYLE, HORIZONTAL_REL, XML_TYPE_TEXT_HORIZONTAL_REL_FRAME|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_HORIZONTALREL_FRAME ),
649cdf0e10cSrcweir // RES_ANCHOR
650cdf0e10cSrcweir // see above
651cdf0e10cSrcweir // RES_BACKGROUND
652cdf0e10cSrcweir MG_ED( "BackColorRGB", FO, BACKGROUND_COLOR, XML_TYPE_COLORTRANSPARENT|MID_FLAG_MULTI_PROPERTY, 0 ),
653cdf0e10cSrcweir MG_ED( "BackTransparent", FO, BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT|MID_FLAG_MERGE_ATTRIBUTE|MID_FLAG_MULTI_PROPERTY, CTF_BACKGROUND_TRANSPARENT ),
654cdf0e10cSrcweir MG_ED( "BackColorTransparency", STYLE, BACKGROUND_TRANSPARENCY, XML_TYPE_PERCENT8, CTF_BACKGROUND_TRANSPARENCY ),
655cdf0e10cSrcweir
656cdf0e10cSrcweir MG_E( "BackGraphicTransparency", STYLE, BACKGROUND_IMAGE_TRANSPARENCY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_PERCENT8, CTF_BACKGROUND_TRANSPARENCY ),
657cdf0e10cSrcweir MG_E( "BackGraphicLocation", STYLE, POSITION, MID_FLAG_SPECIAL_ITEM|XML_TYPE_BUILDIN_CMP_ONLY, CTF_BACKGROUND_POS ),
658cdf0e10cSrcweir MG_E( "BackGraphicFilter",STYLE, FILTER_NAME, MID_FLAG_SPECIAL_ITEM|XML_TYPE_STRING, CTF_BACKGROUND_FILTER ),
659cdf0e10cSrcweir MG_E( "BackGraphicURL", STYLE, BACKGROUND_IMAGE, MID_FLAG_ELEMENT_ITEM|XML_TYPE_STRING, CTF_BACKGROUND_URL ),
660cdf0e10cSrcweir
66164b14621SArmin Le Grand //UUUU fill attributes
66264b14621SArmin Le Grand GMAP( "FillStyle", XML_NAMESPACE_DRAW, XML_FILL, XML_SW_TYPE_FILLSTYLE, 0 ),
66364b14621SArmin Le Grand GMAP( "FillColor", XML_NAMESPACE_DRAW, XML_FILL_COLOR, XML_TYPE_COLOR, 0 ),
66464b14621SArmin Le Grand GMAP( "FillColor2", XML_NAMESPACE_DRAW, XML_SECONDARY_FILL_COLOR, XML_TYPE_COLOR, 0 ),
66556b35d86SArmin Le Grand GMAP( "FillGradientName", XML_NAMESPACE_DRAW, XML_FILL_GRADIENT_NAME, XML_TYPE_STYLENAME|MID_FLAG_NO_PROPERTY_IMPORT, CTF_FILLGRADIENTNAME ),
66664b14621SArmin Le Grand GMAP( "FillGradientStepCount", XML_NAMESPACE_DRAW, XML_GRADIENT_STEP_COUNT, XML_TYPE_NUMBER16, 0 ),
66756b35d86SArmin Le Grand GMAP( "FillHatchName", XML_NAMESPACE_DRAW, XML_FILL_HATCH_NAME, XML_TYPE_STYLENAME|MID_FLAG_NO_PROPERTY_IMPORT, CTF_FILLHATCHNAME ),
66864b14621SArmin Le Grand GMAP( "FillBackground", XML_NAMESPACE_DRAW, XML_FILL_HATCH_SOLID, XML_TYPE_BOOL, 0 ),
66956b35d86SArmin Le Grand GMAP( "FillBitmapName", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_NAME, XML_TYPE_STYLENAME|MID_FLAG_NO_PROPERTY_IMPORT, CTF_FILLBITMAPNAME ),
67064b14621SArmin Le Grand GMAP( "FillTransparence", XML_NAMESPACE_DRAW, XML_OPACITY, XML_TYPE_NEG_PERCENT16|MID_FLAG_MULTI_PROPERTY, 0 ), // exists in SW, too
67156b35d86SArmin Le Grand GMAP( "FillTransparenceGradientName", XML_NAMESPACE_DRAW, XML_OPACITY_NAME, XML_TYPE_STYLENAME|MID_FLAG_NO_PROPERTY_IMPORT, CTF_FILLTRANSNAME ),
67264b14621SArmin Le Grand GMAP( "FillBitmapSizeX", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_WIDTH, XML_SW_TYPE_FILLBITMAPSIZE|MID_FLAG_MULTI_PROPERTY, 0 ),
67364b14621SArmin Le Grand GMAP( "FillBitmapLogicalSize", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_WIDTH, XML_SW_TYPE_LOGICAL_SIZE|MID_FLAG_MULTI_PROPERTY, 0 ),
67464b14621SArmin Le Grand GMAP( "FillBitmapSizeY", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_HEIGHT, XML_SW_TYPE_FILLBITMAPSIZE|MID_FLAG_MULTI_PROPERTY, 0 ),
67564b14621SArmin Le Grand GMAP( "FillBitmapLogicalSize", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_HEIGHT, XML_SW_TYPE_LOGICAL_SIZE|MID_FLAG_MULTI_PROPERTY, 0 ),
67664b14621SArmin Le Grand GMAP( "FillBitmapMode", XML_NAMESPACE_STYLE,XML_REPEAT, XML_SW_TYPE_BITMAP_MODE|MID_FLAG_MULTI_PROPERTY, 0 ),
67764b14621SArmin Le Grand GMAP( "FillBitmapPositionOffsetX", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_REF_POINT_X, XML_TYPE_PERCENT, 0 ),
67864b14621SArmin Le Grand GMAP( "FillBitmapPositionOffsetY", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_REF_POINT_Y, XML_TYPE_PERCENT, 0 ),
67964b14621SArmin Le Grand GMAP( "FillBitmapRectanglePoint", XML_NAMESPACE_DRAW, XML_FILL_IMAGE_REF_POINT, XML_SW_TYPE_BITMAP_REFPOINT, 0 ),
68056b35d86SArmin Le Grand GMAP( "FillBitmapOffsetX", XML_NAMESPACE_DRAW, XML_TILE_REPEAT_OFFSET, XML_SW_TYPE_BITMAPREPOFFSETX|MID_FLAG_MULTI_PROPERTY, CTF_REPEAT_OFFSET_X ),
68156b35d86SArmin Le Grand GMAP( "FillBitmapOffsetY", XML_NAMESPACE_DRAW, XML_TILE_REPEAT_OFFSET, XML_SW_TYPE_BITMAPREPOFFSETY|MID_FLAG_MULTI_PROPERTY, CTF_REPEAT_OFFSET_Y ),
68264b14621SArmin Le Grand
68364b14621SArmin Le Grand // RES_BOX
684cdf0e10cSrcweir MG_ED( "LeftBorder", STYLE, BORDER_LINE_WIDTH, XML_TYPE_BORDER_WIDTH, CTF_ALLBORDERWIDTH ),
685cdf0e10cSrcweir MG_ED( "LeftBorder", STYLE, BORDER_LINE_WIDTH_LEFT, XML_TYPE_BORDER_WIDTH, CTF_LEFTBORDERWIDTH ),
686cdf0e10cSrcweir MG_ED( "RightBorder", STYLE, BORDER_LINE_WIDTH_RIGHT, XML_TYPE_BORDER_WIDTH, CTF_RIGHTBORDERWIDTH ),
687cdf0e10cSrcweir MG_ED( "TopBorder", STYLE, BORDER_LINE_WIDTH_TOP, XML_TYPE_BORDER_WIDTH, CTF_TOPBORDERWIDTH ),
688cdf0e10cSrcweir MG_ED( "BottomBorder", STYLE, BORDER_LINE_WIDTH_BOTTOM, XML_TYPE_BORDER_WIDTH, CTF_BOTTOMBORDERWIDTH ),
689cdf0e10cSrcweir
690cdf0e10cSrcweir MG_ED( "LeftBorderDistance", FO, PADDING, XML_TYPE_MEASURE, CTF_ALLBORDERDISTANCE ), // need special import filtering
691cdf0e10cSrcweir MG_ED( "LeftBorderDistance", FO, PADDING_LEFT, XML_TYPE_MEASURE, CTF_LEFTBORDERDISTANCE ),
692cdf0e10cSrcweir MG_ED( "RightBorderDistance", FO, PADDING_RIGHT, XML_TYPE_MEASURE, CTF_RIGHTBORDERDISTANCE ),
693cdf0e10cSrcweir MG_ED( "TopBorderDistance", FO, PADDING_TOP, XML_TYPE_MEASURE, CTF_TOPBORDERDISTANCE ),
694cdf0e10cSrcweir MG_ED( "BottomBorderDistance",FO, PADDING_BOTTOM, XML_TYPE_MEASURE, CTF_BOTTOMBORDERDISTANCE ),
695cdf0e10cSrcweir
696cdf0e10cSrcweir // There is an additional property for controls!
697cdf0e10cSrcweir MG_ED( "LeftBorder", FO, BORDER, XML_TYPE_BORDER|MID_FLAG_MULTI_PROPERTY, CTF_ALLBORDER ),
698cdf0e10cSrcweir MG_ED( "LeftBorder", FO, BORDER_LEFT, XML_TYPE_BORDER, CTF_LEFTBORDER ),
699cdf0e10cSrcweir MG_ED( "RightBorder", FO, BORDER_RIGHT, XML_TYPE_BORDER, CTF_RIGHTBORDER ),
700cdf0e10cSrcweir MG_ED( "TopBorder", FO, BORDER_TOP, XML_TYPE_BORDER, CTF_TOPBORDER ),
701cdf0e10cSrcweir MG_ED( "BottomBorder", FO, BORDER_BOTTOM, XML_TYPE_BORDER, CTF_BOTTOMBORDER ),
702cdf0e10cSrcweir // RES_SHADOW
703cdf0e10cSrcweir MG_E( "ShadowFormat", STYLE, SHADOW, XML_TYPE_TEXT_SHADOW, 0 ),
704cdf0e10cSrcweir // RES_FRMMACRO
705cdf0e10cSrcweir // TODO
706cdf0e10cSrcweir // RES_COL
707cdf0e10cSrcweir MG_E( "TextColumns", STYLE, COLUMNS, MID_FLAG_ELEMENT_ITEM|XML_TYPE_TEXT_COLUMNS, CTF_TEXTCOLUMNS ),
708cdf0e10cSrcweir // RES_KEEP
709cdf0e10cSrcweir // not required
710cdf0e10cSrcweir // RES_URL
711cdf0e10cSrcweir // not required (exprted as draw:a element)
712cdf0e10cSrcweir // RES_EDIT_IN_READONLY
713cdf0e10cSrcweir MG_ED( "EditInReadonly", STYLE, EDITABLE, XML_TYPE_BOOL, 0 ),
714cdf0e10cSrcweir // RES_LAYOUT_SPLIT
715cdf0e10cSrcweir // not required
716cdf0e10cSrcweir // RES_CHAIN
717cdf0e10cSrcweir // not required (exported at text:text-box element)
718cdf0e10cSrcweir // RES_LINENUMBER
719cdf0e10cSrcweir // not required
720cdf0e10cSrcweir // RES_FTN_AT_TXTEND
721cdf0e10cSrcweir // not required
722cdf0e10cSrcweir // RES_END_AT_TXTEND
723cdf0e10cSrcweir // not required
724cdf0e10cSrcweir // RES_COLUMNBALANCE
725cdf0e10cSrcweir // TODO
726cdf0e10cSrcweir // RES_UNKNOWNATR_CONTAINER
727cdf0e10cSrcweir // M_E_SE( TEXT, xmlns, RES_UNKNOWNATR_CONTAINER, 0 ),
728cdf0e10cSrcweir // RES_GRFATR_MIRRORGRF (vertical MUST be processed after horizontal!)
729cdf0e10cSrcweir MG_E( "HoriMirroredOnEvenPages", STYLE, MIRROR, XML_TYPE_TEXT_MIRROR_HORIZONTAL_LEFT|MID_FLAG_MERGE_ATTRIBUTE|MID_FLAG_MULTI_PROPERTY, 0 ),
730cdf0e10cSrcweir MG_E( "HoriMirroredOnOddPages", STYLE, MIRROR, XML_TYPE_TEXT_MIRROR_HORIZONTAL_RIGHT|MID_FLAG_MERGE_ATTRIBUTE|MID_FLAG_MULTI_PROPERTY, 0 ),
731cdf0e10cSrcweir MG_E( "VertMirrored", STYLE, MIRROR, XML_TYPE_TEXT_MIRROR_VERTICAL|MID_FLAG_MERGE_ATTRIBUTE|MID_FLAG_MULTI_PROPERTY, 0 ),
732cdf0e10cSrcweir // RES_GRFATR_CROPGRF
733cdf0e10cSrcweir MG_EV( "GraphicCrop", FO, CLIP, XML_TYPE_TEXT_CLIP, CTF_TEXT_CLIP, SvtSaveOptions::ODFVER_012 ),
734cdf0e10cSrcweir MG_E( "GraphicCrop", FO, CLIP, XML_TYPE_TEXT_CLIP11, CTF_TEXT_CLIP11 ),
735cdf0e10cSrcweir // RES_GRFATR_ROTATION
736cdf0e10cSrcweir // not required (exported as svg:transform attribute)
737cdf0e10cSrcweir // RES_GRFATR_LUMINANCE
738cdf0e10cSrcweir MG_E( "AdjustLuminance", DRAW, LUMINANCE, XML_TYPE_PERCENT16, 0 ), // signed?
739cdf0e10cSrcweir // RES_GRFATR_CONTRAST
740cdf0e10cSrcweir MG_E( "AdjustContrast", DRAW, CONTRAST, XML_TYPE_PERCENT16, 0 ), // signed?
741cdf0e10cSrcweir // RES_GRFATR_CHANNELR
742cdf0e10cSrcweir MG_E( "AdjustRed", DRAW, RED, XML_TYPE_PERCENT16, 0 ), // signed?
743cdf0e10cSrcweir // RES_GRFATR_CHANNELG
744cdf0e10cSrcweir MG_E( "AdjustGreen", DRAW, GREEN, XML_TYPE_PERCENT16, 0 ), // signed?
745cdf0e10cSrcweir // RES_GRFATR_CHANNELB
746cdf0e10cSrcweir MG_E( "AdjustBlue", DRAW, BLUE, XML_TYPE_PERCENT16, 0 ), // signed?
747cdf0e10cSrcweir // RES_GRFATR_GAMMA
748cdf0e10cSrcweir MG_E( "Gamma", DRAW, GAMMA, XML_TYPE_DOUBLE_PERCENT, 0 ), // signed?
749cdf0e10cSrcweir // RES_GRFATR_INVERT
750cdf0e10cSrcweir MG_E( "GraphicIsInverted", DRAW, COLOR_INVERSION, XML_TYPE_BOOL, 0 ),
751cdf0e10cSrcweir // RES_GRFATR_TRANSPARENCY
752cdf0e10cSrcweir MG_E( "Transparency", DRAW, IMAGE_OPACITY, XML_TYPE_NEG_PERCENT16|MID_FLAG_MULTI_PROPERTY, 0 ), // #i25616#
753cdf0e10cSrcweir // RES_GRFATR_DRAWMODE
754cdf0e10cSrcweir MG_E( "GraphicColorMode", DRAW, COLOR_MODE, XML_TYPE_COLOR_MODE, 0 ),
755cdf0e10cSrcweir MG_E( "WritingMode", STYLE, WRITING_MODE, XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT, 0 ),
756cdf0e10cSrcweir // RES_FOLLOW_TEXT_FLOW - DVO, OD 01.10.2003 #i18732#
757cdf0e10cSrcweir MG_E( "IsFollowingTextFlow", DRAW, FLOW_WITH_TEXT, XML_TYPE_BOOL|MID_FLAG_SPECIAL_ITEM_EXPORT, CTF_OLD_FLOW_WITH_TEXT ),
758cdf0e10cSrcweir MG_E( "IsFollowingTextFlow", STYLE, FLOW_WITH_TEXT, XML_TYPE_BOOL, 0 ),
759cdf0e10cSrcweir // OD 2004-05-05 #i28701# - RES_WRAP_INFLUENCE_ON_OBJPOS
760cdf0e10cSrcweir MG_E( "WrapInfluenceOnPosition", DRAW, WRAP_INFLUENCE_ON_POSITION, XML_TYPE_WRAP_INFLUENCE_ON_POSITION, 0 ),
761cdf0e10cSrcweir
762cdf0e10cSrcweir // special entries for floating frames
763cdf0e10cSrcweir MG_E( "", DRAW, FRAME_DISPLAY_SCROLLBAR, XML_TYPE_BOOL|MID_FLAG_NO_PROPERTY|MID_FLAG_MULTI_PROPERTY, CTF_FRAME_DISPLAY_SCROLLBAR ),
764cdf0e10cSrcweir MG_E( "", DRAW, FRAME_DISPLAY_BORDER, XML_TYPE_BOOL|MID_FLAG_NO_PROPERTY|MID_FLAG_MULTI_PROPERTY, CTF_FRAME_DISPLAY_BORDER ),
765cdf0e10cSrcweir MG_E( "", DRAW, FRAME_MARGIN_HORIZONTAL, XML_TYPE_MEASURE_PX|MID_FLAG_NO_PROPERTY|MID_FLAG_MULTI_PROPERTY, CTF_FRAME_MARGIN_HORI ),
766cdf0e10cSrcweir MG_E( "", DRAW, FRAME_MARGIN_VERTICAL, XML_TYPE_MEASURE_PX|MID_FLAG_NO_PROPERTY|MID_FLAG_MULTI_PROPERTY, CTF_FRAME_MARGIN_VERT ),
767cdf0e10cSrcweir MG_E( "", DRAW, VISIBLE_AREA_LEFT, XML_TYPE_MEASURE|MID_FLAG_NO_PROPERTY|MID_FLAG_MULTI_PROPERTY, CTF_OLE_VIS_AREA_LEFT ),
768cdf0e10cSrcweir MG_E( "", DRAW, VISIBLE_AREA_TOP, XML_TYPE_MEASURE|MID_FLAG_NO_PROPERTY|MID_FLAG_MULTI_PROPERTY, CTF_OLE_VIS_AREA_TOP ),
769cdf0e10cSrcweir MG_E( "", DRAW, VISIBLE_AREA_WIDTH, XML_TYPE_MEASURE|MID_FLAG_NO_PROPERTY|MID_FLAG_MULTI_PROPERTY, CTF_OLE_VIS_AREA_WIDTH ),
770cdf0e10cSrcweir MG_E( "", DRAW, VISIBLE_AREA_HEIGHT, XML_TYPE_MEASURE|MID_FLAG_NO_PROPERTY|MID_FLAG_MULTI_PROPERTY, CTF_OLE_VIS_AREA_HEIGHT ),
771cdf0e10cSrcweir MG_E( "", DRAW, DRAW_ASPECT, XML_TYPE_TEXT_DRAW_ASPECT|MID_FLAG_NO_PROPERTY|MID_FLAG_MULTI_PROPERTY, CTF_OLE_DRAW_ASPECT ),
772cdf0e10cSrcweir MG_E( "UserDefinedAttributes", TEXT, XMLNS, XML_TYPE_ATTRIBUTE_CONTAINER | MID_FLAG_SPECIAL_ITEM, 0 ),
773cdf0e10cSrcweir
774cdf0e10cSrcweir M_END()
775cdf0e10cSrcweir };
776cdf0e10cSrcweir
777cdf0e10cSrcweir XMLPropertyMapEntry aXMLShapePropMap[] =
778cdf0e10cSrcweir {
779cdf0e10cSrcweir // RES_LR_SPACE
780cdf0e10cSrcweir MG_E( "LeftMargin", FO, MARGIN_LEFT, XML_TYPE_MEASURE, 0),
781cdf0e10cSrcweir MG_E( "RightMargin", FO, MARGIN_RIGHT, XML_TYPE_MEASURE, 0 ),
782cdf0e10cSrcweir // RES_UL_SPACE
783cdf0e10cSrcweir MG_E( "TopMargin", FO, MARGIN_TOP, XML_TYPE_MEASURE, 0 ),
784cdf0e10cSrcweir MG_E( "BottomMargin", FO, MARGIN_BOTTOM, XML_TYPE_MEASURE, 0 ),
785cdf0e10cSrcweir // RES_OPAQUE
786cdf0e10cSrcweir MG_ED( "Opaque", STYLE, RUN_THROUGH, XML_TYPE_TEXT_OPAQUE, 0 ),
787cdf0e10cSrcweir // RES_SURROUND
788cdf0e10cSrcweir MG_E( "TextWrap", STYLE, WRAP, XML_TYPE_TEXT_WRAP, CTF_WRAP ),
789cdf0e10cSrcweir MG_E( "SurroundAnchorOnly", STYLE, NUMBER_WRAPPED_PARAGRAPHS, XML_TYPE_TEXT_PARAGRAPH_ONLY, CTF_WRAP_PARAGRAPH_ONLY ),
790cdf0e10cSrcweir MG_E( "SurroundContour", STYLE, WRAP_CONTOUR, XML_TYPE_BOOL, CTF_WRAP_CONTOUR ),
791cdf0e10cSrcweir MG_E( "ContourOutside", STYLE, WRAP_CONTOUR_MODE, XML_TYPE_TEXT_WRAP_OUTSIDE, CTF_WRAP_CONTOUR_MODE ),
792cdf0e10cSrcweir // --> OD 2004-08-09 #i28749# - use own CTF ids for positioning attributes
793cdf0e10cSrcweir // RES_VERT_ORIENT
794cdf0e10cSrcweir MG_E( "VertOrient", STYLE, VERTICAL_POS, XML_TYPE_TEXT_VERTICAL_POS, CTF_SHAPE_VERTICALPOS ),
795cdf0e10cSrcweir // OD 2004-04-16 #i26791# - add property for at-character anchored shapes
796cdf0e10cSrcweir MG_E( "VertOrient", STYLE, VERTICAL_POS, XML_TYPE_TEXT_VERTICAL_POS_AT_CHAR, CTF_SHAPE_VERTICALPOS_ATCHAR ),
797cdf0e10cSrcweir MG_E( "VertOrient", STYLE, VERTICAL_REL, XML_TYPE_TEXT_VERTICAL_REL_AS_CHAR|MID_FLAG_MULTI_PROPERTY, CTF_VERTICALREL_ASCHAR ),
798cdf0e10cSrcweir MG_E( "VertOrientRelation", STYLE, VERTICAL_REL, XML_TYPE_TEXT_VERTICAL_REL, CTF_SHAPE_VERTICALREL ),
799cdf0e10cSrcweir MG_E( "VertOrientRelation", STYLE, VERTICAL_REL, XML_TYPE_TEXT_VERTICAL_REL_PAGE|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_SHAPE_VERTICALREL_PAGE ),
800cdf0e10cSrcweir MG_E( "VertOrientRelation", STYLE, VERTICAL_REL, XML_TYPE_TEXT_VERTICAL_REL_FRAME|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_SHAPE_VERTICALREL_FRAME ),
801cdf0e10cSrcweir // RES_HORI_ORIENT
802cdf0e10cSrcweir MG_E( "HoriOrient", STYLE, HORIZONTAL_POS, XML_TYPE_TEXT_HORIZONTAL_POS|MID_FLAG_MULTI_PROPERTY, CTF_SHAPE_HORIZONTALPOS ),
803cdf0e10cSrcweir MG_E( "PageToggle", STYLE, HORIZONTAL_POS, XML_TYPE_TEXT_HORIZONTAL_MIRROR, CTF_SHAPE_HORIZONTALMIRROR ),
804cdf0e10cSrcweir MG_E( "HoriOrient", STYLE, HORIZONTAL_POS, XML_TYPE_TEXT_HORIZONTAL_POS_MIRRORED|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_SHAPE_HORIZONTALPOS_MIRRORED ),
805cdf0e10cSrcweir MG_E( "HoriOrientRelation", STYLE, HORIZONTAL_REL, XML_TYPE_TEXT_HORIZONTAL_REL, CTF_SHAPE_HORIZONTALREL ),
806cdf0e10cSrcweir MG_E( "HoriOrientRelation", STYLE, HORIZONTAL_REL, XML_TYPE_TEXT_HORIZONTAL_REL_FRAME|MID_FLAG_SPECIAL_ITEM_IMPORT, CTF_SHAPE_HORIZONTALREL_FRAME ),
807cdf0e10cSrcweir // <--
808cdf0e10cSrcweir // OD 2004-05-05 #i28701# - RES_WRAP_INFLUENCE_ON_OBJPOS
809cdf0e10cSrcweir MG_ED( "WrapInfluenceOnPosition", DRAW, WRAP_INFLUENCE_ON_POSITION, XML_TYPE_WRAP_INFLUENCE_ON_POSITION, 0 ),
810cdf0e10cSrcweir // UserDefinedAttributes is already contained in the map this one is
811cdf0e10cSrcweir // chained to.
812cdf0e10cSrcweir
813cdf0e10cSrcweir // RES_FOLLOW_TEXT_FLOW - OD 2004-04-21 #i26791#
814cdf0e10cSrcweir MG_ED( "IsFollowingTextFlow", STYLE, FLOW_WITH_TEXT, XML_TYPE_BOOL, 0 ),
815cdf0e10cSrcweir
816cdf0e10cSrcweir M_END()
817cdf0e10cSrcweir };
818cdf0e10cSrcweir
819cdf0e10cSrcweir XMLPropertyMapEntry aXMLSectionPropMap[] =
820cdf0e10cSrcweir {
821cdf0e10cSrcweir // RES_COL
822cdf0e10cSrcweir MS_E( "TextColumns", STYLE, COLUMNS, MID_FLAG_ELEMENT_ITEM|XML_TYPE_TEXT_COLUMNS, CTF_TEXTCOLUMNS ),
823cdf0e10cSrcweir
824cdf0e10cSrcweir // RES_BACKGROUND
825cdf0e10cSrcweir MS_E( "BackColor", FO, BACKGROUND_COLOR, XML_TYPE_COLORTRANSPARENT|MID_FLAG_MULTI_PROPERTY, 0 ),
826cdf0e10cSrcweir MS_E( "BackTransparent", FO, BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT|MID_FLAG_MERGE_ATTRIBUTE, 0 ),
827cdf0e10cSrcweir MS_E( "BackGraphicLocation", STYLE, POSITION, MID_FLAG_SPECIAL_ITEM|XML_TYPE_BUILDIN_CMP_ONLY, CTF_BACKGROUND_POS ),
828cdf0e10cSrcweir MS_E( "BackGraphicFilter",STYLE, FILTER_NAME, MID_FLAG_SPECIAL_ITEM|XML_TYPE_STRING, CTF_BACKGROUND_FILTER ),
829cdf0e10cSrcweir MS_E( "BackGraphicURL", STYLE, BACKGROUND_IMAGE, MID_FLAG_ELEMENT_ITEM|XML_TYPE_STRING, CTF_BACKGROUND_URL ),
830cdf0e10cSrcweir
831cdf0e10cSrcweir // move protect-flag into section element
832cdf0e10cSrcweir // M_E( "IsProtected", STYLE, PROTECT, XML_TYPE_BOOL, 0 ),
833cdf0e10cSrcweir
834cdf0e10cSrcweir MS_E( "DontBalanceTextColumns", TEXT, DONT_BALANCE_TEXT_COLUMNS, XML_TYPE_BOOL, 0 ),
835cdf0e10cSrcweir
836cdf0e10cSrcweir MS_E( "WritingMode", STYLE, WRITING_MODE, XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT, 0 ),
837cdf0e10cSrcweir
838cdf0e10cSrcweir MS_E( "SectionLeftMargin", FO, MARGIN_LEFT, XML_TYPE_MEASURE, 0),
839cdf0e10cSrcweir MS_E( "SectionRightMargin", FO, MARGIN_RIGHT, XML_TYPE_MEASURE, 0),
840cdf0e10cSrcweir
841cdf0e10cSrcweir // section footnote settings
842cdf0e10cSrcweir MS_E( "FootnoteIsOwnNumbering", TEXT, _EMPTY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_BOOL, CTF_SECTION_FOOTNOTE_NUM_OWN ),
843cdf0e10cSrcweir MS_E( "FootnoteIsRestartNumbering", TEXT, _EMPTY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_BOOL, CTF_SECTION_FOOTNOTE_NUM_RESTART ),
844cdf0e10cSrcweir MS_E( "FootnoteRestartNumberingAt", TEXT, _EMPTY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_NUMBER16,CTF_SECTION_FOOTNOTE_NUM_RESTART_AT ),
845cdf0e10cSrcweir MS_E( "FootnoteNumberingType", TEXT, _EMPTY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_NUMBER16,CTF_SECTION_FOOTNOTE_NUM_TYPE ),
846cdf0e10cSrcweir MS_E( "FootnoteNumberingPrefix", TEXT, _EMPTY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_STRING, CTF_SECTION_FOOTNOTE_NUM_PREFIX ),
847cdf0e10cSrcweir MS_E( "FootnoteNumberingSuffix", TEXT, _EMPTY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_STRING, CTF_SECTION_FOOTNOTE_NUM_SUFFIX ),
848cdf0e10cSrcweir MS_E( "FootnoteIsCollectAtTextEnd", TEXT, NOTES_CONFIGURATION, MID_FLAG_ELEMENT_ITEM|XML_TYPE_BOOL, CTF_SECTION_FOOTNOTE_END ),
849cdf0e10cSrcweir
850cdf0e10cSrcweir // section footnote settings
851cdf0e10cSrcweir MS_E( "EndnoteIsOwnNumbering", TEXT, _EMPTY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_BOOL, CTF_SECTION_ENDNOTE_NUM_OWN ),
852cdf0e10cSrcweir MS_E( "EndnoteIsRestartNumbering", TEXT, _EMPTY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_BOOL, CTF_SECTION_ENDNOTE_NUM_RESTART ),
853cdf0e10cSrcweir MS_E( "EndnoteRestartNumberingAt", TEXT, _EMPTY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_NUMBER16,CTF_SECTION_ENDNOTE_NUM_RESTART_AT ),
854cdf0e10cSrcweir MS_E( "EndnoteNumberingType", TEXT, _EMPTY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_NUMBER16,CTF_SECTION_ENDNOTE_NUM_TYPE ),
855cdf0e10cSrcweir MS_E( "EndnoteNumberingPrefix", TEXT, _EMPTY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_STRING, CTF_SECTION_ENDNOTE_NUM_PREFIX ),
856cdf0e10cSrcweir MS_E( "EndnoteNumberingSuffix", TEXT, _EMPTY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_STRING, CTF_SECTION_ENDNOTE_NUM_SUFFIX ),
857cdf0e10cSrcweir MS_E( "EndnoteIsCollectAtTextEnd", TEXT, NOTES_CONFIGURATION, MID_FLAG_ELEMENT_ITEM|XML_TYPE_BOOL, CTF_SECTION_ENDNOTE_END ),
858cdf0e10cSrcweir MS_E( "UserDefinedAttributes", TEXT, XMLNS, XML_TYPE_ATTRIBUTE_CONTAINER | MID_FLAG_SPECIAL_ITEM, 0 ),
859cdf0e10cSrcweir
860cdf0e10cSrcweir // --> FME 2004-06-22 #114856# edit in readonly sections
861cdf0e10cSrcweir // RES_EDIT_IN_READONLY
862cdf0e10cSrcweir MS_E( "EditInReadonly", STYLE, EDITABLE, XML_TYPE_BOOL, 0 ),
863cdf0e10cSrcweir // <--
864cdf0e10cSrcweir
865cdf0e10cSrcweir M_END()
866cdf0e10cSrcweir };
867cdf0e10cSrcweir
868cdf0e10cSrcweir XMLPropertyMapEntry aXMLRubyPropMap[] =
869cdf0e10cSrcweir {
870cdf0e10cSrcweir MR_E( "RubyAdjust", STYLE, RUBY_ALIGN, XML_TYPE_TEXT_RUBY_ADJUST, 0 ),
871cdf0e10cSrcweir MR_E( "RubyIsAbove", STYLE, RUBY_POSITION, XML_TYPE_TEXT_RUBY_POSITION, 0 ),
872cdf0e10cSrcweir M_END()
873cdf0e10cSrcweir };
874cdf0e10cSrcweir
875cdf0e10cSrcweir
876cdf0e10cSrcweir XMLPropertyMapEntry aXMLTableDefaultsMap[] =
877cdf0e10cSrcweir {
878cdf0e10cSrcweir // RES_COLLAPSING_BORDERS: only occurs in tables, but we need to
879cdf0e10cSrcweir // read/write the default for this item
880cdf0e10cSrcweir _M_ED( "CollapsingBorders", TABLE, BORDER_MODEL, XML_TYPE_PROP_TABLE | XML_TYPE_BORDER_MODEL | MID_FLAG_NO_PROPERTY_IMPORT, CTF_BORDER_MODEL ),
881cdf0e10cSrcweir
882cdf0e10cSrcweir M_END()
883cdf0e10cSrcweir };
884cdf0e10cSrcweir
885cdf0e10cSrcweir XMLPropertyMapEntry aXMLTableRowDefaultsMap[] =
886cdf0e10cSrcweir {
887cdf0e10cSrcweir // RES_ROW_SPLIT: only occurs in table rows, but we need to
888cdf0e10cSrcweir // read/write the default for this item
889cdf0e10cSrcweir _M_ED( "IsSplitAllowed", FO, KEEP_TOGETHER, XML_TYPE_PROP_TABLE_ROW | XML_TYPE_TEXT_NKEEP | MID_FLAG_NO_PROPERTY_IMPORT, CTF_KEEP_TOGETHER ),
890cdf0e10cSrcweir
891cdf0e10cSrcweir M_END()
892cdf0e10cSrcweir };
893cdf0e10cSrcweir
lcl_txtprmap_getMap(sal_uInt16 nType)894cdf0e10cSrcweir XMLPropertyMapEntry *lcl_txtprmap_getMap( sal_uInt16 nType )
895cdf0e10cSrcweir {
896cdf0e10cSrcweir XMLPropertyMapEntry *pMap = 0;
897cdf0e10cSrcweir switch( nType )
898cdf0e10cSrcweir {
899cdf0e10cSrcweir case TEXT_PROP_MAP_TEXT:
900cdf0e10cSrcweir pMap = aXMLTextPropMap;
901cdf0e10cSrcweir break;
902cdf0e10cSrcweir case TEXT_PROP_MAP_SHAPE_PARA:
903*85ecee34SArmin Le Grand // #125045# use [21] instead of [1] for text props for Shapes, idices
904*85ecee34SArmin Le Grand // [1..20] contain the DrawingLayer FillStyle attributes corresponding to
905*85ecee34SArmin Le Grand // [XATTR_FILL_FIRST .. XATTR_FILL_LAST] and would be double since Shapes
906*85ecee34SArmin Le Grand // already contain these (usually in aXMLSDProperties)
907*85ecee34SArmin Le Grand pMap = &(aXMLParaPropMap[21]);
908cdf0e10cSrcweir OSL_ENSURE( pMap->meXMLName == XML_MARGIN, "shape para map changed" );
909cdf0e10cSrcweir break;
910cdf0e10cSrcweir case TEXT_PROP_MAP_PARA:
911cdf0e10cSrcweir pMap = aXMLParaPropMap;
912cdf0e10cSrcweir break;
913cdf0e10cSrcweir case TEXT_PROP_MAP_FRAME:
914cdf0e10cSrcweir pMap = aXMLFramePropMap;
915cdf0e10cSrcweir break;
916cdf0e10cSrcweir case TEXT_PROP_MAP_AUTO_FRAME:
917cdf0e10cSrcweir pMap = &(aXMLFramePropMap[13]);
918cdf0e10cSrcweir OSL_ENSURE( pMap->meXMLName == XML_MARGIN, "frame map changed" );
919cdf0e10cSrcweir break;
920cdf0e10cSrcweir case TEXT_PROP_MAP_SHAPE:
921cdf0e10cSrcweir pMap = aXMLShapePropMap;
922cdf0e10cSrcweir break;
923cdf0e10cSrcweir case TEXT_PROP_MAP_SECTION:
924cdf0e10cSrcweir pMap = aXMLSectionPropMap;
925cdf0e10cSrcweir break;
926cdf0e10cSrcweir case TEXT_PROP_MAP_RUBY:
927cdf0e10cSrcweir pMap = aXMLRubyPropMap;
928cdf0e10cSrcweir break;
929cdf0e10cSrcweir case TEXT_PROP_MAP_TEXT_ADDITIONAL_DEFAULTS:
930cdf0e10cSrcweir pMap = aXMLAdditionalTextDefaultsMap;
931cdf0e10cSrcweir break;
932cdf0e10cSrcweir case TEXT_PROP_MAP_TABLE_DEFAULTS:
933cdf0e10cSrcweir pMap = aXMLTableDefaultsMap;
934cdf0e10cSrcweir break;
935cdf0e10cSrcweir case TEXT_PROP_MAP_TABLE_ROW_DEFAULTS:
936cdf0e10cSrcweir pMap = aXMLTableRowDefaultsMap;
937cdf0e10cSrcweir break;
938cdf0e10cSrcweir }
939cdf0e10cSrcweir DBG_ASSERT( pMap, "illegal map type" );
940cdf0e10cSrcweir return pMap;
941cdf0e10cSrcweir }
942cdf0e10cSrcweir
getPropertyMapForType(sal_uInt16 _nType)943cdf0e10cSrcweir const XMLPropertyMapEntry* XMLTextPropertySetMapper::getPropertyMapForType( sal_uInt16 _nType )
944cdf0e10cSrcweir {
945cdf0e10cSrcweir return lcl_txtprmap_getMap( _nType );
946cdf0e10cSrcweir }
947cdf0e10cSrcweir
XMLTextPropertySetMapper(sal_uInt16 nType)948cdf0e10cSrcweir XMLTextPropertySetMapper::XMLTextPropertySetMapper( sal_uInt16 nType ) :
949cdf0e10cSrcweir XMLPropertySetMapper( lcl_txtprmap_getMap( nType ),
950cdf0e10cSrcweir new XMLTextPropertyHandlerFactory )
951cdf0e10cSrcweir {
952cdf0e10cSrcweir }
953cdf0e10cSrcweir
~XMLTextPropertySetMapper()954cdf0e10cSrcweir XMLTextPropertySetMapper::~XMLTextPropertySetMapper()
955cdf0e10cSrcweir {
956cdf0e10cSrcweir }
957