LibreOffice Module accessibility (master) 1
accessibleiconchoicectrlentry.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
22#include <com/sun/star/awt/Rectangle.hpp>
23#include <com/sun/star/accessibility/AccessibleRole.hpp>
24#include <com/sun/star/accessibility/AccessibleStateType.hpp>
25#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
26#include <vcl/svapp.hxx>
27#include <vcl/settings.hxx>
34
35#define ACCESSIBLE_ACTION_COUNT 1
36
37namespace
38{
40 void checkActionIndex_Impl( sal_Int32 _nIndex )
41 {
42 if ( _nIndex < 0 || _nIndex >= ACCESSIBLE_ACTION_COUNT )
43 // only three actions
44 throw css::lang::IndexOutOfBoundsException();
45 }
46}
47
48
49namespace accessibility
50{
51
52
53 using namespace ::com::sun::star::accessibility;
54 using namespace ::com::sun::star::uno;
55 using namespace ::com::sun::star::lang;
56 using namespace ::com::sun::star;
57
58
59 // Ctor() and Dtor()
60
62 sal_Int32 _nPos,
63 const Reference< XAccessible >& _xParent ) :
64
66
67 m_pIconCtrl ( &_rIconCtrl ),
68 m_nIndex ( _nPos ),
69 m_nClientId ( 0 ),
70 m_xParent ( _xParent )
71
72 {
73 osl_atomic_increment( &m_refCount );
74 {
75 Reference< XComponent > xComp( m_xParent, UNO_QUERY );
76 if ( xComp.is() )
77 xComp->addEventListener( this );
78 }
79 osl_atomic_decrement( &m_refCount );
80 }
81
82 void AccessibleIconChoiceCtrlEntry::disposing( const css::lang::EventObject& _rSource )
83 {
84 if ( _rSource.Source == m_xParent )
85 {
86 dispose();
87 OSL_ENSURE( !m_xParent.is() && ( m_pIconCtrl == nullptr ), "" );
88 }
89 }
90
92 {
93 if ( IsAlive_Impl() )
94 {
95 // increment ref count to prevent double call of Dtor
96 osl_atomic_increment( &m_refCount );
97 dispose();
98 }
99 }
100
102 {
103 tools::Rectangle aRect;
104 SvxIconChoiceCtrlEntry* pEntry = m_pIconCtrl->GetEntry( m_nIndex );
105 if ( pEntry )
106 aRect = m_pIconCtrl->GetBoundingBox( pEntry );
107
108 return aRect;
109 }
110
112 {
113 tools::Rectangle aRect;
114 SvxIconChoiceCtrlEntry* pEntry = m_pIconCtrl->GetEntry( m_nIndex );
115 if ( pEntry )
116 {
117 aRect = m_pIconCtrl->GetBoundingBox( pEntry );
118 Point aTopLeft = aRect.TopLeft();
119 aTopLeft += m_pIconCtrl->GetWindowExtentsAbsolute().TopLeft();
120 aRect = tools::Rectangle( aTopLeft, aRect.GetSize() );
121 }
122
123 return aRect;
124 }
125
127 {
128 return ( !rBHelper.bDisposed && !rBHelper.bInDispose && m_pIconCtrl );
129 }
130
132 {
133 bool bShowing = false;
134 Reference< XAccessibleContext > xParentContext =
135 m_xParent.is() ? m_xParent->getAccessibleContext() : Reference< XAccessibleContext >();
136 if( xParentContext.is() )
137 {
138 Reference< XAccessibleComponent > xParentComp( xParentContext, uno::UNO_QUERY );
139 if( xParentComp.is() )
140 bShowing = GetBoundingBox_Impl().Overlaps( VCLRectangle( xParentComp->getBounds() ) );
141 }
142
143 return bShowing;
144 }
145
147 {
148 SolarMutexGuard aSolarGuard;
149 ::osl::MutexGuard aGuard( m_aMutex );
150
152 return GetBoundingBox_Impl();
153 }
154
156 {
157 SolarMutexGuard aSolarGuard;
158 ::osl::MutexGuard aGuard( m_aMutex );
159
162 }
163
165 {
166 if ( !IsAlive_Impl() )
167 throw lang::DisposedException();
168 }
169
171 {
172 OUString sRet;
173 SvxIconChoiceCtrlEntry* pEntry = m_pIconCtrl->GetEntry( m_nIndex );
174 if ( pEntry )
175 sRet = pEntry->GetDisplayText();
176 return sRet;
177 }
178
180 {
182 }
183 void AccessibleIconChoiceCtrlEntry::implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex )
184 {
185 nStartIndex = 0;
186 nEndIndex = 0;
187 }
188
189 // XTypeProvider
190
191
193 {
194 return css::uno::Sequence<sal_Int8>();
195 }
196
197 // XComponent
198
200 {
201 ::osl::MutexGuard aGuard( m_aMutex );
202
203 // Send a disposing to all listeners.
204 if ( m_nClientId )
205 {
206 sal_uInt32 nId = m_nClientId;
207 m_nClientId = 0;
209 }
210
211 Reference< XComponent > xComp( m_xParent, UNO_QUERY );
212 if ( xComp.is() )
213 xComp->removeEventListener( this );
214
215 m_pIconCtrl = nullptr;
216 m_xParent = nullptr;
217 }
218
219 // XServiceInfo
220
222 {
223 return "com.sun.star.comp.svtools.AccessibleIconChoiceControlEntry";
224 }
225
227 {
228 return {"com.sun.star.accessibility.AccessibleContext",
229 "com.sun.star.accessibility.AccessibleComponent",
230 "com.sun.star.awt.AccessibleIconChoiceControlEntry"};
231 }
232
233 sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::supportsService( const OUString& _rServiceName )
234 {
235 return cppu::supportsService(this, _rServiceName);
236 }
237
238 // XAccessible
239
241 {
243 return this;
244 }
245
246 // XAccessibleContext
247
249 {
250 return 0; // no children
251 }
252
254 {
255 throw IndexOutOfBoundsException();
256 }
257
259 {
260 ::osl::MutexGuard aGuard( m_aMutex );
261
263 return m_xParent;
264 }
265
267 {
268 ::osl::MutexGuard aGuard( m_aMutex );
269
270 return m_nIndex;
271 }
272
274 {
275 //return AccessibleRole::LABEL;
276 return AccessibleRole::LIST_ITEM;
277 }
278
280 {
281 // no description for every item
282 return OUString();
283 }
284
286 {
287 ::osl::MutexGuard aGuard( m_aMutex );
288
290 return implGetText();
291 }
292
294 {
296 }
297
299 {
300 SolarMutexGuard aSolarGuard;
301 ::osl::MutexGuard aGuard( m_aMutex );
302
303 sal_Int64 nStateSet = 0;
304
305 if ( IsAlive_Impl() )
306 {
307 nStateSet |= AccessibleStateType::TRANSIENT;
308 nStateSet |= AccessibleStateType::SELECTABLE;
309 nStateSet |= AccessibleStateType::ENABLED;
310 nStateSet |= AccessibleStateType::SENSITIVE;
311 if ( IsShowing_Impl() )
312 {
313 nStateSet |= AccessibleStateType::SHOWING;
314 nStateSet |= AccessibleStateType::VISIBLE;
315 }
316
317 if ( m_pIconCtrl && m_pIconCtrl->GetCursor() == m_pIconCtrl->GetEntry( m_nIndex ) )
318 nStateSet |= AccessibleStateType::SELECTED;
319 }
320 else
321 nStateSet |= AccessibleStateType::DEFUNC;
322
323 return nStateSet;
324 }
325
327 {
328 SolarMutexGuard aSolarGuard;
329 ::osl::MutexGuard aGuard( m_aMutex );
330
331 return implGetLocale();
332 }
333
334 // XAccessibleComponent
335
336 sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::containsPoint( const awt::Point& rPoint )
337 {
338 return tools::Rectangle( Point(), GetBoundingBox().GetSize() ).Contains( VCLPoint( rPoint ) );
339 }
340
342 {
344 }
345
347 {
348 return AWTRectangle( GetBoundingBox() );
349 }
350
352 {
353 return AWTPoint( GetBoundingBox().TopLeft() );
354 }
355
357 {
359 }
360
362 {
363 return AWTSize( GetBoundingBox().GetSize() );
364 }
365
367 {
368 // do nothing, because no focus for each item
369 }
370
372 {
373 SolarMutexGuard aSolarGuard;
374 ::osl::MutexGuard aGuard( m_aMutex );
375
376 sal_Int32 nColor = 0;
378 if ( xParent.is() )
379 {
380 Reference< XAccessibleComponent > xParentComp( xParent->getAccessibleContext(), UNO_QUERY );
381 if ( xParentComp.is() )
382 nColor = xParentComp->getForeground();
383 }
384
385 return nColor;
386 }
387
389 {
390 SolarMutexGuard aSolarGuard;
391 ::osl::MutexGuard aGuard( m_aMutex );
392
393 sal_Int32 nColor = 0;
395 if ( xParent.is() )
396 {
397 Reference< XAccessibleComponent > xParentComp( xParent->getAccessibleContext(), UNO_QUERY );
398 if ( xParentComp.is() )
399 nColor = xParentComp->getBackground();
400 }
401
402 return nColor;
403 }
404
405 // XAccessibleText
406
407
408 awt::Rectangle SAL_CALL AccessibleIconChoiceCtrlEntry::getCharacterBounds( sal_Int32 _nIndex )
409 {
410 SolarMutexGuard aSolarGuard;
411 ::osl::MutexGuard aGuard( m_aMutex );
412
413 if ( ( 0 > _nIndex ) || ( implGetText().getLength() <= _nIndex ) )
414 throw IndexOutOfBoundsException();
415
416 awt::Rectangle aBounds( 0, 0, 0, 0 );
417 if ( m_pIconCtrl )
418 {
420 tools::Rectangle aCharRect = m_pIconCtrl->GetEntryCharacterBounds( m_nIndex, _nIndex );
421 aCharRect.Move( -aItemRect.Left(), -aItemRect.Top() );
422 aBounds = AWTRectangle( aCharRect );
423 }
424
425 return aBounds;
426 }
427
428 sal_Int32 SAL_CALL AccessibleIconChoiceCtrlEntry::getIndexAtPoint( const awt::Point& aPoint )
429 {
430 SolarMutexGuard aSolarGuard;
431 ::osl::MutexGuard aGuard( m_aMutex );
432
433 sal_Int32 nIndex = -1;
434 if ( m_pIconCtrl )
435 {
436 vcl::ControlLayoutData aLayoutData;
438 m_pIconCtrl->RecordLayoutData( &aLayoutData, aItemRect );
439 Point aPnt( VCLPoint( aPoint ) );
440 aPnt += aItemRect.TopLeft();
441 nIndex = aLayoutData.GetIndexForPoint( aPnt );
442
443 tools::Long nLen = aLayoutData.m_aUnicodeBoundRects.size();
444 for ( tools::Long i = 0; i < nLen; ++i )
445 {
446 tools::Rectangle aRect = aLayoutData.GetCharacterBounds(i);
447 bool bInside = aRect.Contains( aPnt );
448
449 if ( bInside )
450 break;
451 }
452 }
453
454 return nIndex;
455 }
456
457 sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex )
458 {
459 SolarMutexGuard aSolarGuard;
460 ::osl::MutexGuard aGuard( m_aMutex );
462
463 OUString sText = implGetText();
464 if ( ( 0 > nStartIndex ) || ( sText.getLength() <= nStartIndex )
465 || ( 0 > nEndIndex ) || ( sText.getLength() <= nEndIndex ) )
466 throw IndexOutOfBoundsException();
467
468 sal_Int32 nLen = nEndIndex - nStartIndex + 1;
469 ::svt::OStringTransfer::CopyString( sText.copy( nStartIndex, nLen ), m_pIconCtrl );
470
471 return true;
472 }
473
474 sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::scrollSubstringTo( sal_Int32, sal_Int32, AccessibleScrollType )
475 {
476 return false;
477 }
478
479 // XAccessibleEventBroadcaster
480
482 {
483 if (xListener.is())
484 {
485 ::osl::MutexGuard aGuard( m_aMutex );
486 if (!m_nClientId)
489 }
490 }
491
493 {
494 if (!xListener.is())
495 return;
496
497 ::osl::MutexGuard aGuard( m_aMutex );
498
499 sal_Int32 nListenerCount = comphelper::AccessibleEventNotifier::removeEventListener( m_nClientId, xListener );
500 if ( !nListenerCount )
501 {
502 // no listeners anymore
503 // -> revoke ourself. This may lead to the notifier thread dying (if we were the last client),
504 // and at least to us not firing any events anymore, in case somebody calls
505 // NotifyAccessibleEvent, again
506 sal_Int32 nId = m_nClientId;
507 m_nClientId = 0;
509 }
510 }
511
513 {
514 return -1;
515 }
517 {
518 SolarMutexGuard aSolarGuard;
519 ::osl::MutexGuard aGuard( m_aMutex );
521
523 throw IndexOutOfBoundsException();
524
525 return false;
526 }
528 {
529 SolarMutexGuard aSolarGuard;
530 ::osl::MutexGuard aGuard( m_aMutex );
533 }
534 css::uno::Sequence< css::beans::PropertyValue > SAL_CALL AccessibleIconChoiceCtrlEntry::getCharacterAttributes( sal_Int32 nIndex, const css::uno::Sequence< OUString >& )
535 {
536 SolarMutexGuard aSolarGuard;
537 ::osl::MutexGuard aGuard( m_aMutex );
539
540 OUString sText( implGetText() );
541
542 if ( !implIsValidIndex( nIndex, sText.getLength() ) )
543 throw IndexOutOfBoundsException();
544
545 return css::uno::Sequence< css::beans::PropertyValue >();
546 }
548 {
549 SolarMutexGuard aSolarGuard;
550 ::osl::MutexGuard aGuard( m_aMutex );
552 return implGetText().getLength();
553 }
554
556 {
557 SolarMutexGuard aSolarGuard;
558 ::osl::MutexGuard aGuard( m_aMutex );
560 return OUString();
561 }
563 {
564 SolarMutexGuard aSolarGuard;
565 ::osl::MutexGuard aGuard( m_aMutex );
567 return 0;
568 }
570 {
571 SolarMutexGuard aSolarGuard;
572 ::osl::MutexGuard aGuard( m_aMutex );
574 return 0;
575 }
576 sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex )
577 {
578 SolarMutexGuard aSolarGuard;
579 ::osl::MutexGuard aGuard( m_aMutex );
581
582 if ( !implIsValidRange( nStartIndex, nEndIndex, implGetText().getLength() ) )
583 throw IndexOutOfBoundsException();
584
585 return false;
586 }
588 {
589 SolarMutexGuard aSolarGuard;
590 ::osl::MutexGuard aGuard( m_aMutex );
592 return implGetText( );
593 }
594 OUString SAL_CALL AccessibleIconChoiceCtrlEntry::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex )
595 {
596 SolarMutexGuard aSolarGuard;
597 ::osl::MutexGuard aGuard( m_aMutex );
599 return OCommonAccessibleText::implGetTextRange( implGetText(), nStartIndex, nEndIndex );
600 }
601 css::accessibility::TextSegment SAL_CALL AccessibleIconChoiceCtrlEntry::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType )
602 {
603 SolarMutexGuard aSolarGuard;
604 ::osl::MutexGuard aGuard( m_aMutex );
607 }
608 css::accessibility::TextSegment SAL_CALL AccessibleIconChoiceCtrlEntry::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType )
609 {
610 SolarMutexGuard aSolarGuard;
611 ::osl::MutexGuard aGuard( m_aMutex );
614 }
615 css::accessibility::TextSegment SAL_CALL AccessibleIconChoiceCtrlEntry::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType )
616 {
617 SolarMutexGuard aSolarGuard;
618 ::osl::MutexGuard aGuard( m_aMutex );
620
622 }
623
624
625 // XAccessibleAction
626
628 {
629 // three actions supported
631 }
632
634 {
635 SolarMutexGuard aSolarGuard;
636 ::osl::MutexGuard aGuard( m_aMutex );
637
638 bool bRet = false;
639 checkActionIndex_Impl( nIndex );
641
642 SvxIconChoiceCtrlEntry* pEntry = m_pIconCtrl->GetEntry( m_nIndex );
643 if ( pEntry && !pEntry->IsSelected() )
644 {
645 m_pIconCtrl->SetNoSelection();
646 m_pIconCtrl->SetCursor( pEntry );
647 bRet = true;
648 }
649
650 return bRet;
651 }
652
654 {
655 SolarMutexGuard aSolarGuard;
656 ::osl::MutexGuard aGuard( m_aMutex );
657
658 checkActionIndex_Impl( nIndex );
660
661 return "Select";
662 }
663
665 {
667 checkActionIndex_Impl( nIndex );
668 // ... which key?
669 return xRet;
670 }
671
672}// namespace accessibility
673
674
675/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define ACCESSIBLE_ACTION_COUNT
const LanguageTag & GetUILanguageTag() const
static const AllSettings & GetSettings()
const css::lang::Locale & getLocale(bool bResolveSystem=true) const
bool IsSelected() const
OUString VCL_DLLPUBLIC GetDisplayText() const
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual void SAL_CALL addAccessibleEventListener(const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
virtual sal_Int32 SAL_CALL getSelectionStart() override
virtual css::uno::Reference< css::accessibility::XAccessibleKeyBinding > SAL_CALL getAccessibleActionKeyBinding(sal_Int32 nIndex) override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
AccessibleIconChoiceCtrlEntry(SvtIconChoiceCtrl &_rIconCtrl, sal_Int32 _nPos, const css::uno::Reference< css::accessibility::XAccessible > &_xParent)
Ctor()
virtual sal_Int32 SAL_CALL getAccessibleActionCount() override
virtual sal_Bool SAL_CALL setSelection(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
virtual sal_Bool SAL_CALL setCaretPosition(sal_Int32 nIndex) override
virtual sal_Bool SAL_CALL doAccessibleAction(sal_Int32 nIndex) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL disposing() override
this function is called upon disposing the component
virtual sal_Bool SAL_CALL scrollSubstringTo(sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType) override
virtual css::accessibility::TextSegment SAL_CALL getTextBeforeIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
virtual css::awt::Point SAL_CALL getLocationOnScreen() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::accessibility::TextSegment SAL_CALL getTextAtIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
virtual sal_Int32 SAL_CALL getCharacterCount() override
virtual void SAL_CALL removeAccessibleEventListener(const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
virtual sal_Unicode SAL_CALL getCharacter(sal_Int32 nIndex) override
virtual OUString SAL_CALL getAccessibleDescription() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCharacterAttributes(sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override
css::uno::Reference< css::accessibility::XAccessible > m_xParent
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual css::lang::Locale SAL_CALL getLocale() override
virtual sal_Int32 SAL_CALL getCaretPosition() override
virtual void implGetSelection(sal_Int32 &nStartIndex, sal_Int32 &nEndIndex) override final
virtual css::accessibility::TextSegment SAL_CALL getTextBehindIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
virtual sal_Bool SAL_CALL copyText(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
virtual sal_Int32 SAL_CALL getIndexAtPoint(const css::awt::Point &aPoint) override
virtual css::awt::Rectangle SAL_CALL getCharacterBounds(sal_Int32 nIndex) override
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
virtual css::awt::Rectangle SAL_CALL getBounds() override
VclPtr< SvtIconChoiceCtrl > m_pIconCtrl
The treelistbox control.
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
virtual OUString SAL_CALL getImplementationName() override
virtual OUString SAL_CALL getAccessibleActionDescription(sal_Int32 nIndex) override
virtual OUString SAL_CALL getTextRange(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
virtual sal_Bool SAL_CALL containsPoint(const css::awt::Point &aPoint) override
virtual css::awt::Size SAL_CALL getSize() override
sal_uInt32 m_nClientId
client id in the AccessibleEventNotifier queue
virtual css::awt::Point SAL_CALL getLocation() override
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
static sal_Int32 addEventListener(const TClientId _nClient, const css::uno::Reference< css::accessibility::XAccessibleEventListener > &_rxListener)
static sal_Int32 removeEventListener(const TClientId _nClient, const css::uno::Reference< css::accessibility::XAccessibleEventListener > &_rxListener)
static void revokeClient(const TClientId _nClient)
static void revokeClientNotifyDisposing(const TClientId _nClient, const css::uno::Reference< css::uno::XInterface > &_rxEventSource)
css::accessibility::TextSegment getTextBeforeIndex(sal_Int32 nIndex, sal_Int16 aTextType)
css::accessibility::TextSegment getTextAtIndex(sal_Int32 nIndex, sal_Int16 aTextType)
static bool implIsValidIndex(sal_Int32 nIndex, sal_Int32 nLength)
static bool implIsValidRange(sal_Int32 nStartIndex, sal_Int32 nEndIndex, sal_Int32 nLength)
static sal_Unicode implGetCharacter(std::u16string_view rText, sal_Int32 nIndex)
css::accessibility::TextSegment getTextBehindIndex(sal_Int32 nIndex, sal_Int16 aTextType)
static OUString implGetTextRange(std::u16string_view rText, sal_Int32 nStartIndex, sal_Int32 nEndIndex)
mutable::osl::Mutex m_aMutex
static SVT_DLLPUBLIC void CopyString(const OUString &_rContent, vcl::Window *_pWindow)
bool Contains(const Point &rPOINT) const
bool Overlaps(const tools::Rectangle &rRect) const
constexpr tools::Long Top() const
constexpr Point TopLeft() const
constexpr Size GetSize() const
void Move(tools::Long nHorzMoveDelta, tools::Long nVertMoveDelta)
constexpr tools::Long Left() const
css::awt::Size AWTSize(const Size &rVCLSize)
css::awt::Point AWTPoint(const ::Point &rVCLPoint)
css::awt::Rectangle AWTRectangle(const ::tools::Rectangle &rVCLRect)
inline ::tools::Rectangle VCLRectangle(const css::awt::Rectangle &rAWTRect)
inline ::Point VCLPoint(const css::awt::Point &rAWTPoint)
ULONG m_refCount
std::mutex m_aMutex
sal_Int32 nIndex
double getLength(const B2DPolygon &rCandidate)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
int i
void dispose()
long Long
sal_Int16 nId
tools::Long GetIndexForPoint(const Point &rPoint) const
tools::Rectangle GetCharacterBounds(tools::Long nIndex) const
std::vector< tools::Rectangle > m_aUnicodeBoundRects
unsigned char sal_Bool
sal_uInt16 sal_Unicode
sal_Int32 _nPos