Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / winaccessibility / source / UAccCOM / AccAction.cxx
blob97bfc4f40aed69a3bc978cbdfbd42cec71a8da81
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 .
20 /**
21 * AccAction.cpp : Implementation of CAccAction
23 #include "stdafx.h"
24 #include "AccAction.h"
26 #if defined __clang__
27 #pragma clang diagnostic push
28 #pragma clang diagnostic ignored "-Wnon-virtual-dtor"
29 #endif
30 #include <UAccCOM.h>
31 #if defined __clang__
32 #pragma clang diagnostic pop
33 #endif
35 using namespace com::sun::star::accessibility;
36 using namespace com::sun::star::uno;
38 /**
39 * Returns the number of action.
41 * @param nActions the number of action.
43 COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::nActions(/*[out,retval]*/long* nActions)
46 return CAccActionBase::nActions(nActions);
49 /**
50 * Performs specified action on the object.
52 * @param actionIndex the index of action.
54 COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::doAction(/* [in] */ long actionIndex)
57 return CAccActionBase::doAction(actionIndex);
60 /**
61 * Gets description of specified action.
63 * @param actionIndex the index of action.
64 * @param description the description string of the specified action.
66 COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::get_description(long actionIndex,BSTR __RPC_FAR *description)
69 return CAccActionBase::get_description(actionIndex, description);
72 COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::get_name( long actionIndex, BSTR __RPC_FAR *name)
75 return CAccActionBase::get_name(actionIndex, name);
78 COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::get_localizedName( long actionIndex, BSTR __RPC_FAR *localizedName)
81 return CAccActionBase::get_localizedName(actionIndex, localizedName);
84 /**
85 * Returns key binding object (if any) associated with specified action
86 * key binding is string.
87 * e.g. "alt+d" (like IAccessible::get_accKeyboardShortcut).
89 * @param actionIndex the index of action.
90 * @param nMaxBinding the max number of key binding.
91 * @param keyBinding the key binding array.
92 * @param nBinding the actual number of key binding returned.
94 COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::get_keyBinding(
95 /* [in] */ long actionIndex,
96 /* [in] */ long nMaxBinding,
97 /* [length_is][length_is][size_is][size_is][out] */ BSTR __RPC_FAR *__RPC_FAR *keyBinding,
98 /* [retval][out] */ long __RPC_FAR *nBinding)
101 return CAccActionBase::get_keyBinding(actionIndex, nMaxBinding, keyBinding, nBinding);
105 * Put UNO interface.
106 * @param pXSubInterface XAccessibleHyperlink interface.
107 * @return Result.
109 COM_DECLSPEC_NOTHROW STDMETHODIMP CAccAction::put_XSubInterface(hyper pXSubInterface)
113 pRXAct = reinterpret_cast<XAccessibleAction*>(pXSubInterface);
115 return S_OK;
118 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */