AccTable.cpp (3a700b0a) | AccTable.cpp (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 --- 14 unchanged lines hidden (view full) --- 23 * AccTable.cpp : Implementation of CAccTable. 24 */ 25#include "stdafx.h" 26#include "UAccCOM2.h" 27#include "AccTable.h" 28#include <com/sun/star/accessibility/XAccessible.hpp> 29#include "MAccessible.h" 30 | 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 --- 14 unchanged lines hidden (view full) --- 23 * AccTable.cpp : Implementation of CAccTable. 24 */ 25#include "stdafx.h" 26#include "UAccCOM2.h" 27#include "AccTable.h" 28#include <com/sun/star/accessibility/XAccessible.hpp> 29#include "MAccessible.h" 30 |
31#include "act.hxx" |
|
31 32#ifndef _COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLETABLEEXTENT_HPP_ 33#include <com/sun/star/accessibility/XAccessibleTableSelection.hpp> 34#endif 35 36using namespace com::sun::star::accessibility; 37using namespace com::sun::star::uno; 38/** --- 171 unchanged lines hidden (view full) --- 210 if(!pRXColumnHeader.is()) 211 { 212 *accessibleTable = NULL; 213 return E_FAIL; 214 } 215 *startingRowIndex = 0 ; 216 217 IAccessible* m_pIMacc = NULL; | 32 33#ifndef _COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLETABLEEXTENT_HPP_ 34#include <com/sun/star/accessibility/XAccessibleTableSelection.hpp> 35#endif 36 37using namespace com::sun::star::accessibility; 38using namespace com::sun::star::uno; 39/** --- 171 unchanged lines hidden (view full) --- 211 if(!pRXColumnHeader.is()) 212 { 213 *accessibleTable = NULL; 214 return E_FAIL; 215 } 216 *startingRowIndex = 0 ; 217 218 IAccessible* m_pIMacc = NULL; |
219 ActivateActContext(); |
|
218 HRESULT hr = CoCreateInstance( CLSID_MAccessible, NULL, CLSCTX_ALL , 219 IID_IMAccessible, 220 (void **)&m_pIMacc 221 ); | 220 HRESULT hr = CoCreateInstance( CLSID_MAccessible, NULL, CLSCTX_ALL , 221 IID_IMAccessible, 222 (void **)&m_pIMacc 223 ); |
224 DeactivateActContext(); |
|
222 ((CMAccessible*)m_pIMacc)->SetXAccessible((long)pRXColumnHeader.get()); 223 m_pIMacc->QueryInterface(IID_IAccessibleTable,(void **)accessibleTable); 224 if( SUCCEEDED(hr) ) 225 { 226 return S_OK; 227 } 228 229 return E_FAIL; --- 210 unchanged lines hidden (view full) --- 440 if(!pRXRowHeader.is()) 441 { 442 *accessibleTable = NULL; 443 return E_FAIL; 444 } 445 *startingColumnIndex = 0 ; 446 447 IAccessible* m_pIMacc = NULL; | 225 ((CMAccessible*)m_pIMacc)->SetXAccessible((long)pRXColumnHeader.get()); 226 m_pIMacc->QueryInterface(IID_IAccessibleTable,(void **)accessibleTable); 227 if( SUCCEEDED(hr) ) 228 { 229 return S_OK; 230 } 231 232 return E_FAIL; --- 210 unchanged lines hidden (view full) --- 443 if(!pRXRowHeader.is()) 444 { 445 *accessibleTable = NULL; 446 return E_FAIL; 447 } 448 *startingColumnIndex = 0 ; 449 450 IAccessible* m_pIMacc = NULL; |
451 ActivateActContext(); |
|
448 HRESULT hr = CoCreateInstance( CLSID_MAccessible, NULL, CLSCTX_ALL , 449 IID_IMAccessible, 450 (void **)&m_pIMacc 451 ); | 452 HRESULT hr = CoCreateInstance( CLSID_MAccessible, NULL, CLSCTX_ALL , 453 IID_IMAccessible, 454 (void **)&m_pIMacc 455 ); |
456 DeactivateActContext(); |
|
452 ((CMAccessible*)m_pIMacc)->SetXAccessible((long)pRXRowHeader.get()); 453 m_pIMacc->QueryInterface(IID_IAccessibleTable,(void **)accessibleTable); 454 if( SUCCEEDED(hr) ) 455 { 456 return S_OK; 457 } 458 459 return E_FAIL; --- 605 unchanged lines hidden --- | 457 ((CMAccessible*)m_pIMacc)->SetXAccessible((long)pRXRowHeader.get()); 458 m_pIMacc->QueryInterface(IID_IAccessibleTable,(void **)accessibleTable); 459 if( SUCCEEDED(hr) ) 460 { 461 return S_OK; 462 } 463 464 return E_FAIL; --- 605 unchanged lines hidden --- |