1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 #ifndef INCLUDED_STARMATH_SOURCE_ACCESSIBILITY_HXX
21 #define INCLUDED_STARMATH_SOURCE_ACCESSIBILITY_HXX
23 #include <com/sun/star/accessibility/XAccessible.hpp>
24 #include <com/sun/star/accessibility/XAccessibleComponent.hpp>
25 #include <com/sun/star/accessibility/XAccessibleContext.hpp>
26 #include <com/sun/star/accessibility/XAccessibleText.hpp>
27 #include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
28 #include <com/sun/star/accessibility/AccessibleEventId.hpp>
29 #include <com/sun/star/lang/XServiceInfo.hpp>
30 #include <com/sun/star/uno/Reference.h>
31 #include <osl/mutex.hxx>
32 #include <cppuhelper/interfacecontainer.h>
33 #include <cppuhelper/implbase.hxx>
34 #include <svl/SfxBroadcaster.hxx>
36 #include <editeng/editeng.hxx>
37 #include <editeng/unoedsrc.hxx>
38 #include <svx/AccessibleTextHelper.hxx>
41 class SmGraphicWindow
;
45 namespace com
{ namespace sun
{ namespace star
{ namespace accessibility
{
46 struct AccessibleEventObject
;
51 // classes and helper-classes used for accessibility in the graphic-window
57 com::sun::star::lang::XServiceInfo
,
58 com::sun::star::accessibility::XAccessible
,
59 com::sun::star::accessibility::XAccessibleComponent
,
60 com::sun::star::accessibility::XAccessibleContext
,
61 com::sun::star::accessibility::XAccessibleText
,
62 com::sun::star::accessibility::XAccessibleEventBroadcaster
64 SmGraphicAccessibleBaseClass
;
66 class SmGraphicAccessible
:
67 public SmGraphicAccessibleBaseClass
70 /// client id in the AccessibleEventNotifier queue
73 VclPtr
<SmGraphicWindow
> pWin
;
75 SmGraphicAccessible( const SmGraphicAccessible
& ) SAL_DELETED_FUNCTION
;
76 SmGraphicAccessible
& operator = ( const SmGraphicAccessible
& ) SAL_DELETED_FUNCTION
;
79 SmDocShell
* GetDoc_Impl();
80 OUString
GetAccessibleText_Impl();
83 explicit SmGraphicAccessible( SmGraphicWindow
*pGraphicWin
);
84 virtual ~SmGraphicAccessible();
86 SmGraphicWindow
* GetWin() { return pWin
; }
87 void ClearWin(); // to be called when view is destroyed
89 const sal_Int16 nAccesibleEventId
,
90 const ::com::sun::star::uno::Any
&rOldVal
,
91 const ::com::sun::star::uno::Any
&rNewVal
);
94 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleContext
> SAL_CALL
getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
96 // XAccessibleComponent
97 virtual sal_Bool SAL_CALL
containsPoint( const ::com::sun::star::awt::Point
& aPoint
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
98 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
> SAL_CALL
getAccessibleAtPoint( const ::com::sun::star::awt::Point
& aPoint
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
99 virtual ::com::sun::star::awt::Rectangle SAL_CALL
getBounds( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
100 virtual ::com::sun::star::awt::Point SAL_CALL
getLocation( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
101 virtual ::com::sun::star::awt::Point SAL_CALL
getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
102 virtual ::com::sun::star::awt::Size SAL_CALL
getSize( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
103 virtual void SAL_CALL
grabFocus( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
104 virtual sal_Int32 SAL_CALL
getForeground( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
105 virtual sal_Int32 SAL_CALL
getBackground( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
107 // XAccessibleContext
108 virtual sal_Int32 SAL_CALL
getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
109 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
> SAL_CALL
getAccessibleChild( sal_Int32 i
) throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
110 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
> SAL_CALL
getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
111 virtual sal_Int32 SAL_CALL
getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
112 virtual sal_Int16 SAL_CALL
getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
113 virtual OUString SAL_CALL
getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
114 virtual OUString SAL_CALL
getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
115 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleRelationSet
> SAL_CALL
getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
116 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleStateSet
> SAL_CALL
getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
117 virtual ::com::sun::star::lang::Locale SAL_CALL
getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
119 // XAccessibleEventBroadcaster
120 virtual void SAL_CALL
addAccessibleEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleEventListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
121 virtual void SAL_CALL
removeAccessibleEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleEventListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
124 virtual sal_Int32 SAL_CALL
getCaretPosition( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
125 virtual sal_Bool SAL_CALL
setCaretPosition ( sal_Int32 nIndex
) throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
126 virtual sal_Unicode SAL_CALL
getCharacter( sal_Int32 nIndex
) throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
127 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
> SAL_CALL
getCharacterAttributes( sal_Int32 nIndex
, const ::com::sun::star::uno::Sequence
< OUString
>& aRequestedAttributes
) throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
128 virtual ::com::sun::star::awt::Rectangle SAL_CALL
getCharacterBounds( sal_Int32 nIndex
) throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
129 virtual sal_Int32 SAL_CALL
getCharacterCount( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
130 virtual sal_Int32 SAL_CALL
getIndexAtPoint( const ::com::sun::star::awt::Point
& aPoint
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
131 virtual OUString SAL_CALL
getSelectedText( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
132 virtual sal_Int32 SAL_CALL
getSelectionStart( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
133 virtual sal_Int32 SAL_CALL
getSelectionEnd( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
134 virtual sal_Bool SAL_CALL
setSelection( sal_Int32 nStartIndex
, sal_Int32 nEndIndex
) throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
135 virtual OUString SAL_CALL
getText( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
136 virtual OUString SAL_CALL
getTextRange( sal_Int32 nStartIndex
, sal_Int32 nEndIndex
) throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
137 virtual ::com::sun::star::accessibility::TextSegment SAL_CALL
getTextAtIndex( sal_Int32 nIndex
, sal_Int16 aTextType
) throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
138 virtual ::com::sun::star::accessibility::TextSegment SAL_CALL
getTextBeforeIndex( sal_Int32 nIndex
, sal_Int16 aTextType
) throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
139 virtual ::com::sun::star::accessibility::TextSegment SAL_CALL
getTextBehindIndex( sal_Int32 nIndex
, sal_Int16 aTextType
) throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
140 virtual sal_Bool SAL_CALL
copyText( sal_Int32 nStartIndex
, sal_Int32 nEndIndex
) throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
143 virtual OUString SAL_CALL
getImplementationName( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
144 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
145 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
150 // classes and helper-classes used for accessibility in the command-window
153 class SmEditAccessible
;
161 class SmViewForwarder
:
162 public SvxViewForwarder
164 SmEditAccessible
& rEditAcc
;
166 SmViewForwarder( const SmViewForwarder
& ) SAL_DELETED_FUNCTION
;
167 SmViewForwarder
& operator = ( const SmViewForwarder
& ) SAL_DELETED_FUNCTION
;
170 explicit SmViewForwarder( SmEditAccessible
&rAcc
);
171 virtual ~SmViewForwarder();
173 virtual bool IsValid() const SAL_OVERRIDE
;
174 virtual Rectangle
GetVisArea() const SAL_OVERRIDE
;
175 virtual Point
LogicToPixel( const Point
& rPoint
, const MapMode
& rMapMode
) const SAL_OVERRIDE
;
176 virtual Point
PixelToLogic( const Point
& rPoint
, const MapMode
& rMapMode
) const SAL_OVERRIDE
;
180 class SmTextForwarder
: /* analog to SvxEditEngineForwarder */
181 public SvxTextForwarder
183 SmEditAccessible
& rEditAcc
;
184 SmEditSource
& rEditSource
;
186 DECL_LINK( NotifyHdl
, EENotify
* );
188 SmTextForwarder( const SmTextForwarder
& ) SAL_DELETED_FUNCTION
;
189 SmTextForwarder
& operator = ( const SmTextForwarder
& ) SAL_DELETED_FUNCTION
;
192 SmTextForwarder( SmEditAccessible
& rAcc
, SmEditSource
& rSource
);
193 virtual ~SmTextForwarder();
195 virtual sal_Int32
GetParagraphCount() const SAL_OVERRIDE
;
196 virtual sal_Int32
GetTextLen( sal_Int32 nParagraph
) const SAL_OVERRIDE
;
197 virtual OUString
GetText( const ESelection
& rSel
) const SAL_OVERRIDE
;
198 virtual SfxItemSet
GetAttribs( const ESelection
& rSel
, EditEngineAttribs nOnlyHardAttrib
= EditEngineAttribs_All
) const SAL_OVERRIDE
;
199 virtual SfxItemSet
GetParaAttribs( sal_Int32 nPara
) const SAL_OVERRIDE
;
200 virtual void SetParaAttribs( sal_Int32 nPara
, const SfxItemSet
& rSet
) SAL_OVERRIDE
;
201 virtual void RemoveAttribs( const ESelection
& rSelection
, bool bRemoveParaAttribs
, sal_uInt16 nWhich
) SAL_OVERRIDE
;
202 virtual void GetPortions( sal_Int32 nPara
, std::vector
<sal_Int32
>& rList
) const SAL_OVERRIDE
;
204 virtual SfxItemState
GetItemState( const ESelection
& rSel
, sal_uInt16 nWhich
) const SAL_OVERRIDE
;
205 virtual SfxItemState
GetItemState( sal_Int32 nPara
, sal_uInt16 nWhich
) const SAL_OVERRIDE
;
207 virtual void QuickInsertText( const OUString
& rText
, const ESelection
& rSel
) SAL_OVERRIDE
;
208 virtual void QuickInsertField( const SvxFieldItem
& rFld
, const ESelection
& rSel
) SAL_OVERRIDE
;
209 virtual void QuickSetAttribs( const SfxItemSet
& rSet
, const ESelection
& rSel
) SAL_OVERRIDE
;
210 virtual void QuickInsertLineBreak( const ESelection
& rSel
) SAL_OVERRIDE
;
212 virtual SfxItemPool
* GetPool() const SAL_OVERRIDE
;
214 virtual OUString
CalcFieldValue( const SvxFieldItem
& rField
, sal_Int32 nPara
, sal_Int32 nPos
, Color
*& rpTxtColor
, Color
*& rpFldColor
) SAL_OVERRIDE
;
215 virtual void FieldClicked(const SvxFieldItem
&, sal_Int32
, sal_Int32
) SAL_OVERRIDE
;
216 virtual bool IsValid() const SAL_OVERRIDE
;
218 virtual LanguageType
GetLanguage( sal_Int32
, sal_Int32
) const SAL_OVERRIDE
;
219 virtual sal_Int32
GetFieldCount( sal_Int32 nPara
) const SAL_OVERRIDE
;
220 virtual EFieldInfo
GetFieldInfo( sal_Int32 nPara
, sal_uInt16 nField
) const SAL_OVERRIDE
;
221 virtual EBulletInfo
GetBulletInfo( sal_Int32 nPara
) const SAL_OVERRIDE
;
222 virtual Rectangle
GetCharBounds( sal_Int32 nPara
, sal_Int32 nIndex
) const SAL_OVERRIDE
;
223 virtual Rectangle
GetParaBounds( sal_Int32 nPara
) const SAL_OVERRIDE
;
224 virtual MapMode
GetMapMode() const SAL_OVERRIDE
;
225 virtual OutputDevice
* GetRefDevice() const SAL_OVERRIDE
;
226 virtual bool GetIndexAtPoint( const Point
&, sal_Int32
& nPara
, sal_Int32
& nIndex
) const SAL_OVERRIDE
;
227 virtual bool GetWordIndices( sal_Int32 nPara
, sal_Int32 nIndex
, sal_Int32
& nStart
, sal_Int32
& nEnd
) const SAL_OVERRIDE
;
228 virtual bool GetAttributeRun( sal_Int32
& nStartIndex
, sal_Int32
& nEndIndex
, sal_Int32 nPara
, sal_Int32 nIndex
, bool bInCell
= false ) const SAL_OVERRIDE
;
229 virtual sal_Int32
GetLineCount( sal_Int32 nPara
) const SAL_OVERRIDE
;
230 virtual sal_Int32
GetLineLen( sal_Int32 nPara
, sal_Int32 nLine
) const SAL_OVERRIDE
;
231 virtual void GetLineBoundaries( /*out*/sal_Int32
&rStart
, /*out*/sal_Int32
&rEnd
, sal_Int32 nParagraph
, sal_Int32 nLine
) const SAL_OVERRIDE
;
232 virtual sal_Int32
GetLineNumberAtIndex( sal_Int32 nPara
, sal_Int32 nLine
) const SAL_OVERRIDE
;
233 virtual bool Delete( const ESelection
& ) SAL_OVERRIDE
;
234 virtual bool InsertText( const OUString
&, const ESelection
& ) SAL_OVERRIDE
;
235 virtual bool QuickFormatDoc( bool bFull
= false ) SAL_OVERRIDE
;
237 virtual sal_Int16
GetDepth( sal_Int32 nPara
) const SAL_OVERRIDE
;
238 virtual bool SetDepth( sal_Int32 nPara
, sal_Int16 nNewDepth
) SAL_OVERRIDE
;
240 virtual const SfxItemSet
* GetEmptyItemSetPtr() SAL_OVERRIDE
;
241 // implementation functions for XParagraphAppend and XTextPortionAppend
242 virtual void AppendParagraph() SAL_OVERRIDE
;
243 virtual sal_Int32
AppendTextPortion( sal_Int32 nPara
, const OUString
&rText
, const SfxItemSet
&rSet
) SAL_OVERRIDE
;
245 virtual void CopyText(const SvxTextForwarder
& rSource
) SAL_OVERRIDE
;
249 class SmEditViewForwarder
: /* analog to SvxEditEngineViewForwarder */
250 public SvxEditViewForwarder
252 SmEditAccessible
& rEditAcc
;
254 SmEditViewForwarder( const SmEditViewForwarder
& ) SAL_DELETED_FUNCTION
;
255 SmEditViewForwarder
& operator = ( const SmEditViewForwarder
& ) SAL_DELETED_FUNCTION
;
258 explicit SmEditViewForwarder( SmEditAccessible
& rAcc
);
259 virtual ~SmEditViewForwarder();
261 virtual bool IsValid() const SAL_OVERRIDE
;
263 virtual Rectangle
GetVisArea() const SAL_OVERRIDE
;
264 virtual Point
LogicToPixel( const Point
& rPoint
, const MapMode
& rMapMode
) const SAL_OVERRIDE
;
265 virtual Point
PixelToLogic( const Point
& rPoint
, const MapMode
& rMapMode
) const SAL_OVERRIDE
;
267 virtual bool GetSelection( ESelection
& rSelection
) const SAL_OVERRIDE
;
268 virtual bool SetSelection( const ESelection
& rSelection
) SAL_OVERRIDE
;
269 virtual bool Copy() SAL_OVERRIDE
;
270 virtual bool Cut() SAL_OVERRIDE
;
271 virtual bool Paste() SAL_OVERRIDE
;
278 SfxBroadcaster aBroadCaster
;
279 SmViewForwarder aViewFwd
;
280 SmTextForwarder aTextFwd
;
281 SmEditViewForwarder aEditViewFwd
;
283 SmEditAccessible
& rEditAcc
;
285 SmEditSource( const SmEditSource
&rSrc
);
286 SmEditSource
& operator = ( const SmEditSource
& ) SAL_DELETED_FUNCTION
;
289 SmEditSource( SmEditWindow
*pWin
, SmEditAccessible
&rAcc
);
290 virtual ~SmEditSource();
292 virtual SvxEditSource
* Clone() const SAL_OVERRIDE
;
293 virtual SvxTextForwarder
* GetTextForwarder() SAL_OVERRIDE
;
294 virtual SvxViewForwarder
* GetViewForwarder() SAL_OVERRIDE
;
295 virtual SvxEditViewForwarder
* GetEditViewForwarder( bool bCreate
= false ) SAL_OVERRIDE
;
296 virtual void UpdateData() SAL_OVERRIDE
;
297 virtual SfxBroadcaster
& GetBroadcaster() const SAL_OVERRIDE
;
306 com::sun::star::lang::XServiceInfo
,
307 com::sun::star::accessibility::XAccessible
,
308 com::sun::star::accessibility::XAccessibleComponent
,
309 com::sun::star::accessibility::XAccessibleContext
,
310 com::sun::star::accessibility::XAccessibleEventBroadcaster
312 SmEditAccessibleBaseClass
;
314 class SmEditAccessible
:
315 public SmEditAccessibleBaseClass
318 ::accessibility::AccessibleTextHelper
*pTextHelper
;
319 VclPtr
<SmEditWindow
> pWin
;
321 SmEditAccessible( const SmEditAccessible
& ) SAL_DELETED_FUNCTION
;
322 SmEditAccessible
& operator = ( const SmEditAccessible
& ) SAL_DELETED_FUNCTION
;
325 explicit SmEditAccessible( SmEditWindow
*pEditWin
);
326 virtual ~SmEditAccessible();
328 ::accessibility::AccessibleTextHelper
* GetTextHelper() { return pTextHelper
; }
331 SmEditWindow
* GetWin() { return pWin
; }
332 void ClearWin(); // to be called when view is destroyed
334 //! access EditEngine and EditView via the functions in the respective window
335 //! pointers may be 0 (e.g. during reload)
336 EditEngine
* GetEditEngine() { return pWin
? pWin
->GetEditEngine() : 0; }
337 EditView
* GetEditView() { return pWin
? pWin
->GetEditView() : 0; }
340 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleContext
> SAL_CALL
getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
342 // XAccessibleComponent
343 virtual sal_Bool SAL_CALL
containsPoint( const ::com::sun::star::awt::Point
& aPoint
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
344 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
> SAL_CALL
getAccessibleAtPoint( const ::com::sun::star::awt::Point
& aPoint
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
345 virtual ::com::sun::star::awt::Rectangle SAL_CALL
getBounds( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
346 virtual ::com::sun::star::awt::Point SAL_CALL
getLocation( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
347 virtual ::com::sun::star::awt::Point SAL_CALL
getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
348 virtual ::com::sun::star::awt::Size SAL_CALL
getSize( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
349 virtual void SAL_CALL
grabFocus( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
350 virtual sal_Int32 SAL_CALL
getForeground( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
351 virtual sal_Int32 SAL_CALL
getBackground( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
353 // XAccessibleContext
354 virtual sal_Int32 SAL_CALL
getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
355 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
> SAL_CALL
getAccessibleChild( sal_Int32 i
) throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
356 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
> SAL_CALL
getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
357 virtual sal_Int32 SAL_CALL
getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
358 virtual sal_Int16 SAL_CALL
getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
359 virtual OUString SAL_CALL
getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
360 virtual OUString SAL_CALL
getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
361 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleRelationSet
> SAL_CALL
getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
362 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleStateSet
> SAL_CALL
getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
363 virtual ::com::sun::star::lang::Locale SAL_CALL
getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
365 // XAccessibleEventBroadcaster
366 virtual void SAL_CALL
addAccessibleEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleEventListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
367 virtual void SAL_CALL
removeAccessibleEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleEventListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
370 virtual OUString SAL_CALL
getImplementationName( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
371 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
372 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
379 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */