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 () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
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 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_Int32 nChildIndex) override
 
virtual sal_Bool SAL_CALL isAccessibleChildSelected (sal_Int32 nChildIndex) override
 
virtual void SAL_CALL clearAccessibleSelection () override
 
virtual void SAL_CALL selectAllAccessibleChildren () override
 
virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild (sal_Int32 nSelectedChildIndex) override
 
virtual void SAL_CALL deselectAccessibleChild (sal_Int32 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
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
- 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_Int32 SAL_CALL getAccessibleChildCount () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild (sal_Int32 nIndex) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent () override
 
virtual sal_Int32 SAL_CALL getAccessibleIndexInParent () override
 
virtual OUString SAL_CALL getAccessibleName () override
 
virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet () override
 
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 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
 
bool Select (SwPaM *pPaM, SdrObject *pObj, bool bAdd)
 
bool Select (SwPaM &rPaM)
 
bool Select (SdrObject *pObj, bool bAdd)
 
virtual bool SetSelectedState (bool bSeleted)
 
bool IsSeletedInDoc ()
 
- 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 (::utl::AccessibleStateSetHelper &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, const OUString &rText, 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)
 
void FireVisibleDataEvent ()
 
void FireStateChangedEvent (sal_Int16 nState, bool bNewState)
 
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, const OUString &rText)
 
- 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)
 
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 (const char *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
mutable::osl::Mutex m_Mutex
 
bool m_isSelectedInDoc
 

Detailed Description

Definition at line 52 of file accpara.hxx.

Constructor & Destructor Documentation

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

Member Function Documentation

void SwAccessibleParagraph::_correctValues ( const sal_Int32  nIndex,
std::vector< css::beans::PropertyValue > &  rValues 
)
private
void SwAccessibleParagraph::_getDefaultAttributesImpl ( const css::uno::Sequence< OUString > &  aRequestedAttributes,
tAccParaPropValMap rDefAttrSeq,
const bool  bOnlyCharAttrs = false 
)
private
void SwAccessibleParagraph::_getRunAttributesImpl ( const sal_Int32  nIndex,
const css::uno::Sequence< OUString > &  aRequestedAttributes,
tAccParaPropValMap rRunAttrSeq 
)
private
void SwAccessibleParagraph::_getSupplementalAttributesImpl ( const css::uno::Sequence< OUString > &  aRequestedAttributes,
tAccParaPropValMap rSupplementalAttrSeq 
)
private
virtual void SAL_CALL SwAccessibleParagraph::acquire ( )
throw (
)
inlineoverridevirtual

Definition at line 288 of file accpara.hxx.

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

Definition at line 2703 of file accpara.cxx.

References SwAccessibleContext::ThrowIfDisposed().

void SwAccessibleParagraph::ClearPortionData ( )
protected

Definition at line 457 of file accpara.cxx.

References m_pHyperTextData, and m_pPortionData.

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

sal_Bool SwAccessibleParagraph::copyText ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual
SwXTextPortion * SwAccessibleParagraph::CreateUnoPortion ( sal_Int32  nStart,
sal_Int32  nEnd 
)
private
sal_Bool SwAccessibleParagraph::cutText ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual
sal_Bool SwAccessibleParagraph::deleteText ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual

Definition at line 2565 of file accpara.cxx.

References replaceText().

void SwAccessibleParagraph::deselectAccessibleChild ( sal_Int32  nChildIndex)
overridevirtual
void SwAccessibleParagraph::ExecuteAtViewShell ( sal_uInt16  nSlot)
private
OUString SAL_CALL SwAccessibleParagraph::getAccessibleDescription ( )
overridevirtual
uno::Reference< XAccessibleRelationSet > SAL_CALL SwAccessibleParagraph::getAccessibleRelationSet ( )
overridevirtual
sal_Int16 SAL_CALL SwAccessibleParagraph::getAccessibleRole ( )
overridevirtual

Reimplemented from SwAccessibleContext.

Definition at line 3470 of file accpara.cxx.

References m_nHeadingLevel.

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

Definition at line 623 of file accpara.cxx.

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

Referenced by GetTextBoundary().

sal_Int32 SAL_CALL SwAccessibleParagraph::getBackground ( )
overridevirtual
sal_Int32 SwAccessibleParagraph::GetCaretPos ( )
private
sal_Int32 SwAccessibleParagraph::getCaretPosition ( )
overridevirtual
sal_Unicode SwAccessibleParagraph::getCharacter ( sal_Int32  nIndex)
overridevirtual

Definition at line 1078 of file accpara.cxx.

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

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

Definition at line 2137 of file accpara.cxx.

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

Referenced by getIndexAtPoint().

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

Definition at line 553 of file accpara.cxx.

References GetPortionData().

Referenced by GetTextBoundary().

css::uno::Sequence< css::style::TabStop > SwAccessibleParagraph::GetCurrentTabStop ( sal_Int32  nIndex)
SwPaM * SwAccessibleParagraph::GetCursor ( const bool  _bForSelection)
private
uno::Sequence< PropertyValue > SwAccessibleParagraph::getDefaultAttributes ( const css::uno::Sequence< OUString > &  aRequestedAttributes)
overridevirtual
OUString SwAccessibleParagraph::GetDescription ( )
staticprivate

Definition at line 128 of file accpara.cxx.

Referenced by getAccessibleDescription(), and InvalidateContent_().

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

Definition at line 3508 of file accpara.cxx.

References m_nHeadingLevel.

OUString SwAccessibleParagraph::GetFieldTypeNameAtIndex ( sal_Int32  nIndex)
private
sal_Int32 SAL_CALL SwAccessibleParagraph::getForeground ( )
overridevirtual
bool SwAccessibleParagraph::GetGlyphBoundary ( css::i18n::Boundary &  rBound,
const OUString &  rText,
sal_Int32  nPos 
)
protected
uno::Reference< XAccessibleHyperlink > SAL_CALL SwAccessibleParagraph::getHyperLink ( sal_Int32  nLinkIndex)
overridevirtual
sal_Int32 SAL_CALL SwAccessibleParagraph::getHyperLinkCount ( )
overridevirtual
sal_Int32 SAL_CALL SwAccessibleParagraph::getHyperLinkIndex ( sal_Int32  nCharIndex)
overridevirtual
uno::Sequence< sal_Int8 > SAL_CALL SwAccessibleParagraph::getImplementationId ( )
overridevirtual

Definition at line 1018 of file accpara.cxx.

OUString SAL_CALL SwAccessibleParagraph::getImplementationName ( )
overridevirtual

Definition at line 879 of file accpara.cxx.

References sImplementationName.

sal_Int32 SwAccessibleParagraph::getIndexAtPoint ( const css::awt::Point &  aPoint)
overridevirtual
bool SwAccessibleParagraph::GetLineBoundary ( css::i18n::Boundary &  rBound,
const OUString &  rText,
sal_Int32  nPos 
)
protected
sal_Int32 SAL_CALL SwAccessibleParagraph::getLineNumberAtIndex ( sal_Int32  nIndex)
overridevirtual
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 727 of file accpara.cxx.

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

sal_Int32 SAL_CALL SwAccessibleParagraph::getNumberOfLineWithCaret ( )
overridevirtual
bool SwAccessibleParagraph::GetParagraphBoundary ( css::i18n::Boundary &  rBound,
const OUString &  rText 
)
staticprotected

Definition at line 614 of file accpara.cxx.

Referenced by GetTextBoundary().

SwAccessiblePortionData& SwAccessibleParagraph::GetPortionData ( )
inlineprotected
sal_Int32 SwAccessibleParagraph::GetRealHeadingLevel ( )

Definition at line 3486 of file accpara.cxx.

References CreateUnoPortion(), and length.

Referenced by InvalidateContent_(), and SwAccessibleParagraph().

const SwRangeRedline * SwAccessibleParagraph::GetRedlineAtIndex ( )
private
uno::Sequence< PropertyValue > SwAccessibleParagraph::getRunAttributes ( sal_Int32  nIndex,
const css::uno::Sequence< OUString > &  aRequestedAttributes 
)
overridevirtual
uno::Reference< XAccessible > SwAccessibleParagraph::getSelectedAccessibleChild ( sal_Int32  nSelectedChildIndex)
overridevirtual
sal_Int32 SwAccessibleParagraph::getSelectedAccessibleChildCount ( )
overridevirtual
sal_Int32 SAL_CALL SwAccessibleParagraph::getSelectedPortionCount ( )
overridevirtual
OUString SwAccessibleParagraph::getSelectedText ( )
overridevirtual

Definition at line 2223 of file accpara.cxx.

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

bool SwAccessibleParagraph::GetSelection ( sal_Int32 &  nStart,
sal_Int32 &  nEnd 
)
inlineprivate
bool SwAccessibleParagraph::GetSelectionAtIndex ( sal_Int32 *  pSelection,
sal_Int32 &  nStart,
sal_Int32 &  nEnd 
)
private
sal_Int32 SwAccessibleParagraph::getSelectionEnd ( )
overridevirtual

Definition at line 2247 of file accpara.cxx.

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

sal_Int32 SwAccessibleParagraph::getSelectionStart ( )
overridevirtual

Definition at line 2236 of file accpara.cxx.

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

sal_Int32 SAL_CALL SwAccessibleParagraph::getSeletedPositionEnd ( sal_Int32  nSelectedPortionIndex)
overridevirtual

Definition at line 2998 of file accpara.cxx.

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

sal_Int32 SAL_CALL SwAccessibleParagraph::getSeletedPositionStart ( sal_Int32  nSelectedPortionIndex)
overridevirtual

Definition at line 2987 of file accpara.cxx.

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

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

Definition at line 589 of file accpara.cxx.

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

Referenced by GetTextBoundary().

void SwAccessibleParagraph::GetStates ( ::utl::AccessibleStateSetHelper rStateSet)
overrideprotectedvirtual
OUString const & SwAccessibleParagraph::GetString ( )
private
uno::Sequence< OUString > SAL_CALL SwAccessibleParagraph::getSupportedServiceNames ( )
overridevirtual

Definition at line 890 of file accpara.cxx.

References sAccessibleServiceName, and sServiceName.

OUString SwAccessibleParagraph::getText ( )
overridevirtual

Definition at line 2292 of file accpara.cxx.

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

TextSegment SwAccessibleParagraph::getTextAtIndex ( sal_Int32  nIndex,
sal_Int16  aTextType 
)
overridevirtual
TextSegment SAL_CALL SwAccessibleParagraph::getTextAtLineNumber ( sal_Int32  nLineNo)
overridevirtual
TextSegment SAL_CALL SwAccessibleParagraph::getTextAtLineWithCaret ( )
overridevirtual

Definition at line 3239 of file accpara.cxx.

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

TextSegment SwAccessibleParagraph::getTextBeforeIndex ( sal_Int32  nIndex,
sal_Int16  aTextType 
)
overridevirtual
TextSegment SwAccessibleParagraph::getTextBehindIndex ( sal_Int32  nIndex,
sal_Int16  aTextType 
)
overridevirtual
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 659 of file accpara.cxx.

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

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

TextSegment SAL_CALL SwAccessibleParagraph::getTextMarkup ( sal_Int32  nTextMarkupIndex,
sal_Int32  nTextMarkupType 
)
overridevirtual
uno::Sequence< TextSegment > SAL_CALL SwAccessibleParagraph::getTextMarkupAtIndex ( sal_Int32  nCharIndex,
sal_Int32  nTextMarkupType 
)
overridevirtual
sal_Int32 SAL_CALL SwAccessibleParagraph::getTextMarkupCount ( sal_Int32  nTextMarkupType)
overridevirtual
OUString SwAccessibleParagraph::getTextRange ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual
uno::Sequence< uno::Type > SAL_CALL SwAccessibleParagraph::getTypes ( )
overridevirtual

Definition at line 1004 of file accpara.cxx.

References cppu::OTypeCollection::getTypes().

bool SwAccessibleParagraph::GetWordBoundary ( css::i18n::Boundary &  rBound,
const OUString &  rText,
sal_Int32  nPos 
)
protected
void SAL_CALL SwAccessibleParagraph::grabFocus ( )
overridevirtual
bool SwAccessibleParagraph::HasCursor ( )
overridevirtual

Reimplemented from SwAccessibleContext.

Definition at line 436 of file accpara.cxx.

References SwAccessibleContext::m_Mutex, and m_nOldCaretPos.

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

Definition at line 2570 of file accpara.cxx.

References replaceText().

void SwAccessibleParagraph::InvalidateContent_ ( bool  bVisibleDataFired)
overrideprotectedvirtual
void SwAccessibleParagraph::InvalidateCursorPos_ ( )
overrideprotectedvirtual
void SwAccessibleParagraph::InvalidateFocus_ ( )
overrideprotectedvirtual
sal_Bool SwAccessibleParagraph::isAccessibleChildSelected ( sal_Int32  nChildIndex)
overridevirtual
bool SwAccessibleParagraph::IsHeading ( ) const
bool SwAccessibleParagraph::IsValidChar ( sal_Int32  nPos,
sal_Int32  nLength 
)
staticprivate

Definition at line 519 of file accpara.cxx.

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

bool SwAccessibleParagraph::IsValidPosition ( sal_Int32  nPos,
sal_Int32  nLength 
)
staticprivate
bool SwAccessibleParagraph::IsValidRange ( sal_Int32  nBegin,
sal_Int32  nEnd,
sal_Int32  nLength 
)
staticprivate
void SwAccessibleParagraph::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprotectedvirtual

Reimplemented from SfxListener.

Definition at line 3312 of file accpara.cxx.

References mpParaChangeTrackInfo.

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

Definition at line 390 of file accpara.hxx.

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

Definition at line 132 of file accpara.hxx.

Referenced by getTextRange().

sal_Bool SwAccessibleParagraph::pasteText ( sal_Int32  nIndex)
overridevirtual
uno::Any SwAccessibleParagraph::queryInterface ( const css::uno::Type &  aType)
overridevirtual

Definition at line 942 of file accpara.cxx.

virtual void SAL_CALL SwAccessibleParagraph::release ( )
throw (
)
inlineoverridevirtual

Definition at line 291 of file accpara.hxx.

sal_Bool SAL_CALL SwAccessibleParagraph::removeSelection ( sal_Int32  selectionIndex)
overridevirtual
sal_Bool SwAccessibleParagraph::replaceText ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex,
const OUString &  sReplacement 
)
overridevirtual
sal_Bool SAL_CALL SwAccessibleParagraph::scrollToPosition ( const css::awt::Point &  aPoint,
sal_Bool  isLeftTop 
)
overridevirtual

Definition at line 2937 of file accpara.cxx.

void SwAccessibleParagraph::selectAccessibleChild ( sal_Int32  nChildIndex)
overridevirtual
void SwAccessibleParagraph::selectAllAccessibleChildren ( )
overridevirtual
sal_Bool SwAccessibleParagraph::setAttributes ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex,
const css::uno::Sequence< css::beans::PropertyValue > &  aAttributeSet 
)
overridevirtual
sal_Bool SAL_CALL SwAccessibleParagraph::setCaretPosition ( sal_Int32  nIndex)
overridevirtual
sal_Bool SwAccessibleParagraph::setSelection ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual
sal_Bool SwAccessibleParagraph::setText ( const OUString &  sText)
overridevirtual

Definition at line 2680 of file accpara.cxx.

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

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 884 of file accpara.cxx.

References cppu::supportsService().

void SwAccessibleParagraph::UpdatePortionData ( )
protected
Exceptions
css::uno::RuntimeException

Definition at line 442 of file accpara.cxx.

References SwAccessibleFrame::GetFrame(), SwAccessibleContext::GetMap(), SwAccessibleContext::GetShell(), m_pPortionData, and SwTextFrame::VisitPortions().

Referenced by GetCaretPos(), and GetPortionData().

Friends And Related Function Documentation

friend class SwAccessibleHyperlink
friend

Definition at line 64 of file accpara.hxx.

Referenced by getHyperLink().

Member Data Documentation

SwAccessibleSelectionHelper SwAccessibleParagraph::m_aSelectionHelper
private
bool SwAccessibleParagraph::m_bIsHeading
private

Definition at line 80 of file accpara.hxx.

Referenced by InvalidateContent_(), and SwAccessibleParagraph().

bool SwAccessibleParagraph::m_bLastHasSelection
private

Definition at line 89 of file accpara.hxx.

Referenced by InvalidateCursorPos_().

sal_Int32 SwAccessibleParagraph::m_nHeadingLevel
private
sal_Int32 SwAccessibleParagraph::m_nOldCaretPos
private
std::unique_ptr<SwAccessibleHyperTextData> SwAccessibleParagraph::m_pHyperTextData
private

Definition at line 74 of file accpara.hxx.

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

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

Definition at line 66 of file accpara.hxx.

Referenced by getAccessibleDescription(), and InvalidateContent_().

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

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