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 ( )
protectedvirtual

Definition at line 131 of file unotext.cxx.

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

Definition at line 126 of file unotext.cxx.

Member Function Documentation

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

Reimplemented in SwXCell, SwXFootnote, and SwXRedline.

Definition at line 1172 of file unotext.cxx.

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

Reimplemented in SwXCell, SwXFootnote, and SwXRedline.

Definition at line 1188 of file unotext.cxx.

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

References getEnd(), and insertTextContentWithProperties().

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

Definition at line 1415 of file unotext.cxx.

References getEnd(), and insertTextPortion().

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

Reimplemented in SwXMetaText.

Definition at line 167 of file unotext.cxx.

References m_pImpl, and Meta.

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

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

References m_pImpl.

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

References m_pImpl.

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
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
void SAL_CALL SwXText::copyText ( const css::uno::Reference< css::text::XTextCopy > &  xSource)
overridevirtual

Definition at line 2208 of file unotext.cxx.

References OTextCursorHelper::GetPaM(), GetStartNode(), and m_pImpl.

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

Definition at line 1220 of file unotext.cxx.

References m_pImpl.

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

References m_pImpl.

const SwDoc * SwXText::GetDoc ( ) const
SwDoc * SwXText::GetDoc ( )

Definition at line 139 of file unotext.cxx.

References m_pImpl.

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

Definition at line 886 of file unotext.cxx.

References cInvalidObject, and CreateCursor().

Referenced by appendTextContent(), and appendTextPortion().

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

Reimplemented in SwXCell, SwXFootnote, and SwXRedline.

Definition at line 1102 of file unotext.cxx.

References m_pImpl.

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

Reimplemented in SwXTextFrame, SwXCell, and SwXFootnote.

Definition at line 1214 of file unotext.cxx.

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

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

Definition at line 870 of file unotext.cxx.

References cInvalidObject, and CreateCursor().

Referenced by SwXAutoTextEntry::applyTo().

const SwStartNode * SwXText::GetStartNode ( ) const
virtual
OUString SAL_CALL SwXText::getString ( )
overridevirtual
uno::Reference< text::XText > SAL_CALL SwXText::getText ( )
overridevirtual

Reimplemented in SwXTextFrame.

Definition at line 860 of file unotext.cxx.

uno::Sequence< uno::Type > SAL_CALL SwXText::getTypes ( )
overridevirtual
const uno::Sequence< sal_Int8 > & SwXText::getUnoTunnelId ( )
static
void SAL_CALL SwXText::insertControlCharacter ( const css::uno::Reference< css::text::XTextRange > &  xRange,
sal_Int16  nControlCharacter,
sal_Bool  bAbsorb 
)
overridevirtual
void SAL_CALL SwXText::insertString ( const css::uno::Reference< css::text::XTextRange > &  xRange,
const OUString &  aString,
sal_Bool  bAbsorb 
)
overridevirtual
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
void SAL_CALL SwXText::insertTextContentAfter ( const css::uno::Reference< css::text::XTextContent > &  xNewContent,
const css::uno::Reference< css::text::XTextContent > &  xPredecessor 
)
overridevirtual
void SAL_CALL SwXText::insertTextContentBefore ( const css::uno::Reference< css::text::XTextContent > &  xNewContent,
const css::uno::Reference< css::text::XTextContent > &  xSuccessor 
)
overridevirtual
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
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
void SwXText::Invalidate ( )
protected

Definition at line 149 of file unotext.cxx.

References m_pImpl.

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

bool SwXText::IsValid ( ) const
protected
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().

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

Reimplemented in SwXCell, SwXFootnote, and SwXRedline.

Definition at line 1180 of file unotext.cxx.

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

Definition at line 846 of file unotext.cxx.

void SAL_CALL SwXText::removeTextContentAfter ( const css::uno::Reference< css::text::XTextContent > &  xPredecessor)
overridevirtual
void SAL_CALL SwXText::removeTextContentBefore ( const css::uno::Reference< css::text::XTextContent > &  xSuccessor)
overridevirtual
void SAL_CALL SwXText::removeVetoableChangeListener ( const OUString &  rPropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  xListener 
)
overridevirtual

Reimplemented in SwXCell, SwXFootnote, and SwXRedline.

Definition at line 1196 of file unotext.cxx.

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().

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

Reimplemented in SwXCell, SwXFootnote, and SwXRedline.

Definition at line 1112 of file unotext.cxx.

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

Member Data Documentation

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

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