unoshtxt.cxx (f6e50924) | unoshtxt.cxx (9b8096d0) |
---|---|
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 --- 37 unchanged lines hidden (view full) --- 46#include <svx/svdpage.hxx> 47#include <editeng/editeng.hxx> 48#include <editeng/editobj.hxx> 49 50#include <editeng/unotext.hxx> 51#include <com/sun/star/linguistic2/XLinguServiceManager.hpp> 52#include <comphelper/processfactory.hxx> 53#include <vos/mutex.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 --- 37 unchanged lines hidden (view full) --- 46#include <svx/svdpage.hxx> 47#include <editeng/editeng.hxx> 48#include <editeng/editobj.hxx> 49 50#include <editeng/unotext.hxx> 51#include <com/sun/star/linguistic2/XLinguServiceManager.hpp> 52#include <comphelper/processfactory.hxx> 53#include <vos/mutex.hxx> |
54 55//IAccessibility2 Implementation 2009----- 56#include <svx/svdotable.hxx> 57#include <../table/cell.hxx> 58//-----IAccessibility2 Implementation 2009 59 |
|
54#include <svx/sdrpaintwindow.hxx> 55 56using namespace ::osl; 57using namespace ::vos; 58using namespace ::rtl; 59 60using ::com::sun::star::uno::XInterface; 61 --- 318 unchanged lines hidden (view full) --- 380 Broadcast( aHint ); 381 } 382 break; 383 } 384 385 case HINT_BEGEDIT: 386 if( mpObject == pSdrHint->GetObject() ) 387 { | 60#include <svx/sdrpaintwindow.hxx> 61 62using namespace ::osl; 63using namespace ::vos; 64using namespace ::rtl; 65 66using ::com::sun::star::uno::XInterface; 67 --- 318 unchanged lines hidden (view full) --- 386 Broadcast( aHint ); 387 } 388 break; 389 } 390 391 case HINT_BEGEDIT: 392 if( mpObject == pSdrHint->GetObject() ) 393 { |
394 //IAccessibility2 Implementation 2009-----, one EditSource object is created for each AccessibleCell, and it will monitor the hint. 395 // Once HINT_BEGEDIT is broadcast, each EditSource of AccessibleCell will handle it here and 396 // call below: mpView->GetTextEditOutliner()->SetNotifyHdl(), which will replace the Notifer for current 397 // editable cell. It is totally wrong. So add check here to avoid the incorrect replacement of notifer. 398 // To be safe, add accessibility check here because currently it only happen on the editsource of AccessibleCell 399 if (Application::IsAccessibilityEnabled()) 400 { 401 if (mpObject && mpText) 402 { 403 sdr::table::SdrTableObj* pTableObj = PTR_CAST( sdr::table::SdrTableObj, mpObject ); 404 if(pTableObj) 405 { 406 sdr::table::CellRef xCell = pTableObj->getActiveCell(); 407 if (xCell.is()) 408 { 409 sdr::table::Cell* pCellObj = dynamic_cast< sdr::table::Cell* >( mpText ); 410 if (pCellObj && xCell.get() != pCellObj) 411 break; 412 } 413 } 414 } 415 } 416 //-----IAccessibility2 Implementation 2009 |
|
388 // invalidate old forwarder 389 if( !mbForwarderIsEditMode ) 390 { 391 delete mpTextForwarder; 392 mpTextForwarder = NULL; 393 } 394 395 // register as listener - need to broadcast state change messages --- 756 unchanged lines hidden --- | 417 // invalidate old forwarder 418 if( !mbForwarderIsEditMode ) 419 { 420 delete mpTextForwarder; 421 mpTextForwarder = NULL; 422 } 423 424 // register as listener - need to broadcast state change messages --- 756 unchanged lines hidden --- |