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/XAccessibleEditableText.hpp>
24 #include <com/sun/star/accessibility/XAccessibleSelection.hpp>
25 #include <com/sun/star/accessibility/XAccessibleHypertext.hpp>
26 #include <com/sun/star/accessibility/XAccessibleTextMarkup.hpp>
27 #include <com/sun/star/accessibility/XAccessibleMultiLineText.hpp>
28 #include <com/sun/star/accessibility/XAccessibleTextSelection.hpp>
29 #include <com/sun/star/accessibility/XAccessibleExtendedAttributes.hpp>
30 #include <com/sun/star/accessibility/XAccessibleTextAttributes.hpp>
31 #include "accselectionhelper.hxx"
32 #include <unordered_map>
33 #include <svl/lstner.hxx>
34 
35 class SwTextFrame;
36 class SwPaM;
39 class SwRangeRedline;
40 class SwXTextPortion;
41 class SwParaChangeTrackingInfo; //#i108125#
42 
43 namespace com { namespace sun { namespace star {
44  namespace i18n { struct Boundary; }
45  namespace accessibility { class XAccessibleHyperlink; }
46  namespace style { struct TabStop; }
47 } } }
48 
49 typedef std::unordered_map< OUString,
50  css::beans::PropertyValue > tAccParaPropValMap;
51 
53  public SfxListener,
54  public SwAccessibleContext,
55  public css::accessibility::XAccessibleEditableText,
56  public css::accessibility::XAccessibleSelection,
57  public css::accessibility::XAccessibleHypertext,
58  public css::accessibility::XAccessibleTextMarkup,
59  public css::accessibility::XAccessibleMultiLineText,
60  public css::accessibility::XAccessibleTextAttributes,
61  public css::accessibility::XAccessibleTextSelection,
62  public css::accessibility::XAccessibleExtendedAttributes
63 {
64  friend class SwAccessibleHyperlink;
65 
66  OUString m_sDesc; // protected by base classes mutex
67 
68  // data for this paragraph's text portions; this contains the
69  // mapping from the core 'model string' to the accessible text
70  // string.
71  // pPortionData may be NULL; it should only be accessed through the
72  // Get/Clear/Has/UpdatePortionData() methods
73  std::unique_ptr<SwAccessiblePortionData> m_pPortionData;
74  std::unique_ptr<SwAccessibleHyperTextData> m_pHyperTextData;
75 
76  sal_Int32 m_nOldCaretPos; // The 'old' caret pos. It's only valid as long
77  // as the cursor is inside this object (protected by
78  // mutex)
79 
80  bool m_bIsHeading; // protected by base classes mutex
81  sal_Int32 m_nHeadingLevel;
82 
83  // implementation for XAccessibleSelection
85 
86  std::unique_ptr<SwParaChangeTrackingInfo> mpParaChangeTrackInfo; // #i108125#
87 
88  // XAccessibleComponent
90 
92  OUString const & GetString();
93 
94  static OUString GetDescription();
95 
96  // get the current care position
97  sal_Int32 GetCaretPos();
98 
99  // determine the current selection. Fill the values with
100  // -1 if there is no selection in the this paragraph
101  // @param pSelection (optional) check only Nth selection in ring
102  bool GetSelectionAtIndex(sal_Int32 * pSelection, sal_Int32& nStart, sal_Int32& nEnd);
103  bool GetSelection(sal_Int32& nStart, sal_Int32& nEnd) {
104  return GetSelectionAtIndex(nullptr, nStart, nEnd);
105  }
106 
107  // helper for GetSelection and getCaretPosition
108  // #i27301# - add parameter <_bForSelection>, which indicates,
109  // if the cursor is retrieved for selection or for caret position.
110  SwPaM* GetCursor( const bool _bForSelection );
111 
112  // for cut/copy/paste: execute a particular slot at the view shell
113  void ExecuteAtViewShell( sal_uInt16 nSlot );
114 
115  // helper method for get/setAttributes
116  // (for the special case of (nEndIndex==-1) a single character will
117  // be selected)
118  SwXTextPortion* CreateUnoPortion( sal_Int32 nStart, sal_Int32 nEnd );
119 
120  // methods for checking the parameter range:
121 
122  // does nPos point to a char?
123  static bool IsValidChar(sal_Int32 nPos, sal_Int32 nLength);
124 
125  // does nPos point to a position? (may be behind the last character)
126  static bool IsValidPosition(sal_Int32 nPos, sal_Int32 nLength);
127 
128  // is nBegin...nEnd a valid range? (nEnd points past the last character)
129  static bool IsValidRange(sal_Int32 nBegin, sal_Int32 nEnd, sal_Int32 nLength);
130 
131  // Ensure ordered range (i.e. nBegin is smaller then nEnd)
132  static void OrderRange(sal_Int32& nBegin, sal_Int32& nEnd)
133  {
134  if( nBegin > nEnd )
135  {
136  sal_Int32 nTmp = nBegin; nBegin = nEnd; nEnd = nTmp;
137  }
138  }
139 
141  OUString GetFieldTypeNameAtIndex(sal_Int32 nIndex);
142 
143  // #i63870#
145  const css::uno::Sequence< OUString >& aRequestedAttributes,
146  tAccParaPropValMap& rDefAttrSeq,
147  const bool bOnlyCharAttrs = false );
149  const sal_Int32 nIndex,
150  const css::uno::Sequence< OUString >& aRequestedAttributes,
151  tAccParaPropValMap& rRunAttrSeq );
152 
154  const css::uno::Sequence< OUString >& aRequestedAttributes,
155  tAccParaPropValMap& rSupplementalAttrSeq );
156 
157  void _correctValues(
158  const sal_Int32 nIndex,
159  std::vector< css::beans::PropertyValue >& rValues );
160 
161 public:
162  bool IsHeading() const;
163 
164 protected:
165 
166  // Set states for getAccessibleStateSet.
167  // This derived class additionally sets MULTILINE(1), MULTISELECTABLE(+),
168  // FOCUSABLE(+) and FOCUSED(+)
169  virtual void GetStates( ::utl::AccessibleStateSetHelper& rStateSet ) override;
170 
171  virtual void InvalidateContent_( bool bVisibleDataFired ) override;
172 
173  virtual void InvalidateCursorPos_() override;
174  virtual void InvalidateFocus_() override;
175 
176  virtual ~SwAccessibleParagraph() override;
177 
178  // handling of data for the text portions
179 
180  // force update of new portion data
182  void UpdatePortionData();
183 
184  // remove the current portion data
185  void ClearPortionData();
186 
187  // get portion data; update if necessary
190  {
191  if( m_pPortionData == nullptr )
193  return *m_pPortionData;
194  }
195 
196  //helpers for word boundaries
197 
198  bool GetCharBoundary( css::i18n::Boundary& rBound,
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  const OUString& rText,
208  sal_Int32 nPos );
209  static bool GetParagraphBoundary( css::i18n::Boundary& rBound,
210  const OUString& rText );
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 
229 public:
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( ) throw () override
289  { SwAccessibleContext::acquire(); };
290 
291  virtual void SAL_CALL release( ) throw () 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 
317  // XAccessibleEditableText
318  virtual sal_Bool SAL_CALL cutText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) override;
319  virtual sal_Bool SAL_CALL pasteText( sal_Int32 nIndex ) override;
320  virtual sal_Bool SAL_CALL deleteText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) override;
321  virtual sal_Bool SAL_CALL insertText( const OUString& sText, sal_Int32 nIndex ) override;
322  virtual sal_Bool SAL_CALL replaceText( sal_Int32 nStartIndex, sal_Int32 nEndIndex, const OUString& sReplacement ) override;
323  virtual sal_Bool SAL_CALL setAttributes( sal_Int32 nStartIndex, sal_Int32 nEndIndex, const css::uno::Sequence< css::beans::PropertyValue >& aAttributeSet ) override;
324  virtual sal_Bool SAL_CALL setText( const OUString& sText ) override;
325 
326  // XAccessibleSelection
327  virtual void SAL_CALL selectAccessibleChild(
328  sal_Int32 nChildIndex ) override;
329 
330  virtual sal_Bool SAL_CALL isAccessibleChildSelected(
331  sal_Int32 nChildIndex ) override;
332  virtual void SAL_CALL clearAccessibleSelection( ) override;
333  virtual void SAL_CALL selectAllAccessibleChildren( ) override;
334  virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount( ) override;
335  virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild(
336  sal_Int32 nSelectedChildIndex ) override;
337 
338  // index has to be treated as global child index.
339  virtual void SAL_CALL deselectAccessibleChild(
340  sal_Int32 nChildIndex ) override;
341 
342  // XAccessibleHypertext
343  virtual sal_Int32 SAL_CALL getHyperLinkCount() override;
344  virtual css::uno::Reference<
345  css::accessibility::XAccessibleHyperlink >
346  SAL_CALL getHyperLink( sal_Int32 nLinkIndex ) override;
347  virtual sal_Int32 SAL_CALL getHyperLinkIndex( sal_Int32 nCharIndex ) override;
348 
349  // #i71360#
350  // XAccessibleTextMarkup
351  virtual sal_Int32 SAL_CALL getTextMarkupCount( sal_Int32 nTextMarkupType ) override;
352 
353  virtual css::accessibility::TextSegment SAL_CALL
354  getTextMarkup( sal_Int32 nTextMarkupIndex,
355  sal_Int32 nTextMarkupType ) override;
356 
357  virtual css::uno::Sequence< css::accessibility::TextSegment > SAL_CALL
358  getTextMarkupAtIndex( sal_Int32 nCharIndex,
359  sal_Int32 nTextMarkupType ) override;
360 
361  // XAccessibleTextSelection
362  virtual sal_Bool SAL_CALL scrollToPosition( const css::awt::Point& aPoint, sal_Bool isLeftTop ) override;
363  virtual sal_Int32 SAL_CALL getSelectedPortionCount( ) override;
364  virtual sal_Int32 SAL_CALL getSeletedPositionStart( sal_Int32 nSelectedPortionIndex ) override;
365  virtual sal_Int32 SAL_CALL getSeletedPositionEnd( sal_Int32 nSelectedPortionIndex ) override;
366  virtual sal_Bool SAL_CALL removeSelection( sal_Int32 selectionIndex ) override;
367  virtual sal_Int32 SAL_CALL addSelection( sal_Int32 selectionIndex, sal_Int32 startOffset, sal_Int32 endOffset) override;
368  // XAccessibleExtendedAttributes
369  virtual css::uno::Any SAL_CALL getExtendedAttributes() override ;
370  sal_Int32 GetRealHeadingLevel();
371 
372  // #i89175#
373  // XAccessibleMultiLineText
374  virtual sal_Int32 SAL_CALL getLineNumberAtIndex( sal_Int32 nIndex ) override;
375 
376  virtual css::accessibility::TextSegment SAL_CALL
377  getTextAtLineNumber( sal_Int32 nLineNo ) override;
378 
379  virtual css::accessibility::TextSegment SAL_CALL
380  getTextAtLineWithCaret() override;
381 
382  virtual sal_Int32 SAL_CALL getNumberOfLineWithCaret() override;
383 
384  // #i63870#
385  // XAccessibleTextAttributes
386  virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getDefaultAttributes( const css::uno::Sequence< OUString >& aRequestedAttributes ) override;
387  virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRunAttributes( sal_Int32 nIndex, const css::uno::Sequence< OUString >& aRequestedAttributes ) override;
388 };
389 
390 inline SwAccessibleParagraph::operator css::accessibility::XAccessibleText *()
391 {
392  return static_cast< css::accessibility::XAccessibleEditableText * >( this );
393 }
394 
395 #endif
396 
397 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_Int32 SAL_CALL getSeletedPositionStart(sal_Int32 nSelectedPortionIndex) override
Definition: accpara.cxx:2962
void _getDefaultAttributesImpl(const css::uno::Sequence< OUString > &aRequestedAttributes, tAccParaPropValMap &rDefAttrSeq, const bool bOnlyCharAttrs=false)
Definition: accpara.cxx:1456
bool GetWordBoundary(css::i18n::Boundary &rBound, const OUString &rText, sal_Int32 nPos)
Definition: accpara.cxx:566
Represents the visualization of a paragraph.
Definition: txtfrm.hxx:149
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: accpara.cxx:891
css::uno::Sequence< css::style::TabStop > GetCurrentTabStop(sal_Int32 nIndex)
Definition: accpara.cxx:1094
virtual sal_Bool SAL_CALL setSelection(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
Definition: accpara.cxx:2235
bool GetAttributeBoundary(css::i18n::Boundary &rBound, sal_Int32 nPos)
Definition: accpara.cxx:624
static bool GetParagraphBoundary(css::i18n::Boundary &rBound, const OUString &rText)
Definition: accpara.cxx:615
static OUString GetDescription()
Definition: accpara.cxx:129
void ExecuteAtViewShell(sal_uInt16 nSlot)
Definition: accpara.cxx:464
virtual sal_Int32 SAL_CALL getSeletedPositionEnd(sal_Int32 nSelectedPortionIndex) override
Definition: accpara.cxx:2973
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild(sal_Int32 nSelectedChildIndex) override
Definition: accpara.cxx:2697
virtual void SAL_CALL selectAccessibleChild(sal_Int32 nChildIndex) override
Definition: accpara.cxx:2662
virtual void GetStates(::utl::AccessibleStateSetHelper &rStateSet) override
Definition: accpara.cxx:223
OUString const & GetString()
get the (accessible) text string (requires frame; check before)
Definition: accpara.cxx:124
virtual sal_Int32 SAL_CALL getHyperLinkCount() override
Definition: accpara.cxx:2772
bool IsHeading() const
Definition: accpara.cxx:216
virtual sal_Int32 SAL_CALL getBackground() override
Definition: accpara.cxx:866
virtual sal_Bool SAL_CALL setAttributes(sal_Int32 nStartIndex, sal_Int32 nEndIndex, const css::uno::Sequence< css::beans::PropertyValue > &aAttributeSet) override
Definition: accpara.cxx:2598
void _getSupplementalAttributesImpl(const css::uno::Sequence< OUString > &aRequestedAttributes, tAccParaPropValMap &rSupplementalAttrSeq)
Definition: accpara.cxx:1768
virtual css::awt::Rectangle SAL_CALL getCharacterBounds(sal_Int32 nIndex) override
Definition: accpara.cxx:2057
virtual sal_Int32 SAL_CALL getSelectionEnd() override
Definition: accpara.cxx:2224
virtual sal_Unicode SAL_CALL getCharacter(sal_Int32 nIndex) override
Definition: accpara.cxx:1079
virtual sal_Bool SAL_CALL scrollToPosition(const css::awt::Point &aPoint, sal_Bool isLeftTop) override
Definition: accpara.cxx:2912
virtual sal_Bool SAL_CALL setText(const OUString &sText) override
Definition: accpara.cxx:2655
virtual sal_Bool SAL_CALL isAccessibleChildSelected(sal_Int32 nChildIndex) override
Definition: accpara.cxx:2670
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:728
bool GetSelectionAtIndex(sal_Int32 *pSelection, sal_Int32 &nStart, sal_Int32 &nEnd)
Definition: accpara.cxx:3292
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRunAttributes(sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override
Definition: accpara.cxx:1746
virtual css::accessibility::TextSegment SAL_CALL getTextBehindIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
Definition: accpara.cxx:2401
virtual sal_Bool SAL_CALL insertText(const OUString &sText, sal_Int32 nIndex) override
Definition: accpara.cxx:2547
virtual sal_Int32 SAL_CALL getHyperLinkIndex(sal_Int32 nCharIndex) override
Definition: accpara.cxx:2845
virtual sal_Int32 SAL_CALL getSelectedPortionCount() override
Definition: accpara.cxx:2917
virtual sal_Bool SAL_CALL pasteText(sal_Int32 nIndex) override
Definition: accpara.cxx:2527
virtual void InvalidateFocus_() override
Definition: accpara.cxx:387
SwAccessiblePortionData & GetPortionData()
Definition: accpara.hxx:189
static bool IsValidRange(sal_Int32 nBegin, sal_Int32 nEnd, sal_Int32 nLength)
Definition: accpara.cxx:532
virtual sal_Int32 SAL_CALL getNumberOfLineWithCaret() override
Definition: accpara.cxx:3229
sal_uInt16 sal_Unicode
SwAccessibleSelectionHelper m_aSelectionHelper
Definition: accpara.hxx:84
SwXTextPortion * CreateUnoPortion(sal_Int32 nStart, sal_Int32 nEnd)
Definition: accpara.cxx:489
std::unique_ptr< SwAccessiblePortionData > m_pPortionData
Definition: accpara.hxx:73
static bool IsValidChar(sal_Int32 nPos, sal_Int32 nLength)
Definition: accpara.cxx:520
virtual OUString SAL_CALL getText() override
Definition: accpara.cxx:2269
virtual sal_Int32 SAL_CALL getForeground() override
Definition: accpara.cxx:845
SwAccessibleParagraph(std::shared_ptr< SwAccessibleMap > const &pInitMap, const SwTextFrame &rTextFrame)
Definition: accpara.cxx:404
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
Definition: accpara.cxx:744
virtual css::accessibility::TextSegment SAL_CALL getTextMarkup(sal_Int32 nTextMarkupIndex, sal_Int32 nTextMarkupType) override
Definition: accpara.cxx:3111
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCharacterAttributes(sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override
Definition: accpara.cxx:1348
virtual sal_Int32 SAL_CALL getTextMarkupCount(sal_Int32 nTextMarkupType) override
Definition: accpara.cxx:2885
sal_Int32 m_nOldCaretPos
Definition: accpara.hxx:76
virtual OUString SAL_CALL getImplementationName() override
Definition: accpara.cxx:880
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:136
std::unique_ptr< SwParaChangeTrackingInfo > mpParaChangeTrackInfo
Definition: accpara.hxx:86
virtual sal_Int16 SAL_CALL getAccessibleRole() override
Definition: accpara.cxx:3445
virtual sal_Bool SAL_CALL cutText(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
Definition: accpara.cxx:2512
virtual void SAL_CALL grabFocus() override
Definition: accpara.cxx:779
virtual css::accessibility::TextSegment SAL_CALL getTextBeforeIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
Definition: accpara.cxx:2330
SwPaM * GetCursor(const bool _bForSelection)
Definition: accpara.cxx:192
sal_Int32 m_nHeadingLevel
Definition: accpara.hxx:81
static bool IsValidPosition(sal_Int32 nPos, sal_Int32 nLength)
Definition: accpara.cxx:526
virtual css::uno::Any SAL_CALL getExtendedAttributes() override
Definition: accpara.cxx:3483
virtual void SAL_CALL selectAllAccessibleChildren() override
Definition: accpara.cxx:2683
virtual bool HasCursor() override
Definition: accpara.cxx:437
unsigned char sal_Bool
virtual void InvalidateCursorPos_() override
Definition: accpara.cxx:337
collect text portion data from the layout through SwPortionHandler interface
Definition: accportions.hxx:39
sal_Int32 GetCaretPos()
Definition: accpara.cxx:134
virtual css::accessibility::TextSegment SAL_CALL getTextAtLineWithCaret() override
Definition: accpara.cxx:3214
const SwRangeRedline * GetRedlineAtIndex()
Definition: accpara.cxx:539
bool GetTextBoundary(css::i18n::Boundary &rBound, const OUString &rText, sal_Int32 nPos, sal_Int16 aTextType)
Definition: accpara.cxx:660
bool GetLineBoundary(css::i18n::Boundary &rBound, const OUString &rText, sal_Int32 nPos)
Definition: accpara.cxx:603
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getDefaultAttributes(const css::uno::Sequence< OUString > &aRequestedAttributes) override
Definition: accpara.cxx:1608
virtual void SAL_CALL acquire() override
Definition: accpara.hxx:288
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Definition: accpara.cxx:1019
OUString GetFieldTypeNameAtIndex(sal_Int32 nIndex)
Definition: accpara.cxx:1174
static void OrderRange(sal_Int32 &nBegin, sal_Int32 &nEnd)
Definition: accpara.hxx:132
virtual sal_Int32 SAL_CALL getCaretPosition() override
Definition: accpara.cxx:1026
sal_Int32 GetRealHeadingLevel()
Definition: accpara.cxx:3461
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
Definition: accpara.cxx:943
virtual sal_Int32 SAL_CALL getIndexAtPoint(const css::awt::Point &aPoint) override
Definition: accpara.cxx:2123
virtual OUString SAL_CALL getSelectedText() override
Definition: accpara.cxx:2200
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: accpara.cxx:1005
virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount() override
Definition: accpara.cxx:2690
virtual css::accessibility::TextSegment SAL_CALL getTextAtLineNumber(sal_Int32 nLineNo) override
Definition: accpara.cxx:3190
virtual void SAL_CALL deselectAccessibleChild(sal_Int32 nChildIndex) override
Definition: accpara.cxx:2706
bool GetSelection(sal_Int32 &nStart, sal_Int32 &nEnd)
Definition: accpara.hxx:103
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: accpara.cxx:3287
std::unordered_map< OUString, css::beans::PropertyValue > tAccParaPropValMap
Definition: accpara.hxx:50
virtual sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
Return whether the specified service is supported by this class.
Definition: accpara.cxx:885
void _correctValues(const sal_Int32 nIndex, std::vector< css::beans::PropertyValue > &rValues)
Definition: accpara.cxx:1828
virtual sal_Int32 SAL_CALL addSelection(sal_Int32 selectionIndex, sal_Int32 startOffset, sal_Int32 endOffset) override
Definition: accpara.cxx:3047
virtual OUString SAL_CALL getAccessibleDescription() override
Definition: accpara.cxx:715
bool GetGlyphBoundary(css::i18n::Boundary &rBound, const OUString &rText, sal_Int32 nPos)
Definition: accpara.cxx:632
virtual sal_Bool SAL_CALL setCaretPosition(sal_Int32 nIndex) override
Definition: accpara.cxx:1047
void _getRunAttributesImpl(const sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes, tAccParaPropValMap &rRunAttrSeq)
Definition: accpara.cxx:1645
virtual sal_Int32 SAL_CALL getLineNumberAtIndex(sal_Int32 nIndex) override
Definition: accpara.cxx:3174
virtual sal_Bool SAL_CALL replaceText(sal_Int32 nStartIndex, sal_Int32 nEndIndex, const OUString &sReplacement) override
Definition: accpara.cxx:2552
virtual css::uno::Reference< css::accessibility::XAccessibleHyperlink > SAL_CALL getHyperLink(sal_Int32 nLinkIndex) override
Definition: accpara.cxx:2790
std::unique_ptr< SwAccessibleHyperTextData > m_pHyperTextData
Definition: accpara.hxx:74
virtual OUString SAL_CALL getTextRange(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
Definition: accpara.cxx:2278
virtual ~SwAccessibleParagraph() override
Definition: accpara.cxx:427
bool GetCharBoundary(css::i18n::Boundary &rBound, sal_Int32 nPos)
Definition: accpara.cxx:554
virtual sal_Int32 SAL_CALL getSelectionStart() override
Definition: accpara.cxx:2213
virtual sal_Bool SAL_CALL copyText(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
Definition: accpara.cxx:2498
virtual void InvalidateContent_(bool bVisibleDataFired) override
Definition: accpara.cxx:255
virtual css::uno::Sequence< css::accessibility::TextSegment > SAL_CALL getTextMarkupAtIndex(sal_Int32 nCharIndex, sal_Int32 nTextMarkupType) override
Definition: accpara.cxx:3139
virtual sal_Bool SAL_CALL deleteText(sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
Definition: accpara.cxx:2542
virtual sal_Int32 SAL_CALL getCharacterCount() override
Definition: accpara.cxx:2114
virtual sal_Bool SAL_CALL removeSelection(sal_Int32 selectionIndex) override
Definition: accpara.cxx:2984
const sal_Char sServiceName[]
Definition: accdoc.cxx:61
bool GetSentenceBoundary(css::i18n::Boundary &rBound, const OUString &rText, sal_Int32 nPos)
Definition: accpara.cxx:590
virtual void SAL_CALL release() override
Definition: accpara.hxx:291
virtual void SAL_CALL clearAccessibleSelection() override
Definition: accpara.cxx:2678
virtual css::accessibility::TextSegment SAL_CALL getTextAtIndex(sal_Int32 nIndex, sal_Int16 aTextType) override
Definition: accpara.cxx:2294