24#include <com/sun/star/accessibility/AccessibleEventId.hpp>
25#include <com/sun/star/datatransfer/clipboard/XClipboard.hpp>
26#include <com/sun/star/datatransfer/clipboard/XFlushableClipboard.hpp>
27#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
48 :ImplInheritanceHelper( pVCLXWindow )
58 Any aOldValue, aNewValue;
62 NotifyAccessibleEvent( AccessibleEventId::TEXT_CHANGED, aOldValue, aNewValue );
69 switch ( rVclWindowEvent.
GetId() )
71 case VclEventId::WindowFrameTitleChanged:
73 VCLXAccessibleComponent::ProcessWindowEvent( rVclWindowEvent );
78 VCLXAccessibleComponent::ProcessWindowEvent( rVclWindowEvent );
115 VCLXAccessibleComponent::disposing();
138 OExternalLockGuard aGuard(
this );
146 OExternalLockGuard aGuard(
this );
148 Sequence< PropertyValue > aValues;
152 throw IndexOutOfBoundsException();
157 vcl::Font aFont = pWindow->GetControlFont();
159 Color nBackColor = pWindow->GetControlBackground();
160 Color nColor = pWindow->GetControlForeground();
221 OExternalLockGuard aGuard(
this );
224 throw IndexOutOfBoundsException();
226 awt::Rectangle aRect;
237 OExternalLockGuard aGuard(
this );
245 OExternalLockGuard aGuard(
this );
258 OExternalLockGuard aGuard(
this );
260 return OCommonAccessibleText::getSelectedText();
266 OExternalLockGuard aGuard(
this );
268 return OCommonAccessibleText::getSelectionStart();
274 OExternalLockGuard aGuard(
this );
276 return OCommonAccessibleText::getSelectionEnd();
282 OExternalLockGuard aGuard(
this );
285 throw IndexOutOfBoundsException();
293 OExternalLockGuard aGuard(
this );
301 OExternalLockGuard aGuard(
this );
303 return OCommonAccessibleText::implGetTextRange(
implGetText(), nStartIndex, nEndIndex );
309 OExternalLockGuard aGuard(
this );
311 return OCommonAccessibleText::getTextAtIndex(
nIndex, aTextType );
317 OExternalLockGuard aGuard(
this );
319 return OCommonAccessibleText::getTextBeforeIndex(
nIndex, aTextType );
325 OExternalLockGuard aGuard(
this );
327 return OCommonAccessibleText::getTextBehindIndex(
nIndex, aTextType );
333 OExternalLockGuard aGuard(
this );
335 bool bReturn =
false;
340 Reference< datatransfer::clipboard::XClipboard > xClipboard = pWindow->GetClipboard();
341 if ( xClipboard.is() )
343 OUString sText( OCommonAccessibleText::implGetTextRange(
implGetText(), nStartIndex, nEndIndex ) );
348 xClipboard->setContents( pDataObj,
nullptr );
350 Reference< datatransfer::clipboard::XFlushableClipboard > xFlushableClipboard( xClipboard, uno::UNO_QUERY );
351 if( xFlushableClipboard.is() )
352 xFlushableClipboard->flushClipboard();
const LanguageTag & GetLanguageTag() const
static const AllSettings & GetSettings()
std::vector< css::beans::PropertyValue > GetCharacterAttributes()
const css::lang::Locale & getLocale(bool bResolveSystem=true) const
virtual OUString implGetText() override
virtual css::accessibility::TextSegment SAL_CALL getTextBehindIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
virtual sal_Int32 SAL_CALL getIndexAtPoint(const css::awt::Point &aPoint) override
virtual sal_Bool SAL_CALL setCaretPosition(sal_Int32 nIndex) override
virtual css::lang::Locale implGetLocale() override
virtual void implGetSelection(sal_Int32 &nStartIndex, sal_Int32 &nEndIndex) override
virtual OUString SAL_CALL getTextRange(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
virtual sal_Unicode SAL_CALL getCharacter(sal_Int32 nIndex) override
virtual css::awt::Rectangle SAL_CALL getCharacterBounds(sal_Int32 nIndex) override
virtual OUString SAL_CALL getSelectedText() override
virtual void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent) override
virtual sal_Int32 SAL_CALL getSelectionStart() override
virtual sal_Int32 SAL_CALL getCaretPosition() override
virtual css::accessibility::TextSegment SAL_CALL getTextBeforeIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
void SetText(const OUString &sText)
virtual sal_Int32 SAL_CALL getSelectionEnd() override
virtual void SAL_CALL disposing() override
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCharacterAttributes(sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override
virtual css::accessibility::TextSegment SAL_CALL getTextAtIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
virtual sal_Bool SAL_CALL copyText(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
virtual sal_Bool SAL_CALL setSelection(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
virtual OUString SAL_CALL getText() override
virtual sal_Int32 SAL_CALL getCharacterCount() override
VCLXAccessibleTextComponent(VCLXWindow *pVCLXWindow)
virtual sal_Bool SAL_CALL scrollSubstringTo(sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType) override
static bool implIsValidIndex(sal_Int32 nIndex, sal_Int32 nLength)
static bool implIsValidRange(sal_Int32 nStartIndex, sal_Int32 nEndIndex, sal_Int32 nLength)
static bool implInitTextChangedEvent(std::u16string_view rOldString, std::u16string_view rNewString, css::uno::Any &rDeleted, css::uno::Any &rInserted)
css::awt::Rectangle AWTRectangle(const ::tools::Rectangle &rVCLRect)
inline ::Point VCLPoint(const css::awt::Point &rAWTPoint)
VCL_DLLPUBLIC OUString removeMnemonicFromString(OUString const &rStr, sal_Int32 &rMnemonicPos)
double getLength(const B2DPolygon &rCandidate)