1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include <com/sun/star/drawing/XControlShape.hpp>
22 #include <ooo/vba/excel/XOLEObject.hpp>
23 #include <ooo/vba/msforms/XControl.hpp>
25 #include <vbahelper/vbahelperinterface.hxx>
27 typedef InheritedHelperInterfaceWeakImpl
< ov::excel::XOLEObject
> OLEObjectImpl_BASE
;
29 class ScVbaOLEObject final
: public OLEObjectImpl_BASE
31 virtual OUString
getServiceImplName() override
;
32 virtual css::uno::Sequence
<OUString
> getServiceNames() override
;
33 css::uno::Reference
< ov::msforms::XControl
> m_xControl
;
35 ScVbaOLEObject( const css::uno::Reference
< ov::XHelperInterface
>& xParent
, const css::uno::Reference
< css::uno::XComponentContext
>& xContext
,
36 css::uno::Reference
< css::drawing::XControlShape
> const & xControlShape
);
38 // XOLEObject Attributes
39 virtual css::uno::Reference
< css::uno::XInterface
> SAL_CALL
getObject() override
;
40 virtual sal_Bool SAL_CALL
getEnabled() override
;
41 virtual void SAL_CALL
setEnabled( sal_Bool _enabled
) override
;
42 virtual sal_Bool SAL_CALL
getVisible() override
;
43 virtual void SAL_CALL
setVisible( sal_Bool _visible
) override
;
45 virtual double SAL_CALL
getLeft() override
;
46 virtual void SAL_CALL
setLeft( double _left
) override
;
47 virtual double SAL_CALL
getTop() override
;
48 virtual void SAL_CALL
setTop( double _top
) override
;
49 virtual double SAL_CALL
getHeight() override
;
50 virtual void SAL_CALL
setHeight( double _height
) override
;
51 virtual double SAL_CALL
getWidth() override
;
52 virtual void SAL_CALL
setWidth( double _width
) override
;
53 virtual OUString SAL_CALL
getLinkedCell() override
;
54 virtual void SAL_CALL
setLinkedCell( const OUString
& _linkedcell
) override
;
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */