update ooo310-m15
[ooovba.git] / applied_patches / 0412-vba-commandbar-enabled.diff
blob7eb582a178573dabf97e251639f03401d0141104
1 diff --git oovbaapi/ooo/vba/XCommandBar.idl oovbaapi/ooo/vba/XCommandBar.idl
2 index 5e27c6b..13d54da 100644
3 --- oovbaapi/ooo/vba/XCommandBar.idl
4 +++ oovbaapi/ooo/vba/XCommandBar.idl
5 @@ -54,6 +54,7 @@ interface XCommandBar
7 [attribute] string Name;
8 [attribute] boolean Visible;
9 + [attribute] boolean Enabled;
11 void Delete() raises ( com::sun::star::script::BasicErrorException );
12 any Controls( [in] any Index ) raises ( com::sun::star::script::BasicErrorException );
13 diff --git vbahelper/source/vbahelper/vbacommandbar.cxx vbahelper/source/vbahelper/vbacommandbar.cxx
14 index 55ba7b6..ba9f49b 100644
15 --- vbahelper/source/vbahelper/vbacommandbar.cxx
16 +++ vbahelper/source/vbahelper/vbacommandbar.cxx
17 @@ -267,6 +267,22 @@ ScVbaCommandBar::setVisible( ::sal_Bool _visible ) throw (uno::RuntimeException)
18 OSL_TRACE( "SetVisible get an exception\n" );
22 +::sal_Bool SAL_CALL
23 +ScVbaCommandBar::getEnabled() throw (uno::RuntimeException)
25 + // #FIXME: seems tha main menu is alwayse enabled.
26 + // for the toolbar, need to investigate
27 + return sal_True;
30 +void SAL_CALL
31 +ScVbaCommandBar::setEnabled( sal_Bool/* _enabled */ ) throw (uno::RuntimeException)
33 + // #FIXME: seems tha main menu is alwayse enabled.
34 + // for the toolbar, need to investigate
37 void SAL_CALL
38 ScVbaCommandBar::Delete( ) throw (css::script::BasicErrorException, css::uno::RuntimeException)
40 diff --git vbahelper/source/vbahelper/vbacommandbar.hxx vbahelper/source/vbahelper/vbacommandbar.hxx
41 index 0b830b2..c53a5cd 100644
42 --- vbahelper/source/vbahelper/vbacommandbar.hxx
43 +++ vbahelper/source/vbahelper/vbacommandbar.hxx
44 @@ -93,6 +93,8 @@ public:
45 virtual void SAL_CALL setName( const ::rtl::OUString& _name ) throw (css::uno::RuntimeException);
46 virtual ::sal_Bool SAL_CALL getVisible() throw (css::uno::RuntimeException);
47 virtual void SAL_CALL setVisible( ::sal_Bool _visible ) throw (css::uno::RuntimeException);
48 + virtual ::sal_Bool SAL_CALL getEnabled() throw (css::uno::RuntimeException);
49 + virtual void SAL_CALL setEnabled( ::sal_Bool _enabled ) throw (css::uno::RuntimeException);
51 // Methods
52 virtual void SAL_CALL Delete( ) throw (css::script::BasicErrorException, css::uno::RuntimeException);