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