diff options
Diffstat (limited to 'oox/source/vml/vmlshape.cxx')
-rw-r--r-- | oox/source/vml/vmlshape.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx index 3f5bc4d00f41..adbf9db205fa 100644 --- a/oox/source/vml/vmlshape.cxx +++ b/oox/source/vml/vmlshape.cxx @@ -171,22 +171,22 @@ void lclSetXShapeRect( const Reference< XShape >& rxShape, const Rectangle& rSha try { // The size - xProps->setPropertyValue( OUString::createFromAscii( "SizeType" ), Any( SizeType::FIX ) ); - xProps->setPropertyValue( OUString::createFromAscii( "FrameIsAutomaticHeight" ), Any( sal_False ) ); - xProps->setPropertyValue( OUString::createFromAscii( "Height" ), Any( rShapeRect.Height ) ); - xProps->setPropertyValue( OUString::createFromAscii( "Width" ), Any( rShapeRect.Width ) ); + xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("SizeType")), Any( SizeType::FIX ) ); + xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("FrameIsAutomaticHeight")), Any( sal_False ) ); + xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("Height")), Any( rShapeRect.Height ) ); + xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("Width")), Any( rShapeRect.Width ) ); // The position - xProps->setPropertyValue( OUString::createFromAscii( "HoriOrientPosition" ), Any( rShapeRect.X ) ); - xProps->setPropertyValue( OUString::createFromAscii( "HoriOrientRelation" ), + xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("HoriOrientPosition")), Any( rShapeRect.X ) ); + xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("HoriOrientRelation")), Any( RelOrientation::FRAME ) ); - xProps->setPropertyValue( OUString::createFromAscii( "HoriOrient" ), + xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("HoriOrient")), Any( HoriOrientation::NONE ) ); - xProps->setPropertyValue( OUString::createFromAscii( "VertOrientPosition" ), Any( rShapeRect.Y ) ); - xProps->setPropertyValue( OUString::createFromAscii( "VertOrientRelation" ), + xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("VertOrientPosition")), Any( rShapeRect.Y ) ); + xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("VertOrientRelation")), Any( RelOrientation::FRAME ) ); - xProps->setPropertyValue( OUString::createFromAscii( "VertOrient" ), + xProps->setPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("VertOrient")), Any( VertOrientation::NONE ) ); } catch ( Exception& ) |