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

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

SfxItemPropertySet const & m_rPropSet
const CursorType m_eType
bool m_bIsValid

Detailed Description

Definition at line 79 of file unotext.cxx.

Constructor & Destructor Documentation

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

Definition at line 89 of file unotext.cxx.

Member Function Documentation

bool SwXText::Impl::CheckForOwnMember ( const SwPaM rPaM)
sal_Int16 SwXText::Impl::ComparePositions ( const uno::Reference< text::XTextRange > &  xPos1,
const uno::Reference< text::XTextRange > &  xPos2 

Definition at line 1025 of file unotext.cxx.

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

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 1853 of file unotext.cxx.

References SwNodeRange::aEnd, SwNodeRange::aStart, SwPaM::DeleteMark(), SwPaM::End(), fnMoveBackward, SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), SwPaM::GetNode(), SwPaM::GetPoint(), SwNode::GetTextNode(), GoInNode(), SwNode::IsEndNode(), SwNode::IsStartNode(), SwTextNode::Len(), SwPaM::Move(), SwPosition::nContent, SwPosition::nNode, SwPaM::Start(), and sw::XTextRangeToSwPaM().

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

Member Data Documentation

bool SwXText::Impl::m_bIsValid

Definition at line 87 of file unotext.cxx.

const CursorType SwXText::Impl::m_eType

Definition at line 85 of file unotext.cxx.

Referenced by CheckForOwnMember().

SwDoc* SwXText::Impl::m_pDoc

Definition at line 86 of file unotext.cxx.

SfxItemPropertySet const& SwXText::Impl::m_rPropSet

Definition at line 84 of file unotext.cxx.

SwXText& SwXText::Impl::m_rThis

Definition at line 83 of file unotext.cxx.

Referenced by CheckForOwnMember().

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