merge the formfield patch from ooo-build
[ooovba.git] / sc / source / ui / vba / vbaoleobject.hxx
blob9e4f2b82fd1940dbd95acaa8a6be03dbd2c7c28d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: vbaoleobject.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef SC_VBA_OLEOBJECT_HXX
31 #define SC_VBA_OLEOBJECT_HXX
33 #include <cppuhelper/implbase1.hxx>
34 #include <com/sun/star/drawing/XControlShape.hpp>
35 #include <ooo/vba/excel/XOLEObject.hpp>
36 #include <ooo/vba/msforms/XControl.hpp>
38 #include <vbahelper/vbahelperinterface.hxx>
40 typedef InheritedHelperInterfaceImpl1< ov::excel::XOLEObject > OLEObjectImpl_BASE;
42 class ScVbaOLEObject : public OLEObjectImpl_BASE
44 protected:
45 css::uno::Reference< css::drawing::XControlShape > m_xControlShape;
46 virtual rtl::OUString& getServiceImplName();
47 virtual css::uno::Sequence<rtl::OUString> getServiceNames();
48 css::uno::Reference< ov::msforms::XControl> m_xControl;
49 public:
50 ScVbaOLEObject( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext,
51 css::uno::Reference< css::drawing::XControlShape > xControlShape );
53 // XOLEObject Attributes
54 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getObject() throw (css::uno::RuntimeException);
55 virtual sal_Bool SAL_CALL getEnabled() throw (css::uno::RuntimeException);
56 virtual void SAL_CALL setEnabled( ::sal_Bool _enabled ) throw (css::uno::RuntimeException);
57 virtual sal_Bool SAL_CALL getVisible() throw (css::uno::RuntimeException);
58 virtual void SAL_CALL setVisible( ::sal_Bool _visible ) throw (css::uno::RuntimeException);
59 virtual double SAL_CALL getLeft() throw (css::uno::RuntimeException);
60 virtual void SAL_CALL setLeft( double _left ) throw (css::uno::RuntimeException);
61 virtual double SAL_CALL getTop() throw (css::uno::RuntimeException);
62 virtual void SAL_CALL setTop( double _top ) throw (css::uno::RuntimeException);
63 virtual double SAL_CALL getHeight() throw (css::uno::RuntimeException);
64 virtual void SAL_CALL setHeight( double _height ) throw (css::uno::RuntimeException);
65 virtual double SAL_CALL getWidth() throw (css::uno::RuntimeException);
66 virtual void SAL_CALL setWidth( double _width ) throw (css::uno::RuntimeException);
69 #endif //SC_VBA_OLEOBJECT_HXX