diff options
author | Christian Lippka <cl@openoffice.org> | 2001-06-27 13:40:42 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-06-27 13:40:42 +0000 |
commit | 080488deb9589b73f482311a600188aa621d6553 (patch) | |
tree | d0919aedd17e7b13576f8757e7d6d4adfc975219 | |
parent | ba22a1e906856f221efde177b5231e8cfca53dd2 (diff) |
#88691# added relative urls
-rw-r--r-- | xmloff/source/draw/shapeexport2.cxx | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/xmloff/source/draw/shapeexport2.cxx b/xmloff/source/draw/shapeexport2.cxx index aa83ac80605f..5ac207e69df8 100644 --- a/xmloff/source/draw/shapeexport2.cxx +++ b/xmloff/source/draw/shapeexport2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: shapeexport2.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: aw $ $Date: 2001-06-26 15:35:06 $ + * last change: $Author: cl $ $Date: 2001-06-27 14:40:42 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -490,7 +490,7 @@ void XMLShapeExport::ImpExportEvents( const uno::Reference< drawing::XShape >& x msBuffer.append( sal_Unicode('#') ); msBuffer.append( aStrBookmark ); - rExport.AddAttribute(XML_NAMESPACE_XLINK, sXML_href, msBuffer.makeStringAndClear() ); + rExport.AddAttribute(XML_NAMESPACE_XLINK, sXML_href, GetExport().GetRelativeReference(msBuffer.makeStringAndClear()) ); rExport.AddAttributeASCII( XML_NAMESPACE_XLINK, sXML_type, sXML_simple ); rExport.AddAttributeASCII( XML_NAMESPACE_XLINK, sXML_show, sXML_new ); rExport.AddAttributeASCII( XML_NAMESPACE_XLINK, sXML_actuate, sXML_onRequest ); @@ -508,7 +508,7 @@ void XMLShapeExport::ImpExportEvents( const uno::Reference< drawing::XShape >& x { if( ( nFound & FOUND_SOUNDURL ) && aStrSoundURL.getLength() != 0 ) { - rExport.AddAttribute(XML_NAMESPACE_XLINK, sXML_href, aStrSoundURL ); + rExport.AddAttribute(XML_NAMESPACE_XLINK, sXML_href, GetExport().GetRelativeReference(aStrSoundURL) ); rExport.AddAttributeASCII( XML_NAMESPACE_XLINK, sXML_type, sXML_simple ); rExport.AddAttributeASCII( XML_NAMESPACE_XLINK, sXML_show, sXML_new ); rExport.AddAttributeASCII( XML_NAMESPACE_XLINK, sXML_actuate, sXML_onRequest ); @@ -987,7 +987,8 @@ void XMLShapeExport::ImpExportGraphicObjectShape( OUString aStr; xPropSet->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("GraphicURL"))) >>= aStr; - rExport.AddAttribute(XML_NAMESPACE_XLINK, sXML_href, aStr = rExport.AddEmbeddedGraphicObject( aStr ) ); + aStr = GetExport().GetRelativeReference( rExport.AddEmbeddedGraphicObject( aStr ) ); + rExport.AddAttribute(XML_NAMESPACE_XLINK, sXML_href, aStr ); if( aStr.getLength() && aStr[ 0 ] == '#' ) { @@ -1353,7 +1354,7 @@ void XMLShapeExport::ImpExportOLE2Shape( sURL = rExport.AddEmbeddedObject( sURL ); - rExport.AddAttribute(XML_NAMESPACE_XLINK, sXML_href, sURL ); + rExport.AddAttribute(XML_NAMESPACE_XLINK, sXML_href, GetExport().GetRelativeReference(sURL) ); rExport.AddAttributeASCII( XML_NAMESPACE_XLINK, sXML_type, sXML_simple ); rExport.AddAttributeASCII( XML_NAMESPACE_XLINK, sXML_show, sXML_embed ); rExport.AddAttributeASCII( XML_NAMESPACE_XLINK, sXML_actuate, sXML_onLoad ); @@ -1367,7 +1368,7 @@ void XMLShapeExport::ImpExportOLE2Shape( xPropSet->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("ThumbnailGraphicURL")) ) >>= aStr; if( aStr.getLength() ) { - aStr = rExport.AddEmbeddedGraphicObject( aStr ); + aStr = rExport.AddEmbeddedGraphicObject( GetExport().GetRelativeReference(aStr) ); rExport.AddAttribute(XML_NAMESPACE_XLINK, sXML_href, aStr ); aStr = OUString(RTL_CONSTASCII_USTRINGPARAM(sXML_simple)); @@ -1484,7 +1485,7 @@ void XMLShapeExport::ImpExportFrameShape( // export frame url OUString aStr; xPropSet->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "FrameURL" ) ) ) >>= aStr; - rExport.AddAttribute ( XML_NAMESPACE_XLINK, sXML_href, aStr ); + rExport.AddAttribute ( XML_NAMESPACE_XLINK, sXML_href, GetExport().GetRelativeReference(aStr) ); rExport.AddAttributeASCII ( XML_NAMESPACE_XLINK, sXML_type, sXML_simple ); rExport.AddAttributeASCII ( XML_NAMESPACE_XLINK, sXML_show, sXML_embed ); rExport.AddAttributeASCII ( XML_NAMESPACE_XLINK, sXML_actuate, sXML_onLoad ); @@ -1514,7 +1515,7 @@ void XMLShapeExport::ImpExportAppletShape( // export frame url OUString aStr; xPropSet->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "AppletCodeBase" ) ) ) >>= aStr; - rExport.AddAttribute ( XML_NAMESPACE_XLINK, sXML_href, aStr ); + rExport.AddAttribute ( XML_NAMESPACE_XLINK, sXML_href, GetExport().GetRelativeReference(aStr) ); rExport.AddAttributeASCII ( XML_NAMESPACE_XLINK, sXML_type, sXML_simple ); rExport.AddAttributeASCII ( XML_NAMESPACE_XLINK, sXML_show, sXML_embed ); rExport.AddAttributeASCII ( XML_NAMESPACE_XLINK, sXML_actuate, sXML_onLoad ); @@ -1565,7 +1566,7 @@ void XMLShapeExport::ImpExportPluginShape( // export plugin url OUString aStr; xPropSet->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "PluginURL" ) ) ) >>= aStr; - rExport.AddAttribute ( XML_NAMESPACE_XLINK, sXML_href, aStr ); + rExport.AddAttribute ( XML_NAMESPACE_XLINK, sXML_href, GetExport().GetRelativeReference(aStr) ); rExport.AddAttributeASCII ( XML_NAMESPACE_XLINK, sXML_type, sXML_simple ); rExport.AddAttributeASCII ( XML_NAMESPACE_XLINK, sXML_show, sXML_embed ); rExport.AddAttributeASCII ( XML_NAMESPACE_XLINK, sXML_actuate, sXML_onLoad ); |