diff options
author | Michael E. Bohn <mbn@openoffice.org> | 2010-09-17 02:08:24 +0200 |
---|---|---|
committer | Michael E. Bohn <mbn@openoffice.org> | 2010-09-17 02:08:24 +0200 |
commit | 6f8d8311daae52da8e92f9d735efe1eac6c5aa8b (patch) | |
tree | a50ec8022378c7ddc889ef4bf8ec137a0c949881 /vbahelper | |
parent | e0f0548d591fff66923fa9e8dee8e331a2cfc8f0 (diff) |
mib19: #163501# fix for showing and hiding custom menu entries via vba.
Diffstat (limited to 'vbahelper')
-rw-r--r-- | vbahelper/source/vbahelper/vbacommandbarcontrol.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx b/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx index afcb9041b80f..56b89c27bb5b 100644 --- a/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx +++ b/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx @@ -91,23 +91,24 @@ ScVbaCommandBarControl::setOnAction( const ::rtl::OUString& _onaction ) throw (u ::sal_Bool SAL_CALL ScVbaCommandBarControl::getVisible() throw (uno::RuntimeException) { - sal_Bool bVisible = sal_True; + /*sal_Bool bVisible = sal_True; uno::Any aValue = getPropertyValue( m_aPropertyValues, rtl::OUString::createFromAscii("IsVisible") ); if( aValue.hasValue() ) aValue >>= bVisible; - return bVisible; + return bVisible;*/ + return getEnabled(); } void SAL_CALL ScVbaCommandBarControl::setVisible( ::sal_Bool _visible ) throw (uno::RuntimeException) { - uno::Any aValue = getPropertyValue( m_aPropertyValues, rtl::OUString::createFromAscii("IsVisible") ); + /*uno::Any aValue = getPropertyValue( m_aPropertyValues, rtl::OUString::createFromAscii("IsVisible") ); if( aValue.hasValue() ) { setPropertyValue( m_aPropertyValues, rtl::OUString::createFromAscii("IsVisible"), uno::makeAny( _visible ) ); ApplyChange(); - } - + }*/ + setEnabled( _visible); } ::sal_Bool SAL_CALL |