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

#include <unotextcursor.hxx>

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

Classes

class  Impl
 

Public Member Functions

 SwXTextCursor (SwDoc &rDoc, css::uno::Reference< css::text::XText > const &xParent, const CursorType eType, SwPosition const &rPos, SwPosition const *const pMark=nullptr)
 
 SwXTextCursor (css::uno::Reference< css::text::XText > const &xParent, SwPaM const &rSourceCursor, const CursorType eType=CursorType::All)
 
SwUnoCursorGetCursor ()
 
bool IsAtEndOfMeta () const
 
void DeleteAndInsert (OUString const &rText, const bool bForceExpandHints)
 
virtual const SwPaMGetPaM () const override
 
virtual SwPaMGetPaM () override
 
virtual const SwDocGetDoc () const override
 
virtual SwDocGetDoc () override
 
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 void SAL_CALL setPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual void SAL_CALL firePropertiesChangeEvent (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual void SAL_CALL setAllPropertiesToDefault () override
 
virtual void SAL_CALL setPropertiesToDefault (const css::uno::Sequence< OUString > &rPropertyNames) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults (const css::uno::Sequence< OUString > &rPropertyNames) 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::Sequence< css::beans::PropertyValue > SAL_CALL createSortDescriptor () override
 
virtual void SAL_CALL sort (const css::uno::Sequence< css::beans::PropertyValue > &xDescriptor) override
 
virtual void SAL_CALL insertDocumentFromURL (const OUString &rURL, const css::uno::Sequence< css::beans::PropertyValue > &rOptions) 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 collapseToStart () override
 
virtual void SAL_CALL collapseToEnd () override
 
virtual sal_Bool SAL_CALL isCollapsed () override
 
virtual sal_Bool SAL_CALL goLeft (sal_Int16 nCount, sal_Bool bExpand) override
 
virtual sal_Bool SAL_CALL goRight (sal_Int16 nCount, sal_Bool bExpand) override
 
virtual void SAL_CALL gotoStart (sal_Bool bExpand) override
 
virtual void SAL_CALL gotoEnd (sal_Bool bExpand) override
 
virtual void SAL_CALL gotoRange (const css::uno::Reference< css::text::XTextRange > &xRange, sal_Bool bExpand) override
 
virtual sal_Bool SAL_CALL isStartOfWord () override
 
virtual sal_Bool SAL_CALL isEndOfWord () override
 
virtual sal_Bool SAL_CALL gotoNextWord (sal_Bool bExpand) override
 
virtual sal_Bool SAL_CALL gotoPreviousWord (sal_Bool bExpand) override
 
virtual sal_Bool SAL_CALL gotoEndOfWord (sal_Bool bExpand) override
 
virtual sal_Bool SAL_CALL gotoStartOfWord (sal_Bool bExpand) override
 
virtual sal_Bool SAL_CALL isStartOfSentence () override
 
virtual sal_Bool SAL_CALL isEndOfSentence () override
 
virtual sal_Bool SAL_CALL gotoNextSentence (sal_Bool Expand) override
 
virtual sal_Bool SAL_CALL gotoPreviousSentence (sal_Bool Expand) override
 
virtual sal_Bool SAL_CALL gotoStartOfSentence (sal_Bool Expand) override
 
virtual sal_Bool SAL_CALL gotoEndOfSentence (sal_Bool Expand) override
 
virtual sal_Bool SAL_CALL isStartOfParagraph () override
 
virtual sal_Bool SAL_CALL isEndOfParagraph () override
 
virtual sal_Bool SAL_CALL gotoStartOfParagraph (sal_Bool Expand) override
 
virtual sal_Bool SAL_CALL gotoEndOfParagraph (sal_Bool Expand) override
 
virtual sal_Bool SAL_CALL gotoNextParagraph (sal_Bool Expand) override
 
virtual sal_Bool SAL_CALL gotoPreviousParagraph (sal_Bool Expand) override
 
virtual void SAL_CALL makeRedline (const OUString &rRedlineType, const css::uno::Sequence< css::beans::PropertyValue > &RedlineProperties) override
 
virtual void SAL_CALL invalidateMarkings (::sal_Int32 nType) override
 
- Public Member Functions inherited from OTextCursorHelper
 OTextCursorHelper ()
 
- Public Member Functions inherited from cppu::ImplHelper1< css::lang::XUnoTunnel >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 

Static Public Member Functions

static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
- Static Public Member Functions inherited from OTextCursorHelper
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Private Member Functions

virtual ~SwXTextCursor () override
 

Private Attributes

::sw::UnoImplPtr< Implm_pImpl
 

Additional Inherited Members

- Protected Member Functions inherited from OTextCursorHelper
 ~OTextCursorHelper ()
 
- Protected Member Functions inherited from cppu::ImplHelper1< css::lang::XUnoTunnel >
 ~ImplHelper1 ()
 

Detailed Description

Definition at line 66 of file unotextcursor.hxx.

Constructor & Destructor Documentation

SwXTextCursor::~SwXTextCursor ( )
overrideprivatevirtual

Definition at line 713 of file unoobj.cxx.

SwXTextCursor::SwXTextCursor ( SwDoc rDoc,
css::uno::Reference< css::text::XText > const &  xParent,
const CursorType  eType,
SwPosition const &  rPos,
SwPosition const *const  pMark = nullptr 
)

Referenced by getEnd(), and getStart().

SwXTextCursor::SwXTextCursor ( css::uno::Reference< css::text::XText > const &  xParent,
SwPaM const &  rSourceCursor,
const CursorType  eType = CursorType::All 
)

Member Function Documentation

void SAL_CALL SwXTextCursor::addPropertiesChangeListener ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener 
)
overridevirtual

Definition at line 2264 of file unoobj.cxx.

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

Definition at line 2142 of file unoobj.cxx.

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

Definition at line 2158 of file unoobj.cxx.

void SAL_CALL SwXTextCursor::collapseToEnd ( )
overridevirtual

Definition at line 889 of file unoobj.cxx.

References SwPaM::Exchange(), and m_pImpl.

void SAL_CALL SwXTextCursor::collapseToStart ( )
overridevirtual

Definition at line 873 of file unoobj.cxx.

References SwPaM::Exchange(), and m_pImpl.

uno::Reference< container::XEnumeration > SAL_CALL SwXTextCursor::createContentEnumeration ( const OUString &  rServiceName)
overridevirtual
uno::Reference< container::XEnumeration > SAL_CALL SwXTextCursor::createEnumeration ( )
overridevirtual
uno::Sequence< beans::PropertyValue > SAL_CALL SwXTextCursor::createSortDescriptor ( )
overridevirtual

Definition at line 2568 of file unoobj.cxx.

References SwUnoCursorHelper::CreateSortDescriptor().

void SwXTextCursor::DeleteAndInsert ( OUString const &  rText,
const bool  bForceExpandHints 
)
void SAL_CALL SwXTextCursor::firePropertiesChangeEvent ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener 
)
overridevirtual

Definition at line 2276 of file unoobj.cxx.

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

Definition at line 2922 of file unoobj.cxx.

SwUnoCursor & SwXTextCursor::GetCursor ( )
SwDoc const * SwXTextCursor::GetDoc ( ) const
overridevirtual

Implements OTextCursorHelper.

Definition at line 689 of file unoobj.cxx.

References m_pImpl.

Referenced by gotoRange(), and gotoStart().

SwDoc * SwXTextCursor::GetDoc ( )
overridevirtual

Implements OTextCursorHelper.

Definition at line 692 of file unoobj.cxx.

References m_pImpl.

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

Definition at line 2911 of file unoobj.cxx.

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

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

Definition at line 1665 of file unoobj.cxx.

References getText(), gotoEnd(), m_pImpl, Meta, and SwXTextCursor().

OUString SwXTextCursor::getImplementationName ( )
overridevirtual

Definition at line 831 of file unoobj.cxx.

SwPaM const * SwXTextCursor::GetPaM ( ) const
overridevirtual

Implements OTextCursorHelper.

Definition at line 683 of file unoobj.cxx.

References m_pImpl.

Referenced by SwXText::convertToTextFrame(), and setString().

SwPaM * SwXTextCursor::GetPaM ( )
overridevirtual

Implements OTextCursorHelper.

Definition at line 686 of file unoobj.cxx.

References m_pImpl.

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

Definition at line 2206 of file unoobj.cxx.

References getPropertyDefaults().

uno::Sequence< uno::Any > SAL_CALL SwXTextCursor::getPropertyDefaults ( const css::uno::Sequence< OUString > &  rPropertyNames)
overridevirtual
uno::Reference< beans::XPropertySetInfo > SAL_CALL SwXTextCursor::getPropertySetInfo ( )
overridevirtual
beans::PropertyState SAL_CALL SwXTextCursor::getPropertyState ( const OUString &  rPropertyName)
overridevirtual

Definition at line 2174 of file unoobj.cxx.

References SwUnoCursorHelper::GetPropertyState(), and m_pImpl.

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

Definition at line 2186 of file unoobj.cxx.

References SwUnoCursorHelper::GetPropertyStates(), and m_pImpl.

uno::Any SAL_CALL SwXTextCursor::getPropertyValue ( const OUString &  rPropertyName)
overridevirtual
uno::Sequence< uno::Any > SAL_CALL SwXTextCursor::getPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Definition at line 2255 of file unoobj.cxx.

References getPropertyValue().

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

Reimplemented from OTextCursorHelper.

Definition at line 867 of file unoobj.cxx.

References OTextCursorHelper::getSomething().

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

Definition at line 1639 of file unoobj.cxx.

References getText(), gotoStart(), m_pImpl, Meta, and SwXTextCursor().

OUString SAL_CALL SwXTextCursor::getString ( )
overridevirtual

Definition at line 1690 of file unoobj.cxx.

References SwUnoCursorHelper::GetTextFromPam(), and m_pImpl.

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

Definition at line 842 of file unoobj.cxx.

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

Definition at line 1631 of file unoobj.cxx.

References m_pImpl.

Referenced by getEnd(), and getStart().

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

Definition at line 861 of file unoobj.cxx.

References sw::proofreadingiterator::get().

sal_Bool SAL_CALL SwXTextCursor::goLeft ( sal_Int16  nCount,
sal_Bool  bExpand 
)
overridevirtual

Definition at line 919 of file unoobj.cxx.

References lcl_ForceIntoMeta(), m_pImpl, Meta, and SwUnoCursorHelper::SelectPam().

sal_Bool SAL_CALL SwXTextCursor::goRight ( sal_Int16  nCount,
sal_Bool  bExpand 
)
overridevirtual

Definition at line 937 of file unoobj.cxx.

References lcl_ForceIntoMeta(), m_pImpl, Meta, and SwUnoCursorHelper::SelectPam().

void SAL_CALL SwXTextCursor::gotoEnd ( sal_Bool  bExpand)
overridevirtual
sal_Bool SAL_CALL SwXTextCursor::gotoEndOfParagraph ( sal_Bool  Expand)
overridevirtual
sal_Bool SAL_CALL SwXTextCursor::gotoEndOfSentence ( sal_Bool  Expand)
overridevirtual
sal_Bool SAL_CALL SwXTextCursor::gotoEndOfWord ( sal_Bool  bExpand)
overridevirtual
sal_Bool SAL_CALL SwXTextCursor::gotoNextParagraph ( sal_Bool  Expand)
overridevirtual

Definition at line 1599 of file unoobj.cxx.

References fnParaStart, GoNextPara(), m_pImpl, Meta, and SwUnoCursorHelper::SelectPam().

sal_Bool SAL_CALL SwXTextCursor::gotoNextSentence ( sal_Bool  Expand)
overridevirtual
sal_Bool SAL_CALL SwXTextCursor::gotoNextWord ( sal_Bool  bExpand)
overridevirtual
sal_Bool SAL_CALL SwXTextCursor::gotoPreviousParagraph ( sal_Bool  Expand)
overridevirtual

Definition at line 1615 of file unoobj.cxx.

References fnParaStart, GoPrevPara(), m_pImpl, Meta, and SwUnoCursorHelper::SelectPam().

sal_Bool SAL_CALL SwXTextCursor::gotoPreviousSentence ( sal_Bool  Expand)
overridevirtual
sal_Bool SAL_CALL SwXTextCursor::gotoPreviousWord ( sal_Bool  bExpand)
overridevirtual
void SAL_CALL SwXTextCursor::gotoRange ( const css::uno::Reference< css::text::XTextRange > &  xRange,
sal_Bool  bExpand 
)
overridevirtual
void SAL_CALL SwXTextCursor::gotoStart ( sal_Bool  bExpand)
overridevirtual
sal_Bool SAL_CALL SwXTextCursor::gotoStartOfParagraph ( sal_Bool  Expand)
overridevirtual
sal_Bool SAL_CALL SwXTextCursor::gotoStartOfSentence ( sal_Bool  Expand)
overridevirtual
sal_Bool SAL_CALL SwXTextCursor::gotoStartOfWord ( sal_Bool  bExpand)
overridevirtual
sal_Bool SAL_CALL SwXTextCursor::hasElements ( )
overridevirtual

Definition at line 2916 of file unoobj.cxx.

void SAL_CALL SwXTextCursor::insertDocumentFromURL ( const OUString &  rURL,
const css::uno::Sequence< css::beans::PropertyValue > &  rOptions 
)
overridevirtual

Definition at line 2491 of file unoobj.cxx.

References SwUnoCursorHelper::InsertFile(), and m_pImpl.

void SAL_CALL SwXTextCursor::invalidateMarkings ( ::sal_Int32  nType)
overridevirtual
bool SwXTextCursor::IsAtEndOfMeta ( ) const
sal_Bool SAL_CALL SwXTextCursor::isCollapsed ( )
overridevirtual

Definition at line 905 of file unoobj.cxx.

References m_pImpl.

sal_Bool SAL_CALL SwXTextCursor::isEndOfParagraph ( )
overridevirtual

Definition at line 1538 of file unoobj.cxx.

References SwUnoCursorHelper::IsEndOfPara(), and m_pImpl.

sal_Bool SAL_CALL SwXTextCursor::isEndOfSentence ( )
overridevirtual

Definition at line 1393 of file unoobj.cxx.

References SwCursor::END_SENT, SwPaM::GetContentNode(), and m_pImpl.

Referenced by gotoNextSentence().

sal_Bool SAL_CALL SwXTextCursor::isEndOfWord ( )
overridevirtual

Definition at line 1199 of file unoobj.cxx.

References SwCursor::IsEndWordWT(), and m_pImpl.

sal_Bool SAL_CALL SwXTextCursor::isStartOfParagraph ( )
overridevirtual

Definition at line 1527 of file unoobj.cxx.

References SwUnoCursorHelper::IsStartOfPara(), and m_pImpl.

sal_Bool SAL_CALL SwXTextCursor::isStartOfSentence ( )
overridevirtual

Definition at line 1370 of file unoobj.cxx.

References SwPaM::GetPoint(), m_pImpl, SwPosition::nContent, and SwCursor::START_SENT.

sal_Bool SAL_CALL SwXTextCursor::isStartOfWord ( )
overridevirtual

Definition at line 1188 of file unoobj.cxx.

References SwCursor::IsStartWordWT(), and m_pImpl.

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

Definition at line 2480 of file unoobj.cxx.

References m_pImpl, and SwUnoCursorHelper::makeRedline().

void SAL_CALL SwXTextCursor::removePropertiesChangeListener ( const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener)
overridevirtual

Definition at line 2270 of file unoobj.cxx.

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

Definition at line 2150 of file unoobj.cxx.

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

Definition at line 2166 of file unoobj.cxx.

void SAL_CALL SwXTextCursor::setAllPropertiesToDefault ( )
overridevirtual

Definition at line 2317 of file unoobj.cxx.

References lcl_EnumerateIds(), lcl_SelectParaAndReset(), and m_pImpl.

void SAL_CALL SwXTextCursor::setPropertiesToDefault ( const css::uno::Sequence< OUString > &  rPropertyNames)
overridevirtual
void SAL_CALL SwXTextCursor::setPropertyToDefault ( const OUString &  rPropertyName)
overridevirtual

Definition at line 2198 of file unoobj.cxx.

References setPropertiesToDefault().

void SAL_CALL SwXTextCursor::setPropertyValue ( const OUString &  rPropertyName,
const css::uno::Any &  rValue 
)
overridevirtual
void SAL_CALL SwXTextCursor::setPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Sequence< css::uno::Any > &  aValues 
)
overridevirtual
void SAL_CALL SwXTextCursor::setString ( const OUString &  rString)
overridevirtual

Definition at line 1702 of file unoobj.cxx.

References DeleteAndInsert(), GetPaM(), m_pImpl, and Meta.

void SAL_CALL SwXTextCursor::sort ( const css::uno::Sequence< css::beans::PropertyValue > &  xDescriptor)
overridevirtual
sal_Bool SAL_CALL SwXTextCursor::supportsService ( const OUString &  rServiceName)
overridevirtual

Definition at line 836 of file unoobj.cxx.

References cppu::supportsService().

Member Data Documentation

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

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