summaryrefslogtreecommitdiff
path: root/vbahelper/source/msforms/vbabutton.cxx
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2012-03-20 15:35:30 +0000
committerNoel Power <noel.power@novell.com>2012-03-20 17:29:19 +0000
commit092d6d9d6f9e6d79dd99d5f502ff39398622c2e1 (patch)
tree5a8959507b19b52681fa146787ada69038fe8ce9 /vbahelper/source/msforms/vbabutton.cxx
parentf626ff59b229ce7aec2f2313936133c53d70781f (diff)
add vba support for BackColor, AutoSize, Locked attributes bnc#749960
Diffstat (limited to 'vbahelper/source/msforms/vbabutton.cxx')
-rw-r--r--vbahelper/source/msforms/vbabutton.cxx21
1 files changed, 16 insertions, 5 deletions
diff --git a/vbahelper/source/msforms/vbabutton.cxx b/vbahelper/source/msforms/vbabutton.cxx
index f0763330c8e2..8912b6d0ff9d 100644
--- a/vbahelper/source/msforms/vbabutton.cxx
+++ b/vbahelper/source/msforms/vbabutton.cxx
@@ -55,11 +55,22 @@ ScVbaButton::setCaption( const rtl::OUString& _caption ) throw (::com::sun::star
sal_Bool SAL_CALL ScVbaButton::getAutoSize() throw (uno::RuntimeException)
{
- return sal_False;
+ return ScVbaControl::getAutoSize();
+}
+
+void SAL_CALL ScVbaButton::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeException)
+{
+ ScVbaControl::setAutoSize( bAutoSize );
+}
+
+sal_Bool SAL_CALL ScVbaButton::getLocked() throw (uno::RuntimeException)
+{
+ return ScVbaControl::getLocked();
}
-void SAL_CALL ScVbaButton::setAutoSize( sal_Bool /*bAutoSize*/ ) throw (uno::RuntimeException)
+void SAL_CALL ScVbaButton::setLocked( sal_Bool bLocked ) throw (uno::RuntimeException)
{
+ ScVbaControl::setLocked( bLocked );
}
sal_Bool SAL_CALL ScVbaButton::getCancel() throw (uno::RuntimeException)
@@ -82,16 +93,16 @@ void SAL_CALL ScVbaButton::setDefault( sal_Bool /*bDefault*/ ) throw (uno::Runti
sal_Int32 SAL_CALL ScVbaButton::getBackColor() throw (uno::RuntimeException)
{
- return 0;
+ return ScVbaControl::getBackColor();
}
-void SAL_CALL ScVbaButton::setBackColor( sal_Int32 /*nBackColor*/ ) throw (uno::RuntimeException)
+void SAL_CALL ScVbaButton::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeException)
{
+ ScVbaControl::setBackColor( nBackColor );
}
sal_Int32 SAL_CALL ScVbaButton::getForeColor() throw (uno::RuntimeException)
{
- return 0;
}
void SAL_CALL ScVbaButton::setForeColor( sal_Int32 /*nForeColor*/ ) throw (uno::RuntimeException)