LibreOffice Module sw (master) 1
Public Member Functions | Public Attributes | List of all members
SwXText::Impl Class Reference
Collaboration diagram for SwXText::Impl:
[legend]

Public Member Functions

 Impl (SwXText &rThis, SwDoc *const pDoc, const CursorType eType)
 
uno::Reference< text::XTextRange > finishOrAppendParagraph (const uno::Sequence< beans::PropertyValue > &rCharacterAndParagraphProperties, const uno::Reference< text::XTextRange > &xInsertPosition)
 
sal_Int16 ComparePositions (const uno::Reference< text::XTextRange > &xPos1, const uno::Reference< text::XTextRange > &xPos2)
 
bool CheckForOwnMember (const SwPaM &rPaM)
 
void ConvertCell (const uno::Sequence< uno::Reference< text::XTextRange > > &rCell, std::vector< SwNodeRange > &rRowNodes, SwNodeRange *const pLastCell)
 

Public Attributes

SwXTextm_rThis
 
SfxItemPropertySet const & m_rPropSet
 
const CursorType m_eType
 
SwDocm_pDoc
 
bool m_bIsValid
 

Detailed Description

Definition at line 80 of file unotext.cxx.

Constructor & Destructor Documentation

◆ Impl()

SwXText::Impl::Impl ( SwXText rThis,
SwDoc *const  pDoc,
const CursorType  eType 
)
inline

Definition at line 90 of file unotext.cxx.

References eType.

Member Function Documentation

◆ CheckForOwnMember()

bool SwXText::Impl::CheckForOwnMember ( const SwPaM rPaM)

◆ ComparePositions()

sal_Int16 SwXText::Impl::ComparePositions ( const uno::Reference< text::XTextRange > &  xPos1,
const uno::Reference< text::XTextRange > &  xPos2 
)
Exceptions
lang::IllegalArgumentException
uno::RuntimeException

Definition at line 1015 of file unotext.cxx.

References SwPaM::Start(), and sw::XTextRangeToSwPaM().

◆ ConvertCell()

void SwXText::Impl::ConvertCell ( const uno::Sequence< uno::Reference< text::XTextRange > > &  rCell,
std::vector< SwNodeRange > &  rRowNodes,
SwNodeRange *const  pLastCell 
)

check the nodes between start and end it is allowed to have pairs of StartNode/EndNodes

The vector<vector> NodeRanges has to contain consecutive nodes. In rTableRanges the ranges don't need to be full paragraphs but they have to follow each other. To process the ranges they have to be aligned on paragraph borders by inserting paragraph breaks. Non-consecutive ranges must initiate an exception.

Definition at line 1878 of file unotext.cxx.

References SwNodeRange::aEnd, SwNodeRange::aStart, SwPaM::DeleteMark(), IDocumentMarkAccess::deleteMark(), SwPaM::End(), sw::mark::FindFieldSep(), fnMoveBackward, SwPosition::GetContentIndex(), SwNodeIndex::GetIndex(), IDocumentMarkAccess::getInnerFieldmarkFor(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwNode::GetTextNode(), GoInNode(), SwNode::IsEndNode(), SwNode::IsStartNode(), SwTextNode::Len(), SwPaM::Move(), SAL_INFO, SwPosition::SetContent(), SwPaM::Start(), and sw::XTextRangeToSwPaM().

◆ finishOrAppendParagraph()

uno::Reference< text::XTextRange > SwXText::Impl::finishOrAppendParagraph ( const uno::Sequence< beans::PropertyValue > &  rCharacterAndParagraphProperties,
const uno::Reference< text::XTextRange > &  xInsertPosition 
)

Member Data Documentation

◆ m_bIsValid

bool SwXText::Impl::m_bIsValid

Definition at line 88 of file unotext.cxx.

◆ m_eType

const CursorType SwXText::Impl::m_eType

Definition at line 86 of file unotext.cxx.

Referenced by CheckForOwnMember().

◆ m_pDoc

SwDoc* SwXText::Impl::m_pDoc

Definition at line 87 of file unotext.cxx.

◆ m_rPropSet

SfxItemPropertySet const& SwXText::Impl::m_rPropSet

Definition at line 85 of file unotext.cxx.

◆ m_rThis

SwXText& SwXText::Impl::m_rThis

Definition at line 84 of file unotext.cxx.

Referenced by CheckForOwnMember().


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