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::Reference< css::text::XTextCursor > | CreateCursor () |
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 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 44 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 1142 of file unotext.cxx.
|
overridevirtual |
Reimplemented in SwXRedline, SwXCell, and SwXFootnote.
Definition at line 1158 of file unotext.cxx.
|
overridevirtual |
Definition at line 1457 of file unotext.cxx.
References getEnd(), and insertTextContentWithProperties().
|
overridevirtual |
Definition at line 1384 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 1055 of file unotext.cxx.
References m_pImpl.
|
override |
Definition at line 1038 of file unotext.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 2177 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, and TOOLS_WARN_EXCEPTION.
|
overridevirtual |
Definition at line 1485 of file unotext.cxx.
References SwPosition::Adjust(), IDocumentContentOperations::AppendTextNode(), SwXTextFrame::createTextCursor(), 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::FindSttNodeByType(), SwNode::FindTableNode(), fnMoveForward, fnParaEnd, fnParaStart, SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwFormatAnchor::GetContentAnchor(), GetDoc(), SwDoc::getIDocumentContentOperations(), SwNode::GetIndex(), SwFormat::GetName(), SwFrameFormat::GetOtherTextBoxFormats(), SwXTextCursor::GetPaM(), SwPaM::GetPoint(), SwPaM::GetPointNode(), GetStartNode(), SwStartNode::GetStartNodeType(), GoCurrPara(), GoInContent(), i, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SwXTextRange::Invalidate(), 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 2301 of file unotext.cxx.
References SwPosition::AssignEndIndex(), SwPosition::AssignStartIndex(), CheckPosInFly, SwNode::EndOfSectionNode(), SwPaM::GetMark(), SwPosition::GetNode(), SwPaM::GetPoint(), GetStartNode(), SwNode::GetTextNode(), and m_pImpl.
|
virtual |
css::uno::RuntimeException |
Reimplemented in SwXTextFrame, SwXRedlineText, SwXCell, SwXHeadFootText, and SwXFootnote.
Definition at line 179 of file unotext.cxx.
References GetDoc(), SwNodes::GetEndOfContent(), SwDoc::GetNodes(), IsValid(), and m_pImpl.
Referenced by SwXText::Impl::CheckForOwnMember(), getEnd(), getStart(), getString(), setString(), and sw::XTextRangeToSwPaM().
|
overridevirtual |
Definition at line 1178 of file unotext.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1187 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(), CreateCursor(), SwXTextFrame::createEnumeration(), SwXRedlineText::createEnumeration(), SwXRedline::createEnumeration(), SwXCell::createEnumeration(), SwXHeadFootText::createEnumeration(), SwXFootnote::createEnumeration(), SwXBodyText::createParagraphEnumeration(), SwXTextFrame::createTextCursor(), SwXRedlineText::createTextCursor(), SwXRedline::createTextCursor(), SwXCell::createTextCursor(), SwXFootnote::createTextCursor(), SwXBodyText::CreateTextCursor(), SwXHeadFootText::CreateTextCursor(), SwXTextFrame::createTextCursorByRange(), SwXCell::createTextCursorByRange(), SwXBodyText::createTextCursorByRange(), SwXHeadFootText::createTextCursorByRange(), SwXFootnote::createTextCursorByRange(), 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 854 of file unotext.cxx.
References cInvalidObject, and CreateCursor().
Referenced by appendTextContent(), and appendTextPortion().
|
overridevirtual |
Reimplemented in SwXRedline, SwXCell, and SwXFootnote.
Definition at line 1072 of file unotext.cxx.
References m_pImpl.
|
overridevirtual |
Reimplemented in SwXTextFrame, SwXRedline, SwXCell, and SwXFootnote.
Definition at line 1089 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 838 of file unotext.cxx.
References cInvalidObject, and CreateCursor().
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 869 of file unotext.cxx.
References CreateCursor(), and SAL_WARN.
Referenced by SwXCell::GetAny(), SwXCell::getError(), SwXCell::GetForcedNumericalValue(), and SwXCell::getValue().
|
overridevirtual |
Reimplemented in SwXTextFrame.
Definition at line 828 of file unotext.cxx.
|
overridevirtual |
Reimplemented in SwXTextFrame, SwXRedlineText, SwXRedline, SwXCell, SwXBodyText, SwXHeadFootText, and SwXFootnote.
Definition at line 261 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 386 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 282 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 492 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 667 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 614 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 1398 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 1308 of file unotext.cxx.
References aSwMapProvider, SwUnoCursorHelper::DocInsertStringSplitCR(), SwXTextCursor::GetCursor(), 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(), CreateCursor(), SwXBodyText::createParagraphEnumeration(), SwXBodyText::CreateTextCursor(), SwXBodyText::createTextCursorByRange(), 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 194 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 1150 of file unotext.cxx.
|
overridevirtual |
Definition at line 814 of file unotext.cxx.
|
overridevirtual |
Definition at line 765 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 717 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 1166 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 1082 of file unotext.cxx.
|
overridevirtual |
Reimplemented in SwXCell.
Definition at line 884 of file unotext.cxx.
References IDocumentContentOperations::AppendTextNode(), cInvalidObject, CreateCursor(), 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 57 of file unotext.hxx.
Referenced by CheckForOwnMemberMeta(), compareRegionEnds(), compareRegionStarts(), convertToTable(), convertToTextFrame(), copyText(), CreateCursor(), finishParagraph(), finishParagraphInsert(), GetDoc(), getPropertySetInfo(), getPropertyValue(), insertControlCharacter(), insertString(), insertTextContent(), insertTextContentWithProperties(), insertTextPortion(), Invalidate(), IsValid(), SetDoc(), and setString().