fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / winaccessibility / source / UAccCOM / AccAction.cxx
blobbc21c6bb82ddd740cd3a3110d516d8db72e73368
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 "UAccCOM.h"
25 #include "AccAction.h"
27 using namespace com::sun::star::accessibility;
28 using namespace com::sun::star::uno;
30 /**
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);
41 /**
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);
52 /**
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);
76 /**
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);
96 /**
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);
107 * Put UNO interface.
108 * @param pXSubInterface XAccessibleHyperlink interface.
109 * @return Result.
111 STDMETHODIMP CAccAction::put_XSubInterface(hyper pXSubInterface)
115 pRXAct = reinterpret_cast<XAccessibleAction*>(pXSubInterface);
117 return S_OK;
120 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */