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

#include <unotextrange.hxx>

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

Classes

class  Impl
 

Public Member Functions

 SwXTextRange (SwPaM const &rPam, const css::uno::Reference< css::text::XText > &xParent, const enum RangePosition eRange=RANGE_IN_TEXT)
 
 SwXTextRange (SwFrameFormat &rTableFormat)
 
const SwDocGetDoc () const
 
SwDocGetDoc ()
 
bool GetPositions (SwPaM &rToFill) const
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &rIdentifier) override
 
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 css::uno::Reference< css::text::XTextRange > CreateXTextRange (SwDoc &rDoc, const SwPosition &rPos, const SwPosition *const pMark)
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Private Types

enum  RangePosition {
  RANGE_IN_TEXT,
  RANGE_IN_CELL,
  RANGE_IS_TABLE
}
 

Private Member Functions

void SetPositions (SwPaM const &rPam)
 
void DeleteAndInsert (const OUString &rText, const bool bForceExpandHints)
 
void Invalidate ()
 
virtual ~SwXTextRange () override
 

Private Attributes

::sw::UnoImplPtr< Implm_pImpl
 

Friends

class SwXText
 

Detailed Description

Definition at line 82 of file unotextrange.hxx.

Member Enumeration Documentation

Enumerator
RANGE_IN_TEXT 
RANGE_IN_CELL 
RANGE_IS_TABLE 

Definition at line 93 of file unotextrange.hxx.

Constructor & Destructor Documentation

SwXTextRange::~SwXTextRange ( )
overrideprivatevirtual

Definition at line 785 of file unoobj2.cxx.

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

Referenced by CreateXTextRange(), getEnd(), and getStart().

SwXTextRange::SwXTextRange ( SwFrameFormat rTableFormat)

Definition at line 773 of file unoobj2.cxx.

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

Member Function Documentation

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

Definition at line 1336 of file unoobj2.cxx.

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

Definition at line 1352 of file unoobj2.cxx.

uno::Reference< container::XEnumeration > SAL_CALL SwXTextRange::createContentEnumeration ( const OUString &  rServiceName)
overridevirtual
uno::Reference< container::XEnumeration > SAL_CALL SwXTextRange::createEnumeration ( )
overridevirtual
uno::Reference< text::XTextRange > SwXTextRange::CreateXTextRange ( SwDoc rDoc,
const SwPosition rPos,
const SwPosition *const  pMark 
)
static
void SwXTextRange::DeleteAndInsert ( const OUString &  rText,
const bool  bForceExpandHints 
)
private
uno::Sequence< OUString > SAL_CALL SwXTextRange::getAvailableServiceNames ( )
overridevirtual

Definition at line 1288 of file unoobj2.cxx.

const SwDoc & SwXTextRange::GetDoc ( ) const
SwDoc & SwXTextRange::GetDoc ( )

Definition at line 794 of file unoobj2.cxx.

References m_pImpl.

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

Definition at line 1277 of file unoobj2.cxx.

References cppu::UnoType< class >::get().

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

Definition at line 863 of file unoobj2.cxx.

bool SwXTextRange::GetPositions ( SwPaM rToFill) const
uno::Any SAL_CALL SwXTextRange::getPropertyDefault ( const OUString &  rPropertyName)
overridevirtual
uno::Reference< beans::XPropertySetInfo > SAL_CALL SwXTextRange::getPropertySetInfo ( )
overridevirtual

Definition at line 1295 of file unoobj2.cxx.

References m_pImpl.

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

Definition at line 1368 of file unoobj2.cxx.

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

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

Definition at line 1321 of file unoobj2.cxx.

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

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

Definition at line 857 of file unoobj2.cxx.

uno::Reference< text::XTextRange > SAL_CALL SwXTextRange::getStart ( )
overridevirtual
OUString SAL_CALL SwXTextRange::getString ( )
overridevirtual
uno::Sequence< OUString > SAL_CALL SwXTextRange::getSupportedServiceNames ( )
overridevirtual

Definition at line 874 of file unoobj2.cxx.

uno::Reference< text::XText > SAL_CALL SwXTextRange::getText ( )
overridevirtual
const uno::Sequence< sal_Int8 > & SwXTextRange::getUnoTunnelId ( )
static
sal_Bool SAL_CALL SwXTextRange::hasElements ( )
overridevirtual

Definition at line 1282 of file unoobj2.cxx.

void SwXTextRange::Invalidate ( )
private

Definition at line 799 of file unoobj2.cxx.

References m_pImpl.

Referenced by SwXText::convertToTextFrame().

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

Definition at line 1427 of file unoobj2.cxx.

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

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

Definition at line 1344 of file unoobj2.cxx.

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

Definition at line 1360 of file unoobj2.cxx.

void SwXTextRange::SetPositions ( SwPaM const &  rPam)
private
void SAL_CALL SwXTextRange::setPropertyToDefault ( const OUString &  rPropertyName)
overridevirtual
void SAL_CALL SwXTextRange::setPropertyValue ( const OUString &  rPropertyName,
const css::uno::Any &  rValue 
)
overridevirtual

Definition at line 1305 of file unoobj2.cxx.

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

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

Definition at line 979 of file unoobj2.cxx.

References DeleteAndInsert().

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

Definition at line 868 of file unoobj2.cxx.

References cppu::supportsService().

Friends And Related Function Documentation

friend class SwXText
friend

Definition at line 88 of file unotextrange.hxx.

Member Data Documentation

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

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