LibreOffice Module vbahelper (master) 1
vbauserform.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#ifndef INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAUSERFORM_HXX
20#define INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBAUSERFORM_HXX
21
23#include <ooo/vba/msforms/XUserForm.hpp>
24#include <com/sun/star/awt/XDialog.hpp>
25#include <com/sun/star/awt/XControlContainer.hpp>
26
27#include "vbacontrol.hxx"
28
29//typedef InheritedHelperInterfaceWeakImpl< ov::msforms::XUserForm > ScVbaUserForm_BASE;
30typedef cppu::ImplInheritanceHelper< ScVbaControl, ov::msforms::XUserForm > ScVbaUserForm_BASE;
31
33{
34private:
35 css::uno::Reference< css::awt::XDialog > m_xDialog;
37 OUString m_sLibName;
38protected:
39public:
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 );
45 // XUserForm
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;
61 // XIntrospection
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;
66 //XHelperInterface
67 virtual OUString getServiceImplName() override;
68 virtual css::uno::Sequence<OUString> getServiceNames() override;
69};
70#endif
71
72/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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
virtual sal_Bool SAL_CALL hasProperty(const OUString &aName) override
virtual void SAL_CALL Hide() override
css::uno::Reference< css::awt::XDialog > m_xDialog
Definition: vbauserform.hxx:35
ScVbaUserForm(css::uno::Sequence< css::uno::Any > const &aArgs, css::uno::Reference< css::uno::XComponentContext >const &xContext)
Definition: vbauserform.cxx:44
virtual void SAL_CALL setValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual css::uno::Any SAL_CALL getValue(const OUString &aPropertyName) override
virtual void SAL_CALL Show() override
Definition: vbauserform.cxx:61
virtual css::uno::Reference< css::beans::XIntrospectionAccess > SAL_CALL getIntrospection() override
virtual void SAL_CALL setInnerWidth(double fInnerWidth) override
virtual sal_Bool SAL_CALL hasMethod(const OUString &aName) override
virtual void SAL_CALL UnloadObject() override
OUString m_sLibName
Definition: vbauserform.hxx:37
virtual OUString SAL_CALL getCaption() override
virtual double SAL_CALL getInnerHeight() override
virtual void SAL_CALL setCaption(const OUString &_caption) override
virtual ~ScVbaUserForm() override
Definition: vbauserform.cxx:56
virtual void SAL_CALL setInnerHeight(double fInnerHeight) override
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual void SAL_CALL RePaint() override
virtual sal_Bool SAL_CALL getVisible() override
virtual css::uno::Any SAL_CALL Controls(const css::uno::Any &index) override
static css::uno::Reference< css::awt::XControl > nestedSearch(const OUString &aPropertyName, css::uno::Reference< css::awt::XControlContainer > const &xContainer)
virtual double SAL_CALL getInnerWidth() override
virtual OUString getServiceImplName() override
virtual void SAL_CALL setVisible(sal_Bool bVis) override
unsigned char sal_Bool
cppu::ImplInheritanceHelper< ScVbaControl, ov::msforms::XUserForm > ScVbaUserForm_BASE
Definition: vbauserform.hxx:30