Bump version to 4.1-6
[LibreOffice.git] / vbahelper / source / msforms / vbauserform.hxx
blob77826c33e100e096594a2b68e493e37f5af1dcc3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
19 #ifndef SC_VBA_USERFORM_HXX
20 #define SC_VBA_USERFORM_HXX
22 #include <cppuhelper/implbase1.hxx>
23 #include <ooo/vba/msforms/XUserForm.hpp>
24 #include <com/sun/star/awt/XDialog.hpp>
25 #include <com/sun/star/awt/XControlContainer.hpp>
26 #include <com/sun/star/frame/XModel.hpp>
28 #include <vbahelper/vbahelperinterface.hxx>
29 #include "vbacontrol.hxx"
31 //typedef InheritedHelperInterfaceImpl1< ov::msforms::XUserForm > ScVbaUserForm_BASE;
32 typedef cppu::ImplInheritanceHelper1< ScVbaControl, ov::msforms::XUserForm > ScVbaUserForm_BASE;
34 class ScVbaUserForm : public ScVbaUserForm_BASE
36 private:
37 css::uno::Reference< css::awt::XDialog > m_xDialog;
38 bool mbDispose;
39 OUString m_sLibName;
40 protected:
41 public:
42 ScVbaUserForm( css::uno::Sequence< css::uno::Any > const& aArgs, css::uno::Reference< css::uno::XComponentContext >const& xContext ) throw ( css::lang::IllegalArgumentException );
43 virtual ~ScVbaUserForm();
44 static css::uno::Reference< css::awt::XControl > nestedSearch( const OUString& aPropertyName, css::uno::Reference< css::awt::XControlContainer >& xContainer );
45 // XUserForm
46 virtual void SAL_CALL RePaint( ) throw (css::uno::RuntimeException);
47 virtual void SAL_CALL Show( ) throw (css::uno::RuntimeException);
48 virtual void SAL_CALL setValue( const OUString& aPropertyName, const css::uno::Any& aValue ) throw (css::beans::UnknownPropertyException, css::script::CannotConvertException, css::reflection::InvocationTargetException, css::uno::RuntimeException);
49 virtual css::uno::Any SAL_CALL getValue( const OUString& aPropertyName ) throw (css::beans::UnknownPropertyException, css::uno::RuntimeException);
50 virtual OUString SAL_CALL getCaption() throw (::com::sun::star::uno::RuntimeException);
51 virtual void SAL_CALL setCaption( const OUString& _caption ) throw (::com::sun::star::uno::RuntimeException);
52 virtual double SAL_CALL getInnerWidth() throw (::com::sun::star::uno::RuntimeException);
53 virtual void SAL_CALL setInnerWidth( double fInnerWidth ) throw (::com::sun::star::uno::RuntimeException);
54 virtual double SAL_CALL getInnerHeight() throw (::com::sun::star::uno::RuntimeException);
55 virtual void SAL_CALL setInnerHeight( double fInnerHeight ) throw (::com::sun::star::uno::RuntimeException);
56 virtual void SAL_CALL Hide( ) throw (css::uno::RuntimeException);
57 virtual void SAL_CALL UnloadObject( ) throw (css::uno::RuntimeException);
58 virtual css::uno::Any SAL_CALL Controls( const css::uno::Any& index ) throw (css::uno::RuntimeException);
59 virtual sal_Bool SAL_CALL getVisible() throw (::com::sun::star::uno::RuntimeException);
60 virtual void SAL_CALL setVisible( sal_Bool bVis ) throw (::com::sun::star::uno::RuntimeException);
61 // XIntrospection
62 virtual css::uno::Reference< css::beans::XIntrospectionAccess > SAL_CALL getIntrospection( ) throw (css::uno::RuntimeException);
63 virtual css::uno::Any SAL_CALL invoke( const 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 ::sal_Bool SAL_CALL hasMethod( const OUString& aName ) throw (css::uno::RuntimeException);
65 virtual ::sal_Bool SAL_CALL hasProperty( const OUString& aName ) throw (css::uno::RuntimeException);
66 //XHelperInterface
67 virtual OUString getServiceImplName();
68 virtual css::uno::Sequence<OUString> getServiceNames();
70 #endif
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */