1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef __ACCOBJECTMANAGERAGENT_HXX
#define __ACCOBJECTMANAGERAGENT_HXX
#ifndef _COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLE_HPP_
#include <com/sun/star/accessibility/XAccessible.hpp>
#endif
struct IMAccessible;
struct IAccessible;
class AccObjectWinManager;
/****************************************************************
AccObjectMangerAgent is used for manaing AccObjects,which encapsulates
platform differences,and call AccObjectWinManager for Windows platform. To do for
Linux platform
*****************************************************************/
class AccObjectManagerAgent
{
private:
AccObjectWinManager* pWinManager;
public:
AccObjectManagerAgent();
virtual ~AccObjectManagerAgent();
virtual unsigned char InsertAccObj( com::sun::star::accessibility::XAccessible* pXAcc,
com::sun::star::accessibility::XAccessible* pParentXAcc,
long pWnd=0);
virtual void GetIAccessibleFromResID(long childID,IMAccessible**);
virtual unsigned char GetIAccessibleFromXAccessible(com::sun::star::accessibility::XAccessible* pXAcc, IAccessible** ppIA);
virtual void DeleteAccObj( com::sun::star::accessibility::XAccessible* pXAcc );
virtual IMAccessible* GetIMAccByXAcc(com::sun::star::accessibility::XAccessible* pXAcc);
unsigned char NotifyAccEvent( short pEvent = 0, com::sun::star::accessibility::XAccessible* pXAcc = 0 );
unsigned char InsertChildrenAccObj( com::sun::star::accessibility::XAccessible* pXAcc,
long pWnd=0);
void DeleteChildrenAccObj( com::sun::star::accessibility::XAccessible* pXAcc );
void DecreaseState( com::sun::star::accessibility::XAccessible* pXAcc,unsigned short pState );
void IncreaseState( com::sun::star::accessibility::XAccessible* pXAcc,unsigned short pState );
void UpdateState( com::sun::star::accessibility::XAccessible* pXAcc );
void UpdateLocation( com::sun::star::accessibility::XAccessible* pXAcc,
long Top = 0,long left = 0,long width = 0,long height = 0 );
void UpdateAction( com::sun::star::accessibility::XAccessible* pXAcc );
void UpdateValue( com::sun::star::accessibility::XAccessible* pXAcc );
void UpdateValue( com::sun::star::accessibility::XAccessible* pXAcc, com::sun::star::uno::Any );
void UpdateAccName( com::sun::star::accessibility::XAccessible* pXAcc, com::sun::star::uno::Any newName);
void UpdateAccName( com::sun::star::accessibility::XAccessible* pXAcc);
void UpdateDescription( com::sun::star::accessibility::XAccessible* pXAcc, com::sun::star::uno::Any newDesc );
void UpdateDescription( com::sun::star::accessibility::XAccessible* pXAcc );
void NotifyDestroy(com::sun::star::accessibility::XAccessible* pXAcc);
com::sun::star::accessibility::XAccessible* GetParentXAccessible(
com::sun::star::accessibility::XAccessible* pXAcc );
short GetParentRole(com::sun::star::accessibility::XAccessible* pXAcc );
unsigned short IsContainer(com::sun::star::accessibility::XAccessible* pXAcc);
void SaveTopWindowHandle(long hWnd, com::sun::star::accessibility::XAccessible* pXAcc);
void UpdateChildState(com::sun::star::accessibility::XAccessible* pXAcc);
bool IsSpecialToolboItem(com::sun::star::accessibility::XAccessible* pXAcc);
short GetRole(com::sun::star::accessibility::XAccessible* pXAcc);
com::sun::star::accessibility::XAccessible* GetAccDocByAccTopWin( com::sun::star::accessibility::XAccessible* pXAcc );
bool IsTopWinAcc( com::sun::star::accessibility::XAccessible* pXAcc );
bool IsStateManageDescendant(com::sun::star::accessibility::XAccessible* pXAcc);
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|