20#include <com/sun/star/awt/XControlModel.hpp>
21#include <com/sun/star/container/XChild.hpp>
22#include <com/sun/star/lang/XMultiComponentFactory.hpp>
23#include <ooo/vba/XControlProvider.hpp>
31 css::uno::Reference< css::drawing::XControlShape >
const & xControlShape )
35 uno::Reference< awt::XControlModel > xControlModel( xControlShape->getControl(), css::uno::UNO_SET_THROW );
36 uno::Reference< container::XChild > xChild( xControlModel, uno::UNO_QUERY_THROW );
37 xChild.set( xChild->getParent(), uno::UNO_QUERY_THROW );
38 xChild.set( xChild->getParent(), uno::UNO_QUERY_THROW );
39 uno::Reference<frame::XModel>
xModel( xChild->getParent(), uno::UNO_QUERY_THROW );
40 uno::Reference<lang::XMultiComponentFactory > xServiceManager(
mxContext->getServiceManager(), uno::UNO_SET_THROW );
41 uno::Reference< XControlProvider > xControlProvider( xServiceManager->createInstanceWithContext(
"ooo.vba.ControlProvider",
mxContext ), uno::UNO_QUERY_THROW );
45uno::Reference< uno::XInterface > SAL_CALL
48 return uno::Reference< uno::XInterface >(
m_xControl, uno::UNO_QUERY_THROW );
137 return "ScVbaOLEObject";
140uno::Sequence< OUString >
145 "ooo.vba.excel.OLEObject"
css::uno::Reference< css::uno::XComponentContext > mxContext
virtual double SAL_CALL getTop() override
virtual OUString getServiceImplName() override
virtual void SAL_CALL setEnabled(sal_Bool _enabled) override
virtual void SAL_CALL setLinkedCell(const OUString &_linkedcell) override
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getObject() override
virtual void SAL_CALL setHeight(double _height) override
virtual void SAL_CALL setTop(double _top) override
virtual double SAL_CALL getHeight() override
virtual void SAL_CALL setWidth(double _width) override
virtual double SAL_CALL getWidth() override
virtual void SAL_CALL setVisible(sal_Bool _visible) override
virtual sal_Bool SAL_CALL getEnabled() override
virtual void SAL_CALL setLeft(double _left) override
ScVbaOLEObject(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::drawing::XControlShape > const &xControlShape)
virtual sal_Bool SAL_CALL getVisible() override
virtual OUString SAL_CALL getLinkedCell() override
virtual double SAL_CALL getLeft() override
virtual css::uno::Sequence< OUString > getServiceNames() override
css::uno::Reference< ov::msforms::XControl > m_xControl
Sequence< OUString > aServiceNames
Reference< XModel > xModel