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

#include <unotxvw.hxx>

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

Public Member Functions

 SwXTextViewCursor (SwView *pVw)
 
virtual sal_Bool SAL_CALL isVisible () override
 
virtual void SAL_CALL setVisible (sal_Bool bVisible) override
 
virtual css::awt::Point SAL_CALL getPosition () 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 jumpToFirstPage () override
 
virtual sal_Bool SAL_CALL jumpToLastPage () override
 
virtual sal_Bool SAL_CALL jumpToPage (sal_Int16 nPage) override
 
virtual sal_Bool SAL_CALL jumpToNextPage () override
 
virtual sal_Bool SAL_CALL jumpToPreviousPage () override
 
virtual sal_Bool SAL_CALL jumpToEndOfPage () override
 
virtual sal_Bool SAL_CALL jumpToStartOfPage () override
 
virtual sal_Int16 SAL_CALL getPage () 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 &aString) override
 
virtual sal_Bool SAL_CALL screenDown () override
 
virtual sal_Bool SAL_CALL screenUp () override
 
virtual sal_Bool SAL_CALL goDown (sal_Int16 nCount, sal_Bool bExpand) override
 
virtual sal_Bool SAL_CALL goUp (sal_Int16 nCount, sal_Bool bExpand) override
 
virtual sal_Bool SAL_CALL isAtStartOfLine () override
 
virtual sal_Bool SAL_CALL isAtEndOfLine () override
 
virtual void SAL_CALL gotoEndOfLine (sal_Bool bExpand) override
 
virtual void SAL_CALL gotoStartOfLine (sal_Bool bExpand) override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual css::beans::PropertyState SAL_CALL getPropertyState (const OUString &PropertyName) override
 
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override
 
virtual void SAL_CALL setPropertyToDefault (const OUString &PropertyName) override
 
virtual css::uno::Any SAL_CALL getPropertyDefault (const OUString &aPropertyName) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 
void Invalidate ()
 
virtual const SwPaMGetPaM () const override
 
virtual SwPaMGetPaM () override
 
virtual const SwDocGetDoc () const override
 
virtual SwDocGetDoc () override
 
- Public Member Functions inherited from OTextCursorHelper
 OTextCursorHelper ()
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 
virtual const SwPaMGetPaM () const =0
 
virtual SwPaMGetPaM ()=0
 
virtual const SwDocGetDoc () const =0
 
virtual SwDocGetDoc ()=0
 
- 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

bool IsTextSelection (bool bAllowTables=true) const
 
virtual ~SwXTextViewCursor () override
 

Private Attributes

SwViewm_pView
 
const SfxItemPropertySetm_pPropSet
 

Additional Inherited Members

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

Detailed Description

Definition at line 163 of file unotxvw.hxx.

Constructor & Destructor Documentation

◆ ~SwXTextViewCursor()

SwXTextViewCursor::~SwXTextViewCursor ( )
overrideprivatevirtual

Definition at line 892 of file unotxvw.cxx.

◆ SwXTextViewCursor()

SwXTextViewCursor::SwXTextViewCursor ( SwView pVw)

Definition at line 886 of file unotxvw.cxx.

Member Function Documentation

◆ addPropertyChangeListener()

void SwXTextViewCursor::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Definition at line 1507 of file unotxvw.cxx.

◆ addVetoableChangeListener()

void SwXTextViewCursor::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 1517 of file unotxvw.cxx.

◆ collapseToEnd()

void SwXTextViewCursor::collapseToEnd ( )
overridevirtual

◆ collapseToStart()

void SwXTextViewCursor::collapseToStart ( )
overridevirtual

◆ GetDoc() [1/2]

const SwDoc * SwXTextViewCursor::GetDoc ( ) const
overridevirtual

Implements OTextCursorHelper.

Definition at line 1707 of file unotxvw.cxx.

References SwCursorShell::GetCursor(), and SwPaM::GetDoc().

◆ GetDoc() [2/2]

SwDoc * SwXTextViewCursor::GetDoc ( )
overridevirtual

◆ getEnd()

uno::Reference< text::XTextRange > SwXTextViewCursor::getEnd ( )
overridevirtual

◆ getImplementationName()

OUString SwXTextViewCursor::getImplementationName ( )
overridevirtual

Definition at line 1671 of file unotxvw.cxx.

◆ getPage()

sal_Int16 SwXTextViewCursor::getPage ( )
overridevirtual

◆ GetPaM() [1/2]

const SwPaM * SwXTextViewCursor::GetPaM ( ) const
overridevirtual

Implements OTextCursorHelper.

Definition at line 1719 of file unotxvw.cxx.

References SwCursorShell::GetCursor(), SwView::GetWrtShell(), and m_pView.

◆ GetPaM() [2/2]

SwPaM * SwXTextViewCursor::GetPaM ( )
overridevirtual

Implements OTextCursorHelper.

Definition at line 1725 of file unotxvw.cxx.

References SwCursorShell::GetCursor(), SwView::GetWrtShell(), and m_pView.

◆ getPosition()

awt::Point SwXTextViewCursor::getPosition ( )
overridevirtual

◆ getPropertyDefault()

Any SwXTextViewCursor::getPropertyDefault ( const OUString &  aPropertyName)
overridevirtual

◆ getPropertySetInfo()

uno::Reference< XPropertySetInfo > SwXTextViewCursor::getPropertySetInfo ( )
overridevirtual

Definition at line 1468 of file unotxvw.cxx.

References SfxItemPropertySet::getPropertySetInfo(), and m_pPropSet.

◆ getPropertyState()

PropertyState SwXTextViewCursor::getPropertyState ( const OUString &  PropertyName)
overridevirtual

◆ getPropertyStates()

Sequence< PropertyState > SwXTextViewCursor::getPropertyStates ( const css::uno::Sequence< OUString > &  aPropertyName)
overridevirtual

◆ getPropertyValue()

Any SwXTextViewCursor::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

◆ getSomething()

sal_Int64 SAL_CALL SwXTextViewCursor::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

Reimplemented from OTextCursorHelper.

Definition at line 1699 of file unotxvw.cxx.

References comphelper::getSomethingImpl().

◆ getStart()

uno::Reference< text::XTextRange > SwXTextViewCursor::getStart ( )
overridevirtual

◆ getString()

OUString SwXTextViewCursor::getString ( )
overridevirtual

since setString for SEL_TABLE_TEXT (with possible multi selection of cells) would not work properly we will ignore this case for both functions (setString AND getString) because of symmetrie.

Definition at line 1402 of file unotxvw.cxx.

References SwCursorShell::GetCursor(), SwViewShell::GetLayout(), SwView::GetShellMode(), SwUnoCursorHelper::GetTextFromPam(), SwView::GetWrtShell(), IsTextSelection(), ListText, m_pView, SAL_WARN, TableListText, and Text.

◆ getSupportedServiceNames()

Sequence< OUString > SwXTextViewCursor::getSupportedServiceNames ( )
overridevirtual

Definition at line 1681 of file unotxvw.cxx.

◆ getText()

uno::Reference< text::XText > SwXTextViewCursor::getText ( )
overridevirtual

◆ getUnoTunnelId()

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

Definition at line 1692 of file unotxvw.cxx.

References comphelper::UnoIdInit::getSeq().

◆ goDown()

sal_Bool SwXTextViewCursor::goDown ( sal_Int16  nCount,
sal_Bool  bExpand 
)
overridevirtual

Definition at line 1583 of file unotxvw.cxx.

References SwWrtShell::Down(), SwView::GetWrtShell(), IsTextSelection(), m_pView, and nCount.

◆ goLeft()

sal_Bool SwXTextViewCursor::goLeft ( sal_Int16  nCount,
sal_Bool  bExpand 
)
overridevirtual

◆ goRight()

sal_Bool SwXTextViewCursor::goRight ( sal_Int16  nCount,
sal_Bool  bExpand 
)
overridevirtual

◆ gotoEnd()

void SwXTextViewCursor::gotoEnd ( sal_Bool  bExpand)
overridevirtual

◆ gotoEndOfLine()

void SwXTextViewCursor::gotoEndOfLine ( sal_Bool  bExpand)
overridevirtual

◆ gotoRange()

void SwXTextViewCursor::gotoRange ( const css::uno::Reference< css::text::XTextRange > &  xRange,
sal_Bool  bExpand 
)
overridevirtual

◆ gotoStart()

void SwXTextViewCursor::gotoStart ( sal_Bool  bExpand)
overridevirtual

◆ gotoStartOfLine()

void SwXTextViewCursor::gotoStartOfLine ( sal_Bool  bExpand)
overridevirtual

◆ goUp()

sal_Bool SwXTextViewCursor::goUp ( sal_Int16  nCount,
sal_Bool  bExpand 
)
overridevirtual

Definition at line 1599 of file unotxvw.cxx.

References SwView::GetWrtShell(), IsTextSelection(), m_pView, nCount, and SwWrtShell::Up().

◆ Invalidate()

void SwXTextViewCursor::Invalidate ( )
inline

Definition at line 246 of file unotxvw.hxx.

References m_pView.

◆ isAtEndOfLine()

sal_Bool SwXTextViewCursor::isAtEndOfLine ( )
overridevirtual

◆ isAtStartOfLine()

sal_Bool SwXTextViewCursor::isAtStartOfLine ( )
overridevirtual

◆ isCollapsed()

sal_Bool SwXTextViewCursor::isCollapsed ( )
overridevirtual

◆ IsTextSelection()

bool SwXTextViewCursor::IsTextSelection ( bool  bAllowTables = true) const
private

m_pView->GetShellMode() will only work after the shell has already changed and thus can not be used here!

Definition at line 904 of file unotxvw.cxx.

References SwWrtShell::GetSelectionType(), SwView::GetWrtShell(), m_pView, NumberList, TableCell, and Text.

Referenced by collapseToEnd(), collapseToStart(), getEnd(), getStart(), getString(), getText(), goDown(), goLeft(), goRight(), gotoEnd(), gotoEndOfLine(), gotoRange(), gotoStart(), gotoStartOfLine(), goUp(), isAtEndOfLine(), isAtStartOfLine(), isCollapsed(), and setString().

◆ isVisible()

sal_Bool SwXTextViewCursor::isVisible ( )
overridevirtual

Definition at line 921 of file unotxvw.cxx.

◆ jumpToEndOfPage()

sal_Bool SwXTextViewCursor::jumpToEndOfPage ( )
overridevirtual

Definition at line 1280 of file unotxvw.cxx.

References SwWrtShell::EndPg(), SwView::GetWrtShell(), and m_pView.

◆ jumpToFirstPage()

sal_Bool SwXTextViewCursor::jumpToFirstPage ( )
overridevirtual

◆ jumpToLastPage()

sal_Bool SwXTextViewCursor::jumpToLastPage ( )
overridevirtual

◆ jumpToNextPage()

sal_Bool SwXTextViewCursor::jumpToNextPage ( )
overridevirtual

Definition at line 1256 of file unotxvw.cxx.

References SwView::GetWrtShell(), m_pView, and SwWrtShell::SttNxtPg().

◆ jumpToPage()

sal_Bool SwXTextViewCursor::jumpToPage ( sal_Int16  nPage)
overridevirtual

Definition at line 1244 of file unotxvw.cxx.

References SwView::GetWrtShell(), SwWrtShell::GotoPage(), and m_pView.

◆ jumpToPreviousPage()

sal_Bool SwXTextViewCursor::jumpToPreviousPage ( )
overridevirtual

Definition at line 1268 of file unotxvw.cxx.

References SwWrtShell::EndPrvPg(), SwView::GetWrtShell(), and m_pView.

◆ jumpToStartOfPage()

sal_Bool SwXTextViewCursor::jumpToStartOfPage ( )
overridevirtual

Definition at line 1292 of file unotxvw.cxx.

References SwView::GetWrtShell(), m_pView, and SwWrtShell::SttPg().

◆ removePropertyChangeListener()

void SwXTextViewCursor::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

Definition at line 1512 of file unotxvw.cxx.

◆ removeVetoableChangeListener()

void SwXTextViewCursor::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 1522 of file unotxvw.cxx.

◆ screenDown()

sal_Bool SwXTextViewCursor::screenDown ( )
overridevirtual

◆ screenUp()

sal_Bool SwXTextViewCursor::screenUp ( )
overridevirtual

◆ setPropertyToDefault()

void SwXTextViewCursor::setPropertyToDefault ( const OUString &  PropertyName)
overridevirtual

◆ setPropertyValue()

void SwXTextViewCursor::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

◆ setString()

void SwXTextViewCursor::setString ( const OUString &  aString)
overridevirtual

since setString for SEL_TABLE_TEXT (with possible multi selection of cells) would not work properly we will ignore this case for both functions (setString AND getString) because of symmetrie.

Definition at line 1438 of file unotxvw.cxx.

References SwCursorShell::GetCursor(), SwView::GetShellMode(), SwView::GetWrtShell(), IsTextSelection(), ListText, m_pView, SwUnoCursorHelper::SetString(), TableListText, and Text.

◆ setVisible()

void SwXTextViewCursor::setVisible ( sal_Bool  bVisible)
overridevirtual

Definition at line 927 of file unotxvw.cxx.

◆ supportsService()

sal_Bool SwXTextViewCursor::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 1676 of file unotxvw.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_pPropSet

const SfxItemPropertySet* SwXTextViewCursor::m_pPropSet
private

◆ m_pView

SwView* SwXTextViewCursor::m_pView
private

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