diff options
author | Daniel Rentz [dr] <daniel.rentz@oracle.com> | 2010-09-01 09:26:49 +0200 |
---|---|---|
committer | Daniel Rentz [dr] <daniel.rentz@oracle.com> | 2010-09-01 09:26:49 +0200 |
commit | b715d7737259726449d3fcf6c5e727bde3fbaeb0 (patch) | |
tree | b80775fc516b0d615f547a420cf8ea7f2f7586d6 /vbahelper | |
parent | mib19: #163416# Support default property also for already executed functions (diff) | |
download | core-b715d7737259726449d3fcf6c5e727bde3fbaeb0.tar.gz core-b715d7737259726449d3fcf6c5e727bde3fbaeb0.zip |
mib19: #163494# slight correction
Diffstat (limited to 'vbahelper')
-rw-r--r-- | vbahelper/source/vbahelper/vbaapplicationbase.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/vbahelper/source/vbahelper/vbaapplicationbase.cxx b/vbahelper/source/vbahelper/vbaapplicationbase.cxx index b676571780be..8b0a52682ac0 100644 --- a/vbahelper/source/vbahelper/vbaapplicationbase.cxx +++ b/vbahelper/source/vbahelper/vbaapplicationbase.cxx @@ -295,14 +295,10 @@ VbaApplicationBase::getVersion() throw (uno::RuntimeException) void SAL_CALL VbaApplicationBase::Run( const ::rtl::OUString& MacroName, const uno::Any& varg1, const uno::Any& varg2, const uno::Any& varg3, const uno::Any& varg4, const uno::Any& varg5, const uno::Any& varg6, const uno::Any& varg7, const uno::Any& varg8, const uno::Any& varg9, const uno::Any& varg10, const uno::Any& varg11, const uno::Any& varg12, const uno::Any& varg13, const uno::Any& varg14, const uno::Any& varg15, const uno::Any& varg16, const uno::Any& varg17, const uno::Any& varg18, const uno::Any& varg19, const uno::Any& varg20, const uno::Any& varg21, const uno::Any& varg22, const uno::Any& varg23, const uno::Any& varg24, const uno::Any& varg25, const uno::Any& varg26, const uno::Any& varg27, const uno::Any& varg28, const uno::Any& varg29, const uno::Any& varg30 ) throw (uno::RuntimeException) { - ::rtl::OUString aMacroName; - if (0 == MacroName.trim().indexOf('!')) - { - aMacroName = MacroName.trim().copy(1); - }else{ - aMacroName = MacroName; - } - VBAMacroResolvedInfo aMacroInfo = resolveVBAMacro( getSfxObjShell( getCurrentDocument() ), MacroName.trim() ); + ::rtl::OUString aMacroName = MacroName.trim(); + if (0 == aMacroName.indexOf('!')) + aMacroName = aMacroName.copy(1).trim(); + VBAMacroResolvedInfo aMacroInfo = resolveVBAMacro( getSfxObjShell( getCurrentDocument() ), aMacroName ); if( aMacroInfo.IsResolved() ) { // handle the arguments |