LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwTextMarkupHelper Class Reference

#include <textmarkuphelper.hxx>

Collaboration diagram for SwTextMarkupHelper:
[legend]

Public Member Functions

 SwTextMarkupHelper (const SwAccessiblePortionData &rPortionData, const SwTextFrame &rTextFrame)
 
 SwTextMarkupHelper (const SwAccessiblePortionData &rPortionData, const SwWrongList &rTextMarkupList)
 
sal_Int32 getTextMarkupCount (const sal_Int32 nTextMarkupType)
 
css::accessibility::TextSegment getTextMarkup (const sal_Int32 nTextMarkupIndex, const sal_Int32 nTextMarkupType)
 
css::uno::Sequence< css::accessibility::TextSegment > getTextMarkupAtIndex (const sal_Int32 nCharIndex, const sal_Int32 nTextMarkupType)
 

Private Member Functions

 SwTextMarkupHelper (const SwTextMarkupHelper &)=delete
 
SwTextMarkupHelperoperator= (const SwTextMarkupHelper &)=delete
 
std::unique_ptr< sw::WrongListIteratorCountergetIterator (sal_Int32 nTextMarkupType)
 

Private Attributes

const SwAccessiblePortionDatamrPortionData
 
SwTextFrame const * m_pTextFrame
 
const SwWrongListmpTextMarkupList
 

Detailed Description

Definition at line 37 of file textmarkuphelper.hxx.

Constructor & Destructor Documentation

◆ SwTextMarkupHelper() [1/3]

SwTextMarkupHelper::SwTextMarkupHelper ( const SwAccessiblePortionData rPortionData,
const SwTextFrame rTextFrame 
)

Definition at line 72 of file textmarkuphelper.cxx.

◆ SwTextMarkupHelper() [2/3]

SwTextMarkupHelper::SwTextMarkupHelper ( const SwAccessiblePortionData rPortionData,
const SwWrongList rTextMarkupList 
)

Definition at line 81 of file textmarkuphelper.cxx.

◆ SwTextMarkupHelper() [3/3]

SwTextMarkupHelper::SwTextMarkupHelper ( const SwTextMarkupHelper )
privatedelete

Member Function Documentation

◆ getIterator()

std::unique_ptr< sw::WrongListIteratorCounter > SwTextMarkupHelper::getIterator ( sal_Int32  nTextMarkupType)
private

Definition at line 90 of file textmarkuphelper.cxx.

References m_pTextFrame, and mpTextMarkupList.

Referenced by getTextMarkup(), getTextMarkupAtIndex(), and getTextMarkupCount().

◆ getTextMarkup()

css::accessibility::TextSegment SwTextMarkupHelper::getTextMarkup ( const sal_Int32  nTextMarkupIndex,
const sal_Int32  nTextMarkupType 
)
Exceptions
css::lang::IndexOutOfBoundsException
css::lang::IllegalArgumentException
css::uno::RuntimeException

Definition at line 130 of file textmarkuphelper.cxx.

References SwAccessiblePortionData::GetAccessiblePosition(), SwAccessiblePortionData::GetAccessibleString(), getIterator(), getTextMarkupCount(), SwAccessiblePortionData::IsValidCorePosition(), and mrPortionData.

◆ getTextMarkupAtIndex()

css::uno::Sequence< css::accessibility::TextSegment > SwTextMarkupHelper::getTextMarkupAtIndex ( const sal_Int32  nCharIndex,
const sal_Int32  nTextMarkupType 
)
Exceptions
css::lang::IndexOutOfBoundsException
css::lang::IllegalArgumentException
css::uno::RuntimeException

Definition at line 188 of file textmarkuphelper.cxx.

References comphelper::containerToSequence(), count, SwAccessiblePortionData::GetAccessiblePosition(), SwAccessiblePortionData::GetAccessibleString(), SwAccessiblePortionData::GetCoreViewPosition(), getIterator(), i, and mrPortionData.

◆ getTextMarkupCount()

sal_Int32 SwTextMarkupHelper::getTextMarkupCount ( const sal_Int32  nTextMarkupType)
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException

Definition at line 111 of file textmarkuphelper.cxx.

References getIterator(), i, SwAccessiblePortionData::IsValidCorePosition(), and mrPortionData.

Referenced by getTextMarkup().

◆ operator=()

SwTextMarkupHelper & SwTextMarkupHelper::operator= ( const SwTextMarkupHelper )
privatedelete

Member Data Documentation

◆ m_pTextFrame

SwTextFrame const* SwTextMarkupHelper::m_pTextFrame
private

Definition at line 71 of file textmarkuphelper.hxx.

Referenced by getIterator().

◆ mpTextMarkupList

const SwWrongList* SwTextMarkupHelper::mpTextMarkupList
private

Definition at line 72 of file textmarkuphelper.hxx.

Referenced by getIterator().

◆ mrPortionData

const SwAccessiblePortionData& SwTextMarkupHelper::mrPortionData
private

Definition at line 69 of file textmarkuphelper.hxx.

Referenced by getTextMarkup(), getTextMarkupAtIndex(), and getTextMarkupCount().


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