LibreOffice Module winaccessibility (master) 1
AccActionBase.h
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
20// AccActionBase.h: interface for the CAccActionBase class.
21
22#pragma once
23
24#include <com/sun/star/uno/Reference.hxx>
25#include <com/sun/star/accessibility/XAccessibleAction.hpp>
26#include "UNOXWrapper.h"
27
28class ATL_NO_VTABLE CAccActionBase : public CUNOXWrapper
29{
30public:
32 virtual ~CAccActionBase();
33
34 // IAccessibleAction
35public:
36 // IAccessibleAction
37
38 // Returns the number of action.
39 STDMETHOD(nActions)(/*[out,retval]*/ long* nActions);
40
41 // Performs specified action on the object.
42 STDMETHOD(doAction)(/* [in] */ long actionIndex);
43
44 // Gets description of specified action.
45 STDMETHOD(get_description)(long actionIndex, BSTR __RPC_FAR* description);
46
47 // added , 2006/06/28, for driver 07/11
48 // get the action name
49 STDMETHOD(get_name)(long actionIndex, BSTR __RPC_FAR* name);
50
51 // get the localized action Name
52 STDMETHOD(get_localizedName)(long actionIndex, BSTR __RPC_FAR* localizedName);
53
54 // Returns key binding object (if any) associated with specified action
55 // key binding is string.
56 // e.g. "alt+d" (like IAccessible::get_accKeyboardShortcut).
57 STDMETHOD(get_keyBinding)
58 (
59 /* [in] */ long actionIndex,
60 /* [in] */ long nMaxBinding,
61 /* [length_is][length_is][size_is][size_is][out] */ BSTR __RPC_FAR* __RPC_FAR* keyBinding,
62 /* [retval][out] */ long __RPC_FAR* nBinding);
63
64 // Override of IUNOXWrapper.
65 STDMETHOD(put_XInterface)(hyper pXInterface) override;
66
67protected:
68 css::uno::Reference<css::accessibility::XAccessibleAction> pRXAct;
69
70private:
71 css::accessibility::XAccessibleAction* GetXInterface() { return pRXAct.get(); }
72};
73
74/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
long long BSTR __RPC_FAR *__RPC_FAR * keyBinding
Definition: AccActionBase.h:61
css::accessibility::XAccessibleAction * GetXInterface()
Definition: AccActionBase.h:71
long long nMaxBinding
Definition: AccActionBase.h:60
css::uno::Reference< css::accessibility::XAccessibleAction > pRXAct
Definition: AccActionBase.h:68
long long BSTR __RPC_FAR *__RPC_FAR long __RPC_FAR * nBinding
Definition: AccActionBase.h:62
CUNOXWrapper implements IUNOXWrapper interface.
Definition: UNOXWrapper.h:32
const char * name