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