summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/ximpshap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/draw/ximpshap.cxx')
-rw-r--r--xmloff/source/draw/ximpshap.cxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx
index d75147c1e00a..427d1d8fc3b4 100644
--- a/xmloff/source/draw/ximpshap.cxx
+++ b/xmloff/source/draw/ximpshap.cxx
@@ -125,7 +125,7 @@ static bool ImpIsEmptyURL( const OUString& rURL )
// #i13140# Also compare against 'toplevel' URLs. which also
// result in empty filename strings.
- if( 0 == rURL.compareToAscii( "#./" ) )
+ if( rURL.equalsAscii( "#./" ) )
return true;
return false;
@@ -2942,7 +2942,7 @@ void SdXMLPluginShapeContext::StartElement( const ::com::sun::star::uno::Referen
if( nPrefix == XML_NAMESPACE_DRAW && IsXMLToken( aLocalName, XML_MIME_TYPE ) )
{
- if( 0 == xAttrList->getValueByIndex( n ).compareToAscii( "application/vnd.sun.star.media" ) )
+ if( xAttrList->getValueByIndex( n ).equalsAscii( "application/vnd.sun.star.media" ) )
mbMedia = true;
// leave this loop
@@ -3089,49 +3089,49 @@ void SdXMLPluginShapeContext::EndElement()
{
const OUString& rName = maParams[ nParam ].Name;
- if( 0 == rName.compareToAscii( "Loop" ) )
+ if( rName.equalsAscii( "Loop" ) )
{
OUString aValueStr;
maParams[ nParam ].Value >>= aValueStr;
xProps->setPropertyValue("Loop",
- uno::makeAny( static_cast< sal_Bool >( 0 == aValueStr.compareToAscii( "true" ) ) ) );
+ uno::makeAny( static_cast< sal_Bool >( aValueStr.equalsAscii( "true" ) ) ) );
}
- else if( 0 == rName.compareToAscii( "Mute" ) )
+ else if( rName.equalsAscii( "Mute" ) )
{
OUString aValueStr;
maParams[ nParam ].Value >>= aValueStr;
xProps->setPropertyValue("Mute",
- uno::makeAny( static_cast< sal_Bool >( 0 == aValueStr.compareToAscii( "true" ) ) ) );
+ uno::makeAny( static_cast< sal_Bool >( aValueStr.equalsAscii( "true" ) ) ) );
}
- else if( 0 == rName.compareToAscii( "VolumeDB" ) )
+ else if( rName.equalsAscii( "VolumeDB" ) )
{
OUString aValueStr;
maParams[ nParam ].Value >>= aValueStr;
xProps->setPropertyValue("VolumeDB",
uno::makeAny( static_cast< sal_Int16 >( aValueStr.toInt32() ) ) );
}
- else if( 0 == rName.compareToAscii( "Zoom" ) )
+ else if( rName.equalsAscii( "Zoom" ) )
{
OUString aZoomStr;
media::ZoomLevel eZoomLevel;
maParams[ nParam ].Value >>= aZoomStr;
- if( 0 == aZoomStr.compareToAscii( "25%" ) )
+ if( aZoomStr.equalsAscii( "25%" ) )
eZoomLevel = media::ZoomLevel_ZOOM_1_TO_4;
- else if( 0 == aZoomStr.compareToAscii( "50%" ) )
+ else if( aZoomStr.equalsAscii( "50%" ) )
eZoomLevel = media::ZoomLevel_ZOOM_1_TO_2;
- else if( 0 == aZoomStr.compareToAscii( "100%" ) )
+ else if( aZoomStr.equalsAscii( "100%" ) )
eZoomLevel = media::ZoomLevel_ORIGINAL;
- else if( 0 == aZoomStr.compareToAscii( "200%" ) )
+ else if( aZoomStr.equalsAscii( "200%" ) )
eZoomLevel = media::ZoomLevel_ZOOM_2_TO_1;
- else if( 0 == aZoomStr.compareToAscii( "400%" ) )
+ else if( aZoomStr.equalsAscii( "400%" ) )
eZoomLevel = media::ZoomLevel_ZOOM_4_TO_1;
- else if( 0 == aZoomStr.compareToAscii( "fit" ) )
+ else if( aZoomStr.equalsAscii( "fit" ) )
eZoomLevel = media::ZoomLevel_FIT_TO_WINDOW;
- else if( 0 == aZoomStr.compareToAscii( "fixedfit" ) )
+ else if( aZoomStr.equalsAscii( "fixedfit" ) )
eZoomLevel = media::ZoomLevel_FIT_TO_WINDOW_FIXED_ASPECT;
- else if( 0 == aZoomStr.compareToAscii( "fullscreen" ) )
+ else if( aZoomStr.equalsAscii( "fullscreen" ) )
eZoomLevel = media::ZoomLevel_FULLSCREEN;
else
eZoomLevel = media::ZoomLevel_NOT_AVAILABLE;