summaryrefslogtreecommitdiff
path: root/vbahelper/source/msforms/vbacheckbox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper/source/msforms/vbacheckbox.cxx')
-rw-r--r--vbahelper/source/msforms/vbacheckbox.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/vbahelper/source/msforms/vbacheckbox.cxx b/vbahelper/source/msforms/vbacheckbox.cxx
index 577ad0322654..37c57d0881d4 100644
--- a/vbahelper/source/msforms/vbacheckbox.cxx
+++ b/vbahelper/source/msforms/vbacheckbox.cxx
@@ -24,9 +24,6 @@
using namespace com::sun::star;
using namespace ooo::vba;
-
-const static OUString LABEL( "Label" );
-const static OUString STATE( "State" );
ScVbaCheckbox::ScVbaCheckbox( const uno::Reference< ov::XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< uno::XInterface >& xControl, const uno::Reference< frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper ) : CheckBoxImpl_BASE( xParent, xContext, xControl, xModel, pGeomHelper )
{
}
@@ -36,21 +33,21 @@ OUString SAL_CALL
ScVbaCheckbox::getCaption() throw (css::uno::RuntimeException, std::exception)
{
OUString Label;
- m_xProps->getPropertyValue( LABEL ) >>= Label;
+ m_xProps->getPropertyValue( "Label" ) >>= Label;
return Label;
}
void SAL_CALL
ScVbaCheckbox::setCaption( const OUString& _caption ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
- m_xProps->setPropertyValue( LABEL, uno::makeAny( _caption ) );
+ m_xProps->setPropertyValue( "Label", uno::makeAny( _caption ) );
}
uno::Any SAL_CALL
ScVbaCheckbox::getValue() throw (css::uno::RuntimeException, std::exception)
{
sal_Int16 nValue = -1;
- m_xProps->getPropertyValue( STATE ) >>= nValue;
+ m_xProps->getPropertyValue( "State" ) >>= nValue;
if( nValue != 0 )
nValue = -1;
// return uno::makeAny( nValue );
@@ -64,7 +61,7 @@ ScVbaCheckbox::setValue( const uno::Any& _value ) throw (css::uno::RuntimeExcept
{
sal_Int16 nValue = 0;
sal_Int16 nOldValue = 0;
- m_xProps->getPropertyValue( STATE ) >>= nOldValue;
+ m_xProps->getPropertyValue( "State" ) >>= nOldValue;
if( !( _value >>= nValue ) )
{
sal_Bool bValue = false;
@@ -75,7 +72,7 @@ ScVbaCheckbox::setValue( const uno::Any& _value ) throw (css::uno::RuntimeExcept
if( nValue == -1)
nValue = 1;
- m_xProps->setPropertyValue( STATE, uno::makeAny( nValue ) );
+ m_xProps->setPropertyValue( "State", uno::makeAny( nValue ) );
if ( nValue != nOldValue )
fireClickEvent();
}