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

#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::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 sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &rIdentifier) 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
 

Static Public Member Functions

static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

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 44 of file unotext.hxx.

Constructor & Destructor Documentation

◆ ~SwXText()

SwXText::~SwXText ( )
protectedvirtual

Definition at line 129 of file unotext.cxx.

◆ SwXText()

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

Definition at line 124 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 1168 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 1184 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 1503 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 1430 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 166 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 1081 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 1064 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

◆ copyText()

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

◆ CreateCursor()

uno::Reference< text::XTextCursor > SwXText::CreateCursor ( )
virtual
Exceptions
css::uno::RuntimeException

Reimplemented in SwXTextFrame, SwXCell, SwXHeadFootText, and SwXFootnote.

Definition at line 178 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().

◆ finishParagraph()

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

Definition at line 1216 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 1225 of file unotext.cxx.

References m_pImpl.

◆ GetDoc() [1/2]

SwDoc * SwXText::GetDoc ( )

Definition at line 138 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 879 of file unotext.cxx.

References cInvalidObject, and CreateCursor().

Referenced by appendTextContent(), and appendTextPortion().

◆ getPropertySetInfo()

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

Reimplemented in SwXRedline, SwXCell, and SwXFootnote.

Definition at line 1098 of file unotext.cxx.

References m_pImpl.

◆ getPropertyValue()

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

◆ getSomething()

sal_Int64 SAL_CALL SwXText::getSomething ( const css::uno::Sequence< sal_Int8 > &  rIdentifier)
overridevirtual

Reimplemented in SwXTextFrame, SwXCell, and SwXFootnote.

Definition at line 1210 of file unotext.cxx.

Referenced by SwXTextFrame::getSomething(), and SwXFootnote::getSomething().

◆ getStart()

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

Definition at line 863 of file unotext.cxx.

References cInvalidObject, and CreateCursor().

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

◆ getTypes()

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

◆ getUnoTunnelId()

const uno::Sequence< sal_Int8 > & SwXText::getUnoTunnelId ( )
static

Definition at line 1203 of file unotext.cxx.

References comphelper::UnoIdInit::getSeq().

◆ 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 148 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 162 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 1176 of file unotext.cxx.

◆ removeTextContent()

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

Definition at line 839 of file unotext.cxx.

References xContent.

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

◆ SetDoc()

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

Definition at line 153 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 1108 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: