LibreOffice Module sw (master) 1
|
#include <unotext.hxx>
Classes | |
class | Impl |
Public Member Functions | |
virtual const SwStartNode * | GetStartNode () const |
SwXText (SwDoc *const pDoc, const CursorType eType) | |
const SwDoc * | GetDoc () const |
SwDoc * | GetDoc () |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &rPropertyName, const css::uno::Any &rValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &rPropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override |
virtual css::uno::Reference< css::text::XText > SAL_CALL | getText () override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | getStart () override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | getEnd () override |
virtual OUString SAL_CALL | getString () override |
virtual void SAL_CALL | setString (const OUString &rString) override |
virtual void SAL_CALL | insertString (const css::uno::Reference< css::text::XTextRange > &xRange, const OUString &aString, sal_Bool bAbsorb) override |
virtual void SAL_CALL | insertControlCharacter (const css::uno::Reference< css::text::XTextRange > &xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb) override |
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL | createTextCursorByRange (const ::css::uno::Reference< ::css::text::XTextRange > &aTextPosition) override final |
virtual rtl::Reference< SwXTextCursor > | createXTextCursorByRange (const ::css::uno::Reference< ::css::text::XTextRange > &aTextPosition)=0 |
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL | createTextCursor () override final |
virtual rtl::Reference< SwXTextCursor > | createXTextCursor ()=0 |
virtual void SAL_CALL | insertTextContent (const css::uno::Reference< css::text::XTextRange > &xRange, const css::uno::Reference< css::text::XTextContent > &xContent, sal_Bool bAbsorb) override |
virtual void SAL_CALL | removeTextContent (const css::uno::Reference< css::text::XTextContent > &xContent) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | finishParagraph (const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | finishParagraphInsert (const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &xInsertPosition) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | appendTextPortion (const OUString &rText, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | insertTextPortion (const OUString &rText, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &rTextRange) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | appendTextContent (const css::uno::Reference< css::text::XTextContent > &xTextContent, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties) override |
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL | insertTextContentWithProperties (const css::uno::Reference< css::text::XTextContent > &xTextContent, const css::uno::Sequence< css::beans::PropertyValue > &rCharacterAndParagraphProperties, const css::uno::Reference< css::text::XTextRange > &xInsertPosition) override |
virtual css::uno::Reference< css::text::XTextContent > SAL_CALL | convertToTextFrame (const css::uno::Reference< css::text::XTextRange > &xStart, const css::uno::Reference< css::text::XTextRange > &xEnd, const css::uno::Sequence< css::beans::PropertyValue > &xFrameProperties) override |
virtual css::uno::Reference< css::text::XTextTable > SAL_CALL | convertToTable (css::uno::Sequence< css::uno::Sequence< css::uno::Sequence< css::uno::Reference< css::text::XTextRange > > > > const &rTableRanges, css::uno::Sequence< css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > > const &rCellProperties, css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > const &rRowProperties, css::uno::Sequence< css::beans::PropertyValue > const &rTableProperties) override |
virtual void SAL_CALL | copyText (const css::uno::Reference< css::text::XTextCopy > &xSource) override |
sal_Int16 SAL_CALL | compareRegionStarts (const css::uno::Reference< css::text::XTextRange > &xR1, const css::uno::Reference< css::text::XTextRange > &xR2) override |
sal_Int16 SAL_CALL | compareRegionEnds (const css::uno::Reference< css::text::XTextRange > &xR1, const css::uno::Reference< css::text::XTextRange > &xR2) override |
virtual void SAL_CALL | insertTextContentBefore (const css::uno::Reference< css::text::XTextContent > &xNewContent, const css::uno::Reference< css::text::XTextContent > &xSuccessor) override |
virtual void SAL_CALL | insertTextContentAfter (const css::uno::Reference< css::text::XTextContent > &xNewContent, const css::uno::Reference< css::text::XTextContent > &xPredecessor) override |
virtual void SAL_CALL | removeTextContentBefore (const css::uno::Reference< css::text::XTextContent > &xSuccessor) override |
virtual void SAL_CALL | removeTextContentAfter (const css::uno::Reference< css::text::XTextContent > &xPredecessor) override |
Protected Member Functions | |
bool | IsValid () const |
void | Invalidate () |
void | SetDoc (SwDoc *const pDoc) |
virtual | ~SwXText () |
Private Member Functions | |
virtual void | PrepareForAttach (css::uno::Reference< css::text::XTextRange > &xRange, SwPaM const &rPam) |
virtual bool | CheckForOwnMemberMeta (const SwPaM &rPam, const bool bAbsorb) |
Private Attributes | |
::sw::UnoImplPtr< Impl > | m_pImpl |
Definition at line 45 of file unotext.hxx.
|
protectedvirtual |
Definition at line 130 of file unotext.cxx.
SwXText::SwXText | ( | SwDoc *const | pDoc, |
const CursorType | eType | ||
) |
Definition at line 125 of file unotext.cxx.
|
overridevirtual |
Reimplemented in SwXRedline, SwXCell, and SwXFootnote.
Definition at line 1158 of file unotext.cxx.
|
overridevirtual |
Reimplemented in SwXRedline, SwXCell, and SwXFootnote.
Definition at line 1174 of file unotext.cxx.
|
overridevirtual |
Definition at line 1472 of file unotext.cxx.
References getEnd(), and insertTextContentWithProperties().
|
overridevirtual |
Definition at line 1399 of file unotext.cxx.
References getEnd(), and insertTextPortion().
|
privatevirtual |
css::lang::IllegalArgumentException | |
css::uno::RuntimeException |
Definition at line 167 of file unotext.cxx.
Referenced by insertControlCharacter(), insertString(), and insertTextContent().
|
override |
Definition at line 1071 of file unotext.cxx.
References m_pImpl.
|
override |
Definition at line 1054 of file unotext.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2222 of file unotext.cxx.
References SwXTextTable::CreateXTextTable(), SwTable::FindTable(), SwTable::GetFrameFormat(), SwXTextTable::GetFrameFormat(), getLength(), IDocumentRedlineAccess::GetRedlineFlags(), IDocumentRedlineAccess::IsShowChanges(), IsValid(), lcl_ApplyCellProperties(), lcl_ApplyRowProperties(), lcl_GetLeftPos(), lcl_MergeCells(), m_pImpl, min(), SAL_WARN_IF, TOOLS_WARN_EXCEPTION, and u.
|
overridevirtual |
Definition at line 1528 of file unotext.cxx.
References SwPosition::Adjust(), IDocumentContentOperations::AppendTextNode(), SwXTextFrame::createXTextCursor(), SwXTextFrame::CreateXTextFrame(), IDocumentContentOperations::DelFullPara(), eMode, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), END, SwNode::EndOfSectionNode(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), SwNode::FindFooterStartNode(), SwNode::FindHeaderStartNode(), SwFrameFormat::FindSdrObject(), SwNode::FindTableNode(), fnMoveForward, fnParaEnd, fnParaStart, SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwFormatAnchor::GetContentAnchor(), GetDoc(), SwDoc::getIDocumentContentOperations(), SwNode::GetIndex(), SwFormat::GetName(), SwFrameFormat::GetOtherTextBoxFormats(), SwPaM::GetPoint(), GetStartNode(), SwStartNode::GetStartNodeType(), GoCurrPara(), GoInContent(), i, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SwXTextRange::Invalidate(), IsAtParaMatch(), isGraphicNode(), SwNode::IsSectionNode(), IsValid(), SwTextNode::Len(), m_pImpl, SwPaM::Move(), SwCursor::MovePara(), RES_FLYFRMFMT(), SwFormatAnchor::SetAnchor(), SwPaM::SetMark(), SwPosition::SetMark(), size, sMessage, SwPaM::Start(), START, SwNode::StartOfSectionNode(), SwFlyStartNode, SwTableBoxStartNode, SwFormat::Which(), and sw::XTextRangeToSwPaM().
|
overridevirtual |
Definition at line 2375 of file unotext.cxx.
References SwPosition::AssignEndIndex(), SwPosition::AssignStartIndex(), CheckPosInFly, SwNode::EndOfSectionNode(), SwPaM::GetMark(), SwPosition::GetNode(), SwPaM::GetPoint(), GetStartNode(), SwNode::GetTextNode(), and m_pImpl.
|
finaloverridevirtual |
Definition at line 178 of file unotext.cxx.
References cInvalidObject, and createXTextCursor().
|
finaloverridevirtual |
Definition at line 205 of file unotext.cxx.
References createXTextCursorByRange().
|
pure virtual |
Implemented in SwXTextFrame, SwXRedlineText, SwXRedline, SwXCell, SwXBodyText, SwXHeadFootText, and SwXFootnote.
Definition at line 192 of file unotext.cxx.
References GetDoc(), SwNodes::GetEndOfContent(), SwDoc::GetNodes(), IsValid(), and m_pImpl.
Referenced by SwXText::Impl::CheckForOwnMember(), createTextCursor(), getEnd(), getStart(), getString(), and setString().
|
pure virtual |
Implemented in SwXTextFrame, SwXRedlineText, SwXRedline, SwXCell, SwXBodyText, SwXHeadFootText, and SwXFootnote.
Referenced by createTextCursorByRange(), and insertTextPortion().
|
overridevirtual |
Definition at line 1194 of file unotext.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1203 of file unotext.cxx.
References m_pImpl.
SwDoc * SwXText::GetDoc | ( | ) |
Definition at line 139 of file unotext.cxx.
References m_pImpl.
const SwDoc * SwXText::GetDoc | ( | ) | const |
Definition at line 134 of file unotext.cxx.
References m_pImpl.
Referenced by SwXAutoTextEntry::applyTo(), convertToTextFrame(), SwXTextFrame::createEnumeration(), SwXRedlineText::createEnumeration(), SwXRedline::createEnumeration(), SwXCell::createEnumeration(), SwXHeadFootText::createEnumeration(), SwXFootnote::createEnumeration(), SwXBodyText::createParagraphEnumeration(), SwXBodyText::CreateTextCursor(), SwXHeadFootText::CreateTextCursor(), SwXTextFrame::createXTextCursor(), SwXRedlineText::createXTextCursor(), SwXRedline::createXTextCursor(), SwXCell::createXTextCursor(), SwXFootnote::createXTextCursor(), createXTextCursor(), SwXTextFrame::createXTextCursorByRange(), SwXCell::createXTextCursorByRange(), SwXBodyText::createXTextCursorByRange(), SwXHeadFootText::createXTextCursorByRange(), SwXFootnote::createXTextCursorByRange(), SwXFootnote::dispose(), SwXFootnote::getAnchor(), SwXMLExport::getDoc(), SwXMLImport::getDoc(), SwXFootnote::Impl::GetFootnoteFormat(), SwXCell::GetForcedNumericalValue(), getPropertyValue(), GetStartNode(), insertControlCharacter(), insertString(), insertTextContent(), insertTextContentAfter(), insertTextContentBefore(), insertTextContentWithProperties(), removeTextContentAfter(), removeTextContentBefore(), SwXCell::setFormula(), SwXFootnote::setLabel(), and setString().
|
overridevirtual |
Definition at line 874 of file unotext.cxx.
References cInvalidObject, and createXTextCursor().
Referenced by appendTextContent(), and appendTextPortion().
|
overridevirtual |
Reimplemented in SwXRedline, SwXCell, and SwXFootnote.
Definition at line 1088 of file unotext.cxx.
References m_pImpl.
|
overridevirtual |
Reimplemented in SwXTextFrame, SwXRedline, SwXCell, and SwXFootnote.
Definition at line 1105 of file unotext.cxx.
References SwXRedlinePortion::CreateRedlineProperties(), SwNode::EndOfSectionNode(), FN_UNO_REDLINE_NODE_END, GetDoc(), SwDoc::getIDocumentRedlineAccess(), SwPosition::GetNode(), IDocumentRedlineAccess::GetRedlineTable(), GetStartNode(), IsValid(), m_pImpl, SfxItemPropertyMapEntry::nWID, SwRedlineTable::size(), and SwPaM::Start().
Referenced by SwXTextFrame::getPropertyValue(), SwXCell::getPropertyValue(), and SwXFootnote::getPropertyValue().
|
overridevirtual |
Definition at line 858 of file unotext.cxx.
References cInvalidObject, and createXTextCursor().
Referenced by SwXAutoTextEntry::applyTo().
|
virtual |
Reimplemented in SwXTextFrame, SwXRedlineText, SwXCell, SwXHeadFootText, and SwXFootnote.
Definition at line 173 of file unotext.cxx.
References GetDoc(), SwNodes::GetEndOfContent(), SwDoc::GetNodes(), and SwNode::StartOfSectionNode().
Referenced by convertToTextFrame(), copyText(), getPropertyValue(), insertString(), insertTextContent(), and setString().
|
overridevirtual |
Definition at line 889 of file unotext.cxx.
References createXTextCursor(), and SAL_WARN.
Referenced by SwXCell::GetAny(), SwXCell::getError(), SwXCell::GetForcedNumericalValue(), and SwXCell::getValue().
|
overridevirtual |
Reimplemented in SwXTextFrame.
Definition at line 848 of file unotext.cxx.
|
overridevirtual |
Reimplemented in SwXTextFrame, SwXRedlineText, SwXRedline, SwXCell, SwXBodyText, SwXHeadFootText, and SwXFootnote.
Definition at line 281 of file unotext.cxx.
References aTypes, and cppu::UnoType< typename T >::get().
Referenced by SwXTextFrame::getTypes(), SwXRedlineText::getTypes(), SwXRedline::getTypes(), SwXCell::getTypes(), SwXBodyText::getTypes(), SwXHeadFootText::getTypes(), and SwXFootnote::getTypes().
|
overridevirtual |
Definition at line 406 of file unotext.cxx.
References CHAR_HARDBLANK, CHAR_HARDHYPHEN, CHAR_SOFTHYPHEN, CheckForOwnMemberMeta(), SwPaM::DeleteMark(), EMPTYEXPAND, FORCEHINTEXPAND, GetDoc(), SwPaM::GetMark(), SwPosition::GetNode(), SwPaM::GetPoint(), SwPaM::HasMark(), SwCursor::Left(), m_pImpl, SwUnoCursorHelper::SelectPam(), SwPaM::SetMark(), SwXTextRange::SetPositions(), and sw::XTextRangeToSwPaM().
|
overridevirtual |
! scan for CR characters and inserting the paragraph breaks ! has to be done in the called function. ! Implemented in SwXTextRange::DeleteAndInsert
Definition at line 302 of file unotext.cxx.
References CheckForOwnMemberMeta(), sw::Default, SwXTextCursor::DeleteAndInsert(), SwXTextRange::DeleteAndInsert(), SwUnoCursorHelper::DocInsertStringSplitCR(), cppu::getCaughtException(), GetDoc(), SwPaM::GetPointNode(), SwXTextRange::GetPositions(), GetStartNode(), SwNode::IsSectionNode(), m_pImpl, Meta, SwPaM::Start(), and SwNode::StartOfSectionNode().
|
overridevirtual |
Definition at line 512 of file unotext.cxx.
References CheckForOwnMemberMeta(), cInvalidObject, sw::Default, FieldTypeAnnotation, SwNode::FindSttNodeByType(), Footer, Footnote, Frame, GetDoc(), SwPaM::GetPointNode(), SwXTextField::GetServiceId(), GetStartNode(), Header, SwNode::IsSectionNode(), m_pImpl, PrepareForAttach(), SwNode::StartOfSectionNode(), SwFlyStartNode, SwFooterStartNode, SwFootnoteStartNode, SwHeaderStartNode, SwNormalStartNode, SwTableBoxStartNode, TableText, u, and sw::XTextRangeToSwPaM().
Referenced by insertTextContentWithProperties().
|
overridevirtual |
Definition at line 687 of file unotext.cxx.
References IDocumentContentOperations::AppendTextNode(), SwXParagraph::attachToText(), SwNode::EndOfSectionNode(), SwTable::FindTable(), SwFormat::GetDoc(), GetDoc(), SwXTextSection::GetFormat(), SwXTextTable::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwPosition::GetNode(), SwSectionFormat::GetSectionNode(), SwTable::GetTableNode(), SwNode::GetTextNode(), and SwXParagraph::IsDescriptor().
|
overridevirtual |
Definition at line 634 of file unotext.cxx.
References IDocumentContentOperations::AppendTextNode(), SwXParagraph::attachToText(), cInvalidObject, SwTable::FindTable(), SwFormat::GetDoc(), GetDoc(), SwXTextSection::GetFormat(), SwXTextTable::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwPosition::GetNode(), SwSectionFormat::GetSectionNode(), SwTable::GetTableNode(), SwNode::GetTextNode(), and SwXParagraph::IsDescriptor().
|
overridevirtual |
Definition at line 1413 of file unotext.cxx.
References SwRewriter::AddRule(), SwDoc::DontExpandFormat(), cppu::getCaughtException(), GetDoc(), INSERT, insertTextContent(), IsValid(), m_pImpl, SwPaM::Start(), SwResId(), UndoArg1, and sw::XTextRangeToSwPaM().
Referenced by appendTextContent().
|
overridevirtual |
Definition at line 1324 of file unotext.cxx.
References aSwMapProvider, createXTextCursorByRange(), SwUnoCursorHelper::DocInsertStringSplitCR(), SwNodeIndex::GetNode(), SwUnoPropertyMapProvider::GetPropertySet(), INSERT, IsValid(), m_pImpl, NOFORMATATTR, PROPERTY_MAP_TEXT_CURSOR, SwUnoCursorHelper::SelectPam(), SwUnoCursorHelper::SetPropertyValues(), and sMessage.
Referenced by appendTextPortion().
|
protected |
Definition at line 149 of file unotext.cxx.
References m_pImpl.
Referenced by SwXFootnote::Impl::Notify().
|
protected |
Definition at line 144 of file unotext.cxx.
References m_pImpl.
Referenced by convertToTable(), convertToTextFrame(), SwXBodyText::createParagraphEnumeration(), SwXBodyText::CreateTextCursor(), createXTextCursor(), SwXBodyText::createXTextCursorByRange(), getPropertyValue(), SwXBodyText::hasElements(), insertTextContentWithProperties(), and insertTextPortion().
|
privatevirtual |
Definition at line 163 of file unotext.cxx.
Referenced by insertTextContent().
|
overridevirtual |
Reimplemented in SwXTextFrame, SwXRedlineText, SwXRedline, SwXCell, SwXBodyText, SwXHeadFootText, and SwXFootnote.
Definition at line 214 of file unotext.cxx.
Referenced by SwXTextFrame::queryInterface(), SwXRedlineText::queryInterface(), SwXRedline::queryInterface(), SwXCell::queryInterface(), SwXBodyText::queryInterface(), SwXHeadFootText::queryInterface(), and SwXFootnote::queryInterface().
|
overridevirtual |
Reimplemented in SwXRedline, SwXCell, and SwXFootnote.
Definition at line 1166 of file unotext.cxx.
|
overridevirtual |
Definition at line 834 of file unotext.cxx.
|
overridevirtual |
Definition at line 785 of file unotext.cxx.
References cInvalidObject, IDocumentContentOperations::DelFullPara(), SwNode::EndOfSectionNode(), SwTable::FindTable(), SwFormat::GetDoc(), GetDoc(), SwXTextSection::GetFormat(), SwXTextTable::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwNodeIndex::GetNode(), SwSectionFormat::GetSectionNode(), SwTable::GetTableNode(), and SwNode::IsTextNode().
|
overridevirtual |
Definition at line 737 of file unotext.cxx.
References cInvalidObject, IDocumentContentOperations::DelFullPara(), SwTable::FindTable(), SwFormat::GetDoc(), GetDoc(), SwXTextSection::GetFormat(), SwXTextTable::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwNodeIndex::GetNode(), SwSectionFormat::GetSectionNode(), SwTable::GetTableNode(), and SwNode::IsTextNode().
|
overridevirtual |
Reimplemented in SwXRedline, SwXCell, and SwXFootnote.
Definition at line 1182 of file unotext.cxx.
|
protected |
Definition at line 154 of file unotext.cxx.
References m_pImpl.
Referenced by SwXFootnote::attach(), and SwXFootnote::Impl::Invalidate().
|
overridevirtual |
Reimplemented in SwXRedline, SwXCell, and SwXFootnote.
Definition at line 1098 of file unotext.cxx.
|
overridevirtual |
Reimplemented in SwXCell.
Definition at line 904 of file unotext.cxx.
References IDocumentContentOperations::AppendTextNode(), cInvalidObject, createXTextCursor(), END, SwNode::EndOfSectionNode(), GetDoc(), SwDoc::getIDocumentContentOperations(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetNode(), SwNode::GetNodeType(), GetStartNode(), m_pImpl, Meta, Section, SwPaM::Start(), START, and Table.
|
private |
Definition at line 58 of file unotext.hxx.
Referenced by CheckForOwnMemberMeta(), compareRegionEnds(), compareRegionStarts(), convertToTable(), convertToTextFrame(), copyText(), createXTextCursor(), finishParagraph(), finishParagraphInsert(), GetDoc(), getPropertySetInfo(), getPropertyValue(), insertControlCharacter(), insertString(), insertTextContent(), insertTextContentWithProperties(), insertTextPortion(), Invalidate(), IsValid(), SetDoc(), and setString().