LibreOffice Module sw (master) 1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
SwAccessibleParagraph Class Reference

#include <accpara.hxx>

Inheritance diagram for SwAccessibleParagraph:
[legend]
Collaboration diagram for SwAccessibleParagraph:
[legend]

Public Member Functions

bool IsHeading () const
 
 SwAccessibleParagraph (std::shared_ptr< SwAccessibleMap > const &pInitMap, const SwTextFrame &rTextFrame)
 
 operator css::accessibility::XAccessibleText * ()
 
virtual bool HasCursor () override
 
css::uno::Sequence< css::style::TabStop > GetCurrentTabStop (sal_Int32 nIndex)
 
virtual sal_Int16 SAL_CALL getAccessibleRole () override
 
virtual OUString SAL_CALL getAccessibleDescription () override
 
virtual css::lang::Locale SAL_CALL getLocale () override
 Return the parents locale or throw exception if this object has no parent yet/anymore. More...
 
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet () override
 
virtual void SAL_CALL grabFocus () override
 
virtual sal_Int32 SAL_CALL getForeground () override
 
virtual sal_Int32 SAL_CALL getBackground () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &sServiceName) override
 Return whether the specified service is supported by this class. More...
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual sal_Int32 SAL_CALL getCaretPosition () override
 
virtual sal_Bool SAL_CALL setCaretPosition (sal_Int32 nIndex) override
 
virtual sal_Unicode SAL_CALL getCharacter (sal_Int32 nIndex) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCharacterAttributes (sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override
 
virtual css::awt::Rectangle SAL_CALL getCharacterBounds (sal_Int32 nIndex) override
 
virtual sal_Int32 SAL_CALL getCharacterCount () override
 
virtual sal_Int32 SAL_CALL getIndexAtPoint (const css::awt::Point &aPoint) override
 
virtual OUString SAL_CALL getSelectedText () override
 
virtual sal_Int32 SAL_CALL getSelectionStart () override
 
virtual sal_Int32 SAL_CALL getSelectionEnd () override
 
virtual sal_Bool SAL_CALL setSelection (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual OUString SAL_CALL getText () override
 
virtual OUString SAL_CALL getTextRange (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextAtIndex (sal_Int32 nIndex, sal_Int16 aTextType) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextBeforeIndex (sal_Int32 nIndex, sal_Int16 aTextType) override
 
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_Bool SAL_CALL scrollSubstringTo (sal_Int32 nStartIndex, sal_Int32 nEndIndex, css::accessibility::AccessibleScrollType aScrollType) override
 
virtual sal_Bool SAL_CALL cutText (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual sal_Bool SAL_CALL pasteText (sal_Int32 nIndex) override
 
virtual sal_Bool SAL_CALL deleteText (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual sal_Bool SAL_CALL insertText (const OUString &sText, sal_Int32 nIndex) override
 
virtual sal_Bool SAL_CALL replaceText (sal_Int32 nStartIndex, sal_Int32 nEndIndex, const OUString &sReplacement) override
 
virtual sal_Bool SAL_CALL setAttributes (sal_Int32 nStartIndex, sal_Int32 nEndIndex, const css::uno::Sequence< css::beans::PropertyValue > &aAttributeSet) override
 
virtual sal_Bool SAL_CALL setText (const OUString &sText) override
 
virtual void SAL_CALL selectAccessibleChild (sal_Int64 nChildIndex) override
 
virtual sal_Bool SAL_CALL isAccessibleChildSelected (sal_Int64 nChildIndex) override
 
virtual void SAL_CALL clearAccessibleSelection () override
 
virtual void SAL_CALL selectAllAccessibleChildren () override
 
virtual sal_Int64 SAL_CALL getSelectedAccessibleChildCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild (sal_Int64 nSelectedChildIndex) override
 
virtual void SAL_CALL deselectAccessibleChild (sal_Int64 nChildIndex) override
 
virtual sal_Int32 SAL_CALL getHyperLinkCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessibleHyperlink > SAL_CALL getHyperLink (sal_Int32 nLinkIndex) override
 
virtual sal_Int32 SAL_CALL getHyperLinkIndex (sal_Int32 nCharIndex) override
 
virtual sal_Int32 SAL_CALL getTextMarkupCount (sal_Int32 nTextMarkupType) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextMarkup (sal_Int32 nTextMarkupIndex, sal_Int32 nTextMarkupType) override
 
virtual css::uno::Sequence< css::accessibility::TextSegment > SAL_CALL getTextMarkupAtIndex (sal_Int32 nCharIndex, sal_Int32 nTextMarkupType) override
 
virtual sal_Bool SAL_CALL scrollToPosition (const css::awt::Point &aPoint, sal_Bool isLeftTop) override
 
virtual sal_Int32 SAL_CALL getSelectedPortionCount () override
 
virtual sal_Int32 SAL_CALL getSeletedPositionStart (sal_Int32 nSelectedPortionIndex) override
 
virtual sal_Int32 SAL_CALL getSeletedPositionEnd (sal_Int32 nSelectedPortionIndex) override
 
virtual sal_Bool SAL_CALL removeSelection (sal_Int32 selectionIndex) override
 
virtual sal_Int32 SAL_CALL addSelection (sal_Int32 selectionIndex, sal_Int32 startOffset, sal_Int32 endOffset) override
 
virtual css::uno::Any SAL_CALL getExtendedAttributes () override
 
sal_Int32 GetRealHeadingLevel ()
 
virtual sal_Int32 SAL_CALL getLineNumberAtIndex (sal_Int32 nIndex) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextAtLineNumber (sal_Int32 nLineNo) override
 
virtual css::accessibility::TextSegment SAL_CALL getTextAtLineWithCaret () override
 
virtual sal_Int32 SAL_CALL getNumberOfLineWithCaret () override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getDefaultAttributes (const css::uno::Sequence< OUString > &aRequestedAttributes) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRunAttributes (sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes) override
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 
- Public Member Functions inherited from SwAccessibleContext
void FireAccessibleEvent (css::accessibility::AccessibleEventObject &rEvent)
 
 SwAccessibleContext (std::shared_ptr< SwAccessibleMap > const &pMap, sal_Int16 nRole, const SwFrame *pFrame)
 
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext () override
 
virtual sal_Int64 SAL_CALL getAccessibleChildCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int64 nIndex) override
 
virtual css::uno::Sequence< css::uno::Reference< css::accessibility::XAccessible > > SAL_CALL getAccessibleChildren () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override
 
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent () override
 
virtual sal_Int16 SAL_CALL getAccessibleRole () override
 
virtual OUString SAL_CALL getAccessibleName () override
 
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet () override
 
virtual sal_Int64 SAL_CALL getAccessibleStateSet () override
 
virtual css::lang::Locale SAL_CALL getLocale () override
 Return the parents locale or throw exception if this object has no parent yet/anymore. More...
 
virtual void SAL_CALL addAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
 
virtual void SAL_CALL removeAccessibleEventListener (const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
 
virtual sal_Bool SAL_CALL containsPoint (const css::awt::Point &aPoint) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint (const css::awt::Point &aPoint) override
 
virtual css::awt::Rectangle SAL_CALL getBounds () override
 
virtual css::awt::Point SAL_CALL getLocation () override
 
virtual css::awt::Point SAL_CALL getLocationOnScreen () override
 
virtual css::awt::Size SAL_CALL getSize () override
 
virtual void SAL_CALL grabFocus () override
 
virtual sal_Int32 SAL_CALL getForeground () override
 
virtual sal_Int32 SAL_CALL getBackground () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &sServiceName) override
 Return whether the specified service is supported by this class. More...
 
virtual void Dispose (bool bRecursive, bool bCanSkipInvisible=true)
 
virtual void DisposeChild (const sw::access::SwAccessibleChild &rFrameOrObj, bool bRecursive, bool bCanSkipInvisible)
 
virtual void InvalidatePosOrSize (const SwRect &rFrame)
 
virtual void InvalidateChildPosOrSize (const sw::access::SwAccessibleChild &rFrameOrObj, const SwRect &rFrame)
 
void InvalidateContent ()
 
void InvalidateCursorPos ()
 
void InvalidateFocus ()
 
void InvalidateStates (AccessibleStates _nStates)
 
void InvalidateRelation (sal_uInt16 nType)
 
void InvalidateTextSelection ()
 #i27301# - text selection has changed More...
 
void InvalidateAttr ()
 #i88069# - attributes has changed More...
 
bool HasAdditionalAccessibleChildren ()
 
vcl::WindowGetAdditionalAccessibleChild (const sal_Int32 nIndex)
 #i88070# - get additional accessible child by index More...
 
void GetAdditionalAccessibleChildren (std::vector< vcl::Window * > *pChildren)
 #i88070# - get all additional accessible children More...
 
const OUString & GetName () const
 
virtual bool HasCursor ()
 
bool Select (SwPaM *pPaM, SdrObject *pObj, bool bAdd)
 
bool Select (SwPaM &rPaM)
 
bool Select (SdrObject *pObj, bool bAdd)
 
virtual bool SetSelectedState (bool bSelected)
 
bool IsSelectedInDoc () const
 
- Public Member Functions inherited from SwAccessibleFrame
bool IsShowing (const SwAccessibleMap &rAccMap, const sw::access::SwAccessibleChild &rFrameOrObj) const
 
bool IsShowing (const SwRect &rFrame) const
 
bool IsShowing (const SwAccessibleMap &rAccMap) const
 
const SwFrameGetFrame () const
 
sal_Int32 GetChildIndex (SwAccessibleMap &rAccMap, const sw::access::SwAccessibleChild &rChild) const
 

Protected Member Functions

virtual void GetStates (sal_Int64 &rStateSet) override
 
virtual void InvalidateContent_ (bool bVisibleDataFired) override
 
virtual void InvalidateCursorPos_ () override
 
virtual void InvalidateFocus_ () override
 
virtual ~SwAccessibleParagraph () override
 
void UpdatePortionData ()
 
void ClearPortionData ()
 
SwAccessiblePortionDataGetPortionData ()
 
bool GetCharBoundary (css::i18n::Boundary &rBound, sal_Int32 nPos)
 
bool GetWordBoundary (css::i18n::Boundary &rBound, const OUString &rText, sal_Int32 nPos)
 
bool GetSentenceBoundary (css::i18n::Boundary &rBound, const OUString &rText, sal_Int32 nPos)
 
bool GetLineBoundary (css::i18n::Boundary &rBound, std::u16string_view aText, sal_Int32 nPos)
 
bool GetAttributeBoundary (css::i18n::Boundary &rBound, sal_Int32 nPos)
 
bool GetGlyphBoundary (css::i18n::Boundary &rBound, const OUString &rText, sal_Int32 nPos)
 
bool GetTextBoundary (css::i18n::Boundary &rBound, const OUString &rText, sal_Int32 nPos, sal_Int16 aTextType)
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
- Protected Member Functions inherited from SwAccessibleContext
void SetName (const OUString &rName)
 
sal_Int16 GetRole () const
 
void SetParent (SwAccessibleContext *pParent)
 
css::uno::Reference< css::accessibility::XAccessible > GetWeakParent () const
 
bool IsDisposing () const
 
vcl::WindowGetWindow ()
 
SwAccessibleMapGetMap ()
 
const SwAccessibleMapGetMap () const
 
SwViewShellGetShell ()
 convenience method to get the SwViewShell through accessibility map More...
 
const SwViewShellGetShell () const
 
SwCursorShellGetCursorShell ()
 convenience method to get SwCursorShell through accessibility map More...
 
const SwCursorShellGetCursorShell () const
 
void ChildrenScrolled (const SwFrame *pFrame, const SwRect &rOldVisArea)
 
void Scrolled (const SwRect &rOldVisArea)
 
void ScrolledWithin (const SwRect &rOldVisArea)
 
void ScrolledIn ()
 
void ScrolledOut (const SwRect &rOldVisArea)
 
void InvalidateChildrenStates (const SwFrame *_pFrame, AccessibleStates _nStates)
 
void DisposeChildren (const SwFrame *pFrame, bool bRecursive, bool bCanSkipInvisible)
 
void DisposeShape (const SdrObject *pObj, ::accessibility::AccessibleShape *pAccImpl)
 
void ScrolledInShape (::accessibility::AccessibleShape *pAccImpl)
 
virtual void InvalidateContent_ (bool bVisibleDataFired)
 
virtual void InvalidateCursorPos_ ()
 
virtual void InvalidateFocus_ ()
 
void FireVisibleDataEvent ()
 
void FireStateChangedEvent (sal_Int64 nState, bool bNewState)
 
virtual void GetStates (sal_Int64 &rStateSet)
 
bool IsEditableState ()
 
css::awt::Rectangle getBoundsImpl (bool bRelative)
 Get bounding box. More...
 
void NotRegisteredAtAccessibleMap ()
 
void RemoveFrameFromAccessibleMap ()
 
void ThrowIfDisposed ()
 
virtual ~SwAccessibleContext () override
 
css::uno::Reference< css::accessibility::XAccessible > getAccessibleParentImpl ()
 
- Protected Member Functions inherited from SwAccessibleFrame
bool IsEditable (SwViewShell const *pVSh) const
 
bool IsOpaque (SwViewShell const *pVSh) const
 
bool IsInPagePreview () const
 
void ClearFrame ()
 
 SwAccessibleFrame (const SwRect &rVisArea, const SwFrame *pFrame, bool bIsPagePreview)
 
virtual ~SwAccessibleFrame ()
 
SwRect GetBounds (const SwAccessibleMap &rAccMap, const SwFrame *pFrame=nullptr)
 
const SwFrameGetParent () const
 
sal_Int32 GetChildCount (SwAccessibleMap &rAccMap) const
 
sw::access::SwAccessibleChild GetChild (SwAccessibleMap &rAccMap, sal_Int32 nPos) const
 
sw::access::SwAccessibleChild GetChildAtPixel (const Point &rPos, SwAccessibleMap &rAccMap) const
 
void GetChildren (SwAccessibleMap &rAccMap, std::list< sw::access::SwAccessibleChild > &rChildren) const
 
void SetVisArea (const SwRect &rNewVisArea)
 
const SwRectGetVisArea () const
 
OUString GetFormattedPageNumber () const
 

Static Protected Member Functions

static bool GetParagraphBoundary (css::i18n::Boundary &rBound, std::u16string_view aText)
 
- Static Protected Member Functions inherited from SwAccessibleFrame
static sal_Int32 GetChildCount (SwAccessibleMap &rAccMap, const SwRect &rVisArea, const SwFrame *pFrame, bool bInPagePreviewr)
 
static sw::access::SwAccessibleChild GetChild (SwAccessibleMap &rAccMap, const SwRect &rVisArea, const SwFrame &rFrame, sal_Int32 &rPos, bool bInPagePreview)
 
static bool GetChildIndex (SwAccessibleMap &rAccMap, const SwRect &rVisArea, const SwFrame &rFrame, const sw::access::SwAccessibleChild &rChild, sal_Int32 &rPos, bool bInPagePreview)
 
static sw::access::SwAccessibleChild GetChildAtPixel (const SwRect &rVisArea, const SwFrame &rFrame, const Point &rPos, bool bInPagePreview, SwAccessibleMap &rAccMap)
 
static void GetChildren (SwAccessibleMap &rAccMap, const SwRect &rVisArea, const SwFrame &rFrame, std::list< sw::access::SwAccessibleChild > &rChildren, bool bInPagePreview)
 

Private Member Functions

OUString const & GetString ()
 get the (accessible) text string (requires frame; check before) More...
 
sal_Int32 GetCaretPos ()
 
bool GetSelectionAtIndex (sal_Int32 *pSelection, sal_Int32 &nStart, sal_Int32 &nEnd)
 
bool GetSelection (sal_Int32 &nStart, sal_Int32 &nEnd)
 
SwPaMGetCursor (const bool _bForSelection)
 
void ExecuteAtViewShell (sal_uInt16 nSlot)
 
rtl::Reference< SwXTextPortionCreateUnoPortion (sal_Int32 nStart, sal_Int32 nEnd)
 
const SwRangeRedlineGetRedlineAtIndex ()
 
OUString GetFieldTypeNameAtIndex (sal_Int32 nIndex)
 
void _getDefaultAttributesImpl (const css::uno::Sequence< OUString > &aRequestedAttributes, tAccParaPropValMap &rDefAttrSeq, const bool bOnlyCharAttrs=false)
 
void _getRunAttributesImpl (const sal_Int32 nIndex, const css::uno::Sequence< OUString > &aRequestedAttributes, tAccParaPropValMap &rRunAttrSeq)
 
void _getSupplementalAttributesImpl (const css::uno::Sequence< OUString > &aRequestedAttributes, tAccParaPropValMap &rSupplementalAttrSeq)
 
void _correctValues (const sal_Int32 nIndex, std::vector< css::beans::PropertyValue > &rValues)
 

Static Private Member Functions

static OUString GetDescription ()
 
static bool IsValidChar (sal_Int32 nPos, sal_Int32 nLength)
 
static bool IsValidPosition (sal_Int32 nPos, sal_Int32 nLength)
 
static bool IsValidRange (sal_Int32 nBegin, sal_Int32 nEnd, sal_Int32 nLength)
 
static void OrderRange (sal_Int32 &nBegin, sal_Int32 &nEnd)
 

Private Attributes

OUString m_sDesc
 
std::unique_ptr< SwAccessiblePortionDatam_pPortionData
 
std::unique_ptr< SwAccessibleHyperTextDatam_pHyperTextData
 
sal_Int32 m_nOldCaretPos
 
bool m_bIsHeading
 
sal_Int32 m_nHeadingLevel
 
SwAccessibleSelectionHelper m_aSelectionHelper
 
std::unique_ptr< SwParaChangeTrackingInfompParaChangeTrackInfo
 
bool m_bLastHasSelection
 

Friends

class SwAccessibleHyperlink
 

Additional Inherited Members

- Static Public Member Functions inherited from SwAccessibleContext
static OUString GetResource (TranslateId pResId, const OUString *pArg1=nullptr, const OUString *pArg2=nullptr)
 
- Static Public Member Functions inherited from SwAccessibleFrame
static const SwFrameGetParent (const sw::access::SwAccessibleChild &rFrameOrObj, bool bInPagePreview)
 
- Protected Attributes inherited from SwAccessibleContext
std::mutex m_Mutex
 
bool m_isSelectedInDoc
 

Detailed Description

Definition at line 53 of file accpara.hxx.

Constructor & Destructor Documentation

◆ ~SwAccessibleParagraph()

SwAccessibleParagraph::~SwAccessibleParagraph ( )
overrideprotectedvirtual

◆ SwAccessibleParagraph()

SwAccessibleParagraph::SwAccessibleParagraph ( std::shared_ptr< SwAccessibleMap > const &  pInitMap,
const SwTextFrame rTextFrame 
)

Member Function Documentation

◆ _correctValues()

void SwAccessibleParagraph::_correctValues ( const sal_Int32  nIndex,
std::vector< css::beans::PropertyValue > &  rValues 
)
private

◆ _getDefaultAttributesImpl()

void SwAccessibleParagraph::_getDefaultAttributesImpl ( const css::uno::Sequence< OUString > &  aRequestedAttributes,
tAccParaPropValMap rDefAttrSeq,
const bool  bOnlyCharAttrs = false 
)
private

◆ _getRunAttributesImpl()

void SwAccessibleParagraph::_getRunAttributesImpl ( const sal_Int32  nIndex,
const css::uno::Sequence< OUString > &  aRequestedAttributes,
tAccParaPropValMap rRunAttrSeq 
)
private

◆ _getSupplementalAttributesImpl()

void SwAccessibleParagraph::_getSupplementalAttributesImpl ( const css::uno::Sequence< OUString > &  aRequestedAttributes,
tAccParaPropValMap rSupplementalAttrSeq 
)
private

◆ acquire()

virtual void SAL_CALL SwAccessibleParagraph::acquire ( )
inlineoverridevirtualnoexcept

Definition at line 287 of file accpara.hxx.

◆ addSelection()

sal_Int32 SAL_CALL SwAccessibleParagraph::addSelection ( sal_Int32  selectionIndex,
sal_Int32  startOffset,
sal_Int32  endOffset 
)
overridevirtual

◆ clearAccessibleSelection()

void SwAccessibleParagraph::clearAccessibleSelection ( )
overridevirtual

Definition at line 2715 of file accpara.cxx.

References SwAccessibleContext::ThrowIfDisposed().

◆ ClearPortionData()

void SwAccessibleParagraph::ClearPortionData ( )
protected

Definition at line 449 of file accpara.cxx.

References m_pHyperTextData, and m_pPortionData.

Referenced by GetCaretPos(), InvalidateContent_(), replaceText(), and UpdatePortionData().

◆ copyText()

sal_Bool SwAccessibleParagraph::copyText ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual

◆ CreateUnoPortion()

rtl::Reference< SwXTextPortion > SwAccessibleParagraph::CreateUnoPortion ( sal_Int32  nStart,
sal_Int32  nEnd 
)
private

◆ cutText()

sal_Bool SwAccessibleParagraph::cutText ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual

◆ deleteText()

sal_Bool SwAccessibleParagraph::deleteText ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual

Definition at line 2579 of file accpara.cxx.

References replaceText().

◆ deselectAccessibleChild()

void SwAccessibleParagraph::deselectAccessibleChild ( sal_Int64  nChildIndex)
overridevirtual

◆ ExecuteAtViewShell()

void SwAccessibleParagraph::ExecuteAtViewShell ( sal_uInt16  nSlot)
private

◆ getAccessibleDescription()

OUString SAL_CALL SwAccessibleParagraph::getAccessibleDescription ( )
overridevirtual

◆ getAccessibleRelationSet()

uno::Reference< XAccessibleRelationSet > SAL_CALL SwAccessibleParagraph::getAccessibleRelationSet ( )
overridevirtual

◆ getAccessibleRole()

sal_Int16 SAL_CALL SwAccessibleParagraph::getAccessibleRole ( )
overridevirtual

Reimplemented from SwAccessibleContext.

Definition at line 3482 of file accpara.cxx.

References m_nHeadingLevel.

◆ GetAttributeBoundary()

bool SwAccessibleParagraph::GetAttributeBoundary ( css::i18n::Boundary &  rBound,
sal_Int32  nPos 
)
protected

Definition at line 612 of file accpara.cxx.

References SwAccessiblePortionData::GetAttributeBoundary(), GetPortionData(), and nPos.

Referenced by GetTextBoundary().

◆ getBackground()

sal_Int32 SAL_CALL SwAccessibleParagraph::getBackground ( )
overridevirtual

◆ GetCaretPos()

sal_Int32 SwAccessibleParagraph::GetCaretPos ( )
private

◆ getCaretPosition()

sal_Int32 SwAccessibleParagraph::getCaretPosition ( )
overridevirtual

◆ getCharacter()

sal_Unicode SwAccessibleParagraph::getCharacter ( sal_Int32  nIndex)
overridevirtual

◆ getCharacterAttributes()

uno::Sequence< PropertyValue > SwAccessibleParagraph::getCharacterAttributes ( sal_Int32  nIndex,
const css::uno::Sequence< OUString > &  aRequestedAttributes 
)
overridevirtual

◆ getCharacterBounds()

awt::Rectangle SwAccessibleParagraph::getCharacterBounds ( sal_Int32  nIndex)
overridevirtual

◆ getCharacterCount()

sal_Int32 SwAccessibleParagraph::getCharacterCount ( )
overridevirtual

Definition at line 2087 of file accpara.cxx.

References GetString(), and SwAccessibleContext::ThrowIfDisposed().

Referenced by getIndexAtPoint().

◆ GetCharBoundary()

bool SwAccessibleParagraph::GetCharBoundary ( css::i18n::Boundary &  rBound,
sal_Int32  nPos 
)
protected

Definition at line 542 of file accpara.cxx.

References GetPortionData(), and nPos.

Referenced by GetTextBoundary().

◆ GetCurrentTabStop()

css::uno::Sequence< css::style::TabStop > SwAccessibleParagraph::GetCurrentTabStop ( sal_Int32  nIndex)

◆ GetCursor()

SwPaM * SwAccessibleParagraph::GetCursor ( const bool  _bForSelection)
private

◆ getDefaultAttributes()

uno::Sequence< PropertyValue > SwAccessibleParagraph::getDefaultAttributes ( const css::uno::Sequence< OUString > &  aRequestedAttributes)
overridevirtual

◆ GetDescription()

OUString SwAccessibleParagraph::GetDescription ( )
staticprivate

Definition at line 123 of file accpara.cxx.

Referenced by getAccessibleDescription(), and InvalidateContent_().

◆ getExtendedAttributes()

uno::Any SAL_CALL SwAccessibleParagraph::getExtendedAttributes ( )
overridevirtual

Definition at line 3519 of file accpara.cxx.

References m_nHeadingLevel.

◆ GetFieldTypeNameAtIndex()

OUString SwAccessibleParagraph::GetFieldTypeNameAtIndex ( sal_Int32  nIndex)
private

◆ getForeground()

sal_Int32 SAL_CALL SwAccessibleParagraph::getForeground ( )
overridevirtual

◆ GetGlyphBoundary()

bool SwAccessibleParagraph::GetGlyphBoundary ( css::i18n::Boundary &  rBound,
const OUString &  rText,
sal_Int32  nPos 
)
protected

◆ getHyperLink()

uno::Reference< XAccessibleHyperlink > SAL_CALL SwAccessibleParagraph::getHyperLink ( sal_Int32  nLinkIndex)
overridevirtual

◆ getHyperLinkCount()

sal_Int32 SAL_CALL SwAccessibleParagraph::getHyperLinkCount ( )
overridevirtual

◆ getHyperLinkIndex()

sal_Int32 SAL_CALL SwAccessibleParagraph::getHyperLinkIndex ( sal_Int32  nCharIndex)
overridevirtual

◆ getImplementationId()

uno::Sequence< sal_Int8 > SAL_CALL SwAccessibleParagraph::getImplementationId ( )
overridevirtual

Definition at line 1003 of file accpara.cxx.

◆ getImplementationName()

OUString SAL_CALL SwAccessibleParagraph::getImplementationName ( )
overridevirtual

Definition at line 868 of file accpara.cxx.

References sImplementationName.

◆ getIndexAtPoint()

sal_Int32 SwAccessibleParagraph::getIndexAtPoint ( const css::awt::Point &  aPoint)
overridevirtual

◆ GetLineBoundary()

bool SwAccessibleParagraph::GetLineBoundary ( css::i18n::Boundary &  rBound,
std::u16string_view  aText,
sal_Int32  nPos 
)
protected

◆ getLineNumberAtIndex()

sal_Int32 SAL_CALL SwAccessibleParagraph::getLineNumberAtIndex ( sal_Int32  nIndex)
overridevirtual

◆ getLocale()

lang::Locale SAL_CALL SwAccessibleParagraph::getLocale ( )
overridevirtual

Return the parents locale or throw exception if this object has no parent yet/anymore.

Reimplemented from SwAccessibleContext.

Definition at line 716 of file accpara.cxx.

References SwFrame::DynCastTextFrame(), g_pBreakIt, SwAccessibleFrame::GetFrame(), SwTextFrame::GetLangOfChar(), and SwBreakIt::GetLocale().

◆ getNumberOfLineWithCaret()

sal_Int32 SAL_CALL SwAccessibleParagraph::getNumberOfLineWithCaret ( )
overridevirtual

◆ GetParagraphBoundary()

bool SwAccessibleParagraph::GetParagraphBoundary ( css::i18n::Boundary &  rBound,
std::u16string_view  aText 
)
staticprotected

Definition at line 603 of file accpara.cxx.

Referenced by GetTextBoundary().

◆ GetPortionData()

SwAccessiblePortionData & SwAccessibleParagraph::GetPortionData ( )
inlineprotected

◆ GetRealHeadingLevel()

sal_Int32 SwAccessibleParagraph::GetRealHeadingLevel ( )

Definition at line 3498 of file accpara.cxx.

References CreateUnoPortion(), length, and o3tl::toInt32().

Referenced by InvalidateContent_(), and SwAccessibleParagraph().

◆ GetRedlineAtIndex()

const SwRangeRedline * SwAccessibleParagraph::GetRedlineAtIndex ( )
private

◆ getRunAttributes()

uno::Sequence< PropertyValue > SwAccessibleParagraph::getRunAttributes ( sal_Int32  nIndex,
const css::uno::Sequence< OUString > &  aRequestedAttributes 
)
overridevirtual

◆ getSelectedAccessibleChild()

uno::Reference< XAccessible > SwAccessibleParagraph::getSelectedAccessibleChild ( sal_Int64  nSelectedChildIndex)
overridevirtual

◆ getSelectedAccessibleChildCount()

sal_Int64 SwAccessibleParagraph::getSelectedAccessibleChildCount ( )
overridevirtual

◆ getSelectedPortionCount()

sal_Int32 SAL_CALL SwAccessibleParagraph::getSelectedPortionCount ( )
overridevirtual

◆ getSelectedText()

OUString SwAccessibleParagraph::getSelectedText ( )
overridevirtual

Definition at line 2172 of file accpara.cxx.

References GetSelection(), GetString(), and SwAccessibleContext::ThrowIfDisposed().

◆ GetSelection()

bool SwAccessibleParagraph::GetSelection ( sal_Int32 &  nStart,
sal_Int32 &  nEnd 
)
inlineprivate

◆ GetSelectionAtIndex()

bool SwAccessibleParagraph::GetSelectionAtIndex ( sal_Int32 *  pSelection,
sal_Int32 &  nStart,
sal_Int32 &  nEnd 
)
private

◆ getSelectionEnd()

sal_Int32 SwAccessibleParagraph::getSelectionEnd ( )
overridevirtual

Definition at line 2196 of file accpara.cxx.

References GetSelection(), and SwAccessibleContext::ThrowIfDisposed().

◆ getSelectionStart()

sal_Int32 SwAccessibleParagraph::getSelectionStart ( )
overridevirtual

Definition at line 2185 of file accpara.cxx.

References GetSelection(), and SwAccessibleContext::ThrowIfDisposed().

◆ getSeletedPositionEnd()

sal_Int32 SAL_CALL SwAccessibleParagraph::getSeletedPositionEnd ( sal_Int32  nSelectedPortionIndex)
overridevirtual

Definition at line 3014 of file accpara.cxx.

References GetSelectionAtIndex(), and SwAccessibleContext::ThrowIfDisposed().

◆ getSeletedPositionStart()

sal_Int32 SAL_CALL SwAccessibleParagraph::getSeletedPositionStart ( sal_Int32  nSelectedPortionIndex)
overridevirtual

Definition at line 3003 of file accpara.cxx.

References GetSelectionAtIndex(), and SwAccessibleContext::ThrowIfDisposed().

◆ GetSentenceBoundary()

bool SwAccessibleParagraph::GetSentenceBoundary ( css::i18n::Boundary &  rBound,
const OUString &  rText,
sal_Int32  nPos 
)
protected

Definition at line 578 of file accpara.cxx.

References GetPortionData(), SwAccessiblePortionData::GetSentenceBoundary(), nPos, and u.

Referenced by GetTextBoundary().

◆ GetStates()

void SwAccessibleParagraph::GetStates ( sal_Int64 &  rStateSet)
overrideprotectedvirtual

◆ GetString()

OUString const & SwAccessibleParagraph::GetString ( )
private

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL SwAccessibleParagraph::getSupportedServiceNames ( )
overridevirtual

Definition at line 879 of file accpara.cxx.

References sAccessibleServiceName, and sServiceName.

◆ getText()

OUString SwAccessibleParagraph::getText ( )
overridevirtual

Definition at line 2241 of file accpara.cxx.

References GetString(), and SwAccessibleContext::ThrowIfDisposed().

◆ getTextAtIndex()

TextSegment SwAccessibleParagraph::getTextAtIndex ( sal_Int32  nIndex,
sal_Int16  aTextType 
)
overridevirtual

◆ getTextAtLineNumber()

TextSegment SAL_CALL SwAccessibleParagraph::getTextAtLineNumber ( sal_Int32  nLineNo)
overridevirtual

◆ getTextAtLineWithCaret()

TextSegment SAL_CALL SwAccessibleParagraph::getTextAtLineWithCaret ( )
overridevirtual

Definition at line 3255 of file accpara.cxx.

References getNumberOfLineWithCaret(), GetPortionData(), and getTextAtLineNumber().

◆ getTextBeforeIndex()

TextSegment SwAccessibleParagraph::getTextBeforeIndex ( sal_Int32  nIndex,
sal_Int16  aTextType 
)
overridevirtual

◆ getTextBehindIndex()

TextSegment SwAccessibleParagraph::getTextBehindIndex ( sal_Int32  nIndex,
sal_Int16  aTextType 
)
overridevirtual

◆ GetTextBoundary()

bool SwAccessibleParagraph::GetTextBoundary ( css::i18n::Boundary &  rBound,
const OUString &  rText,
sal_Int32  nPos,
sal_Int16  aTextType 
)
protected
Exceptions
css::lang::IndexOutOfBoundsException
css::lang::IllegalArgumentException
css::uno::RuntimeException

Definition at line 648 of file accpara.cxx.

References GetAttributeBoundary(), GetCharBoundary(), GetGlyphBoundary(), GetLineBoundary(), GetParagraphBoundary(), GetSentenceBoundary(), GetWordBoundary(), IsValidChar(), IsValidPosition(), and nPos.

Referenced by getTextAtIndex(), getTextBeforeIndex(), and getTextBehindIndex().

◆ getTextMarkup()

TextSegment SAL_CALL SwAccessibleParagraph::getTextMarkup ( sal_Int32  nTextMarkupIndex,
sal_Int32  nTextMarkupType 
)
overridevirtual

◆ getTextMarkupAtIndex()

uno::Sequence< TextSegment > SAL_CALL SwAccessibleParagraph::getTextMarkupAtIndex ( sal_Int32  nCharIndex,
sal_Int32  nTextMarkupType 
)
overridevirtual

◆ getTextMarkupCount()

sal_Int32 SAL_CALL SwAccessibleParagraph::getTextMarkupCount ( sal_Int32  nTextMarkupType)
overridevirtual

◆ getTextRange()

OUString SwAccessibleParagraph::getTextRange ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual

◆ getTypes()

uno::Sequence< uno::Type > SAL_CALL SwAccessibleParagraph::getTypes ( )
overridevirtual

Definition at line 989 of file accpara.cxx.

References cppu::OTypeCollection::getTypes().

◆ GetWordBoundary()

bool SwAccessibleParagraph::GetWordBoundary ( css::i18n::Boundary &  rBound,
const OUString &  rText,
sal_Int32  nPos 
)
protected

◆ grabFocus()

void SAL_CALL SwAccessibleParagraph::grabFocus ( )
overridevirtual

◆ HasCursor()

bool SwAccessibleParagraph::HasCursor ( )
overridevirtual

Reimplemented from SwAccessibleContext.

Definition at line 425 of file accpara.cxx.

References SwAccessibleContext::m_Mutex, and m_nOldCaretPos.

◆ insertText()

sal_Bool SwAccessibleParagraph::insertText ( const OUString &  sText,
sal_Int32  nIndex 
)
overridevirtual

Definition at line 2584 of file accpara.cxx.

References nIndex, and replaceText().

◆ InvalidateContent_()

void SwAccessibleParagraph::InvalidateContent_ ( bool  bVisibleDataFired)
overrideprotectedvirtual

◆ InvalidateCursorPos_()

void SwAccessibleParagraph::InvalidateCursorPos_ ( )
overrideprotectedvirtual

◆ InvalidateFocus_()

void SwAccessibleParagraph::InvalidateFocus_ ( )
overrideprotectedvirtual

◆ isAccessibleChildSelected()

sal_Bool SwAccessibleParagraph::isAccessibleChildSelected ( sal_Int64  nChildIndex)
overridevirtual

◆ IsHeading()

bool SwAccessibleParagraph::IsHeading ( ) const

◆ IsValidChar()

bool SwAccessibleParagraph::IsValidChar ( sal_Int32  nPos,
sal_Int32  nLength 
)
staticprivate

Definition at line 508 of file accpara.cxx.

References nLength, and nPos.

Referenced by CreateUnoPortion(), getCharacter(), and GetTextBoundary().

◆ IsValidPosition()

bool SwAccessibleParagraph::IsValidPosition ( sal_Int32  nPos,
sal_Int32  nLength 
)
staticprivate

◆ IsValidRange()

bool SwAccessibleParagraph::IsValidRange ( sal_Int32  nBegin,
sal_Int32  nEnd,
sal_Int32  nLength 
)
staticprivate

◆ Notify()

void SwAccessibleParagraph::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprotectedvirtual

Reimplemented from SfxListener.

Definition at line 3328 of file accpara.cxx.

References mpParaChangeTrackInfo.

◆ operator css::accessibility::XAccessibleText *()

SwAccessibleParagraph::operator css::accessibility::XAccessibleText * ( )
inline

Definition at line 390 of file accpara.hxx.

◆ OrderRange()

static void SwAccessibleParagraph::OrderRange ( sal_Int32 &  nBegin,
sal_Int32 &  nEnd 
)
inlinestaticprivate

Definition at line 133 of file accpara.hxx.

Referenced by getTextRange().

◆ pasteText()

sal_Bool SwAccessibleParagraph::pasteText ( sal_Int32  nIndex)
overridevirtual

◆ queryInterface()

uno::Any SwAccessibleParagraph::queryInterface ( const css::uno::Type &  aType)
overridevirtual

Definition at line 927 of file accpara.cxx.

◆ release()

virtual void SAL_CALL SwAccessibleParagraph::release ( )
inlineoverridevirtualnoexcept

Definition at line 290 of file accpara.hxx.

◆ removeSelection()

sal_Bool SAL_CALL SwAccessibleParagraph::removeSelection ( sal_Int32  selectionIndex)
overridevirtual

◆ replaceText()

sal_Bool SwAccessibleParagraph::replaceText ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex,
const OUString &  sReplacement 
)
overridevirtual

◆ scrollSubstringTo()

sal_Bool SwAccessibleParagraph::scrollSubstringTo ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex,
css::accessibility::AccessibleScrollType  aScrollType 
)
overridevirtual

◆ scrollToPosition()

sal_Bool SAL_CALL SwAccessibleParagraph::scrollToPosition ( const css::awt::Point &  aPoint,
sal_Bool  isLeftTop 
)
overridevirtual

Definition at line 2953 of file accpara.cxx.

◆ selectAccessibleChild()

void SwAccessibleParagraph::selectAccessibleChild ( sal_Int64  nChildIndex)
overridevirtual

◆ selectAllAccessibleChildren()

void SwAccessibleParagraph::selectAllAccessibleChildren ( )
overridevirtual

◆ setAttributes()

sal_Bool SwAccessibleParagraph::setAttributes ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex,
const css::uno::Sequence< css::beans::PropertyValue > &  aAttributeSet 
)
overridevirtual

◆ setCaretPosition()

sal_Bool SAL_CALL SwAccessibleParagraph::setCaretPosition ( sal_Int32  nIndex)
overridevirtual

◆ setSelection()

sal_Bool SwAccessibleParagraph::setSelection ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual

◆ setText()

sal_Bool SwAccessibleParagraph::setText ( const OUString &  sText)
overridevirtual

Definition at line 2692 of file accpara.cxx.

References getLength(), GetString(), and replaceText().

◆ supportsService()

sal_Bool SAL_CALL SwAccessibleParagraph::supportsService ( const OUString &  sServiceName)
overridevirtual

Return whether the specified service is supported by this class.

Reimplemented from SwAccessibleContext.

Definition at line 873 of file accpara.cxx.

References cppu::supportsService().

◆ UpdatePortionData()

void SwAccessibleParagraph::UpdatePortionData ( )
protected

Friends And Related Function Documentation

◆ SwAccessibleHyperlink

friend class SwAccessibleHyperlink
friend

Definition at line 65 of file accpara.hxx.

Referenced by getHyperLink().

Member Data Documentation

◆ m_aSelectionHelper

SwAccessibleSelectionHelper SwAccessibleParagraph::m_aSelectionHelper
private

◆ m_bIsHeading

bool SwAccessibleParagraph::m_bIsHeading
private

Definition at line 81 of file accpara.hxx.

Referenced by InvalidateContent_(), and SwAccessibleParagraph().

◆ m_bLastHasSelection

bool SwAccessibleParagraph::m_bLastHasSelection
private

Definition at line 90 of file accpara.hxx.

Referenced by InvalidateCursorPos_().

◆ m_nHeadingLevel

sal_Int32 SwAccessibleParagraph::m_nHeadingLevel
private

◆ m_nOldCaretPos

sal_Int32 SwAccessibleParagraph::m_nOldCaretPos
private

◆ m_pHyperTextData

std::unique_ptr<SwAccessibleHyperTextData> SwAccessibleParagraph::m_pHyperTextData
private

Definition at line 75 of file accpara.hxx.

Referenced by ClearPortionData(), getHyperLink(), and ~SwAccessibleParagraph().

◆ m_pPortionData

std::unique_ptr<SwAccessiblePortionData> SwAccessibleParagraph::m_pPortionData
private

◆ m_sDesc

OUString SwAccessibleParagraph::m_sDesc
private

Definition at line 67 of file accpara.hxx.

Referenced by getAccessibleDescription(), and InvalidateContent_().

◆ mpParaChangeTrackInfo

std::unique_ptr<SwParaChangeTrackingInfo> SwAccessibleParagraph::mpParaChangeTrackInfo
private

The documentation for this class was generated from the following files: