fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / winaccessibility / source / UAccCOM / AccAction.h
blob2f22b95055ef2332c23f7367603682756140a6dc
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 #ifndef INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCACTION_H
21 #define INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCACTION_H
23 #include "resource.h" // main symbols
24 #include "AccActionBase.h"
26 /**
27 * CAccAction implements IAccessibleAction interface.
29 class ATL_NO_VTABLE CAccAction :
30 public CComObjectRoot,
31 public CComCoClass<CAccAction, &CLSID_AccAction>,
32 public IAccessibleAction,
33 public CAccActionBase
35 public:
36 CAccAction()
40 ~CAccAction()
45 DECLARE_NO_REGISTRY()
47 BEGIN_COM_MAP(CAccAction)
48 COM_INTERFACE_ENTRY(IAccessibleAction)
49 COM_INTERFACE_ENTRY(IUNOXWrapper)
50 COM_INTERFACE_ENTRY_FUNC_BLIND(NULL,_SmartQI)
51 END_COM_MAP()
53 static HRESULT WINAPI _SmartQI(void* pv,
54 REFIID iid, void** ppvObject, DWORD_PTR)
56 return ((CAccAction*)pv)->SmartQI(iid,ppvObject);
59 HRESULT SmartQI(REFIID iid, void** ppvObject)
61 if( m_pOuterUnknown )
62 return OuterQueryInterface(iid,ppvObject);
63 return E_FAIL;
66 // IAccessibleAction
67 public:
68 // IAccessibleAction
70 // Returns the number of action.
71 STDMETHOD(nActions)(/*[out,retval]*/long* nActions);
73 // Performs specified action on the object.
74 STDMETHOD(doAction)(/* [in] */ long actionIndex);
76 // Gets description of specified action.
77 STDMETHOD(get_description)(long actionIndex,BSTR __RPC_FAR *description);
79 // added , 2006/06/28, for driver 07/11
80 // get the action name
81 STDMETHOD(get_name)( long actionIndex, BSTR __RPC_FAR *name);
83 // get the localized action name
84 STDMETHOD(get_localizedName)( long actionIndex, BSTR __RPC_FAR *localizedName);
86 // Returns key binding object (if any) associated with specified action
87 // key binding is string.
88 // e.g. "alt+d" (like IAccessible::get_accKeyboardShortcut).
89 STDMETHOD(get_keyBinding)(
90 /* [in] */ long actionIndex,
91 /* [in] */ long nMaxBinding,
92 /* [length_is][length_is][size_is][size_is][out] */ BSTR __RPC_FAR *__RPC_FAR *keyBinding,
93 /* [retval][out] */ long __RPC_FAR *nBinding);
95 // Override of IUNOXWrapper.
96 STDMETHOD(put_XInterface)(hyper pXInterface);
98 // Override of IUNOXWrapper.
99 STDMETHOD(put_XSubInterface)(hyper pXSubInterface);
103 #endif // INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCACTION_H
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */