update credits
[LibreOffice.git] / svx / source / accessibility / AccessibleTextEventQueue.cxx
blobfe6cd47974229f010ca4ef4602ecd8ca0f7dace0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include "AccessibleTextEventQueue.hxx"
21 #include <svx/unoshape.hxx>
22 #include "editeng/unolingu.hxx"
23 #include <editeng/unotext.hxx>
25 #include "editeng/unoedhlp.hxx"
26 #include "editeng/unopracc.hxx"
27 #include <svx/svdmodel.hxx>
28 #include <svx/svdpntv.hxx>
29 #include <editeng/editdata.hxx>
30 #include <editeng/editeng.hxx>
31 #include <editeng/editview.hxx>
33 namespace accessibility
35 //------------------------------------------------------------------------
37 // EventQueue implementation
39 //------------------------------------------------------------------------
41 AccessibleTextEventQueue::AccessibleTextEventQueue()
45 AccessibleTextEventQueue::~AccessibleTextEventQueue()
47 Clear();
50 void AccessibleTextEventQueue::Append( const SdrHint& rHint )
52 maEventQueue.push_back( new SdrHint( rHint ) );
55 void AccessibleTextEventQueue::Append( const TextHint& rHint )
57 maEventQueue.push_back( new TextHint( rHint ) );
60 void AccessibleTextEventQueue::Append( const SvxViewHint& rHint )
62 maEventQueue.push_back( new SvxViewHint( rHint ) );
65 void AccessibleTextEventQueue::Append( const SvxEditSourceHint& rHint )
67 maEventQueue.push_back( new SvxEditSourceHint( rHint ) );
70 SAL_WNODEPRECATED_DECLARATIONS_PUSH
71 ::std::auto_ptr< SfxHint > AccessibleTextEventQueue::PopFront()
73 ::std::auto_ptr< SfxHint > aRes( *(maEventQueue.begin()) );
74 maEventQueue.pop_front();
75 return aRes;
77 SAL_WNODEPRECATED_DECLARATIONS_POP
79 bool AccessibleTextEventQueue::IsEmpty() const
81 return maEventQueue.empty();
84 void AccessibleTextEventQueue::Clear()
86 // clear queue
87 while( !IsEmpty() )
88 PopFront();
91 } // end of namespace accessibility
93 //------------------------------------------------------------------------
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */