LibreOffice Module editeng (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
accessibility::AccessibleStaticTextBase_Impl Class Reference

AccessibleStaticTextBase_Impl. More...

Collaboration diagram for accessibility::AccessibleStaticTextBase_Impl:
[legend]

Public Member Functions

 AccessibleStaticTextBase_Impl ()
 
void SetEditSource (std::unique_ptr< SvxEditSource > &&pEditSource)
 
void SetEventSource (const uno::Reference< XAccessible > &rInterface)
 
void SetOffset (const Point &)
 
void Dispose ()
 
AccessibleEditableTextPara & GetParagraph (sal_Int32 nPara) const
 
sal_Int32 GetParagraphCount () const
 
EPosition Index2Internal (sal_Int32 nFlatIndex) const
 
EPosition Range2Internal (sal_Int32 nFlatIndex) const
 
sal_Int32 Internal2Index (EPosition nEEIndex) const
 
void CorrectTextSegment (TextSegment &aTextSegment, int nPara) const
 
bool SetSelection (sal_Int32 nStartPara, sal_Int32 nStartIndex, sal_Int32 nEndPara, sal_Int32 nEndIndex)
 
bool CopyText (sal_Int32 nStartPara, sal_Int32 nStartIndex, sal_Int32 nEndPara, sal_Int32 nEndIndex)
 
tools::Rectangle GetParagraphBoundingBox () const
 
bool RemoveLineBreakCount (sal_Int32 &rIndex)
 

Private Member Functions

EPosition ImpCalcInternal (sal_Int32 nFlatIndex, bool bExclusive) const
 

Private Attributes

uno::Reference< XAccessible > mxThis
 
rtl::Reference< AccessibleEditableTextPara > mxTextParagraph
 
SvxEditSourceAdapter maEditSource
 

Friends

class AccessibleStaticTextBase
 

Detailed Description

AccessibleStaticTextBase_Impl.

This class implements the AccessibleStaticTextBase functionality, mainly by forwarding the calls to an aggregated AccessibleEditableTextPara. As this is a therefore non-trivial adapter, factoring out the common functionality from AccessibleEditableTextPara might be a profitable future task.

Definition at line 112 of file AccessibleStaticTextBase.cxx.

Constructor & Destructor Documentation

◆ AccessibleStaticTextBase_Impl()

accessibility::AccessibleStaticTextBase_Impl::AccessibleStaticTextBase_Impl ( )

Definition at line 180 of file AccessibleStaticTextBase.cxx.

Member Function Documentation

◆ CopyText()

bool accessibility::AccessibleStaticTextBase_Impl::CopyText ( sal_Int32  nStartPara,
sal_Int32  nStartIndex,
sal_Int32  nEndPara,
sal_Int32  nEndIndex 
)

◆ CorrectTextSegment()

void accessibility::AccessibleStaticTextBase_Impl::CorrectTextSegment ( TextSegment &  aTextSegment,
int  nPara 
) const

Definition at line 253 of file AccessibleStaticTextBase.cxx.

References GetParagraph(), and i.

◆ Dispose()

void accessibility::AccessibleStaticTextBase_Impl::Dispose ( )

Definition at line 202 of file AccessibleStaticTextBase.cxx.

References mxTextParagraph, and mxThis.

◆ GetParagraph()

AccessibleEditableTextPara & accessibility::AccessibleStaticTextBase_Impl::GetParagraph ( sal_Int32  nPara) const

◆ GetParagraphBoundingBox()

tools::Rectangle accessibility::AccessibleStaticTextBase_Impl::GetParagraphBoundingBox ( ) const

Definition at line 358 of file AccessibleStaticTextBase.cxx.

References mxTextParagraph, and tools::Rectangle::SetEmpty().

◆ GetParagraphCount()

sal_Int32 accessibility::AccessibleStaticTextBase_Impl::GetParagraphCount ( ) const

Definition at line 227 of file AccessibleStaticTextBase.cxx.

References mxTextParagraph.

Referenced by ImpCalcInternal(), and RemoveLineBreakCount().

◆ ImpCalcInternal()

EPosition accessibility::AccessibleStaticTextBase_Impl::ImpCalcInternal ( sal_Int32  nFlatIndex,
bool  bExclusive 
) const
private

Definition at line 271 of file AccessibleStaticTextBase.cxx.

References DBG_ASSERT, GetParagraph(), GetParagraphCount(), and mxThis.

Referenced by Index2Internal(), and Range2Internal().

◆ Index2Internal()

EPosition accessibility::AccessibleStaticTextBase_Impl::Index2Internal ( sal_Int32  nFlatIndex) const
inline

Definition at line 135 of file AccessibleStaticTextBase.cxx.

References ImpCalcInternal().

◆ Internal2Index()

sal_Int32 accessibility::AccessibleStaticTextBase_Impl::Internal2Index ( EPosition  nEEIndex) const

◆ Range2Internal()

EPosition accessibility::AccessibleStaticTextBase_Impl::Range2Internal ( sal_Int32  nFlatIndex) const
inline

Definition at line 141 of file AccessibleStaticTextBase.cxx.

References ImpCalcInternal().

◆ RemoveLineBreakCount()

bool accessibility::AccessibleStaticTextBase_Impl::RemoveLineBreakCount ( sal_Int32 &  rIndex)

Definition at line 375 of file AccessibleStaticTextBase.cxx.

References GetParagraph(), GetParagraphCount(), i, and nCount.

◆ SetEditSource()

void accessibility::AccessibleStaticTextBase_Impl::SetEditSource ( std::unique_ptr< SvxEditSource > &&  pEditSource)

Definition at line 188 of file AccessibleStaticTextBase.cxx.

References maEditSource, and mxTextParagraph.

◆ SetEventSource()

void accessibility::AccessibleStaticTextBase_Impl::SetEventSource ( const uno::Reference< XAccessible > &  rInterface)
inline

Definition at line 122 of file AccessibleStaticTextBase.cxx.

References mxThis.

◆ SetOffset()

void accessibility::AccessibleStaticTextBase_Impl::SetOffset ( const Point rPoint)

Definition at line 196 of file AccessibleStaticTextBase.cxx.

References mxTextParagraph.

◆ SetSelection()

bool accessibility::AccessibleStaticTextBase_Impl::SetSelection ( sal_Int32  nStartPara,
sal_Int32  nStartIndex,
sal_Int32  nEndPara,
sal_Int32  nEndIndex 
)

Friends And Related Function Documentation

◆ AccessibleStaticTextBase

friend class AccessibleStaticTextBase
friend

Definition at line 114 of file AccessibleStaticTextBase.cxx.

Member Data Documentation

◆ maEditSource

SvxEditSourceAdapter accessibility::AccessibleStaticTextBase_Impl::maEditSource
mutableprivate

Definition at line 173 of file AccessibleStaticTextBase.cxx.

Referenced by SetEditSource().

◆ mxTextParagraph

rtl::Reference<AccessibleEditableTextPara> accessibility::AccessibleStaticTextBase_Impl::mxTextParagraph
mutableprivate

◆ mxThis

uno::Reference< XAccessible > accessibility::AccessibleStaticTextBase_Impl::mxThis
private

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