20#ifndef INCLUDED_EDITENG_ACCESSIBLESTATICTEXTBASE_HXX
21#define INCLUDED_EDITENG_ACCESSIBLESTATICTEXTBASE_HXX
26#include <com/sun/star/uno/Reference.hxx>
27#include <com/sun/star/accessibility/AccessibleScrollType.hpp>
28#include <com/sun/star/accessibility/XAccessibleText.hpp>
29#include <com/sun/star/accessibility/XAccessibleTextAttributes.hpp>
30#include <com/sun/star/accessibility/TextSegment.hpp>
40 class AccessibleStaticTextBase_Impl;
43 css::accessibility::XAccessibleText,
140 void SetEditSource( ::std::unique_ptr< SvxEditSource > && pEditSource );
152 void SetEventSource(
const css::uno::Reference< css::accessibility::XAccessible >& rInterface );
167 void SetOffset(
const Point& rPoint );
180 virtual sal_Int32 SAL_CALL getCaretPosition()
override;
181 virtual sal_Bool SAL_CALL setCaretPosition( sal_Int32 nIndex )
override;
182 virtual sal_Unicode SAL_CALL getCharacter( sal_Int32 nIndex )
override;
183 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCharacterAttributes( sal_Int32 nIndex,
const css::uno::Sequence< OUString >& aRequestedAttributes )
override;
184 virtual css::awt::Rectangle SAL_CALL getCharacterBounds( sal_Int32 nIndex )
override;
185 virtual sal_Int32 SAL_CALL getCharacterCount()
override;
186 virtual sal_Int32 SAL_CALL getIndexAtPoint(
const css::awt::Point& aPoint )
override;
187 virtual OUString SAL_CALL getSelectedText()
override;
188 virtual sal_Int32 SAL_CALL getSelectionStart()
override;
189 virtual sal_Int32 SAL_CALL getSelectionEnd()
override;
191 virtual sal_Bool SAL_CALL setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex )
override;
192 virtual OUString SAL_CALL getText()
override;
193 virtual OUString SAL_CALL getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex )
override;
195 virtual css::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType )
override;
197 virtual css::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType )
override;
199 virtual css::accessibility::TextSegment SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType )
override;
201 virtual sal_Bool SAL_CALL copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex )
override;
202 virtual sal_Bool SAL_CALL scrollSubstringTo( sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType)
override;
205 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getDefaultAttributes(
const css::uno::Sequence< OUString >& RequestedAttributes )
override;
206 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRunAttributes( sal_Int32
Index,
const css::uno::Sequence< OUString >& RequestedAttributes )
override;
210 virtual sal_Int64 SAL_CALL getAccessibleChildCount();
213 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int64 i );
217 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(
const css::awt::Point& aPoint );
225 const std::unique_ptr< AccessibleStaticTextBase_Impl >
mpImpl;
Wrapper class for unified EditEngine/Outliner access.
Helper class for objects containing EditEngine/Outliner text.
AccessibleStaticTextBase(::std::unique_ptr< SvxEditSource > &&pEditSource)
Create accessible text object for given edit source.
const std::unique_ptr< AccessibleStaticTextBase_Impl > mpImpl
@dyn
AccessibleStaticTextBase(const AccessibleStaticTextBase &)=delete
#define EDITENG_DLLPUBLIC
::cppu::ImplHelper2< css::accessibility::XAccessibleText, css::accessibility::XAccessibleTextAttributes > AccessibleStaticTextBase_BASE
void Dispose(const T &xInterface)