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 .
21 * AccAction.cpp : Implementation of CAccAction
25 #include "AccAction.h"
27 using namespace com::sun::star::accessibility
;
28 using namespace com::sun::star::uno
;
31 * Returns the number of action.
33 * @param nActions the number of action.
35 STDMETHODIMP
CAccAction::nActions(/*[out,retval]*/long* nActions
)
38 return CAccActionBase::nActions(nActions
);
42 * Performs specified action on the object.
44 * @param actionIndex the index of action.
46 STDMETHODIMP
CAccAction::doAction(/* [in] */ long actionIndex
)
49 return CAccActionBase::doAction(actionIndex
);
53 * Gets description of specified action.
55 * @param actionIndex the index of action.
56 * @param description the description string of the specified action.
58 STDMETHODIMP
CAccAction::get_description(long actionIndex
,BSTR __RPC_FAR
*description
)
61 return CAccActionBase::get_description(actionIndex
, description
);
64 STDMETHODIMP
CAccAction::get_name( long actionIndex
, BSTR __RPC_FAR
*name
)
67 return CAccActionBase::get_name(actionIndex
, name
);
70 STDMETHODIMP
CAccAction::get_localizedName( long actionIndex
, BSTR __RPC_FAR
*localizedName
)
73 return CAccActionBase::get_localizedName(actionIndex
, localizedName
);
77 * Returns key binding object (if any) associated with specified action
78 * key binding is string.
79 * e.g. "alt+d" (like IAccessible::get_accKeyboardShortcut).
81 * @param actionIndex the index of action.
82 * @param nMaxBinding the max number of key binding.
83 * @param keyBinding the key binding array.
84 * @param nBinding the actual number of key binding returned.
86 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
)
93 return CAccActionBase::get_keyBinding(actionIndex
, nMaxBinding
, keyBinding
, nBinding
);
97 * Override of IUNOXWrapper.
99 * @param pXInterface the pointer of UNO interface.
101 STDMETHODIMP
CAccAction::put_XInterface(hyper pXInterface
)
104 return CAccActionBase::put_XInterface(pXInterface
);
108 * @param pXSubInterface XAccessibleHyperlink interface.
111 STDMETHODIMP
CAccAction::put_XSubInterface(hyper pXSubInterface
)
115 pRXAct
= reinterpret_cast<XAccessibleAction
*>(pXSubInterface
);
120 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */