summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbaapplication.cxx
diff options
context:
space:
mode:
authorDaniel Rentz [dr] <daniel.rentz@oracle.com>2010-09-15 14:11:13 +0200
committerDaniel Rentz [dr] <daniel.rentz@oracle.com>2010-09-15 14:11:13 +0200
commitbbf445b0244ec56dd37c9230b3c734f2ec843933 (patch)
treecd991225c2075478788d6142741ee1224b967ac4 /sc/source/ui/vba/vbaapplication.cxx
parent9ee1eeecede032d649c042b68aa078a6d2a38121 (diff)
mib19: #163640# do not fire selection change events when changing/insertintg/deleting sheets
Diffstat (limited to 'sc/source/ui/vba/vbaapplication.cxx')
-rw-r--r--sc/source/ui/vba/vbaapplication.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx
index 5bb44c126fdf..30d4bd4d39a0 100644
--- a/sc/source/ui/vba/vbaapplication.cxx
+++ b/sc/source/ui/vba/vbaapplication.cxx
@@ -142,6 +142,11 @@ ScVbaApplication::~ScVbaApplication()
{
}
+/*static*/ bool ScVbaApplication::getDocumentEventsEnabled()
+{
+ return ScVbaStaticAppSettings::get().mbEnableEvents;
+}
+
SfxObjectShell* ScVbaApplication::GetDocShell( const uno::Reference< frame::XModel >& xModel ) throw (uno::RuntimeException)
{
return static_cast< SfxObjectShell* >( excel::getDocShell( xModel ) );