2010-10-12 15:53:47 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2002-12-12 11:36:51 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 20:43:26 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2002-12-12 11:36:51 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2002-12-12 11:36:51 +00:00
|
|
|
*
|
2008-04-10 20:43:26 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2002-12-12 11:36:51 +00:00
|
|
|
*
|
2008-04-10 20:43:26 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2002-12-12 11:36:51 +00:00
|
|
|
*
|
2008-04-10 20:43:26 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2002-12-12 11:36:51 +00:00
|
|
|
*
|
2008-04-10 20:43:26 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2002-12-12 11:36:51 +00:00
|
|
|
*
|
2008-04-10 20:43:26 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2002-12-12 11:36:51 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-17 03:03:28 +00:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_svx.hxx"
|
2002-12-12 11:36:51 +00:00
|
|
|
#include "AccessibleTextEventQueue.hxx"
|
2007-06-27 15:40:09 +00:00
|
|
|
#include <svx/unoshape.hxx>
|
2010-01-07 18:52:36 +01:00
|
|
|
#include "editeng/unolingu.hxx"
|
|
|
|
#include <editeng/unotext.hxx>
|
2002-12-12 11:36:51 +00:00
|
|
|
|
2010-01-07 18:52:36 +01:00
|
|
|
#include "editeng/unoedhlp.hxx"
|
|
|
|
#include "editeng/unopracc.hxx"
|
2007-06-27 15:40:09 +00:00
|
|
|
#include <svx/svdmodel.hxx>
|
|
|
|
#include <svx/svdpntv.hxx>
|
2010-01-07 18:52:36 +01:00
|
|
|
#include <editeng/editdata.hxx>
|
|
|
|
#include <editeng/editeng.hxx>
|
|
|
|
#include <editeng/editview.hxx>
|
2002-12-12 11:36:51 +00:00
|
|
|
|
|
|
|
namespace accessibility
|
|
|
|
{
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// EventQueue implementation
|
|
|
|
//
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
AccessibleTextEventQueue::AccessibleTextEventQueue()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
AccessibleTextEventQueue::~AccessibleTextEventQueue()
|
|
|
|
{
|
|
|
|
Clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
void AccessibleTextEventQueue::Append( const SdrHint& rHint )
|
|
|
|
{
|
|
|
|
maEventQueue.push_back( new SdrHint( rHint ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
void AccessibleTextEventQueue::Append( const TextHint& rHint )
|
|
|
|
{
|
|
|
|
maEventQueue.push_back( new TextHint( rHint ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
void AccessibleTextEventQueue::Append( const SvxViewHint& rHint )
|
|
|
|
{
|
|
|
|
maEventQueue.push_back( new SvxViewHint( rHint ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
void AccessibleTextEventQueue::Append( const SvxEditSourceHint& rHint )
|
|
|
|
{
|
|
|
|
maEventQueue.push_back( new SvxEditSourceHint( rHint ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
::std::auto_ptr< SfxHint > AccessibleTextEventQueue::PopFront()
|
|
|
|
{
|
|
|
|
::std::auto_ptr< SfxHint > aRes( *(maEventQueue.begin()) );
|
|
|
|
maEventQueue.pop_front();
|
|
|
|
return aRes;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool AccessibleTextEventQueue::IsEmpty() const
|
|
|
|
{
|
|
|
|
return maEventQueue.empty();
|
|
|
|
}
|
|
|
|
|
|
|
|
void AccessibleTextEventQueue::Clear()
|
|
|
|
{
|
|
|
|
// clear queue
|
|
|
|
while( !IsEmpty() )
|
|
|
|
PopFront();
|
|
|
|
}
|
|
|
|
|
|
|
|
} // end of namespace accessibility
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------
|
2010-10-12 15:53:47 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|