summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-01-04 18:12:06 +0100
committerMiklos Vajna <vmiklos@suse.cz>2013-01-04 18:14:14 +0100
commita0d2c3c59fbe9324395152e544890fe298b60432 (patch)
tree3da2fa24c54c655f70096f73c7cd9b117daf190f /oox
parent6d0b3fe0911c3dda143a64f186d85d1fc3af60bb (diff)
adapt RtfSdrExport and oox::vml::VMLExport to filter changes
Diffstat (limited to 'oox')
-rw-r--r--oox/inc/oox/export/vmlexport.hxx2
-rw-r--r--oox/source/export/vmlexport.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/oox/inc/oox/export/vmlexport.hxx b/oox/inc/oox/export/vmlexport.hxx
index 54296a04d8fe..29ccdab1dbcb 100644
--- a/oox/inc/oox/export/vmlexport.hxx
+++ b/oox/inc/oox/export/vmlexport.hxx
@@ -111,7 +111,7 @@ private:
virtual void OpenContainer( sal_uInt16 nEscherContainer, int nRecInstance = 0 );
virtual void CloseContainer();
- virtual sal_uInt32 EnterGroup( const String& rShapeName, const Rectangle* pBoundRect = 0 );
+ virtual sal_uInt32 EnterGroup( const OUString& rShapeName, const Rectangle* pBoundRect = 0 );
virtual void LeaveGroup();
virtual void AddShape( sal_uInt32 nShapeType, sal_uInt32 nShapeFlags, sal_uInt32 nShapeId = 0 );
diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx
index b843baffcd5d..407180c8ec53 100644
--- a/oox/source/export/vmlexport.cxx
+++ b/oox/source/export/vmlexport.cxx
@@ -99,7 +99,7 @@ void VMLExport::CloseContainer()
EscherEx::CloseContainer();
}
-sal_uInt32 VMLExport::EnterGroup( const String& rShapeName, const Rectangle* pRect )
+sal_uInt32 VMLExport::EnterGroup( const OUString& rShapeName, const Rectangle* pRect )
{
sal_uInt32 nShapeId = GenerateShapeId();
@@ -108,8 +108,8 @@ sal_uInt32 VMLExport::EnterGroup( const String& rShapeName, const Rectangle* pRe
pAttrList->add( XML_id, ShapeIdString( nShapeId ) );
- if ( rShapeName.Len() )
- pAttrList->add( XML_alt, OUStringToOString( OUString( rShapeName ), RTL_TEXTENCODING_UTF8 ) );
+ if ( rShapeName.getLength() )
+ pAttrList->add( XML_alt, OUStringToOString( rShapeName, RTL_TEXTENCODING_UTF8 ) );
// style
if ( pRect )