LibreOffice Module editeng (master) 1
|
AccessibleStaticTextBase_Impl. More...
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 |
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.
accessibility::AccessibleStaticTextBase_Impl::AccessibleStaticTextBase_Impl | ( | ) |
Definition at line 180 of file AccessibleStaticTextBase.cxx.
bool accessibility::AccessibleStaticTextBase_Impl::CopyText | ( | sal_Int32 | nStartPara, |
sal_Int32 | nStartIndex, | ||
sal_Int32 | nEndPara, | ||
sal_Int32 | nEndIndex | ||
) |
Definition at line 329 of file AccessibleStaticTextBase.cxx.
References SvxEditViewForwarder::Copy(), SvxEditViewForwarder::GetSelection(), accessibility::MakeSelection(), mxTextParagraph, and SvxEditViewForwarder::SetSelection().
void accessibility::AccessibleStaticTextBase_Impl::CorrectTextSegment | ( | TextSegment & | aTextSegment, |
int | nPara | ||
) | const |
Definition at line 253 of file AccessibleStaticTextBase.cxx.
References GetParagraph(), and i.
void accessibility::AccessibleStaticTextBase_Impl::Dispose | ( | ) |
Definition at line 202 of file AccessibleStaticTextBase.cxx.
References mxTextParagraph, and mxThis.
AccessibleEditableTextPara & accessibility::AccessibleStaticTextBase_Impl::GetParagraph | ( | sal_Int32 | nPara | ) | const |
Definition at line 214 of file AccessibleStaticTextBase.cxx.
References mxTextParagraph, and mxThis.
Referenced by CorrectTextSegment(), ImpCalcInternal(), Internal2Index(), and RemoveLineBreakCount().
tools::Rectangle accessibility::AccessibleStaticTextBase_Impl::GetParagraphBoundingBox | ( | ) | const |
Definition at line 358 of file AccessibleStaticTextBase.cxx.
References mxTextParagraph, and tools::Rectangle::SetEmpty().
sal_Int32 accessibility::AccessibleStaticTextBase_Impl::GetParagraphCount | ( | ) | const |
Definition at line 227 of file AccessibleStaticTextBase.cxx.
References mxTextParagraph.
Referenced by ImpCalcInternal(), and RemoveLineBreakCount().
|
private |
Definition at line 271 of file AccessibleStaticTextBase.cxx.
References DBG_ASSERT, GetParagraph(), GetParagraphCount(), and mxThis.
Referenced by Index2Internal(), and Range2Internal().
|
inline |
Definition at line 135 of file AccessibleStaticTextBase.cxx.
References ImpCalcInternal().
sal_Int32 accessibility::AccessibleStaticTextBase_Impl::Internal2Index | ( | EPosition | nEEIndex | ) | const |
Definition at line 236 of file AccessibleStaticTextBase.cxx.
References GetParagraph(), i, nCount, EPosition::nIndex, EPosition::nPara, and SAL_MAX_INT32.
|
inline |
Definition at line 141 of file AccessibleStaticTextBase.cxx.
References ImpCalcInternal().
bool accessibility::AccessibleStaticTextBase_Impl::RemoveLineBreakCount | ( | sal_Int32 & | rIndex | ) |
Definition at line 375 of file AccessibleStaticTextBase.cxx.
References GetParagraph(), GetParagraphCount(), i, and nCount.
void accessibility::AccessibleStaticTextBase_Impl::SetEditSource | ( | std::unique_ptr< SvxEditSource > && | pEditSource | ) |
Definition at line 188 of file AccessibleStaticTextBase.cxx.
References maEditSource, and mxTextParagraph.
|
inline |
Definition at line 122 of file AccessibleStaticTextBase.cxx.
References mxThis.
void accessibility::AccessibleStaticTextBase_Impl::SetOffset | ( | const Point & | rPoint | ) |
Definition at line 196 of file AccessibleStaticTextBase.cxx.
References mxTextParagraph.
bool accessibility::AccessibleStaticTextBase_Impl::SetSelection | ( | sal_Int32 | nStartPara, |
sal_Int32 | nStartIndex, | ||
sal_Int32 | nEndPara, | ||
sal_Int32 | nEndIndex | ||
) |
Definition at line 311 of file AccessibleStaticTextBase.cxx.
References accessibility::MakeSelection(), mxTextParagraph, and SvxEditViewForwarder::SetSelection().
|
friend |
Definition at line 114 of file AccessibleStaticTextBase.cxx.
|
mutableprivate |
Definition at line 173 of file AccessibleStaticTextBase.cxx.
Referenced by SetEditSource().
|
mutableprivate |
Definition at line 170 of file AccessibleStaticTextBase.cxx.
Referenced by CopyText(), Dispose(), GetParagraph(), GetParagraphBoundingBox(), GetParagraphCount(), SetEditSource(), SetOffset(), and SetSelection().
|
private |
Definition at line 167 of file AccessibleStaticTextBase.cxx.
Referenced by Dispose(), GetParagraph(), ImpCalcInternal(), and SetEventSource().