LibreOffice Module sw (master) 1
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SwXText Class Referenceabstract

#include <unotext.hxx>

Inheritance diagram for SwXText:
[legend]
Collaboration diagram for SwXText:
[legend]

Classes

class  Impl
 

Public Member Functions

virtual const SwStartNodeGetStartNode () const
 
 SwXText (SwDoc *const pDoc, const CursorType eType)
 
const SwDocGetDoc () const
 
SwDocGetDoc ()
 
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< SwXTextCursorcreateXTextCursorByRange (const ::css::uno::Reference< ::css::text::XTextRange > &aTextPosition)=0
 
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursor () override final
 
virtual rtl::Reference< SwXTextCursorcreateXTextCursor ()=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< Implm_pImpl
 

Detailed Description

Definition at line 45 of file unotext.hxx.

Constructor & Destructor Documentation

◆ ~SwXText()

SwXText::~SwXText ( )
protectedvirtual

Definition at line 130 of file unotext.cxx.

◆ SwXText()

SwXText::SwXText ( SwDoc *const  pDoc,
const CursorType  eType 
)

Definition at line 125 of file unotext.cxx.

References eType, and m_pImpl.

Member Function Documentation

◆ addPropertyChangeListener()

void SAL_CALL SwXText::addPropertyChangeListener ( const OUString &  rPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Reimplemented in SwXRedline, SwXCell, and SwXFootnote.

Definition at line 1158 of file unotext.cxx.

◆ addVetoableChangeListener()

void SAL_CALL SwXText::addVetoableChangeListener ( const OUString &  rPropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  xListener 
)
overridevirtual

Reimplemented in SwXRedline, SwXCell, and SwXFootnote.

Definition at line 1174 of file unotext.cxx.

◆ appendTextContent()

uno::Reference< text::XTextRange > SAL_CALL SwXText::appendTextContent ( const css::uno::Reference< css::text::XTextContent > &  xTextContent,
const css::uno::Sequence< css::beans::PropertyValue > &  rCharacterAndParagraphProperties 
)
overridevirtual

Definition at line 1472 of file unotext.cxx.

References getEnd(), and insertTextContentWithProperties().

◆ appendTextPortion()

uno::Reference< text::XTextRange > SAL_CALL SwXText::appendTextPortion ( const OUString &  rText,
const css::uno::Sequence< css::beans::PropertyValue > &  rCharacterAndParagraphProperties 
)
overridevirtual

Definition at line 1399 of file unotext.cxx.

References getEnd(), and insertTextPortion().

◆ CheckForOwnMemberMeta()

bool SwXText::CheckForOwnMemberMeta ( const SwPaM rPam,
const bool  bAbsorb 
)
privatevirtual
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException

Definition at line 167 of file unotext.cxx.

References m_pImpl, and Meta.

Referenced by insertControlCharacter(), insertString(), and insertTextContent().

◆ compareRegionEnds()

sal_Int16 SAL_CALL SwXText::compareRegionEnds ( const css::uno::Reference< css::text::XTextRange > &  xR1,
const css::uno::Reference< css::text::XTextRange > &  xR2 
)
override

Definition at line 1071 of file unotext.cxx.

References m_pImpl.

◆ compareRegionStarts()

sal_Int16 SAL_CALL SwXText::compareRegionStarts ( const css::uno::Reference< css::text::XTextRange > &  xR1,
const css::uno::Reference< css::text::XTextRange > &  xR2 
)
override

Definition at line 1054 of file unotext.cxx.

References m_pImpl.

◆ convertToTable()

uno::Reference< text::XTextTable > SAL_CALL SwXText::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 
)
overridevirtual

◆ convertToTextFrame()

uno::Reference< text::XTextContent > SAL_CALL SwXText::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 
)
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().

◆ copyText()

void SAL_CALL SwXText::copyText ( const css::uno::Reference< css::text::XTextCopy > &  xSource)
overridevirtual

◆ createTextCursor()

uno::Reference< text::XTextCursor > SAL_CALL SwXText::createTextCursor ( )
finaloverridevirtual

Definition at line 178 of file unotext.cxx.

References cInvalidObject, and createXTextCursor().

◆ createTextCursorByRange()

css::uno::Reference< css::text::XTextCursor > SAL_CALL SwXText::createTextCursorByRange ( const ::css::uno::Reference< ::css::text::XTextRange > &  aTextPosition)
finaloverridevirtual

Definition at line 205 of file unotext.cxx.

References createXTextCursorByRange().

◆ createXTextCursor()

rtl::Reference< SwXTextCursor > SwXText::createXTextCursor ( )
pure virtual

◆ createXTextCursorByRange()

virtual rtl::Reference< SwXTextCursor > SwXText::createXTextCursorByRange ( const ::css::uno::Reference< ::css::text::XTextRange > &  aTextPosition)
pure virtual

◆ finishParagraph()

uno::Reference< text::XTextRange > SAL_CALL SwXText::finishParagraph ( const css::uno::Sequence< css::beans::PropertyValue > &  rCharacterAndParagraphProperties)
overridevirtual

Definition at line 1194 of file unotext.cxx.

References m_pImpl.

◆ finishParagraphInsert()

uno::Reference< text::XTextRange > SAL_CALL SwXText::finishParagraphInsert ( const css::uno::Sequence< css::beans::PropertyValue > &  rCharacterAndParagraphProperties,
const css::uno::Reference< css::text::XTextRange > &  xInsertPosition 
)
overridevirtual

Definition at line 1203 of file unotext.cxx.

References m_pImpl.

◆ GetDoc() [1/2]

SwDoc * SwXText::GetDoc ( )

Definition at line 139 of file unotext.cxx.

References m_pImpl.

◆ GetDoc() [2/2]

const SwDoc * SwXText::GetDoc ( ) const

◆ getEnd()

uno::Reference< text::XTextRange > SAL_CALL SwXText::getEnd ( )
overridevirtual

Definition at line 874 of file unotext.cxx.

References cInvalidObject, and createXTextCursor().

Referenced by appendTextContent(), and appendTextPortion().

◆ getPropertySetInfo()

uno::Reference< beans::XPropertySetInfo > SAL_CALL SwXText::getPropertySetInfo ( )
overridevirtual

Reimplemented in SwXRedline, SwXCell, and SwXFootnote.

Definition at line 1088 of file unotext.cxx.

References m_pImpl.

◆ getPropertyValue()

uno::Any SAL_CALL SwXText::getPropertyValue ( const OUString &  rPropertyName)
overridevirtual

◆ getStart()

uno::Reference< text::XTextRange > SAL_CALL SwXText::getStart ( )
overridevirtual

Definition at line 858 of file unotext.cxx.

References cInvalidObject, and createXTextCursor().

Referenced by SwXAutoTextEntry::applyTo().

◆ GetStartNode()

const SwStartNode * SwXText::GetStartNode ( ) const
virtual

◆ getString()

OUString SAL_CALL SwXText::getString ( )
overridevirtual

◆ getText()

uno::Reference< text::XText > SAL_CALL SwXText::getText ( )
overridevirtual

Reimplemented in SwXTextFrame.

Definition at line 848 of file unotext.cxx.

◆ getTypes()

uno::Sequence< uno::Type > SAL_CALL SwXText::getTypes ( )
overridevirtual

◆ insertControlCharacter()

void SAL_CALL SwXText::insertControlCharacter ( const css::uno::Reference< css::text::XTextRange > &  xRange,
sal_Int16  nControlCharacter,
sal_Bool  bAbsorb 
)
overridevirtual

◆ insertString()

void SAL_CALL SwXText::insertString ( const css::uno::Reference< css::text::XTextRange > &  xRange,
const OUString &  aString,
sal_Bool  bAbsorb 
)
overridevirtual

◆ insertTextContent()

void SAL_CALL SwXText::insertTextContent ( const css::uno::Reference< css::text::XTextRange > &  xRange,
const css::uno::Reference< css::text::XTextContent > &  xContent,
sal_Bool  bAbsorb 
)
overridevirtual

◆ insertTextContentAfter()

void SAL_CALL SwXText::insertTextContentAfter ( const css::uno::Reference< css::text::XTextContent > &  xNewContent,
const css::uno::Reference< css::text::XTextContent > &  xPredecessor 
)
overridevirtual

◆ insertTextContentBefore()

void SAL_CALL SwXText::insertTextContentBefore ( const css::uno::Reference< css::text::XTextContent > &  xNewContent,
const css::uno::Reference< css::text::XTextContent > &  xSuccessor 
)
overridevirtual

◆ insertTextContentWithProperties()

uno::Reference< text::XTextRange > SAL_CALL SwXText::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 
)
overridevirtual

◆ insertTextPortion()

uno::Reference< text::XTextRange > SAL_CALL SwXText::insertTextPortion ( const OUString &  rText,
const css::uno::Sequence< css::beans::PropertyValue > &  rCharacterAndParagraphProperties,
const css::uno::Reference< css::text::XTextRange > &  rTextRange 
)
overridevirtual

◆ Invalidate()

void SwXText::Invalidate ( )
protected

Definition at line 149 of file unotext.cxx.

References m_pImpl.

Referenced by SwXFootnote::Impl::Notify().

◆ IsValid()

bool SwXText::IsValid ( ) const
protected

◆ PrepareForAttach()

void SwXText::PrepareForAttach ( css::uno::Reference< css::text::XTextRange > &  xRange,
SwPaM const &  rPam 
)
privatevirtual

Definition at line 163 of file unotext.cxx.

Referenced by insertTextContent().

◆ queryInterface()

uno::Any SAL_CALL SwXText::queryInterface ( const css::uno::Type &  rType)
overridevirtual

◆ removePropertyChangeListener()

void SAL_CALL SwXText::removePropertyChangeListener ( const OUString &  rPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Reimplemented in SwXRedline, SwXCell, and SwXFootnote.

Definition at line 1166 of file unotext.cxx.

◆ removeTextContent()

void SAL_CALL SwXText::removeTextContent ( const css::uno::Reference< css::text::XTextContent > &  xContent)
overridevirtual

Definition at line 834 of file unotext.cxx.

◆ removeTextContentAfter()

void SAL_CALL SwXText::removeTextContentAfter ( const css::uno::Reference< css::text::XTextContent > &  xPredecessor)
overridevirtual

◆ removeTextContentBefore()

void SAL_CALL SwXText::removeTextContentBefore ( const css::uno::Reference< css::text::XTextContent > &  xSuccessor)
overridevirtual

◆ removeVetoableChangeListener()

void SAL_CALL SwXText::removeVetoableChangeListener ( const OUString &  rPropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  xListener 
)
overridevirtual

Reimplemented in SwXRedline, SwXCell, and SwXFootnote.

Definition at line 1182 of file unotext.cxx.

◆ SetDoc()

void SwXText::SetDoc ( SwDoc *const  pDoc)
protected

Definition at line 154 of file unotext.cxx.

References m_pImpl.

Referenced by SwXFootnote::attach(), and SwXFootnote::Impl::Invalidate().

◆ setPropertyValue()

void SAL_CALL SwXText::setPropertyValue ( const OUString &  rPropertyName,
const css::uno::Any &  rValue 
)
overridevirtual

Reimplemented in SwXRedline, SwXCell, and SwXFootnote.

Definition at line 1098 of file unotext.cxx.

◆ setString()

void SAL_CALL SwXText::setString ( const OUString &  rString)
overridevirtual

Member Data Documentation

◆ m_pImpl

::sw::UnoImplPtr<Impl> SwXText::m_pImpl
private

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