LibreOffice Module sw (master) 1
|
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 | |
SwXText & | m_rThis |
SfxItemPropertySet const & | m_rPropSet |
const CursorType | m_eType |
SwDoc * | m_pDoc |
bool | m_bIsValid |
Definition at line 80 of file unotext.cxx.
|
inline |
Definition at line 90 of file unotext.cxx.
References eType.
bool SwXText::Impl::CheckForOwnMember | ( | const SwPaM & | rPaM | ) |
lang::IllegalArgumentException | |
uno::RuntimeException |
Definition at line 971 of file unotext.cxx.
References SwXText::createXTextCursor(), SwNode::FindSttNodeByType(), Footer, Footnote, Frame, SwPaM::GetPointNode(), SwStartNode::GetStartNodeType(), Header, SwNode::IsSectionNode(), SwNode::IsTableNode(), m_eType, m_rThis, SwNode::StartOfSectionNode(), SwFlyStartNode, SwFooterStartNode, SwFootnoteStartNode, SwHeaderStartNode, SwNormalStartNode, SwTableBoxStartNode, and TableText.
sal_Int16 SwXText::Impl::ComparePositions | ( | const uno::Reference< text::XTextRange > & | xPos1, |
const uno::Reference< text::XTextRange > & | xPos2 | ||
) |
lang::IllegalArgumentException | |
uno::RuntimeException |
Definition at line 1015 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 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().
uno::Reference< text::XTextRange > SwXText::Impl::finishOrAppendParagraph | ( | const uno::Sequence< beans::PropertyValue > & | rCharacterAndParagraphProperties, |
const uno::Reference< text::XTextRange > & | xInsertPosition | ||
) |
lang::IllegalArgumentException | |
uno::RuntimeException |
Definition at line 1213 of file unotext.cxx.
References aSwMapProvider, SwXParagraph::CreateXParagraph(), END, SwNode::EndOfSectionNode(), fnMoveBackward, SwPosition::GetNode(), SwPaM::GetPoint(), SwUnoPropertyMapProvider::GetPropertySet(), SwNode::GetStartNode(), SwNode::GetTextNode(), GoInNode(), SwTextNode::Len(), SwPaM::Move(), PROPERTY_MAP_PARAGRAPH, SwPaM::SetMark(), SwUnoCursorHelper::SetPropertyValue(), SwUnoCursorHelper::SetPropertyValues(), sMessage, SwPaM::Start(), START, and sw::XTextRangeToSwPaM().
bool SwXText::Impl::m_bIsValid |
Definition at line 88 of file unotext.cxx.
const CursorType SwXText::Impl::m_eType |
Definition at line 86 of file unotext.cxx.
Referenced by CheckForOwnMember().
SwDoc* SwXText::Impl::m_pDoc |
Definition at line 87 of file unotext.cxx.
SfxItemPropertySet const& SwXText::Impl::m_rPropSet |
Definition at line 85 of file unotext.cxx.
SwXText& SwXText::Impl::m_rThis |
Definition at line 84 of file unotext.cxx.
Referenced by CheckForOwnMember().