diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-03-01 08:39:11 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-03-07 02:37:36 +0100 |
commit | d72145f9307c732ced4a546ac1e5093ec7c1a982 (patch) | |
tree | 648cf88d30ba3da260edb22829d8cd8be0c9345e /xmloff | |
parent | 6b39ed0eaffabb6ffe11496d833053c094c72f7b (diff) |
Move BackGraphicURL property & friends to BackGraphic + fixes
This moves BackGraphicURL, HeaderGraphicURL, FooterGraphicURL and
ParaBackGraphicURL properties to BackGraphic, HeaderBackGraphic,
FooterBackGraphic and ParaBackGraphic. With this the property type
changes from String to XGraphic.
This change also fixes a bunch of test failures, changes the tests
to use the new properties and the correct type, changes the import
and export filters like xmloff and oox, to make the tests happy.
Change-Id: Ie66097514203c6dc36ab27420faf265322e9279e
Reviewed-on: https://gerrit.libreoffice.org/50760
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/inc/XMLBackgroundImageContext.hxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/PageMasterStyleMap.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/style/XMLBackgroundImageContext.cxx | 29 | ||||
-rw-r--r-- | xmloff/source/style/XMLBackgroundImageExport.cxx | 30 | ||||
-rw-r--r-- | xmloff/source/style/prstylei.cxx | 8 | ||||
-rw-r--r-- | xmloff/source/style/xmlnume.cxx | 30 | ||||
-rw-r--r-- | xmloff/source/text/txtprhdl.cxx | 38 | ||||
-rw-r--r-- | xmloff/source/text/txtprmap.cxx | 6 |
8 files changed, 93 insertions, 58 deletions
diff --git a/xmloff/inc/XMLBackgroundImageContext.hxx b/xmloff/inc/XMLBackgroundImageContext.hxx index e965935206a6..8080f3f3b458 100644 --- a/xmloff/inc/XMLBackgroundImageContext.hxx +++ b/xmloff/inc/XMLBackgroundImageContext.hxx @@ -35,11 +35,11 @@ class XMLBackgroundImageContext : public XMLElementPropertyContext XMLPropertyState aTransparencyProp; css::style::GraphicLocation ePos; - OUString sURL; + OUString m_sURL; OUString sFilter; sal_Int8 nTransparency; - css::uno::Reference < css::io::XOutputStream > xBase64Stream; + css::uno::Reference < css::io::XOutputStream > m_xBase64Stream; private: void ProcessAttrs( diff --git a/xmloff/source/style/PageMasterStyleMap.cxx b/xmloff/source/style/PageMasterStyleMap.cxx index 7b11abbd2795..50b90fe35e7b 100644 --- a/xmloff/source/style/PageMasterStyleMap.cxx +++ b/xmloff/source/style/PageMasterStyleMap.cxx @@ -75,7 +75,7 @@ const XMLPropertyMapEntry aXMLPageMasterStyleMap[] = PLMAP( "BackTransparent", XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT | MID_FLAG_MERGE_ATTRIBUTE, 0 ), PLMAP( "BackGraphicLocation", XML_NAMESPACE_STYLE, XML_POSITION, XML_TYPE_BUILDIN_CMP_ONLY | MID_FLAG_SPECIAL_ITEM, CTF_PM_GRAPHICPOSITION ), PLMAP( "BackGraphicFilter", XML_NAMESPACE_STYLE, XML_FILTER_NAME, XML_TYPE_STRING | MID_FLAG_SPECIAL_ITEM, CTF_PM_GRAPHICFILTER ), - PLMAP( "BackGraphicURL", XML_NAMESPACE_STYLE, XML_BACKGROUND_IMAGE, XML_TYPE_STRING | MID_FLAG_ELEMENT_ITEM, CTF_PM_GRAPHICURL ), + PLMAP( "BackGraphic", XML_NAMESPACE_STYLE, XML_BACKGROUND_IMAGE, XML_TYPE_STRING | MID_FLAG_ELEMENT_ITEM, CTF_PM_GRAPHICURL ), PLMAP( "PrintAnnotations", XML_NAMESPACE_STYLE, XML_PRINT, XML_PM_TYPE_PRINTANNOTATIONS | MID_FLAG_MULTI_PROPERTY, CTF_PM_PRINT_ANNOTATIONS ), PLMAP( "PrintCharts", XML_NAMESPACE_STYLE, XML_PRINT, XML_PM_TYPE_PRINTCHARTS | MID_FLAG_MULTI_PROPERTY | MID_FLAG_MERGE_ATTRIBUTE, CTF_PM_PRINT_CHARTS ), PLMAP( "PrintDrawing", XML_NAMESPACE_STYLE, XML_PRINT, XML_PM_TYPE_PRINTDRAWING | MID_FLAG_MULTI_PROPERTY | MID_FLAG_MERGE_ATTRIBUTE, CTF_PM_PRINT_DRAWING ), @@ -184,7 +184,7 @@ const XMLPropertyMapEntry aXMLPageMasterStyleMap[] = HFMAP( "HeaderBackTransparent", XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT | MID_FLAG_MERGE_ATTRIBUTE, CTF_PM_HEADERFLAG ), HFMAP( "HeaderBackGraphicLocation", XML_NAMESPACE_STYLE, XML_POSITION, XML_TYPE_BUILDIN_CMP_ONLY | MID_FLAG_SPECIAL_ITEM, CTF_PM_HEADERGRAPHICPOSITION ), HFMAP( "HeaderBackGraphicFilter", XML_NAMESPACE_STYLE, XML_FILTER_NAME, XML_TYPE_STRING | MID_FLAG_SPECIAL_ITEM, CTF_PM_HEADERGRAPHICFILTER ), - HFMAP( "HeaderBackGraphicURL", XML_NAMESPACE_STYLE, XML_BACKGROUND_IMAGE, XML_TYPE_STRING | MID_FLAG_ELEMENT_ITEM, CTF_PM_HEADERGRAPHICURL ), + HFMAP( "HeaderBackGraphic", XML_NAMESPACE_STYLE, XML_BACKGROUND_IMAGE, XML_TYPE_STRING | MID_FLAG_ELEMENT_ITEM, CTF_PM_HEADERGRAPHICURL ), HFMAP( "HeaderDynamicSpacing", XML_NAMESPACE_STYLE, XML_DYNAMIC_SPACING, XML_TYPE_BOOL, CTF_PM_HEADERFLAG ), //Index 121: Header DrawingLayer FillAttributes @@ -240,7 +240,7 @@ const XMLPropertyMapEntry aXMLPageMasterStyleMap[] = HFMAP( "FooterBackTransparent", XML_NAMESPACE_FO, XML_BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT | MID_FLAG_MERGE_ATTRIBUTE, CTF_PM_FOOTERFLAG ), HFMAP( "FooterBackGraphicLocation", XML_NAMESPACE_STYLE, XML_POSITION, XML_TYPE_BUILDIN_CMP_ONLY | MID_FLAG_SPECIAL_ITEM, CTF_PM_FOOTERGRAPHICPOSITION ), HFMAP( "FooterBackGraphicFilter", XML_NAMESPACE_STYLE, XML_FILTER_NAME, XML_TYPE_STRING | MID_FLAG_SPECIAL_ITEM, CTF_PM_FOOTERGRAPHICFILTER ), - HFMAP( "FooterBackGraphicURL", XML_NAMESPACE_STYLE, XML_BACKGROUND_IMAGE, XML_TYPE_STRING | MID_FLAG_ELEMENT_ITEM, CTF_PM_FOOTERGRAPHICURL ), + HFMAP( "FooterBackGraphic", XML_NAMESPACE_STYLE, XML_BACKGROUND_IMAGE, XML_TYPE_STRING | MID_FLAG_ELEMENT_ITEM, CTF_PM_FOOTERGRAPHICURL ), HFMAP( "FooterDynamicSpacing", XML_NAMESPACE_STYLE, XML_DYNAMIC_SPACING, XML_TYPE_BOOL, CTF_PM_FOOTERFLAG ), //Index 170: Footer DrawingLayer FillAttributes diff --git a/xmloff/source/style/XMLBackgroundImageContext.cxx b/xmloff/source/style/XMLBackgroundImageContext.cxx index 28c421f43bb8..39d9b167ce6e 100644 --- a/xmloff/source/style/XMLBackgroundImageContext.cxx +++ b/xmloff/source/style/XMLBackgroundImageContext.cxx @@ -185,7 +185,7 @@ void XMLBackgroundImageContext::ProcessAttrs( switch( aTokenMap.Get( nPrefix, aLocalName ) ) { case XML_TOK_BGIMG_HREF: - sURL = rValue; + m_sURL = rValue; if( GraphicLocation_NONE == ePos ) ePos = GraphicLocation_TILED; break; @@ -353,13 +353,13 @@ SvXMLImportContextRef XMLBackgroundImageContext::CreateChildContext( xmloff::token::IsXMLToken( rLocalName, xmloff::token::XML_BINARY_DATA ) ) { - if( sURL.isEmpty() && !xBase64Stream.is() ) + if( m_sURL.isEmpty() && !m_xBase64Stream.is() ) { - xBase64Stream = GetImport().GetStreamForGraphicObjectURLFromBase64(); - if( xBase64Stream.is() ) + m_xBase64Stream = GetImport().GetStreamForGraphicObjectURLFromBase64(); + if( m_xBase64Stream.is() ) pContext = new XMLBase64ImportContext( GetImport(), nPrefix, rLocalName, xAttrList, - xBase64Stream ); + m_xBase64Stream ); } } if( !pContext ) @@ -372,23 +372,24 @@ SvXMLImportContextRef XMLBackgroundImageContext::CreateChildContext( void XMLBackgroundImageContext::EndElement() { - if( !sURL.isEmpty() ) + uno::Reference<graphic::XGraphic> xGraphic; + if (!m_sURL.isEmpty()) { - sURL = GetImport().ResolveGraphicObjectURL( sURL, false ); + xGraphic = GetImport().loadGraphicByURL(m_sURL); } - else if( xBase64Stream.is() ) + else if (m_xBase64Stream.is()) { - sURL = GetImport().ResolveGraphicObjectURLFromBase64( xBase64Stream ); - xBase64Stream = nullptr; + xGraphic = GetImport().loadGraphicFromBase64(m_xBase64Stream); + m_xBase64Stream = nullptr; } - if( sURL.isEmpty() ) + if (!xGraphic.is()) ePos = GraphicLocation_NONE; - else if( GraphicLocation_NONE == ePos ) + else if (GraphicLocation_NONE == ePos) ePos = GraphicLocation_TILED; - if (!sURL.isEmpty()) - aProp.maValue <<= sURL; + if (xGraphic.is()) + aProp.maValue <<= xGraphic; aPosProp.maValue <<= ePos; aFilterProp.maValue <<= sFilter; aTransparencyProp.maValue <<= nTransparency; diff --git a/xmloff/source/style/XMLBackgroundImageExport.cxx b/xmloff/source/style/XMLBackgroundImageExport.cxx index 8e744611a227..abedea9f37b2 100644 --- a/xmloff/source/style/XMLBackgroundImageExport.cxx +++ b/xmloff/source/style/XMLBackgroundImageExport.cxx @@ -43,7 +43,7 @@ XMLBackgroundImageExport::~XMLBackgroundImageExport() { } -void XMLBackgroundImageExport::exportXML( const Any& rURL, +void XMLBackgroundImageExport::exportXML( const Any& rGraphicAny, const Any *pPos, const Any *pFilter, const Any *pTransparency, @@ -54,18 +54,20 @@ void XMLBackgroundImageExport::exportXML( const Any& rURL, if( !(pPos && ((*pPos) >>= ePos)) ) ePos = GraphicLocation_AREA; - OUString sURL; - rURL >>= sURL; - if( !sURL.isEmpty() && GraphicLocation_NONE != ePos ) + uno::Reference<graphic::XGraphic> xGraphic; + if (rGraphicAny.has<uno::Reference<graphic::XGraphic>>()) + xGraphic = rGraphicAny.get<uno::Reference<graphic::XGraphic>>(); + + if (xGraphic.is() && GraphicLocation_NONE != ePos) { - OUString sTempURL( GetExport().AddEmbeddedGraphicObject( sURL ) ); - if( !sTempURL.isEmpty() ) + OUString sUsedMimeType; + OUString sInternalURL(GetExport().AddEmbeddedXGraphic(xGraphic, sUsedMimeType)); + + if (!sInternalURL.isEmpty()) { - GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_HREF, sTempURL ); - GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_TYPE, - XML_SIMPLE ); - GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_ACTUATE, - XML_ONLOAD ); + GetExport().AddAttribute(XML_NAMESPACE_XLINK, XML_HREF, sInternalURL); + GetExport().AddAttribute(XML_NAMESPACE_XLINK, XML_TYPE, XML_SIMPLE ); + GetExport().AddAttribute(XML_NAMESPACE_XLINK, XML_ACTUATE, XML_ONLOAD); } OUStringBuffer aOut; @@ -154,11 +156,11 @@ void XMLBackgroundImageExport::exportXML( const Any& rURL, } { - SvXMLElementExport aElem( GetExport(), nPrefix, rLocalName, true, true ); - if( !sURL.isEmpty() && GraphicLocation_NONE != ePos ) + SvXMLElementExport aElem(GetExport(), nPrefix, rLocalName, true, true); + if (xGraphic.is() && GraphicLocation_NONE != ePos) { // optional office:binary-data - GetExport().AddEmbeddedGraphicObjectAsBase64( sURL ); + GetExport().AddEmbeddedXGraphicAsBase64(xGraphic); } } } diff --git a/xmloff/source/style/prstylei.cxx b/xmloff/source/style/prstylei.cxx index a3d4ca85292a..d48f940b59dc 100644 --- a/xmloff/source/style/prstylei.cxx +++ b/xmloff/source/style/prstylei.cxx @@ -77,7 +77,7 @@ namespace aSet.insert("BackColorRGB"); aSet.insert("BackTransparent"); aSet.insert("BackColorTransparency"); - aSet.insert("BackGraphicURL"); + aSet.insert("BackGraphic"); aSet.insert("BackGraphicFilter"); aSet.insert("BackGraphicLocation"); aSet.insert("BackGraphicTransparency"); @@ -93,7 +93,7 @@ namespace aSet.insert("HeaderBackColorRGB"); aSet.insert("HeaderBackTransparent"); aSet.insert("HeaderBackColorTransparency"); - aSet.insert("HeaderBackGraphicURL"); + aSet.insert("HeaderBackGraphic"); aSet.insert("HeaderBackGraphicFilter"); aSet.insert("HeaderBackGraphicLocation"); aSet.insert("HeaderBackGraphicTransparency"); @@ -109,7 +109,7 @@ namespace aSet.insert("FooterBackColorRGB"); aSet.insert("FooterBackTransparent"); aSet.insert("FooterBackColorTransparency"); - aSet.insert("FooterBackGraphicURL"); + aSet.insert("FooterBackGraphic"); aSet.insert("FooterBackGraphicFilter"); aSet.insert("FooterBackGraphicLocation"); aSet.insert("FooterBackGraphicTransparency"); @@ -128,7 +128,7 @@ namespace aSet.insert("ParaBackTransparent"); aSet.insert("ParaBackGraphicLocation"); aSet.insert("ParaBackGraphicFilter"); - aSet.insert("ParaBackGraphicURL"); + aSet.insert("ParaBackGraphic"); // These are not used in aXMLParaPropMap definition, thus not needed here // aSet.insert("ParaBackColorTransparency"); diff --git a/xmloff/source/style/xmlnume.cxx b/xmloff/source/style/xmlnume.cxx index 63e5b89ddebc..e3965469916c 100644 --- a/xmloff/source/style/xmlnume.cxx +++ b/xmloff/source/style/xmlnume.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/container/XIndexReplace.hpp> #include <com/sun/star/awt/XBitmap.hpp> +#include <com/sun/star/graphic/XGraphic.hpp> #include <com/sun/star/awt/FontDescriptor.hpp> #include <com/sun/star/text/HoriOrientation.hpp> #include <com/sun/star/text/VertOrientation.hpp> @@ -37,7 +38,6 @@ #include <rtl/ustrbuf.hxx> - #include <sax/tools/converter.hxx> #include <xmloff/nmspmap.hxx> @@ -95,8 +95,8 @@ void SvxXMLNumRuleExport::exportLevelStyle( sal_Int32 nLevel, FontPitch eBulletFontPitch = PITCH_DONTKNOW; rtl_TextEncoding eBulletFontEncoding = RTL_TEXTENCODING_DONTKNOW; - OUString sImageURL; - uno::Reference< css::awt::XBitmap > xBitmap; + uno::Reference<graphic::XGraphic> xGraphic; + sal_Int32 nImageWidth = 0, nImageHeight = 0; sal_Int16 eImageVertOrient = VertOrientation::LINE_CENTER; @@ -155,13 +155,11 @@ void SvxXMLNumRuleExport::exportLevelStyle( sal_Int32 nLevel, eBulletFontEncoding = static_cast<rtl_TextEncoding>(rFDesc.CharSet); } } - else if( rProp.Name == "GraphicURL" ) - { - rProp.Value >>= sImageURL; - } else if( rProp.Name == "GraphicBitmap" ) { + uno::Reference<awt::XBitmap> xBitmap; rProp.Value >>= xBitmap; + xGraphic.set(xBitmap, uno::UNO_QUERY); } else if( rProp.Name == "BulletColor" ) { @@ -299,14 +297,13 @@ void SvxXMLNumRuleExport::exportLevelStyle( sal_Int32 nLevel, eElem = XML_LIST_LEVEL_STYLE_IMAGE; - - if( !sImageURL.isEmpty() ) + if (xGraphic.is()) { - OUString sURL( GetExport().AddEmbeddedGraphicObject( sImageURL ) ); - if( !sURL.isEmpty() ) + OUString sUsedMimeType; + OUString sInternalURL = GetExport().AddEmbeddedXGraphic(xGraphic, sUsedMimeType); + if (!sInternalURL.isEmpty()) { - GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_HREF, sURL ); - + GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_HREF, sInternalURL); GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_TYPE, XML_SIMPLE ); GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_SHOW, XML_EMBED ); GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_ACTUATE, XML_ONLOAD ); @@ -314,8 +311,7 @@ void SvxXMLNumRuleExport::exportLevelStyle( sal_Int32 nLevel, } else { - SAL_WARN_IF( xBitmap.is(), "xmloff", - "embedded images are not supported by now" ); + SAL_WARN_IF(xGraphic.is(), "xmloff", "embedded images are not supported by now"); } } else @@ -602,10 +598,10 @@ void SvxXMLNumRuleExport::exportLevelStyle( sal_Int32 nLevel, SvXMLElementExport aElement( GetExport(), XML_NAMESPACE_STYLE, XML_TEXT_PROPERTIES, true, true ); } - if( NumberingType::BITMAP == eType && !sImageURL.isEmpty() ) + if (xGraphic.is() && NumberingType::BITMAP == eType) { // optional office:binary-data - GetExport().AddEmbeddedGraphicObjectAsBase64( sImageURL ); + GetExport().AddEmbeddedXGraphicAsBase64(xGraphic); } } } diff --git a/xmloff/source/text/txtprhdl.cxx b/xmloff/source/text/txtprhdl.cxx index 993b100976bd..482dd4f02aee 100644 --- a/xmloff/source/text/txtprhdl.cxx +++ b/xmloff/source/text/txtprhdl.cxx @@ -37,6 +37,7 @@ #include <com/sun/star/text/RubyPosition.hpp> #include <com/sun/star/text/FontEmphasis.hpp> #include <com/sun/star/text/ParagraphVertAlign.hpp> +#include <com/sun/star/graphic/XGraphic.hpp> #include <sax/tools/converter.hxx> #include <xmloff/xmltypes.hxx> #include <xmloff/xmluconv.hxx> @@ -56,6 +57,7 @@ #include <com/sun/star/drawing/RectanglePoint.hpp> #include <com/sun/star/drawing/BitmapMode.hpp> #include <XMLBitmapRepeatOffsetPropertyHandler.hxx> +#include <vcl/graph.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -1137,6 +1139,38 @@ bool XMLNumber8OneBasedHdl::exportXML( return bRet; } +class XMLGraphicPropertyHandler : public XMLPropertyHandler +{ +public: + XMLGraphicPropertyHandler() {} + + virtual bool importXML(const OUString& , uno::Any& , const SvXMLUnitConverter& ) const override + { + SAL_WARN( "xmloff", "drop caps are an element import property" ); + return false; + } + + virtual bool exportXML(OUString& , const uno::Any& , const SvXMLUnitConverter& ) const override + { + SAL_WARN( "xmloff", "drop caps are an element import property" ); + return false; + } + + virtual bool equals(const css::uno::Any& rAny1, const css::uno::Any& rAny2) const override; +}; + +bool XMLGraphicPropertyHandler::equals(const Any& rAny1, const Any& rAny2) const +{ + uno::Reference<graphic::XGraphic> xGraphic1; + uno::Reference<graphic::XGraphic> xGraphic2; + rAny1 >>= xGraphic1; + rAny2 >>= xGraphic2; + Graphic aGraphic1(xGraphic1); + Graphic aGraphic2(xGraphic2); + + return aGraphic1 == aGraphic2; +} + static const XMLPropertyHandler *GetPropertyHandler ( sal_Int32 nType ) { @@ -1327,7 +1361,9 @@ static const XMLPropertyHandler *GetPropertyHandler case XML_SW_TYPE_BITMAPREPOFFSETY: pHdl = new XMLBitmapRepeatOffsetPropertyHandler(XML_SW_TYPE_BITMAPREPOFFSETX == nType); break; - + case XML_TYPE_GRAPHIC: + pHdl = new XMLGraphicPropertyHandler; + break; default: { OSL_ENSURE(false, "XMLPropertyHandler missing (!)"); diff --git a/xmloff/source/text/txtprmap.cxx b/xmloff/source/text/txtprmap.cxx index b6b90c1c538a..ae484f236f5b 100644 --- a/xmloff/source/text/txtprmap.cxx +++ b/xmloff/source/text/txtprmap.cxx @@ -384,7 +384,7 @@ XMLPropertyMapEntry const aXMLParaPropMap[] = MP_E( "ParaBackTransparent", FO, BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT|MID_FLAG_MERGE_ATTRIBUTE, 0 ), MP_E( "ParaBackGraphicLocation", STYLE, POSITION, MID_FLAG_SPECIAL_ITEM|XML_TYPE_BUILDIN_CMP_ONLY, CTF_BACKGROUND_POS ), MP_E( "ParaBackGraphicFilter",STYLE, FILTER_NAME, MID_FLAG_SPECIAL_ITEM|XML_TYPE_STRING, CTF_BACKGROUND_FILTER ), - MP_E( "ParaBackGraphicURL", STYLE, BACKGROUND_IMAGE, MID_FLAG_ELEMENT_ITEM|XML_TYPE_STRING, CTF_BACKGROUND_URL ), + MP_E( "ParaBackGraphic", STYLE, BACKGROUND_IMAGE, MID_FLAG_ELEMENT_ITEM|XML_TYPE_GRAPHIC, CTF_BACKGROUND_URL ), // RES_BOX MP_E( "LeftBorder", STYLE, BORDER_LINE_WIDTH, XML_TYPE_BORDER_WIDTH, CTF_ALLBORDERWIDTH ), @@ -748,7 +748,7 @@ XMLPropertyMapEntry const aXMLFramePropMap[] = MG_E( "BackGraphicTransparency", STYLE, BACKGROUND_IMAGE_TRANSPARENCY, MID_FLAG_SPECIAL_ITEM|XML_TYPE_PERCENT8, CTF_BACKGROUND_TRANSPARENCY ), MG_E( "BackGraphicLocation", STYLE, POSITION, MID_FLAG_SPECIAL_ITEM|XML_TYPE_BUILDIN_CMP_ONLY, CTF_BACKGROUND_POS ), MG_E( "BackGraphicFilter",STYLE, FILTER_NAME, MID_FLAG_SPECIAL_ITEM|XML_TYPE_STRING, CTF_BACKGROUND_FILTER ), - MG_E( "BackGraphicURL", STYLE, BACKGROUND_IMAGE, MID_FLAG_ELEMENT_ITEM|XML_TYPE_STRING, CTF_BACKGROUND_URL ), + MG_E( "BackGraphic", STYLE, BACKGROUND_IMAGE, MID_FLAG_ELEMENT_ITEM|XML_TYPE_GRAPHIC, CTF_BACKGROUND_URL ), // fill attributes GMAP( "FillStyle", XML_NAMESPACE_DRAW, XML_FILL, XML_SW_TYPE_FILLSTYLE, 0 ), @@ -926,7 +926,7 @@ XMLPropertyMapEntry const aXMLSectionPropMap[] = MS_E( "BackTransparent", FO, BACKGROUND_COLOR, XML_TYPE_ISTRANSPARENT|MID_FLAG_MERGE_ATTRIBUTE, 0 ), MS_E( "BackGraphicLocation", STYLE, POSITION, MID_FLAG_SPECIAL_ITEM|XML_TYPE_BUILDIN_CMP_ONLY, CTF_BACKGROUND_POS ), MS_E( "BackGraphicFilter",STYLE, FILTER_NAME, MID_FLAG_SPECIAL_ITEM|XML_TYPE_STRING, CTF_BACKGROUND_FILTER ), - MS_E( "BackGraphicURL", STYLE, BACKGROUND_IMAGE, MID_FLAG_ELEMENT_ITEM|XML_TYPE_STRING, CTF_BACKGROUND_URL ), + MS_E( "BackGraphic", STYLE, BACKGROUND_IMAGE, MID_FLAG_ELEMENT_ITEM|XML_TYPE_GRAPHIC, CTF_BACKGROUND_URL ), // move protect-flag into section element // M_E( "IsProtected", STYLE, PROTECT, XML_TYPE_BOOL, 0 ), |