Kaydet (Commit) 77de4200 authored tarafından Michael Stahl's avatar Michael Stahl

sw: remove more SwAccessibleContext code that...

... looks related to some non-existent "async loading" feature.

Change-Id: I99eaad92ce7f98e65c491e9862bed505ce1aa9fc
üst 1d2244ec
......@@ -521,7 +521,6 @@ SwAccessibleContext::SwAccessibleContext( SwAccessibleMap *const pMap,
, m_nRole(nRole)
, m_isDisposing( false )
, m_isRegisteredAtAccessibleMap( true )
, m_isBeginDocumentLoad( true )
, m_isSelectedInDoc(false)
{
InitStates();
......@@ -581,21 +580,6 @@ uno::Reference< XAccessible> SAL_CALL
{
::rtl::Reference < SwAccessibleContext > xChildImpl(
GetMap()->GetContextImpl( aChild.GetSwFrm(), !m_isDisposing ) );
//Send out accessible event when begin load.
if (m_isBeginDocumentLoad && m_nRole == AccessibleRole::DOCUMENT_TEXT)
{
FireStateChangedEvent( AccessibleStateType::FOCUSABLE,true );
FireStateChangedEvent( AccessibleStateType::BUSY,true );
FireStateChangedEvent( AccessibleStateType::FOCUSED,true );
// OFFSCREEN == !SHOWING, should stay consistent
// FireStateChangedEvent( AccessibleStateType::OFFSCREEN,true );
FireStateChangedEvent( AccessibleStateType::SHOWING,true );
FireStateChangedEvent( AccessibleStateType::BUSY,false );
// OFFSCREEN again?
// FireStateChangedEvent( AccessibleStateType::OFFSCREEN,false );
m_isBeginDocumentLoad = false;
}
if( xChildImpl.is() )
{
xChildImpl->SetParent( this );
......
......@@ -89,8 +89,6 @@ private:
bool m_isRegisteredAtAccessibleMap;
void InitStates();
//Add a member to identify the first time that document load
bool m_isBeginDocumentLoad;
protected:
void SetName( const OUString& rName ) { m_sName = rName; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment