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 .
19 #ifndef INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAUSERFORM_HXX
20 #define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAUSERFORM_HXX
22 #include <cppuhelper/implbase.hxx>
23 #include <ooo/vba/msforms/XUserForm.hpp>
24 #include <com/sun/star/awt/XDialog.hpp>
25 #include <com/sun/star/awt/XControlContainer.hpp>
27 #include "vbacontrol.hxx"
29 //typedef InheritedHelperInterfaceWeakImpl< ov::msforms::XUserForm > ScVbaUserForm_BASE;
30 typedef cppu::ImplInheritanceHelper
< ScVbaControl
, ov::msforms::XUserForm
> ScVbaUserForm_BASE
;
32 class ScVbaUserForm
: public ScVbaUserForm_BASE
35 css::uno::Reference
< css::awt::XDialog
> m_xDialog
;
40 /// @throws css::lang::IllegalArgumentException
41 /// @throws css::uno::RuntimeException
42 ScVbaUserForm( css::uno::Sequence
< css::uno::Any
> const& aArgs
, css::uno::Reference
< css::uno::XComponentContext
>const& xContext
);
43 virtual ~ScVbaUserForm() override
;
44 static css::uno::Reference
< css::awt::XControl
> nestedSearch( const OUString
& aPropertyName
, css::uno::Reference
< css::awt::XControlContainer
> const & xContainer
);
46 virtual void SAL_CALL
RePaint( ) override
;
47 virtual void SAL_CALL
Show( ) override
;
48 virtual void SAL_CALL
setValue( const OUString
& aPropertyName
, const css::uno::Any
& aValue
) override
;
49 virtual css::uno::Any SAL_CALL
getValue( const OUString
& aPropertyName
) override
;
50 virtual OUString SAL_CALL
getCaption() override
;
51 virtual void SAL_CALL
setCaption( const OUString
& _caption
) override
;
52 virtual double SAL_CALL
getInnerWidth() override
;
53 virtual void SAL_CALL
setInnerWidth( double fInnerWidth
) override
;
54 virtual double SAL_CALL
getInnerHeight() override
;
55 virtual void SAL_CALL
setInnerHeight( double fInnerHeight
) override
;
56 virtual void SAL_CALL
Hide( ) override
;
57 virtual void SAL_CALL
UnloadObject( ) override
;
58 virtual css::uno::Any SAL_CALL
Controls( const css::uno::Any
& index
) override
;
59 virtual sal_Bool SAL_CALL
getVisible() override
;
60 virtual void SAL_CALL
setVisible( sal_Bool bVis
) override
;
62 virtual css::uno::Reference
< css::beans::XIntrospectionAccess
> SAL_CALL
getIntrospection( ) override
;
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
) override
;
64 virtual sal_Bool SAL_CALL
hasMethod( const OUString
& aName
) override
;
65 virtual sal_Bool SAL_CALL
hasProperty( const OUString
& aName
) override
;
67 virtual OUString
getServiceImplName() override
;
68 virtual css::uno::Sequence
<OUString
> getServiceNames() override
;
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */