LibreOffice Module winaccessibility (master) 1
AccAction.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 */
19
23#include "stdafx.h"
24#include <UAccCOM.h>
25#include "AccAction.h"
26
27using namespace com::sun::star::accessibility;
28using namespace com::sun::star::uno;
29
35COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::nActions(/*[out,retval]*/long* nActions)
36{
37
39}
40
46COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::doAction(/* [in] */ long actionIndex)
47{
48
50}
51
58COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::get_description(long actionIndex,BSTR __RPC_FAR *description)
59{
60
62}
63
64COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::get_name( long actionIndex, BSTR __RPC_FAR *name)
65{
66
68}
69
70COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::get_localizedName( long actionIndex, BSTR __RPC_FAR *localizedName)
71{
72
74}
75
86COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::get_keyBinding(
87 /* [in] */ long actionIndex,
88 /* [in] */ long nMaxBinding,
89 /* [length_is][length_is][size_is][size_is][out] */ BSTR __RPC_FAR *__RPC_FAR *keyBinding,
90 /* [retval][out] */ long __RPC_FAR *nBinding)
91{
92
93 return CAccActionBase::get_keyBinding(actionIndex, nMaxBinding, keyBinding, nBinding);
94}
95
101COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::put_XSubInterface(hyper pXSubInterface)
102{
103
104
105 pRXAct = reinterpret_cast<XAccessibleAction*>(pXSubInterface);
106
107 return S_OK;
108}
109
110/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
long long BSTR __RPC_FAR *__RPC_FAR * keyBinding
Definition: AccActionBase.h:61
long long nMaxBinding
Definition: AccActionBase.h:60
STDMETHOD() nActions(long *nActions)
Returns the number of action.
STDMETHOD() doAction(long actionIndex)
Performs specified action on the object.
css::uno::Reference< css::accessibility::XAccessibleAction > pRXAct
Definition: AccActionBase.h:68
STDMETHOD() get_name(long actionIndex, BSTR __RPC_FAR *name)
STDMETHOD() get_localizedName(long actionIndex, BSTR __RPC_FAR *localizedName)
long long BSTR __RPC_FAR *__RPC_FAR long __RPC_FAR * nBinding
Definition: AccActionBase.h:62
STDMETHOD() get_description(long actionIndex, BSTR __RPC_FAR *description)
Gets description of specified action.
STDMETHOD() get_keyBinding(long actionIndex, long nMaxBinding, BSTR __RPC_FAR *__RPC_FAR *keyBinding, long __RPC_FAR *nBinding) override
Returns key binding object (if any) associated with specified action key binding is string.
Definition: AccAction.cxx:86
STDMETHOD() put_XSubInterface(hyper pXSubInterface) override
Put UNO interface.
Definition: AccAction.cxx:101
STDMETHOD() doAction(long actionIndex) override
Performs specified action on the object.
Definition: AccAction.cxx:46
STDMETHOD() nActions(long *nActions) override
Returns the number of action.
Definition: AccAction.cxx:35
STDMETHOD() get_name(long actionIndex, BSTR __RPC_FAR *name) override
Definition: AccAction.cxx:64
STDMETHOD() get_localizedName(long actionIndex, BSTR __RPC_FAR *localizedName) override
Definition: AccAction.cxx:70
STDMETHOD() get_description(long actionIndex, BSTR __RPC_FAR *description) override
Gets description of specified action.
Definition: AccAction.cxx:58
BSTR localizedName([in] long actionIndex)
Returns the localized name of specified action.
BSTR description([in] long actionIndex)
Returns a description of the specified action of the object.
BSTR name([in] long actionIndex)
Returns the non-localized name of specified action.