fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / winaccessibility / source / UAccCOM / AccActionBase.h
blob0c7e1eb06dd9012d039694b73936e10671fc5ea7
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 // AccActionBase.h: interface for the CAccActionBase class.
22 #ifndef INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCACTIONBASE_H
23 #define INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCACTIONBASE_H
25 #include <com/sun/star/uno/reference.hxx>
26 #include <com/sun/star/accessibility/XAccessibleAction.hpp>
27 #include "UNOXWrapper.h"
29 class ATL_NO_VTABLE CAccActionBase : public CUNOXWrapper
31 public:
32 CAccActionBase();
33 virtual ~CAccActionBase();
35 // IAccessibleAction
36 public:
37 // IAccessibleAction
39 // Returns the number of action.
40 STDMETHOD(nActions)(/*[out,retval]*/long* nActions);
42 // Performs specified action on the object.
43 STDMETHOD(doAction)(/* [in] */ long actionIndex);
45 // Gets description of specified action.
46 STDMETHOD(get_description)(long actionIndex,BSTR __RPC_FAR *description);
48 // added , 2006/06/28, for driver 07/11
49 // get the action name
50 STDMETHOD(get_name)( long actionIndex, BSTR __RPC_FAR *name);
52 // get the localized action Name
53 STDMETHOD(get_localizedName)( long actionIndex, BSTR __RPC_FAR *localizedName);
55 // Returns key binding object (if any) associated with specified action
56 // key binding is string.
57 // e.g. "alt+d" (like IAccessible::get_accKeyboardShortcut).
58 STDMETHOD(get_keyBinding)(
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);
64 // Override of IUNOXWrapper.
65 STDMETHOD(put_XInterface)(hyper pXInterface);
67 static void GetkeyBindingStrByXkeyBinding( const com::sun::star::uno::Sequence< com::sun::star::awt::KeyStroke > &keySet, OLECHAR* pString );
69 protected:
71 static OLECHAR* getOLECHARFromKeyCode(long key);
73 com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessibleAction> pRXAct;
75 private:
76 inline com::sun::star::accessibility::XAccessibleAction* GetXInterface()
78 return pRXAct.get();
82 #endif // INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCACTIONBASE_H
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */