diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-01-23 10:46:09 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-01-23 10:47:27 +0100 |
commit | f2e6a55b803c4c7a200a4fbf8de342606d7d5939 (patch) | |
tree | a2c2f5a38e6deb064cdbf98104324985b0b9c20f /oox | |
parent | 3f02531d4aaf270f452dd7e04f58a6b022df1af1 (diff) |
oox: kill no longer needed US() macro
Change-Id: Id1cd194a5968aa8578d0f2fefb3c75e3d74a25f5
Diffstat (limited to 'oox')
-rw-r--r-- | oox/inc/oox/export/utils.hxx | 1 | ||||
-rw-r--r-- | oox/source/export/drawingml.cxx | 28 | ||||
-rw-r--r-- | oox/source/export/shapes.cxx | 2 |
3 files changed, 15 insertions, 16 deletions
diff --git a/oox/inc/oox/export/utils.hxx b/oox/inc/oox/export/utils.hxx index f43faca01b3a..b4915048cefe 100644 --- a/oox/inc/oox/export/utils.hxx +++ b/oox/inc/oox/export/utils.hxx @@ -20,7 +20,6 @@ #ifndef _OOX_EXPORT_UTILS_HXX_ #define _OOX_EXPORT_UTILS_HXX_ -#define US(x) rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( x )) #define I32S(x) rtl::OString::valueOf( (sal_Int32) x ).getStr() #define I64S(x) rtl::OString::valueOf( (sal_Int64) x ).getStr() #define IS(x) rtl::OString::valueOf( x ).getStr() diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index a3561023c119..94bf8a1c4087 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -456,42 +456,42 @@ OUString DrawingML::WriteImage( const Graphic& rGraphic ) switch ( aLink.GetType() ) { case GFX_LINK_TYPE_NATIVE_GIF: - sMediaType = US( "image/gif" ); + sMediaType = "image/gif"; pExtension = ".gif"; break; case GFX_LINK_TYPE_NATIVE_JPG: - sMediaType = US( "image/jpeg" ); + sMediaType = "image/jpeg"; pExtension = ".jpeg"; break; case GFX_LINK_TYPE_NATIVE_PNG: - sMediaType = US( "image/png" ); + sMediaType = "image/png"; pExtension = ".png"; break; case GFX_LINK_TYPE_NATIVE_TIF: - sMediaType = US( "image/tiff" ); + sMediaType = "image/tiff"; pExtension = ".tiff"; break; case GFX_LINK_TYPE_NATIVE_WMF: - sMediaType = US( "image/x-wmf" ); + sMediaType = "image/x-wmf"; pExtension = ".wmf"; break; case GFX_LINK_TYPE_NATIVE_MET: - sMediaType = US( "image/x-met" ); + sMediaType = "image/x-met"; pExtension = ".met"; break; case GFX_LINK_TYPE_NATIVE_PCT: - sMediaType = US( "image/x-pict" ); + sMediaType = "image/x-pict"; pExtension = ".pct"; break; default: { GraphicType aType = rGraphic.GetType(); if ( aType == GRAPHIC_BITMAP ) { GraphicConverter::Export( aStream, rGraphic, CVT_PNG ); - sMediaType = US( "image/png" ); + sMediaType = "image/png"; pExtension = ".png"; } else if ( aType == GRAPHIC_GDIMETAFILE ) { GraphicConverter::Export( aStream, rGraphic, CVT_EMF ); - sMediaType = US( "image/x-emf" ); + sMediaType = "image/x-emf"; pExtension = ".emf"; } else { OSL_TRACE( "unhandled graphic type" ); @@ -515,7 +515,7 @@ OUString DrawingML::WriteImage( const Graphic& rGraphic ) xOutStream->closeOutput(); sRelId = mpFB->addRelation( mpFS->getOutputStream(), - US( "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" ), + "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", OUStringBuffer() .appendAscii( GetRelationCompPrefix() ) .appendAscii( "media/image" ) @@ -826,7 +826,7 @@ void DrawingML::WriteRunProperties( Reference< XPropertySet > rRun, sal_Bool bIs mAny >>= sURL; if( !sURL.isEmpty() ) { OUString sRelId = mpFB->addRelation( mpFS->getOutputStream(), - US( "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" ), + "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", sURL, true ); mpFS->singleElementNS( XML_a, XML_hlinkClick, @@ -1029,12 +1029,12 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa if ( aPropName == "NumberingType" ) nNumberingType = *( (sal_Int16*)pValue ); else if ( aPropName == "Prefix" ) { - if( *(OUString*)pValue == US( ")" ) ) + if( *(OUString*)pValue == ")") bPBoth = true; } else if ( aPropName == "Suffix" ) { - if( *(OUString*)pValue == US( "." ) ) + if( *(OUString*)pValue == ".") bSDot = true; - else if( *(OUString*)pValue == US( ")" ) ) + else if( *(OUString*)pValue == ")") bPBehind = true; } else if ( aPropName == "BulletChar" ) { diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index 37cee57ee229..6aa3b0dba939 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -1340,7 +1340,7 @@ ShapeExport& ShapeExport::WriteOLE2Shape( Reference< XShape > xShape ) xOutStream->closeOutput(); OUString sRelId = mpFB->addRelation( mpFS->getOutputStream(), - US( "http://schemas.openxmlformats.org/officeDocument/2006/relationships/package" ), + "http://schemas.openxmlformats.org/officeDocument/2006/relationships/package", OUStringBuffer() .appendAscii( GetRelationCompPrefix() ) .appendAscii( "embeddings/spreadsheet" ) |