summaryrefslogtreecommitdiff
path: root/vbahelper/source/vbahelper/vbatextframe.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper/source/vbahelper/vbatextframe.cxx')
-rw-r--r--vbahelper/source/vbahelper/vbatextframe.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/vbahelper/source/vbahelper/vbatextframe.cxx b/vbahelper/source/vbahelper/vbatextframe.cxx
index 14140fc279ef..8964af6c3400 100644
--- a/vbahelper/source/vbahelper/vbatextframe.cxx
+++ b/vbahelper/source/vbahelper/vbatextframe.cxx
@@ -44,8 +44,8 @@ VbaTextFrame::setAsMSObehavior()
//set property TextWordWrap default as False.
// TextFitToSize control the text content. it seems we should set the default as False.
// com.sun.star.drawing.TextFitToSizeType.NONE
- m_xPropertySet->setPropertyValue( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextWordWrap")), uno::makeAny( sal_False ) );
- m_xPropertySet->setPropertyValue( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextFitToSize")), uno::makeAny( drawing::TextFitToSizeType_NONE ) );
+ m_xPropertySet->setPropertyValue( rtl::OUString("TextWordWrap"), uno::makeAny( sal_False ) );
+ m_xPropertySet->setPropertyValue( rtl::OUString("TextFitToSize"), uno::makeAny( drawing::TextFitToSizeType_NONE ) );
}
sal_Int32 VbaTextFrame::getMargin( rtl::OUString sMarginType )
@@ -70,7 +70,7 @@ VbaTextFrame::getAutoSize() throw (uno::RuntimeException)
// TextFitToSize control the text content.
// and in mso, there isnot option TextWordWrap which means auto wrap. the default is False.
sal_Bool bAutosize = sal_False;
- uno::Any aTextAutoGrowHeight = m_xPropertySet->getPropertyValue( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextAutoGrowHeight")) );
+ uno::Any aTextAutoGrowHeight = m_xPropertySet->getPropertyValue( rtl::OUString("TextAutoGrowHeight") );
aTextAutoGrowHeight >>= bAutosize;
return bAutosize;
}
@@ -79,13 +79,13 @@ void SAL_CALL
VbaTextFrame::setAutoSize( sal_Bool _autosize ) throw (uno::RuntimeException)
{
setAsMSObehavior();
- m_xPropertySet->setPropertyValue( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextAutoGrowHeight")), uno::makeAny( _autosize ) );
+ m_xPropertySet->setPropertyValue( rtl::OUString("TextAutoGrowHeight"), uno::makeAny( _autosize ) );
}
float SAL_CALL
VbaTextFrame::getMarginBottom() throw (uno::RuntimeException)
{
- sal_Int32 nMargin = getMargin( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextLowerDistance")) );
+ sal_Int32 nMargin = getMargin( rtl::OUString("TextLowerDistance") );
float fMargin = (float)Millimeter::getInPoints( nMargin );
return fMargin;
}
@@ -93,13 +93,13 @@ VbaTextFrame::getMarginBottom() throw (uno::RuntimeException)
void SAL_CALL
VbaTextFrame::setMarginBottom( float _marginbottom ) throw (uno::RuntimeException)
{
- setMargin( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextLowerDistance")), _marginbottom );
+ setMargin( rtl::OUString("TextLowerDistance"), _marginbottom );
}
float SAL_CALL
VbaTextFrame::getMarginTop() throw (uno::RuntimeException)
{
- sal_Int32 nMargin = getMargin( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextUpperDistance")) );
+ sal_Int32 nMargin = getMargin( rtl::OUString("TextUpperDistance") );
float fMargin = (float)Millimeter::getInPoints( nMargin );
return fMargin;
}
@@ -107,13 +107,13 @@ VbaTextFrame::getMarginTop() throw (uno::RuntimeException)
void SAL_CALL
VbaTextFrame::setMarginTop( float _margintop ) throw (uno::RuntimeException)
{
- setMargin( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextUpperDistance")), _margintop );
+ setMargin( rtl::OUString("TextUpperDistance"), _margintop );
}
float SAL_CALL
VbaTextFrame::getMarginLeft() throw (uno::RuntimeException)
{
- sal_Int32 nMargin = getMargin( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextLeftDistance")) );
+ sal_Int32 nMargin = getMargin( rtl::OUString("TextLeftDistance") );
float fMargin = (float)Millimeter::getInPoints( nMargin );
return fMargin;
}
@@ -121,13 +121,13 @@ VbaTextFrame::getMarginLeft() throw (uno::RuntimeException)
void SAL_CALL
VbaTextFrame::setMarginLeft( float _marginleft ) throw (uno::RuntimeException)
{
- setMargin( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextLeftDistance")), _marginleft );
+ setMargin( rtl::OUString("TextLeftDistance"), _marginleft );
}
float SAL_CALL
VbaTextFrame::getMarginRight() throw (uno::RuntimeException)
{
- sal_Int32 nMargin = getMargin( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextRightDistance")) );
+ sal_Int32 nMargin = getMargin( rtl::OUString("TextRightDistance") );
float fMargin = (float)Millimeter::getInPoints( nMargin );
return fMargin;
}
@@ -135,7 +135,7 @@ VbaTextFrame::getMarginRight() throw (uno::RuntimeException)
void SAL_CALL
VbaTextFrame::setMarginRight( float _marginright ) throw (uno::RuntimeException)
{
- setMargin( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextRightDistance")), _marginright );
+ setMargin( rtl::OUString("TextRightDistance"), _marginright );
}
@@ -143,13 +143,13 @@ VbaTextFrame::setMarginRight( float _marginright ) throw (uno::RuntimeException)
uno::Any SAL_CALL
VbaTextFrame::Characters() throw (uno::RuntimeException)
{
- throw uno::RuntimeException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Not implemented") ), uno::Reference< uno::XInterface >() );
+ throw uno::RuntimeException( rtl::OUString( "Not implemented" ), uno::Reference< uno::XInterface >() );
}
rtl::OUString
VbaTextFrame::getServiceImplName()
{
- return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("VbaTextFrame"));
+ return rtl::OUString("VbaTextFrame");
}
uno::Sequence< rtl::OUString >
@@ -159,7 +159,7 @@ VbaTextFrame::getServiceNames()
if ( aServiceNames.getLength() == 0 )
{
aServiceNames.realloc( 1 );
- aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ooo.vba.msforms.TextFrame" ) );
+ aServiceNames[ 0 ] = rtl::OUString( "ooo.vba.msforms.TextFrame" );
}
return aServiceNames;
}