fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / winaccessibility / inc / AccObjectManagerAgent.hxx
blob7e685b772bed76d6cc343709167f04278e502ff3
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_INC_ACCOBJECTMANAGERAGENT_HXX
21 #define INCLUDED_WINACCESSIBILITY_INC_ACCOBJECTMANAGERAGENT_HXX
23 #include <boost/scoped_ptr.hpp>
25 #include <com/sun/star/accessibility/XAccessible.hpp>
27 struct IMAccessible;
28 struct IAccessible;
29 class AccObjectWinManager;
31 /****************************************************************
32 AccObjectMangerAgent is used for manaing AccObjects,which encapsulates
33 platform differences,and call AccObjectWinManager for Windows platform. To do for
34 Linux platform
35 *****************************************************************/
36 class AccObjectManagerAgent
38 private:
40 boost::scoped_ptr<AccObjectWinManager> pWinManager;
42 public:
44 AccObjectManagerAgent();
45 virtual ~AccObjectManagerAgent();
47 virtual bool InsertAccObj(com::sun::star::accessibility::XAccessible* pXAcc,
48 com::sun::star::accessibility::XAccessible* pParentXAcc,
49 sal_Int64 pWnd=0);
50 virtual void GetIAccessibleFromResID(long childID,IMAccessible**);
51 virtual bool GetIAccessibleFromXAccessible(com::sun::star::accessibility::XAccessible* pXAcc, IAccessible** ppIA);
53 virtual void DeleteAccObj( com::sun::star::accessibility::XAccessible* pXAcc );
54 virtual IMAccessible* GetIMAccByXAcc(com::sun::star::accessibility::XAccessible* pXAcc);
56 bool NotifyAccEvent(short pEvent = 0, com::sun::star::accessibility::XAccessible* pXAcc = 0);
58 bool InsertChildrenAccObj(com::sun::star::accessibility::XAccessible* pXAcc,
59 sal_Int64 pWnd=0);
60 void DeleteChildrenAccObj( com::sun::star::accessibility::XAccessible* pXAcc );
62 void DecreaseState( com::sun::star::accessibility::XAccessible* pXAcc,unsigned short pState );
63 void IncreaseState( com::sun::star::accessibility::XAccessible* pXAcc,unsigned short pState );
64 void UpdateState( com::sun::star::accessibility::XAccessible* pXAcc );
66 void UpdateLocation( com::sun::star::accessibility::XAccessible* pXAcc,
67 long Top = 0,long left = 0,long width = 0,long height = 0 );
68 void UpdateAction( com::sun::star::accessibility::XAccessible* pXAcc );
70 void UpdateValue( com::sun::star::accessibility::XAccessible* pXAcc );
71 void UpdateValue( com::sun::star::accessibility::XAccessible* pXAcc, com::sun::star::uno::Any );
73 void UpdateAccName( com::sun::star::accessibility::XAccessible* pXAcc, com::sun::star::uno::Any newName);
74 void UpdateAccName( com::sun::star::accessibility::XAccessible* pXAcc);
76 void UpdateDescription( com::sun::star::accessibility::XAccessible* pXAcc, com::sun::star::uno::Any newDesc );
77 void UpdateDescription( com::sun::star::accessibility::XAccessible* pXAcc );
79 void NotifyDestroy(com::sun::star::accessibility::XAccessible* pXAcc);
81 com::sun::star::accessibility::XAccessible* GetParentXAccessible(
82 com::sun::star::accessibility::XAccessible* pXAcc );
83 short GetParentRole(com::sun::star::accessibility::XAccessible* pXAcc );
84 bool IsContainer(com::sun::star::accessibility::XAccessible* pXAcc);
86 void SaveTopWindowHandle(sal_Int64 hWnd,
87 com::sun::star::accessibility::XAccessible* pXAcc);
89 void UpdateChildState(com::sun::star::accessibility::XAccessible* pXAcc);
91 bool IsSpecialToolboItem(com::sun::star::accessibility::XAccessible* pXAcc);
93 short GetRole(com::sun::star::accessibility::XAccessible* pXAcc);
95 com::sun::star::accessibility::XAccessible* GetAccDocByAccTopWin( com::sun::star::accessibility::XAccessible* pXAcc );
96 bool IsTopWinAcc( com::sun::star::accessibility::XAccessible* pXAcc );
98 bool IsStateManageDescendant(com::sun::star::accessibility::XAccessible* pXAcc);
100 sal_Int64 Get_ToATInterface(sal_Int64 hWnd, sal_Int64 lParam, sal_Int64 wParam);
104 #endif
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */