LibreOffice Module sw (master) 1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwXTextRange Class Referencefinal

#include <unotextrange.hxx>

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

Classes

class  Impl
 

Public Types

enum  RangePosition {
  RANGE_IN_TEXT ,
  RANGE_IN_CELL ,
  RANGE_IS_TABLE ,
  RANGE_IS_SECTION
}
 

Public Member Functions

 SwXTextRange (SwPaM const &rPam, const css::uno::Reference< css::text::XText > &xParent, const enum RangePosition eRange=RANGE_IN_TEXT)
 
 SwXTextRange (SwTableFormat &rTableFormat)
 
 SwXTextRange (SwSectionFormat &rSectionFormat)
 
const SwDocGetDoc () const
 
SwDocGetDoc ()
 
bool GetPositions (SwPaM &rToFill, ::sw::TextRangeMode eMode=::sw::TextRangeMode::RequireTextNode) const
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &rServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () 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::beans::PropertyState SAL_CALL getPropertyState (const OUString &rPropertyName) override
 
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates (const css::uno::Sequence< OUString > &rPropertyNames) override
 
virtual void SAL_CALL setPropertyToDefault (const OUString &rPropertyName) override
 
virtual css::uno::Any SAL_CALL getPropertyDefault (const OUString &rPropertyName) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createContentEnumeration (const OUString &rServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames () 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 makeRedline (const OUString &rRedlineType, const css::uno::Sequence< css::beans::PropertyValue > &RedlineProperties) override
 

Static Public Member Functions

static rtl::Reference< SwXTextRangeCreateXTextRange (SwDoc &rDoc, const SwPosition &rPos, const SwPosition *const pMark)
 

Private Member Functions

void SetPositions (SwPaM const &rPam)
 
void DeleteAndInsert (std::u16string_view aText, ::sw::DeleteAndInsertMode eMode)
 
void Invalidate ()
 
virtual ~SwXTextRange () override
 

Private Attributes

::sw::UnoImplPtr< Implm_pImpl
 

Friends

class SwXText
 

Detailed Description

Definition at line 87 of file unotextrange.hxx.

Member Enumeration Documentation

◆ RangePosition

Enumerator
RANGE_IN_TEXT 
RANGE_IN_CELL 
RANGE_IS_TABLE 
RANGE_IS_SECTION 

Definition at line 109 of file unotextrange.hxx.

Constructor & Destructor Documentation

◆ ~SwXTextRange()

SwXTextRange::~SwXTextRange ( )
overrideprivatevirtual

Definition at line 758 of file unoobj2.cxx.

◆ SwXTextRange() [1/3]

SwXTextRange::SwXTextRange ( SwPaM const &  rPam,
const css::uno::Reference< css::text::XText > &  xParent,
const enum RangePosition  eRange = RANGE_IN_TEXT 
)

◆ SwXTextRange() [2/3]

SwXTextRange::SwXTextRange ( SwTableFormat rTableFormat)

Definition at line 740 of file unoobj2.cxx.

References SwTable::FindTable(), SwTable::GetTableNode(), and SetPositions().

◆ SwXTextRange() [3/3]

SwXTextRange::SwXTextRange ( SwSectionFormat rSectionFormat)

Definition at line 751 of file unoobj2.cxx.

References m_pImpl.

Member Function Documentation

◆ addPropertyChangeListener()

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

Definition at line 1454 of file unoobj2.cxx.

◆ addVetoableChangeListener()

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

Definition at line 1470 of file unoobj2.cxx.

◆ createContentEnumeration()

uno::Reference< container::XEnumeration > SAL_CALL SwXTextRange::createContentEnumeration ( const OUString &  rServiceName)
overridevirtual

◆ createEnumeration()

uno::Reference< container::XEnumeration > SAL_CALL SwXTextRange::createEnumeration ( )
overridevirtual

◆ CreateXTextRange()

rtl::Reference< SwXTextRange > SwXTextRange::CreateXTextRange ( SwDoc rDoc,
const SwPosition rPos,
const SwPosition *const  pMark 
)
static

◆ DeleteAndInsert()

void SwXTextRange::DeleteAndInsert ( std::u16string_view  aText,
::sw::DeleteAndInsertMode  eMode 
)
private

◆ getAvailableServiceNames()

uno::Sequence< OUString > SAL_CALL SwXTextRange::getAvailableServiceNames ( )
overridevirtual

Definition at line 1406 of file unoobj2.cxx.

◆ GetDoc() [1/2]

SwDoc & SwXTextRange::GetDoc ( )

Definition at line 767 of file unoobj2.cxx.

References m_pImpl.

◆ GetDoc() [2/2]

const SwDoc & SwXTextRange::GetDoc ( ) const

◆ getElementType()

uno::Type SAL_CALL SwXTextRange::getElementType ( )
overridevirtual

Definition at line 1395 of file unoobj2.cxx.

References cppu::UnoType< typename T >::get().

◆ getEnd()

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

◆ getImplementationName()

OUString SAL_CALL SwXTextRange::getImplementationName ( )
overridevirtual

Definition at line 903 of file unoobj2.cxx.

◆ GetPositions()

bool SwXTextRange::GetPositions ( SwPaM rToFill,
::sw::TextRangeMode  eMode = ::sw::TextRangeMode::RequireTextNode 
) const

◆ getPropertyDefault()

uno::Any SAL_CALL SwXTextRange::getPropertyDefault ( const OUString &  rPropertyName)
overridevirtual

◆ getPropertySetInfo()

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

Definition at line 1413 of file unoobj2.cxx.

References m_pImpl.

◆ getPropertyState()

beans::PropertyState SAL_CALL SwXTextRange::getPropertyState ( const OUString &  rPropertyName)
overridevirtual

Definition at line 1486 of file unoobj2.cxx.

References GetDoc(), GetPositions(), SwUnoCursorHelper::GetPropertyState(), and m_pImpl.

◆ getPropertyStates()

uno::Sequence< beans::PropertyState > SAL_CALL SwXTextRange::getPropertyStates ( const css::uno::Sequence< OUString > &  rPropertyNames)
overridevirtual

◆ getPropertyValue()

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

Definition at line 1439 of file unoobj2.cxx.

References GetDoc(), GetPositions(), SwUnoCursorHelper::GetPropertyValue(), and m_pImpl.

◆ getStart()

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

◆ getString()

OUString SAL_CALL SwXTextRange::getString ( )
overridevirtual

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL SwXTextRange::getSupportedServiceNames ( )
overridevirtual

Definition at line 914 of file unoobj2.cxx.

◆ getText()

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

◆ hasElements()

sal_Bool SAL_CALL SwXTextRange::hasElements ( )
overridevirtual

Definition at line 1400 of file unoobj2.cxx.

◆ Invalidate()

void SwXTextRange::Invalidate ( )
private

Definition at line 772 of file unoobj2.cxx.

References m_pImpl.

Referenced by SwXText::convertToTextFrame().

◆ makeRedline()

void SAL_CALL SwXTextRange::makeRedline ( const OUString &  rRedlineType,
const css::uno::Sequence< css::beans::PropertyValue > &  RedlineProperties 
)
overridevirtual

Definition at line 1545 of file unoobj2.cxx.

References GetDoc(), GetPositions(), m_pImpl, and SwUnoCursorHelper::makeRedline().

◆ removePropertyChangeListener()

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

Definition at line 1462 of file unoobj2.cxx.

◆ removeVetoableChangeListener()

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

Definition at line 1478 of file unoobj2.cxx.

◆ SetPositions()

void SwXTextRange::SetPositions ( SwPaM const &  rPam)
private

◆ setPropertyToDefault()

void SAL_CALL SwXTextRange::setPropertyToDefault ( const OUString &  rPropertyName)
overridevirtual

◆ setPropertyValue()

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

Definition at line 1423 of file unoobj2.cxx.

References GetDoc(), GetPositions(), m_pImpl, and SwUnoCursorHelper::SetPropertyValue().

◆ setString()

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

Definition at line 1043 of file unoobj2.cxx.

References sw::Default, and DeleteAndInsert().

◆ supportsService()

sal_Bool SAL_CALL SwXTextRange::supportsService ( const OUString &  rServiceName)
overridevirtual

Definition at line 908 of file unoobj2.cxx.

References cppu::supportsService().

Friends And Related Function Documentation

◆ SwXText

friend class SwXText
friend

Definition at line 93 of file unotextrange.hxx.

Member Data Documentation

◆ m_pImpl

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

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