diff options
author | Noel Power <noel.power@novell.com> | 2012-04-20 18:25:45 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-04-20 18:26:21 +0100 |
commit | 101132c28a8f084612106337f4cafe21c535dea8 (patch) | |
tree | 9e4e08d033be4e37414578ea726222ad7adb47e9 /sc/source/ui/vba/vbaapplication.cxx | |
parent | f2cf3f30a76cb257bf44f9651b295280fb12d4aa (diff) |
add stub vba implementation Application methods
added Application.DisplayExcel4Menus, Application.DisplayNoteIndicator, Application.ShowWindowsInTaskbar. Althought these attributes of the Application object don't do anything they allow setting and retrieval of the state. We could make a usable implementation for Application.DisplayNoteIndicator, the others though don't really seem to have any useful equivalent in the libreoffice world
Diffstat (limited to 'sc/source/ui/vba/vbaapplication.cxx')
-rw-r--r-- | sc/source/ui/vba/vbaapplication.cxx | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx index 49638821dc9f..bb317328db60 100644 --- a/sc/source/ui/vba/vbaapplication.cxx +++ b/sc/source/ui/vba/vbaapplication.cxx @@ -154,14 +154,19 @@ struct ScVbaAppSettings sal_Int32 mnCalculation; sal_Bool mbDisplayAlerts; sal_Bool mbEnableEvents; - + sal_Bool mbExcel4Menus; + sal_Bool mbDisplayNoteIndicator; + sal_Bool mbShowWindowsInTaskbar; explicit ScVbaAppSettings(); }; ScVbaAppSettings::ScVbaAppSettings() : mnCalculation( excel::XlCalculation::xlCalculationAutomatic ), mbDisplayAlerts( sal_True ), - mbEnableEvents( sal_True ) + mbEnableEvents( sal_True ), + mbExcel4Menus( sal_False ), + mbDisplayNoteIndicator( sal_True ), + mbShowWindowsInTaskbar( sal_True ) { } @@ -916,6 +921,42 @@ ScVbaApplication::setDisplayScrollBars( sal_Bool bSet ) throw (uno::RuntimeExce } sal_Bool SAL_CALL +ScVbaApplication::getDisplayExcel4Menus() throw (css::uno::RuntimeException) +{ + return mrAppSettings.mbExcel4Menus; +} + +void SAL_CALL +ScVbaApplication::setDisplayExcel4Menus( sal_Bool bSet ) throw (css::uno::RuntimeException) +{ + mrAppSettings.mbExcel4Menus = bSet; +} + +sal_Bool SAL_CALL +ScVbaApplication::getDisplayNoteIndicator() throw (css::uno::RuntimeException) +{ + return mrAppSettings.mbDisplayNoteIndicator; +} + +void SAL_CALL +ScVbaApplication::setDisplayNoteIndicator( sal_Bool bSet ) throw (css::uno::RuntimeException) +{ + mrAppSettings.mbDisplayNoteIndicator = bSet; +} + +sal_Bool SAL_CALL +ScVbaApplication::getShowWindowsInTaskbar() throw (css::uno::RuntimeException) +{ + return mrAppSettings.mbShowWindowsInTaskbar; +} + +void SAL_CALL +ScVbaApplication::setShowWindowsInTaskbar( sal_Bool bSet ) throw (css::uno::RuntimeException) +{ + mrAppSettings.mbShowWindowsInTaskbar = bSet; +} + +sal_Bool SAL_CALL ScVbaApplication::getVisible() throw (uno::RuntimeException) { sal_Bool bVisible = sal_True; |