xref: /AOO42X/main/sd/source/ui/inc/AccessibleDocumentViewBase.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef SD_ACCESSIBILITY_ACCESSIBLE_DOCUMENT_VIEW_BASE_HXX
29*cdf0e10cSrcweir #define SD_ACCESSIBILITY_ACCESSIBLE_DOCUMENT_VIEW_BASE_HXX
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include <editeng/AccessibleContextBase.hxx>
32*cdf0e10cSrcweir #include <editeng/AccessibleComponentBase.hxx>
33*cdf0e10cSrcweir #include <editeng/AccessibleSelectionBase.hxx>
34*cdf0e10cSrcweir #include "AccessibleViewForwarder.hxx"
35*cdf0e10cSrcweir #include "AccessiblePageShape.hxx"
36*cdf0e10cSrcweir #include <svx/ChildrenManager.hxx>
37*cdf0e10cSrcweir #include <com/sun/star/frame/XModel.hpp>
38*cdf0e10cSrcweir #include <com/sun/star/awt/XWindowListener.hpp>
39*cdf0e10cSrcweir #include <com/sun/star/awt/XFocusListener.hpp>
40*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyChangeListener.hpp>
41*cdf0e10cSrcweir #include <com/sun/star/accessibility/XAccessible.hpp>
42*cdf0e10cSrcweir #include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
43*cdf0e10cSrcweir #include <tools/link.hxx>
44*cdf0e10cSrcweir 
45*cdf0e10cSrcweir namespace sd {
46*cdf0e10cSrcweir class ViewShell;
47*cdf0e10cSrcweir class Window;
48*cdf0e10cSrcweir }
49*cdf0e10cSrcweir 
50*cdf0e10cSrcweir class VclSimpleEvent;
51*cdf0e10cSrcweir 
52*cdf0e10cSrcweir namespace accessibility {
53*cdf0e10cSrcweir 
54*cdf0e10cSrcweir 
55*cdf0e10cSrcweir /** Base class for the various document views of the Draw and
56*cdf0e10cSrcweir     Impress applications.
57*cdf0e10cSrcweir 
58*cdf0e10cSrcweir     <p>The different view modes of the Draw and Impress applications
59*cdf0e10cSrcweir     are made accessible by derived classes.  When the view mode is
60*cdf0e10cSrcweir     changed than the object representing the document view is
61*cdf0e10cSrcweir     disposed and replaced by a new instance of the then appropriate
62*cdf0e10cSrcweir     derived class.</p>
63*cdf0e10cSrcweir 
64*cdf0e10cSrcweir     <p>This base class also manages an optionally active accessible OLE
65*cdf0e10cSrcweir     object.  If you overwrite the <member>getAccessibleChildCount</member>
66*cdf0e10cSrcweir     and <member>getAccessibleChild</member> methods then make sure to first
67*cdf0e10cSrcweir     call the corresponding method of this class and adapt your child count
68*cdf0e10cSrcweir     and indices accordingly.  Only one active OLE object is allowed at a
69*cdf0e10cSrcweir     time.  This class does not listen for disposing calls at the moment
70*cdf0e10cSrcweir     because it does not use the accessible OLE object directly and trusts on
71*cdf0e10cSrcweir     getting informed through VCL window events.</p>
72*cdf0e10cSrcweir 
73*cdf0e10cSrcweir     <p>This class implements three kinds of listeners:
74*cdf0e10cSrcweir     <ol><li>The property change listener is not used directly but exists as
75*cdf0e10cSrcweir     convenience for derived classes.  May be moved to those classes
76*cdf0e10cSrcweir     instead.</li>
77*cdf0e10cSrcweir     <li>As window listener it waits for changes of the window geometry and
78*cdf0e10cSrcweir     forwards those as view forwarder changes.</li>
79*cdf0e10cSrcweir     <li>As focus listener it keeps track of the focus to give this class and
80*cdf0e10cSrcweir     derived classes the oportunity to set and remove the focus to/from
81*cdf0e10cSrcweir     shapes.</li>
82*cdf0e10cSrcweir     </ol>
83*cdf0e10cSrcweir     </p>
84*cdf0e10cSrcweir */
85*cdf0e10cSrcweir class AccessibleDocumentViewBase
86*cdf0e10cSrcweir     :   public AccessibleContextBase,
87*cdf0e10cSrcweir         public AccessibleComponentBase,
88*cdf0e10cSrcweir         public AccessibleSelectionBase,
89*cdf0e10cSrcweir         public IAccessibleViewForwarderListener,
90*cdf0e10cSrcweir         public ::com::sun::star::beans::XPropertyChangeListener,
91*cdf0e10cSrcweir         public ::com::sun::star::awt::XWindowListener,
92*cdf0e10cSrcweir         public ::com::sun::star::awt::XFocusListener
93*cdf0e10cSrcweir {
94*cdf0e10cSrcweir public:
95*cdf0e10cSrcweir     //=====  internal  ========================================================
96*cdf0e10cSrcweir 
97*cdf0e10cSrcweir     /** Create a new object.  Note that the caller has to call the
98*cdf0e10cSrcweir         Init method directly after this constructor has finished.
99*cdf0e10cSrcweir     @param pSdWindow
100*cdf0e10cSrcweir         The window whose content is to be made accessible.
101*cdf0e10cSrcweir     @param pViewShell
102*cdf0e10cSrcweir         The view shell associated with the given window.
103*cdf0e10cSrcweir     @param rxController
104*cdf0e10cSrcweir         The controller from which to get the model.
105*cdf0e10cSrcweir     @param rxParent
106*cdf0e10cSrcweir         The accessible parent of the new object.  Note that this parent does
107*cdf0e10cSrcweir         not necessarily correspond with the parent of the given window.
108*cdf0e10cSrcweir      */
109*cdf0e10cSrcweir     AccessibleDocumentViewBase (
110*cdf0e10cSrcweir         ::sd::Window* pSdWindow,
111*cdf0e10cSrcweir         ::sd::ViewShell* pViewShell,
112*cdf0e10cSrcweir         const ::com::sun::star::uno::Reference<
113*cdf0e10cSrcweir             ::com::sun::star::frame::XController>& rxController,
114*cdf0e10cSrcweir         const ::com::sun::star::uno::Reference<
115*cdf0e10cSrcweir             ::com::sun::star::accessibility::XAccessible>& rxParent);
116*cdf0e10cSrcweir 
117*cdf0e10cSrcweir     virtual ~AccessibleDocumentViewBase (void);
118*cdf0e10cSrcweir 
119*cdf0e10cSrcweir     /** Initialize a new object.  Call this method directly after creating a
120*cdf0e10cSrcweir         new object.  It finished the initialization begun in the constructor
121*cdf0e10cSrcweir         but which needs a fully created object.
122*cdf0e10cSrcweir      */
123*cdf0e10cSrcweir     virtual void Init (void);
124*cdf0e10cSrcweir 
125*cdf0e10cSrcweir     /** Define callback for listening to window child events of VCL.
126*cdf0e10cSrcweir         Listen for creation or destruction of OLE objects.
127*cdf0e10cSrcweir     */
128*cdf0e10cSrcweir     DECL_LINK (WindowChildEventListener, VclSimpleEvent*);
129*cdf0e10cSrcweir 
130*cdf0e10cSrcweir     //=====  IAccessibleViewForwarderListener  ================================
131*cdf0e10cSrcweir 
132*cdf0e10cSrcweir     /** A view forwarder change is signalled for instance when any of the
133*cdf0e10cSrcweir         window events is recieved.  Thus, instead of overloading the four
134*cdf0e10cSrcweir         windowResized... methods it will be sufficient in most cases just to
135*cdf0e10cSrcweir         overload this method.
136*cdf0e10cSrcweir      */
137*cdf0e10cSrcweir     virtual void ViewForwarderChanged (ChangeType aChangeType,
138*cdf0e10cSrcweir         const IAccessibleViewForwarder* pViewForwarder);
139*cdf0e10cSrcweir 
140*cdf0e10cSrcweir     //=====  XAccessibleContext  ==============================================
141*cdf0e10cSrcweir 
142*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
143*cdf0e10cSrcweir         ::com::sun::star::accessibility::XAccessible> SAL_CALL
144*cdf0e10cSrcweir         getAccessibleParent (void)
145*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
146*cdf0e10cSrcweir 
147*cdf0e10cSrcweir     /** This implementation returns either 1 or 0 depending on whether there
148*cdf0e10cSrcweir         is an active accessible OLE object or not.
149*cdf0e10cSrcweir     */
150*cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL
151*cdf0e10cSrcweir         getAccessibleChildCount (void)
152*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
153*cdf0e10cSrcweir 
154*cdf0e10cSrcweir     /** This implementation either returns the active accessible OLE object
155*cdf0e10cSrcweir         if it exists and the given index is 0 or throws an exception.
156*cdf0e10cSrcweir     */
157*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
158*cdf0e10cSrcweir         ::com::sun::star::accessibility::XAccessible> SAL_CALL
159*cdf0e10cSrcweir         getAccessibleChild (sal_Int32 nIndex)
160*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException,
161*cdf0e10cSrcweir             ::com::sun::star::lang::IndexOutOfBoundsException);
162*cdf0e10cSrcweir 
163*cdf0e10cSrcweir 
164*cdf0e10cSrcweir     //=====  XAccessibleComponent  ============================================
165*cdf0e10cSrcweir 
166*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
167*cdf0e10cSrcweir         ::com::sun::star::accessibility::XAccessible > SAL_CALL
168*cdf0e10cSrcweir         getAccessibleAtPoint (const ::com::sun::star::awt::Point& aPoint)
169*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
170*cdf0e10cSrcweir 
171*cdf0e10cSrcweir     virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds (void)
172*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
173*cdf0e10cSrcweir 
174*cdf0e10cSrcweir     virtual ::com::sun::star::awt::Point SAL_CALL getLocation (void)
175*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
176*cdf0e10cSrcweir 
177*cdf0e10cSrcweir     virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen (void)
178*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
179*cdf0e10cSrcweir 
180*cdf0e10cSrcweir     virtual ::com::sun::star::awt::Size SAL_CALL getSize (void)
181*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
182*cdf0e10cSrcweir 
183*cdf0e10cSrcweir 
184*cdf0e10cSrcweir     //=====  XInterface  ======================================================
185*cdf0e10cSrcweir 
186*cdf0e10cSrcweir     virtual com::sun::star::uno::Any SAL_CALL
187*cdf0e10cSrcweir         queryInterface (const com::sun::star::uno::Type & rType)
188*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
189*cdf0e10cSrcweir 
190*cdf0e10cSrcweir     virtual void SAL_CALL
191*cdf0e10cSrcweir         acquire (void)
192*cdf0e10cSrcweir         throw ();
193*cdf0e10cSrcweir 
194*cdf0e10cSrcweir     virtual void SAL_CALL
195*cdf0e10cSrcweir         release (void)
196*cdf0e10cSrcweir         throw ();
197*cdf0e10cSrcweir 
198*cdf0e10cSrcweir 
199*cdf0e10cSrcweir     //=====  XServiceInfo  ====================================================
200*cdf0e10cSrcweir 
201*cdf0e10cSrcweir     /** Returns an identifier for the implementation of this object.
202*cdf0e10cSrcweir     */
203*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL
204*cdf0e10cSrcweir         getImplementationName (void)
205*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
206*cdf0e10cSrcweir 
207*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL
208*cdf0e10cSrcweir         getSupportedServiceNames (void)
209*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
210*cdf0e10cSrcweir 
211*cdf0e10cSrcweir 
212*cdf0e10cSrcweir     //=====  XTypeProvider  ===================================================
213*cdf0e10cSrcweir 
214*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL
215*cdf0e10cSrcweir         getTypes (void)
216*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
217*cdf0e10cSrcweir 
218*cdf0e10cSrcweir 
219*cdf0e10cSrcweir     //=====  lang::XEventListener  ============================================
220*cdf0e10cSrcweir 
221*cdf0e10cSrcweir     virtual void SAL_CALL
222*cdf0e10cSrcweir         disposing (const ::com::sun::star::lang::EventObject& rEventObject)
223*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
224*cdf0e10cSrcweir 
225*cdf0e10cSrcweir 
226*cdf0e10cSrcweir     //=====  XPropertyChangeListener  =========================================
227*cdf0e10cSrcweir 
228*cdf0e10cSrcweir     virtual void SAL_CALL
229*cdf0e10cSrcweir         propertyChange (const ::com::sun::star::beans::PropertyChangeEvent& rEventObject)
230*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
231*cdf0e10cSrcweir 
232*cdf0e10cSrcweir 
233*cdf0e10cSrcweir     //=====  XWindowListener  =================================================
234*cdf0e10cSrcweir 
235*cdf0e10cSrcweir     virtual void SAL_CALL
236*cdf0e10cSrcweir         windowResized (const ::com::sun::star::awt::WindowEvent& e)
237*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
238*cdf0e10cSrcweir 
239*cdf0e10cSrcweir     virtual void SAL_CALL
240*cdf0e10cSrcweir         windowMoved (const ::com::sun::star::awt::WindowEvent& e)
241*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
242*cdf0e10cSrcweir 
243*cdf0e10cSrcweir     virtual void SAL_CALL
244*cdf0e10cSrcweir         windowShown (const ::com::sun::star::lang::EventObject& e)
245*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
246*cdf0e10cSrcweir 
247*cdf0e10cSrcweir     virtual void SAL_CALL
248*cdf0e10cSrcweir         windowHidden (const ::com::sun::star::lang::EventObject& e)
249*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
250*cdf0e10cSrcweir 
251*cdf0e10cSrcweir     //=====  XFocusListener  =================================================
252*cdf0e10cSrcweir 
253*cdf0e10cSrcweir     virtual void SAL_CALL focusGained (const ::com::sun::star::awt::FocusEvent& e)
254*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
255*cdf0e10cSrcweir     virtual void SAL_CALL focusLost (const ::com::sun::star::awt::FocusEvent& e)
256*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
257*cdf0e10cSrcweir 
258*cdf0e10cSrcweir private:
259*cdf0e10cSrcweir 
260*cdf0e10cSrcweir     // return the member maMutex;
261*cdf0e10cSrcweir     virtual ::osl::Mutex&
262*cdf0e10cSrcweir         implGetMutex();
263*cdf0e10cSrcweir 
264*cdf0e10cSrcweir     // return ourself as context in default case
265*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >
266*cdf0e10cSrcweir         implGetAccessibleContext()
267*cdf0e10cSrcweir         throw ( ::com::sun::star::uno::RuntimeException );
268*cdf0e10cSrcweir 
269*cdf0e10cSrcweir     // return sal_False in default case
270*cdf0e10cSrcweir     virtual sal_Bool
271*cdf0e10cSrcweir         implIsSelected( sal_Int32 nAccessibleChildIndex )
272*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
273*cdf0e10cSrcweir 
274*cdf0e10cSrcweir     // return nothing in default case
275*cdf0e10cSrcweir     virtual void
276*cdf0e10cSrcweir         implSelect( sal_Int32 nAccessibleChildIndex, sal_Bool bSelect )
277*cdf0e10cSrcweir         throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
278*cdf0e10cSrcweir 
279*cdf0e10cSrcweir protected:
280*cdf0e10cSrcweir     /// The core window that is made accessible.
281*cdf0e10cSrcweir     ::sd::Window* mpWindow;
282*cdf0e10cSrcweir 
283*cdf0e10cSrcweir     /// The API window that is made accessible.
284*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow>
285*cdf0e10cSrcweir          mxWindow;
286*cdf0e10cSrcweir 
287*cdf0e10cSrcweir     /// The controller of the window in which this view is displayed.
288*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController>
289*cdf0e10cSrcweir          mxController;
290*cdf0e10cSrcweir 
291*cdf0e10cSrcweir     /// Model of the document.
292*cdf0e10cSrcweir     ::com::sun::star::uno::Reference < ::com::sun::star::frame::XModel>
293*cdf0e10cSrcweir         mxModel;
294*cdf0e10cSrcweir 
295*cdf0e10cSrcweir     // Bundle of information that is passed down the shape tree.
296*cdf0e10cSrcweir     AccessibleShapeTreeInfo maShapeTreeInfo;
297*cdf0e10cSrcweir 
298*cdf0e10cSrcweir     /// The view forwarder passed to the children manager.
299*cdf0e10cSrcweir     AccessibleViewForwarder maViewForwarder;
300*cdf0e10cSrcweir 
301*cdf0e10cSrcweir     /** Accessible OLE object.  Set or removed by the
302*cdf0e10cSrcweir         <member>SetAccessibleOLEObject</member> method.
303*cdf0e10cSrcweir     */
304*cdf0e10cSrcweir     ::com::sun::star::uno::Reference <
305*cdf0e10cSrcweir         ::com::sun::star::accessibility::XAccessible>
306*cdf0e10cSrcweir         mxAccessibleOLEObject;
307*cdf0e10cSrcweir 
308*cdf0e10cSrcweir     Link maWindowLink;
309*cdf0e10cSrcweir 
310*cdf0e10cSrcweir     // This method is called from the component helper base class while
311*cdf0e10cSrcweir     // disposing.
312*cdf0e10cSrcweir     virtual void SAL_CALL disposing (void);
313*cdf0e10cSrcweir 
314*cdf0e10cSrcweir     /** Create a name string.  The current name is not modified and,
315*cdf0e10cSrcweir         therefore, no events are send.  This method is usually called once
316*cdf0e10cSrcweir         by the <member>getAccessibleName</member> method of the base class.
317*cdf0e10cSrcweir         @return
318*cdf0e10cSrcweir            A name string.
319*cdf0e10cSrcweir     */
320*cdf0e10cSrcweir     virtual ::rtl::OUString
321*cdf0e10cSrcweir         CreateAccessibleName ()
322*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
323*cdf0e10cSrcweir 
324*cdf0e10cSrcweir     /** Create a description string.  The current description is not
325*cdf0e10cSrcweir         modified and, therefore, no events are send.  This method is usually
326*cdf0e10cSrcweir         called once by the <member>getAccessibleDescription</member> method
327*cdf0e10cSrcweir         of the base class.
328*cdf0e10cSrcweir         @return
329*cdf0e10cSrcweir            A description string.
330*cdf0e10cSrcweir     */
331*cdf0e10cSrcweir     virtual ::rtl::OUString
332*cdf0e10cSrcweir         CreateAccessibleDescription ()
333*cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
334*cdf0e10cSrcweir 
335*cdf0e10cSrcweir     /** This method is called when (after) the frame containing this
336*cdf0e10cSrcweir         document has been activated.  Can be used to send FOCUSED state
337*cdf0e10cSrcweir         changes for the currently selected element.
338*cdf0e10cSrcweir 
339*cdf0e10cSrcweir         Note: Currently used as a substitute for FocusGained.  Should be
340*cdf0e10cSrcweir         renamed in the future.
341*cdf0e10cSrcweir     */
342*cdf0e10cSrcweir     virtual void Activated (void);
343*cdf0e10cSrcweir 
344*cdf0e10cSrcweir     /** This method is called when (before or after?) the frame containing
345*cdf0e10cSrcweir         this document has been deactivated.  Can be used to send FOCUSED
346*cdf0e10cSrcweir         state changes for the currently selected element.
347*cdf0e10cSrcweir 
348*cdf0e10cSrcweir         Note: Currently used as a substitute for FocusLost.  Should be
349*cdf0e10cSrcweir         renamed in the future.
350*cdf0e10cSrcweir     */
351*cdf0e10cSrcweir     virtual void Deactivated (void);
352*cdf0e10cSrcweir 
353*cdf0e10cSrcweir     /** Set or remove the currently active accessible OLE object.
354*cdf0e10cSrcweir         @param xOLEObject
355*cdf0e10cSrcweir             If this is a valid reference then a child event is send that
356*cdf0e10cSrcweir             informs the listeners of a new child.  If there has already been
357*cdf0e10cSrcweir             an active accessible OLE object then this is removed first and
358*cdf0e10cSrcweir             appropriate events are send.
359*cdf0e10cSrcweir 
360*cdf0e10cSrcweir             If this is an empty reference then the currently active
361*cdf0e10cSrcweir             accessible OLE object (if there is one) is removed.
362*cdf0e10cSrcweir     */
363*cdf0e10cSrcweir     virtual void SetAccessibleOLEObject (
364*cdf0e10cSrcweir         const ::com::sun::star::uno::Reference <
365*cdf0e10cSrcweir         ::com::sun::star::accessibility::XAccessible>& xOLEObject);
366*cdf0e10cSrcweir 
367*cdf0e10cSrcweir     virtual void impl_dispose (void);
368*cdf0e10cSrcweir };
369*cdf0e10cSrcweir 
370*cdf0e10cSrcweir } // end of namespace accessibility
371*cdf0e10cSrcweir 
372*cdf0e10cSrcweir #endif
373