1 /*************************************************************************
3 * OpenOffice.org - a multi-platform office productivity suite
9 * last change: $Author$ $Date$
11 * The Contents of this file are made available subject to
12 * the terms of GNU Lesser General Public License Version 2.1.
15 * GNU Lesser General Public License Version 2.1
16 * =============================================
17 * Copyright 2005 by Sun Microsystems, Inc.
18 * 901 San Antonio Road, Palo Alto, CA 94303, USA
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License version 2.1, as published by the Free Software Foundation.
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * Lesser General Public License for more details.
29 * You should have received a copy of the GNU Lesser General Public
30 * License along with this library; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
34 ************************************************************************/
35 #ifndef SC_VBA_USERFORM_HXX
36 #define SC_VBA_USERFORM_HXX
38 #include <cppuhelper/implbase1.hxx>
39 #include <ooo/vba/msforms/XUserForm.hpp>
40 #include <com/sun/star/awt/XDialog.hpp>
41 #include <com/sun/star/frame/XModel.hpp>
43 #include <vbahelper/vbahelperinterface.hxx>
44 #include "vbacontrol.hxx"
46 //typedef InheritedHelperInterfaceImpl1< ov::msforms::XUserForm > ScVbaUserForm_BASE;
47 typedef cppu::ImplInheritanceHelper1
< ScVbaControl
, ov::msforms::XUserForm
> ScVbaUserForm_BASE
;
49 class ScVbaUserForm
: public ScVbaUserForm_BASE
52 css::uno::Reference
< css::awt::XDialog
> m_xDialog
;
56 ScVbaUserForm( css::uno::Sequence
< css::uno::Any
> const& aArgs
, css::uno::Reference
< css::uno::XComponentContext
>const& xContext
) throw ( css::lang::IllegalArgumentException
);
57 virtual ~ScVbaUserForm();
59 virtual void SAL_CALL
RePaint( ) throw (css::uno::RuntimeException
);
60 virtual void SAL_CALL
Show( ) throw (css::uno::RuntimeException
);
62 virtual css::uno::Reference
< css::beans::XIntrospectionAccess
> SAL_CALL
getIntrospection( ) throw (css::uno::RuntimeException
);
63 virtual css::uno::Any SAL_CALL
invoke( const ::rtl::OUString
& aFunctionName
, const css::uno::Sequence
< css::uno::Any
>& aParams
, css::uno::Sequence
< ::sal_Int16
>& aOutParamIndex
, css::uno::Sequence
< css::uno::Any
>& aOutParam
) throw (css::lang::IllegalArgumentException
, css::script::CannotConvertException
, css::reflection::InvocationTargetException
, css::uno::RuntimeException
);
64 virtual void SAL_CALL
setValue( const ::rtl::OUString
& aPropertyName
, const css::uno::Any
& aValue
) throw (css::beans::UnknownPropertyException
, css::script::CannotConvertException
, css::reflection::InvocationTargetException
, css::uno::RuntimeException
);
65 virtual css::uno::Any SAL_CALL
getValue( const ::rtl::OUString
& aPropertyName
) throw (css::beans::UnknownPropertyException
, css::uno::RuntimeException
);
66 virtual ::sal_Bool SAL_CALL
hasMethod( const ::rtl::OUString
& aName
) throw (css::uno::RuntimeException
);
67 virtual ::sal_Bool SAL_CALL
hasProperty( const ::rtl::OUString
& aName
) throw (css::uno::RuntimeException
);
68 virtual ::rtl::OUString SAL_CALL
getCaption() throw (::com::sun::star::uno::RuntimeException
);
69 virtual void SAL_CALL
setCaption( const ::rtl::OUString
& _caption
) throw (::com::sun::star::uno::RuntimeException
);
70 virtual void SAL_CALL
Hide( ) throw (css::uno::RuntimeException
);
71 virtual void SAL_CALL
UnloadObject( ) throw (css::uno::RuntimeException
);
72 virtual css::uno::Any SAL_CALL
Controls( const css::uno::Any
& index
) throw (css::uno::RuntimeException
);
74 virtual rtl::OUString
& getServiceImplName();
75 virtual css::uno::Sequence
<rtl::OUString
> getServiceNames();