LibreOffice Module sw (master) 1
accpara.hxx
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#ifndef INCLUDED_SW_SOURCE_CORE_ACCESS_ACCPARA_HXX
20#define INCLUDED_SW_SOURCE_CORE_ACCESS_ACCPARA_HXX
21
22#include "acccontext.hxx"
23#include <com/sun/star/accessibility/AccessibleScrollType.hpp>
24#include <com/sun/star/accessibility/XAccessibleEditableText.hpp>
25#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
26#include <com/sun/star/accessibility/XAccessibleHypertext.hpp>
27#include <com/sun/star/accessibility/XAccessibleTextMarkup.hpp>
28#include <com/sun/star/accessibility/XAccessibleMultiLineText.hpp>
29#include <com/sun/star/accessibility/XAccessibleTextSelection.hpp>
30#include <com/sun/star/accessibility/XAccessibleExtendedAttributes.hpp>
31#include <com/sun/star/accessibility/XAccessibleTextAttributes.hpp>
33#include <unordered_map>
34#include <svl/lstner.hxx>
35
36class SwTextFrame;
37class SwPaM;
40class SwRangeRedline;
41class SwXTextPortion;
42class SwParaChangeTrackingInfo; //#i108125#
43
44namespace com::sun::star {
45 namespace i18n { struct Boundary; }
46 namespace accessibility { class XAccessibleHyperlink; }
47 namespace style { struct TabStop; }
48}
49
50typedef std::unordered_map< OUString,
51 css::beans::PropertyValue > tAccParaPropValMap;
52
54 public SfxListener,
56 public css::accessibility::XAccessibleEditableText,
57 public css::accessibility::XAccessibleSelection,
58 public css::accessibility::XAccessibleHypertext,
59 public css::accessibility::XAccessibleTextMarkup,
60 public css::accessibility::XAccessibleMultiLineText,
61 public css::accessibility::XAccessibleTextAttributes,
62 public css::accessibility::XAccessibleTextSelection,
63 public css::accessibility::XAccessibleExtendedAttributes
64{
66
67 OUString m_sDesc; // protected by base classes mutex
68
69 // data for this paragraph's text portions; this contains the
70 // mapping from the core 'model string' to the accessible text
71 // string.
72 // pPortionData may be NULL; it should only be accessed through the
73 // Get/Clear/Has/UpdatePortionData() methods
74 std::unique_ptr<SwAccessiblePortionData> m_pPortionData;
75 std::unique_ptr<SwAccessibleHyperTextData> m_pHyperTextData;
76
77 sal_Int32 m_nOldCaretPos; // The 'old' caret pos. It's only valid as long
78 // as the cursor is inside this object (protected by
79 // mutex)
80
81 bool m_bIsHeading; // protected by base classes mutex
82 sal_Int32 m_nHeadingLevel;
83
84 // implementation for XAccessibleSelection
86
87 std::unique_ptr<SwParaChangeTrackingInfo> mpParaChangeTrackInfo; // #i108125#
88
89 // XAccessibleComponent
91
93 OUString const & GetString();
94
95 static OUString GetDescription();
96
97 // get the current care position
98 sal_Int32 GetCaretPos();
99
100 // determine the current selection. Fill the values with
101 // -1 if there is no selection in the this paragraph
102 // @param pSelection (optional) check only Nth selection in ring
103 bool GetSelectionAtIndex(sal_Int32 * pSelection, sal_Int32& nStart, sal_Int32& nEnd);
104 bool GetSelection(sal_Int32& nStart, sal_Int32& nEnd) {
105 return GetSelectionAtIndex(nullptr, nStart, nEnd);
106 }
107
108 // helper for GetSelection and getCaretPosition
109 // #i27301# - add parameter <_bForSelection>, which indicates,
110 // if the cursor is retrieved for selection or for caret position.
111 SwPaM* GetCursor( const bool _bForSelection );
112
113 // for cut/copy/paste: execute a particular slot at the view shell
114 void ExecuteAtViewShell( sal_uInt16 nSlot );
115
116 // helper method for get/setAttributes
117 // (for the special case of (nEndIndex==-1) a single character will
118 // be selected)
119 rtl::Reference<SwXTextPortion> CreateUnoPortion( sal_Int32 nStart, sal_Int32 nEnd );
120
121 // methods for checking the parameter range:
122
123 // does nPos point to a char?
124 static bool IsValidChar(sal_Int32 nPos, sal_Int32 nLength);
125
126 // does nPos point to a position? (may be behind the last character)
127 static bool IsValidPosition(sal_Int32 nPos, sal_Int32 nLength);
128
129 // is nBegin...nEnd a valid range? (nEnd points past the last character)
130 static bool IsValidRange(sal_Int32 nBegin, sal_Int32 nEnd, sal_Int32 nLength);
131
132 // Ensure ordered range (i.e. nBegin is smaller then nEnd)
133 static void OrderRange(sal_Int32& nBegin, sal_Int32& nEnd)
134 {
135 if( nBegin > nEnd )
136 std::swap( nBegin, nEnd );
137 }
138
140 OUString GetFieldTypeNameAtIndex(sal_Int32 nIndex);
141
142 // #i63870#
144 const css::uno::Sequence< OUString >& aRequestedAttributes,
145 tAccParaPropValMap& rDefAttrSeq,
146 const bool bOnlyCharAttrs = false );
148 const sal_Int32 nIndex,
149 const css::uno::Sequence< OUString >& aRequestedAttributes,
150 tAccParaPropValMap& rRunAttrSeq );
151
153 const css::uno::Sequence< OUString >& aRequestedAttributes,
154 tAccParaPropValMap& rSupplementalAttrSeq );
155
156 void _correctValues(
157 const sal_Int32 nIndex,
158 std::vector< css::beans::PropertyValue >& rValues );
159
160public:
161 bool IsHeading() const;
162
163protected:
164
165 // Set states for getAccessibleStateSet.
166 // This derived class additionally sets MULTILINE(1), MULTISELECTABLE(+),
167 // FOCUSABLE(+) and FOCUSED(+)
168 virtual void GetStates( sal_Int64& rStateSet ) override;
169
170 virtual void InvalidateContent_( bool bVisibleDataFired ) override;
171
172 virtual void InvalidateCursorPos_() override;
173 virtual void InvalidateFocus_() override;
174
175 virtual ~SwAccessibleParagraph() override;
176
177 // handling of data for the text portions
178
179 // force update of new portion data
181 void UpdatePortionData();
182
183 // remove the current portion data
184 void ClearPortionData();
185
186 // get portion data; update if necessary
189 {
190 if( m_pPortionData == nullptr )
192 return *m_pPortionData;
193 }
194
195 //helpers for word boundaries
196
197 bool GetCharBoundary( css::i18n::Boundary& rBound,
198 std::u16string_view text,
199 sal_Int32 nPos );
200 bool GetWordBoundary( css::i18n::Boundary& rBound,
201 const OUString& rText,
202 sal_Int32 nPos );
203 bool GetSentenceBoundary( css::i18n::Boundary& rBound,
204 const OUString& rText,
205 sal_Int32 nPos );
206 bool GetLineBoundary( css::i18n::Boundary& rBound,
207 std::u16string_view aText,
208 sal_Int32 nPos );
209 static bool GetParagraphBoundary( css::i18n::Boundary& rBound,
210 std::u16string_view aText );
211 bool GetAttributeBoundary( css::i18n::Boundary& rBound,
212 sal_Int32 nPos );
213 bool GetGlyphBoundary( css::i18n::Boundary& rBound,
214 const OUString& rText,
215 sal_Int32 nPos );
216
217 // get boundaries of word/sentence/etc. for specified text type
218 // Does all argument checking, and then delegates to helper methods above.
222 bool GetTextBoundary( css::i18n::Boundary& rBound,
223 const OUString& rText,
224 sal_Int32 nPos,
225 sal_Int16 aTextType );
226
227 virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
228
229public:
230
231 SwAccessibleParagraph( std::shared_ptr<SwAccessibleMap> const& pInitMap,
232 const SwTextFrame& rTextFrame );
233
234 inline operator css::accessibility::XAccessibleText *();
235
236 virtual bool HasCursor() override; // required by map to remember that object
237
238 css::uno::Sequence< css::style::TabStop > GetCurrentTabStop( sal_Int32 nIndex );
239 virtual sal_Int16 SAL_CALL getAccessibleRole() override;
240
241 // XAccessibleContext
242
243 // Return this object's description.
244 virtual OUString SAL_CALL
245 getAccessibleDescription() override;
246
247 // Return the parents locale or throw exception if this object has no
248 // parent yet/anymore.
249 virtual css::lang::Locale SAL_CALL
250 getLocale() override;
251
252 // #i27138# - paragraphs are in relation CONTENT_FLOWS_FROM and/or CONTENT_FLOWS_TO
253 virtual css::uno::Reference<
254 css::accessibility::XAccessibleRelationSet> SAL_CALL
255 getAccessibleRelationSet() override;
256
257 // XAccessibleComponent
258
259 virtual void SAL_CALL grabFocus() override;
260 // #i71385#
261 virtual sal_Int32 SAL_CALL getForeground() override;
262 virtual sal_Int32 SAL_CALL getBackground() override;
263
264 // XServiceInfo
265
266 // Returns an identifier for the implementation of this object.
267 virtual OUString SAL_CALL
268 getImplementationName() override;
269
270 // Return whether the specified service is supported by this class.
271 virtual sal_Bool SAL_CALL
272 supportsService (const OUString& sServiceName) override;
273
274 // Returns a list of all supported services. In this case that is just
275 // the AccessibleContext service.
276 virtual css::uno::Sequence< OUString> SAL_CALL
277 getSupportedServiceNames() override;
278
279 // XInterface
280
281 // (XInterface methods need to be implemented to disambiguate
282 // between those inherited through SwAccessibleContext and
283 // XAccessibleEditableText).
284
285 virtual css::uno::Any SAL_CALL queryInterface(
286 const css::uno::Type& aType ) override;
287
288 virtual void SAL_CALL acquire( ) noexcept override
289 { SwAccessibleContext::acquire(); };
290
291 virtual void SAL_CALL release( ) noexcept override
292 { SwAccessibleContext::release(); };
293
294 // XTypeProvider
295 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
296 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
297
298 // XAccessibleText
299 virtual sal_Int32 SAL_CALL getCaretPosition() override;
300 virtual sal_Bool SAL_CALL setCaretPosition( sal_Int32 nIndex ) override;
301 virtual sal_Unicode SAL_CALL getCharacter( sal_Int32 nIndex ) override;
302 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCharacterAttributes( sal_Int32 nIndex, const css::uno::Sequence< OUString >& aRequestedAttributes ) override;
303 virtual css::awt::Rectangle SAL_CALL getCharacterBounds( sal_Int32 nIndex ) override;
304 virtual sal_Int32 SAL_CALL getCharacterCount( ) override;
305 virtual sal_Int32 SAL_CALL getIndexAtPoint( const css::awt::Point& aPoint ) override;
306 virtual OUString SAL_CALL getSelectedText( ) override;
307 virtual sal_Int32 SAL_CALL getSelectionStart() override;
308 virtual sal_Int32 SAL_CALL getSelectionEnd() override;
309 virtual sal_Bool SAL_CALL setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) override;
310 virtual OUString SAL_CALL getText( ) override;
311 virtual OUString SAL_CALL getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) override;
312 virtual css::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) override;
313 virtual css::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) override;
314 virtual css::accessibility::TextSegment SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) override;
315 virtual sal_Bool SAL_CALL copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) override;
316 virtual sal_Bool SAL_CALL scrollSubstringTo( sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType) override;
317
318 // XAccessibleEditableText
319 virtual sal_Bool SAL_CALL cutText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) override;
320 virtual sal_Bool SAL_CALL pasteText( sal_Int32 nIndex ) override;
321 virtual sal_Bool SAL_CALL deleteText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) override;
322 virtual sal_Bool SAL_CALL insertText( const OUString& sText, sal_Int32 nIndex ) override;
323 virtual sal_Bool SAL_CALL replaceText( sal_Int32 nStartIndex, sal_Int32 nEndIndex, const OUString& sReplacement ) override;
324 virtual sal_Bool SAL_CALL setAttributes( sal_Int32 nStartIndex, sal_Int32 nEndIndex, const css::uno::Sequence< css::beans::PropertyValue >& aAttributeSet ) override;
325 virtual sal_Bool SAL_CALL setText( const OUString& sText ) override;
326
327 // XAccessibleSelection
328 virtual void SAL_CALL selectAccessibleChild(
329 sal_Int64 nChildIndex ) override;
330
331 virtual sal_Bool SAL_CALL isAccessibleChildSelected(
332 sal_Int64 nChildIndex ) override;
333 virtual void SAL_CALL clearAccessibleSelection( ) override;
334 virtual void SAL_CALL selectAllAccessibleChildren( ) override;
335 virtual sal_Int64 SAL_CALL getSelectedAccessibleChildCount( ) override;
336 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild(
337 sal_Int64 nSelectedChildIndex ) override;
338
339 // index has to be treated as global child index.
340 virtual void SAL_CALL deselectAccessibleChild(
341 sal_Int64 nChildIndex ) override;
342
343 // XAccessibleHypertext
344 virtual sal_Int32 SAL_CALL getHyperLinkCount() override;
345 virtual css::uno::Reference<
346 css::accessibility::XAccessibleHyperlink >
347 SAL_CALL getHyperLink( sal_Int32 nLinkIndex ) override;
348 virtual sal_Int32 SAL_CALL getHyperLinkIndex( sal_Int32 nCharIndex ) override;
349
350 // #i71360#
351 // XAccessibleTextMarkup
352 virtual sal_Int32 SAL_CALL getTextMarkupCount( sal_Int32 nTextMarkupType ) override;
353
354 virtual css::accessibility::TextSegment SAL_CALL
355 getTextMarkup( sal_Int32 nTextMarkupIndex,
356 sal_Int32 nTextMarkupType ) override;
357
358 virtual css::uno::Sequence< css::accessibility::TextSegment > SAL_CALL
359 getTextMarkupAtIndex( sal_Int32 nCharIndex,
360 sal_Int32 nTextMarkupType ) override;
361
362 // XAccessibleTextSelection
363 virtual sal_Bool SAL_CALL scrollToPosition( const css::awt::Point& aPoint, sal_Bool isLeftTop ) override;
364 virtual sal_Int32 SAL_CALL getSelectedPortionCount( ) override;
365 virtual sal_Int32 SAL_CALL getSeletedPositionStart( sal_Int32 nSelectedPortionIndex ) override;
366 virtual sal_Int32 SAL_CALL getSeletedPositionEnd( sal_Int32 nSelectedPortionIndex ) override;
367 virtual sal_Bool SAL_CALL removeSelection( sal_Int32 selectionIndex ) override;
368 virtual sal_Int32 SAL_CALL addSelection( sal_Int32 selectionIndex, sal_Int32 startOffset, sal_Int32 endOffset) override;
369 // XAccessibleExtendedAttributes
370 virtual css::uno::Any SAL_CALL getExtendedAttributes() override ;
371 sal_Int32 GetRealHeadingLevel();
372
373 // #i89175#
374 // XAccessibleMultiLineText
375 virtual sal_Int32 SAL_CALL getLineNumberAtIndex( sal_Int32 nIndex ) override;
376
377 virtual css::accessibility::TextSegment SAL_CALL
378 getTextAtLineNumber( sal_Int32 nLineNo ) override;
379
380 virtual css::accessibility::TextSegment SAL_CALL
381 getTextAtLineWithCaret() override;
382
383 virtual sal_Int32 SAL_CALL getNumberOfLineWithCaret() override;
384
385 // #i63870#
386 // XAccessibleTextAttributes
387 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getDefaultAttributes( const css::uno::Sequence< OUString >& aRequestedAttributes ) override;
388 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRunAttributes( sal_Int32 nIndex, const css::uno::Sequence< OUString >& aRequestedAttributes ) override;
389};
390
391inline SwAccessibleParagraph::operator css::accessibility::XAccessibleText *()
392{
393 return static_cast< css::accessibility::XAccessibleEditableText * >( this );
394}
395
396#endif
397
398/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr OUStringLiteral sServiceName
Definition: accdoc.cxx:54
std::unordered_map< OUString, css::beans::PropertyValue > tAccParaPropValMap
Definition: accpara.hxx:51
virtual sal_Int32 SAL_CALL getSelectedPortionCount() override
Definition: accpara.cxx:2963
bool GetWordBoundary(css::i18n::Boundary &rBound, const OUString &rText, sal_Int32 nPos)
Definition: accpara.cxx:554
std::unique_ptr< SwParaChangeTrackingInfo > mpParaChangeTrackInfo
Definition: accpara.hxx:87
virtual sal_Int32 SAL_CALL getForeground() override
Definition: accpara.cxx:833
virtual sal_Bool SAL_CALL setText(const OUString &sText) override
Definition: accpara.cxx:2697
virtual sal_Bool SAL_CALL insertText(const OUString &sText, sal_Int32 nIndex) override
Definition: accpara.cxx:2589
bool IsHeading() const
Definition: accpara.cxx:208
static bool IsValidRange(sal_Int32 nBegin, sal_Int32 nEnd, sal_Int32 nLength)
Definition: accpara.cxx:515
virtual css::accessibility::TextSegment SAL_CALL getTextBeforeIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
Definition: accpara.cxx:2305
std::unique_ptr< SwAccessiblePortionData > m_pPortionData
Definition: accpara.hxx:74
bool GetCharBoundary(css::i18n::Boundary &rBound, std::u16string_view text, sal_Int32 nPos)
Definition: accpara.cxx:537
sal_Int32 m_nHeadingLevel
Definition: accpara.hxx:82
virtual css::uno::Any SAL_CALL getExtendedAttributes() override
Definition: accpara.cxx:3524
static void OrderRange(sal_Int32 &nBegin, sal_Int32 &nEnd)
Definition: accpara.hxx:133
virtual void GetStates(sal_Int64 &rStateSet) override
Definition: accpara.cxx:215
static OUString GetDescription()
Definition: accpara.cxx:122
virtual void InvalidateContent_(bool bVisibleDataFired) override
Definition: accpara.cxx:246
virtual sal_Bool SAL_CALL scrollToPosition(const css::awt::Point &aPoint, sal_Bool isLeftTop) override
Definition: accpara.cxx:2958
static bool GetParagraphBoundary(css::i18n::Boundary &rBound, std::u16string_view aText)
Definition: accpara.cxx:603
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild(sal_Int64 nSelectedChildIndex) override
Definition: accpara.cxx:2739
OUString GetFieldTypeNameAtIndex(sal_Int32 nIndex)
Definition: accpara.cxx:1162
virtual sal_Bool SAL_CALL cutText(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
Definition: accpara.cxx:2554
virtual sal_Int32 SAL_CALL getSelectionStart() override
Definition: accpara.cxx:2188
rtl::Reference< SwXTextPortion > CreateUnoPortion(sal_Int32 nStart, sal_Int32 nEnd)
Definition: accpara.cxx:475
virtual void InvalidateCursorPos_() override
Definition: accpara.cxx:328
virtual sal_Bool SAL_CALL setCaretPosition(sal_Int32 nIndex) override
Definition: accpara.cxx:1031
virtual sal_Int32 SAL_CALL addSelection(sal_Int32 selectionIndex, sal_Int32 startOffset, sal_Int32 endOffset) override
Definition: accpara.cxx:3093
css::uno::Sequence< css::style::TabStop > GetCurrentTabStop(sal_Int32 nIndex)
Definition: accpara.cxx:1078
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
Definition: accpara.cxx:732
virtual sal_Bool SAL_CALL replaceText(sal_Int32 nStartIndex, sal_Int32 nEndIndex, const OUString &sReplacement) override
Definition: accpara.cxx:2594
virtual sal_Bool SAL_CALL isAccessibleChildSelected(sal_Int64 nChildIndex) override
Definition: accpara.cxx:2712
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCharacterAttributes(sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override
Definition: accpara.cxx:1331
virtual sal_Int32 SAL_CALL getBackground() override
Definition: accpara.cxx:854
bool GetSentenceBoundary(css::i18n::Boundary &rBound, const OUString &rText, sal_Int32 nPos)
Definition: accpara.cxx:578
virtual sal_Int32 SAL_CALL getLineNumberAtIndex(sal_Int32 nIndex) override
Definition: accpara.cxx:3220
std::unique_ptr< SwAccessibleHyperTextData > m_pHyperTextData
Definition: accpara.hxx:75
virtual sal_Bool SAL_CALL pasteText(sal_Int32 nIndex) override
Definition: accpara.cxx:2569
void ExecuteAtViewShell(sal_uInt16 nSlot)
Definition: accpara.cxx:454
virtual OUString SAL_CALL getText() override
Definition: accpara.cxx:2244
SwAccessibleSelectionHelper m_aSelectionHelper
Definition: accpara.hxx:85
virtual css::accessibility::TextSegment SAL_CALL getTextBehindIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
Definition: accpara.cxx:2378
static bool IsValidPosition(sal_Int32 nPos, sal_Int32 nLength)
Definition: accpara.cxx:509
virtual bool HasCursor() override
Definition: accpara.cxx:424
virtual sal_Bool SAL_CALL scrollSubstringTo(sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType) override
Definition: accpara.cxx:2487
bool GetGlyphBoundary(css::i18n::Boundary &rBound, const OUString &rText, sal_Int32 nPos)
Definition: accpara.cxx:620
virtual sal_Bool SAL_CALL setAttributes(sal_Int32 nStartIndex, sal_Int32 nEndIndex, const css::uno::Sequence< css::beans::PropertyValue > &aAttributeSet) override
Definition: accpara.cxx:2640
SwAccessiblePortionData & GetPortionData()
Definition: accpara.hxx:188
virtual OUString SAL_CALL getAccessibleDescription() override
Definition: accpara.cxx:703
sal_Int32 m_nOldCaretPos
Definition: accpara.hxx:77
sal_Int32 GetRealHeadingLevel()
Definition: accpara.cxx:3503
virtual css::lang::Locale SAL_CALL getLocale() override
Return the parents locale or throw exception if this object has no parent yet/anymore.
Definition: accpara.cxx:716
virtual css::accessibility::TextSegment SAL_CALL getTextAtLineNumber(sal_Int32 nLineNo) override
Definition: accpara.cxx:3236
virtual void SAL_CALL clearAccessibleSelection() override
Definition: accpara.cxx:2720
SwPaM * GetCursor(const bool _bForSelection)
Definition: accpara.cxx:185
virtual sal_Int64 SAL_CALL getSelectedAccessibleChildCount() override
Definition: accpara.cxx:2732
virtual OUString SAL_CALL getTextRange(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
Definition: accpara.cxx:2253
SwAccessibleParagraph(std::shared_ptr< SwAccessibleMap > const &pInitMap, const SwTextFrame &rTextFrame)
Definition: accpara.cxx:395
virtual ~SwAccessibleParagraph() override
Definition: accpara.cxx:414
static bool IsValidChar(sal_Int32 nPos, sal_Int32 nLength)
Definition: accpara.cxx:503
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getDefaultAttributes(const css::uno::Sequence< OUString > &aRequestedAttributes) override
Definition: accpara.cxx:1590
virtual css::awt::Rectangle SAL_CALL getCharacterBounds(sal_Int32 nIndex) override
Definition: accpara.cxx:2033
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: accpara.cxx:879
virtual OUString SAL_CALL getImplementationName() override
Definition: accpara.cxx:868
virtual void SAL_CALL deselectAccessibleChild(sal_Int64 nChildIndex) override
Definition: accpara.cxx:2748
virtual sal_Int32 SAL_CALL getHyperLinkCount() override
Definition: accpara.cxx:2818
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: accpara.cxx:3333
bool GetAttributeBoundary(css::i18n::Boundary &rBound, sal_Int32 nPos)
Definition: accpara.cxx:612
virtual sal_Int16 SAL_CALL getAccessibleRole() override
Definition: accpara.cxx:3487
OUString const & GetString()
get the (accessible) text string (requires frame; check before)
Definition: accpara.cxx:117
virtual sal_Bool SAL_CALL setSelection(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
Definition: accpara.cxx:2210
virtual css::uno::Sequence< css::accessibility::TextSegment > SAL_CALL getTextMarkupAtIndex(sal_Int32 nCharIndex, sal_Int32 nTextMarkupType) override
Definition: accpara.cxx:3185
virtual css::uno::Reference< css::accessibility::XAccessibleHyperlink > SAL_CALL getHyperLink(sal_Int32 nLinkIndex) override
Definition: accpara.cxx:2836
virtual sal_Int32 SAL_CALL getSeletedPositionEnd(sal_Int32 nSelectedPortionIndex) override
Definition: accpara.cxx:3019
virtual sal_Bool SAL_CALL copyText(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
Definition: accpara.cxx:2475
bool GetLineBoundary(css::i18n::Boundary &rBound, std::u16string_view aText, sal_Int32 nPos)
Definition: accpara.cxx:591
virtual sal_Int32 SAL_CALL getSeletedPositionStart(sal_Int32 nSelectedPortionIndex) override
Definition: accpara.cxx:3008
sal_Int32 GetCaretPos()
Definition: accpara.cxx:127
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
Definition: accpara.cxx:927
virtual sal_Int32 SAL_CALL getNumberOfLineWithCaret() override
Definition: accpara.cxx:3275
const SwRangeRedline * GetRedlineAtIndex()
Definition: accpara.cxx:522
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Definition: accpara.cxx:1003
virtual sal_Int32 SAL_CALL getTextMarkupCount(sal_Int32 nTextMarkupType) override
Definition: accpara.cxx:2931
virtual void SAL_CALL grabFocus() override
Definition: accpara.cxx:767
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRunAttributes(sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override
Definition: accpara.cxx:1725
void _getRunAttributesImpl(const sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes, tAccParaPropValMap &rRunAttrSeq)
Definition: accpara.cxx:1628
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: accpara.cxx:989
virtual sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
Return whether the specified service is supported by this class.
Definition: accpara.cxx:873
virtual void SAL_CALL selectAccessibleChild(sal_Int64 nChildIndex) override
Definition: accpara.cxx:2704
void _getDefaultAttributesImpl(const css::uno::Sequence< OUString > &aRequestedAttributes, tAccParaPropValMap &rDefAttrSeq, const bool bOnlyCharAttrs=false)
Definition: accpara.cxx:1439
virtual css::accessibility::TextSegment SAL_CALL getTextMarkup(sal_Int32 nTextMarkupIndex, sal_Int32 nTextMarkupType) override
Definition: accpara.cxx:3157
virtual sal_Bool SAL_CALL deleteText(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
Definition: accpara.cxx:2584
virtual sal_Int32 SAL_CALL getIndexAtPoint(const css::awt::Point &aPoint) override
Definition: accpara.cxx:2099
virtual sal_Unicode SAL_CALL getCharacter(sal_Int32 nIndex) override
Definition: accpara.cxx:1063
virtual css::accessibility::TextSegment SAL_CALL getTextAtLineWithCaret() override
Definition: accpara.cxx:3260
void _correctValues(const sal_Int32 nIndex, std::vector< css::beans::PropertyValue > &rValues)
Definition: accpara.cxx:1805
virtual OUString SAL_CALL getSelectedText() override
Definition: accpara.cxx:2175
virtual void SAL_CALL selectAllAccessibleChildren() override
Definition: accpara.cxx:2725
virtual void SAL_CALL acquire() noexcept override
Definition: accpara.hxx:288
virtual void InvalidateFocus_() override
Definition: accpara.cxx:378
virtual sal_Int32 SAL_CALL getCaretPosition() override
Definition: accpara.cxx:1010
virtual css::accessibility::TextSegment SAL_CALL getTextAtIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
Definition: accpara.cxx:2269
bool GetTextBoundary(css::i18n::Boundary &rBound, const OUString &rText, sal_Int32 nPos, sal_Int16 aTextType)
Definition: accpara.cxx:648
virtual void SAL_CALL release() noexcept override
Definition: accpara.hxx:291
virtual sal_Bool SAL_CALL removeSelection(sal_Int32 selectionIndex) override
Definition: accpara.cxx:3030
bool GetSelectionAtIndex(sal_Int32 *pSelection, sal_Int32 &nStart, sal_Int32 &nEnd)
Definition: accpara.cxx:3338
virtual sal_Int32 SAL_CALL getSelectionEnd() override
Definition: accpara.cxx:2199
virtual sal_Int32 SAL_CALL getHyperLinkIndex(sal_Int32 nCharIndex) override
Definition: accpara.cxx:2891
bool GetSelection(sal_Int32 &nStart, sal_Int32 &nEnd)
Definition: accpara.hxx:104
void _getSupplementalAttributesImpl(const css::uno::Sequence< OUString > &aRequestedAttributes, tAccParaPropValMap &rSupplementalAttrSeq)
Definition: accpara.cxx:1747
virtual sal_Int32 SAL_CALL getCharacterCount() override
Definition: accpara.cxx:2090
collect text portion data from the layout through SwPortionHandler interface
Definition: accportions.hxx:40
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:188
Represents the visualization of a paragraph.
Definition: txtfrm.hxx:168
unsigned char sal_Bool
sal_uInt16 sal_Unicode