LibreOffice Module vbahelper (master) 1
vbasystemaxcontrol.cxx
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 */
20
21using namespace com::sun::star;
22using namespace ooo::vba;
23
24
25VbaSystemAXControl::VbaSystemAXControl( const uno::Reference< ov::XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< uno::XInterface >& xControl, const uno::Reference< frame::XModel >& xModel, std::unique_ptr<AbstractGeometryAttributes> pGeomHelper )
26: SystemAXControlImpl_BASE( xParent, xContext, xControl, xModel, std::move(pGeomHelper) )
27, m_xControlInvocation( xControl, uno::UNO_QUERY_THROW )
28{
29}
30
31
32uno::Reference< beans::XIntrospectionAccess > SAL_CALL VbaSystemAXControl::getIntrospection()
33{
34 return m_xControlInvocation->getIntrospection();
35}
36
37
38uno::Any SAL_CALL VbaSystemAXControl::invoke( const OUString& aFunctionName, const uno::Sequence< uno::Any >& aParams, uno::Sequence< ::sal_Int16 >& aOutParamIndex, uno::Sequence< uno::Any >& aOutParam )
39{
40 return m_xControlInvocation->invoke( aFunctionName, aParams, aOutParamIndex, aOutParam );
41}
42
43
44void SAL_CALL VbaSystemAXControl::setValue( const OUString& aPropertyName, const uno::Any& aValue )
45{
46 m_xControlInvocation->setValue( aPropertyName, aValue );
47}
48
49
50uno::Any SAL_CALL VbaSystemAXControl::getValue( const OUString& aPropertyName )
51{
52 return m_xControlInvocation->getValue( aPropertyName );
53}
54
55
56sal_Bool SAL_CALL VbaSystemAXControl::hasMethod( const OUString& aName )
57{
58 return m_xControlInvocation->hasMethod( aName );
59}
60
61
62sal_Bool SAL_CALL VbaSystemAXControl::hasProperty( const OUString& aName )
63{
64 return m_xControlInvocation->hasProperty( aName );
65}
66
67
68OUString
70{
71 return "VbaSystemAXControl";
72}
73
74
75uno::Sequence< OUString >
77{
78 static uno::Sequence< OUString > const aServiceNames
79 {
80 "ooo.vba.msforms.Frame"
81 };
82 return aServiceNames;
83}
84
85/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Reference< css::beans::XIntrospectionAccess > SAL_CALL getIntrospection() override
css::uno::Reference< css::script::XInvocation > m_xControlInvocation
VbaSystemAXControl(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::uno::XInterface > &xControl, const css::uno::Reference< css::frame::XModel > &xModel, std::unique_ptr< ov::AbstractGeometryAttributes > pGeomHelper)
virtual sal_Bool SAL_CALL hasMethod(const OUString &aName) override
virtual void SAL_CALL setValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual sal_Bool SAL_CALL hasProperty(const OUString &aName) override
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 OUString getServiceImplName() override
virtual css::uno::Any SAL_CALL getValue(const OUString &aPropertyName) override
virtual css::uno::Sequence< OUString > getServiceNames() override
Sequence< OUString > aServiceNames
OUString aName
Reference< XModel > xModel
unsigned char sal_Bool
cppu::ImplInheritanceHelper< ScVbaControl, css::script::XInvocation > SystemAXControlImpl_BASE