AccObjectWinManager.cxx (3a700b0a) | AccObjectWinManager.cxx (b0a7a3cf) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 30 unchanged lines hidden (view full) --- 39#include "AccMenuEventListener.hxx" 40#include "AccObjectContainerEventListener.hxx" 41#include "AccParagraphEventListener.hxx" 42#include "AccTextComponentEventListener.hxx" 43#include "AccListEventListener.hxx" 44#include "AccTreeEventListener.hxx" 45#include "AccTableEventListener.hxx" 46#include "AccObject.hxx" | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 30 unchanged lines hidden (view full) --- 39#include "AccMenuEventListener.hxx" 40#include "AccObjectContainerEventListener.hxx" 41#include "AccParagraphEventListener.hxx" 42#include "AccTextComponentEventListener.hxx" 43#include "AccListEventListener.hxx" 44#include "AccTreeEventListener.hxx" 45#include "AccTableEventListener.hxx" 46#include "AccObject.hxx" |
47#include "AccessibleEventId.h" 48#include "AccessibleApplication.h" 49#include "AccessibleApplication_i.c" | |
50#include "unomsaaevent.hxx" 51#include "checkmt.hxx" 52 53#define CHILDID_SELF 0 54 55 56using namespace std; 57using namespace com::sun::star::accessibility; --- 27 unchanged lines hidden (view full) --- 85 * dChildID Chile resource ID. 86 * hAcc TopWindowHWND 87 * @return 88 */ 89AccObjectWinManager::AccObjectWinManager( AccObjectManagerAgent* Agent ): 90 pAgent( Agent ), 91 oldFocus( NULL ) 92{ | 47#include "unomsaaevent.hxx" 48#include "checkmt.hxx" 49 50#define CHILDID_SELF 0 51 52 53using namespace std; 54using namespace com::sun::star::accessibility; --- 27 unchanged lines hidden (view full) --- 82 * dChildID Chile resource ID. 83 * hAcc TopWindowHWND 84 * @return 85 */ 86AccObjectWinManager::AccObjectWinManager( AccObjectManagerAgent* Agent ): 87 pAgent( Agent ), 88 oldFocus( NULL ) 89{ |
93 m_bBridgeRegistered =IsBridgeRegisteredAcc(); | |
94} 95 96/** 97 * Public method to produce manager 98 * @param Agent The agent kept in all listeners,it's the sole interface by which 99 * listener communicate with windows manager. 100 * @return 101 */ --- 116 unchanged lines hidden (view full) --- 218 * @param pXAcc XAccessible interface. 219 * @param state Customize Interface 220 * @return The terminate result that identifies if the call is successful. 221 */ 222sal_Bool AccObjectWinManager::NotifyAccEvent(XAccessible* pXAcc,short state) 223{ 224 vos::OGuard aGuard(aNotifyMutex); 225 | 90} 91 92/** 93 * Public method to produce manager 94 * @param Agent The agent kept in all listeners,it's the sole interface by which 95 * listener communicate with windows manager. 96 * @return 97 */ --- 116 unchanged lines hidden (view full) --- 214 * @param pXAcc XAccessible interface. 215 * @param state Customize Interface 216 * @return The terminate result that identifies if the call is successful. 217 */ 218sal_Bool AccObjectWinManager::NotifyAccEvent(XAccessible* pXAcc,short state) 219{ 220 vos::OGuard aGuard(aNotifyMutex); 221 |
226 if (!m_bBridgeRegistered) 227 { 228 return sal_False; 229 } | |
230 if (!IsInMainThread()) 231 { 232 return sal_False; 233 } 234 235 Reference< XAccessibleContext > pRContext; 236 237 if( pXAcc == NULL) --- 485 unchanged lines hidden (view full) --- 723 * Insert child object. 724 * @param pCurObj The child object 725 * @param pParentObj The parant object 726 * @param pWnd Top window handle. 727 * @return 728 */ 729sal_Bool AccObjectWinManager::InsertAccObj( XAccessible* pXAcc,XAccessible* pParentXAcc,HWND pWnd ) 730{ | 222 if (!IsInMainThread()) 223 { 224 return sal_False; 225 } 226 227 Reference< XAccessibleContext > pRContext; 228 229 if( pXAcc == NULL) --- 485 unchanged lines hidden (view full) --- 715 * Insert child object. 716 * @param pCurObj The child object 717 * @param pParentObj The parant object 718 * @param pWnd Top window handle. 719 * @return 720 */ 721sal_Bool AccObjectWinManager::InsertAccObj( XAccessible* pXAcc,XAccessible* pParentXAcc,HWND pWnd ) 722{ |
731 if (!m_bBridgeRegistered) 732 { 733 return sal_False; 734 } | |
735 XIdToAccObjHash::iterator itXacc = XIdAccList.find( (void*)pXAcc ); 736 if (itXacc != XIdAccList.end() ) 737 { 738 short nCurRole =GetRole(pXAcc); 739 if (AccessibleRole::SHAPE == nCurRole) 740 { 741 AccObject &objXacc = itXacc->second; 742 AccObject *pObjParent = objXacc.GetParentObj(); --- 591 unchanged lines hidden --- | 723 XIdToAccObjHash::iterator itXacc = XIdAccList.find( (void*)pXAcc ); 724 if (itXacc != XIdAccList.end() ) 725 { 726 short nCurRole =GetRole(pXAcc); 727 if (AccessibleRole::SHAPE == nCurRole) 728 { 729 AccObject &objXacc = itXacc->second; 730 AccObject *pObjParent = objXacc.GetParentObj(); --- 591 unchanged lines hidden --- |