diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-12-07 09:50:30 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-12-07 09:50:30 +0000 |
commit | 9efe73cce37cf161822d8f31511e19d856b5cede (patch) | |
tree | 8c368a10f16c726758a58c2ddabb66b6cab97026 /sc/source/ui/vba/vbadialog.cxx | |
parent | bc79cdf8d662b7bd423a640e67e4db371801938d (diff) |
INTEGRATION: CWS npower8 (1.2.4); FILE MERGED
2007/07/18 13:46:45 npower 1.2.4.2: #i77189# sync ooo-build and this module
2007/05/10 11:23:09 npower 1.2.4.1: -m#i77189#
Diffstat (limited to 'sc/source/ui/vba/vbadialog.cxx')
-rw-r--r-- | sc/source/ui/vba/vbadialog.cxx | 53 |
1 files changed, 20 insertions, 33 deletions
diff --git a/sc/source/ui/vba/vbadialog.cxx b/sc/source/ui/vba/vbadialog.cxx index 24425d819ecb..024fb4baaeee 100644 --- a/sc/source/ui/vba/vbadialog.cxx +++ b/sc/source/ui/vba/vbadialog.cxx @@ -4,9 +4,9 @@ * * $RCSfile: vbadialog.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2007-04-25 16:05:22 $ + * last change: $Author: vg $ $Date: 2007-12-07 10:50:19 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -64,37 +64,6 @@ ScVbaDialog::Show() throw(uno::RuntimeException) } } -uno::Any -ScVbaDialog::getParent() throw (uno::RuntimeException) -{ - uno::Reference< vba::XGlobals > xGlobals = ScVbaGlobals::getGlobalsImpl( m_xContext ); - uno::Reference< excel::XApplication > xApplication = xGlobals->getApplication(); - if ( !xApplication.is() ) - { - throw uno::RuntimeException( - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ScVbaDialgs::getParent: Couldn't access Application object") ),uno::Reference< XInterface >() ); - } - return uno::Any(xApplication); -} - -::sal_Int32 -ScVbaDialog::getCreator() throw (uno::RuntimeException) -{ - // #TODO #FIXME - return 0; -} -uno::Reference< excel::XApplication > -ScVbaDialog::getApplication() throw (uno::RuntimeException) -{ - uno::Reference< excel::XApplication > xApplication = ScVbaGlobals::getGlobalsImpl( m_xContext )->getApplication(); - if ( !xApplication.is() ) - { - throw uno::RuntimeException( - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ScVbaWorkbooks::getParent: Couldn't access Application object" ) ), - uno::Reference< XInterface >() ); - } - return xApplication; -} static const rtl::OUString aStringList[]= { @@ -135,3 +104,21 @@ ScVbaDialog::mapIndexToName( sal_Int32 nIndex ) return rtl::OUString(); } +rtl::OUString& +ScVbaDialog::getServiceImplName() +{ + static rtl::OUString sImplName( RTL_CONSTASCII_USTRINGPARAM("ScVbaPivotTable") ); + return sImplName; +} + +uno::Sequence< rtl::OUString > +ScVbaDialog::getServiceNames() +{ + static uno::Sequence< rtl::OUString > aServiceNames; + if ( aServiceNames.getLength() == 0 ) + { + aServiceNames.realloc( 1 ); + aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("org.openoffice.excel.PivotTable" ) ); + } + return aServiceNames; +} |