diff options
Diffstat (limited to 'sc/source/ui/vba/vbaoleobject.cxx')
-rw-r--r-- | sc/source/ui/vba/vbaoleobject.cxx | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/sc/source/ui/vba/vbaoleobject.cxx b/sc/source/ui/vba/vbaoleobject.cxx index 8824921ac73d..e02d7e0e99cb 100644 --- a/sc/source/ui/vba/vbaoleobject.cxx +++ b/sc/source/ui/vba/vbaoleobject.cxx @@ -25,10 +25,7 @@ #include <ooo/vba/XControlProvider.hpp> #include "vbaoleobject.hxx" -#include <svx/svdobj.hxx> -#include "drwlayer.hxx" -#include "excelvbahelper.hxx" -#include <svtools/bindablecontrolhelper.hxx> + using namespace com::sun::star; using namespace ooo::vba; @@ -41,7 +38,7 @@ ScVbaOLEObject::ScVbaOLEObject( const uno::Reference< XHelperInterface >& xParen uno::Reference< container::XChild > xChild( xControlModel, uno::UNO_QUERY_THROW ); xChild.set( xChild->getParent(), uno::UNO_QUERY_THROW ); xChild.set( xChild->getParent(), uno::UNO_QUERY_THROW ); - uno::Reference<frame::XModel> xModel( xChild->getParent(), uno::UNO_QUERY_THROW ); + css::uno::Reference< css::frame::XModel > xModel( xChild->getParent(), uno::UNO_QUERY_THROW ); uno::Reference<lang::XMultiComponentFactory > xServiceManager( mxContext->getServiceManager(), uno::UNO_QUERY_THROW ); uno::Reference< XControlProvider > xControlProvider( xServiceManager->createInstanceWithContext( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ooo.vba.ControlProvider" ) ), mxContext ), uno::UNO_QUERY_THROW ); m_xControl.set( xControlProvider->createControl( xControlShape, xModel ) ); @@ -128,16 +125,6 @@ ScVbaOLEObject::setWidth( double _width ) throw (uno::RuntimeException) m_xControl->setWidth( _width ); } -rtl::OUString SAL_CALL ScVbaOLEObject::getLinkedCell() throw (uno::RuntimeException) -{ - return m_xControl->getControlSource(); -} - -void SAL_CALL ScVbaOLEObject::setLinkedCell( const ::rtl::OUString& _linkedcell ) throw (uno::RuntimeException) -{ - m_xControl->setControlSource( _linkedcell ); -} - rtl::OUString ScVbaOLEObject::getServiceImplName() { |