LibreOffice Module sw (master)
1
|
#include <unotxvw.hxx>
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 SwPaM * | GetPaM () const override |
virtual SwPaM * | GetPaM () override |
virtual const SwDoc * | GetDoc () const override |
virtual SwDoc * | GetDoc () override |
![]() | |
OTextCursorHelper () | |
![]() | |
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 const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () |
Private Member Functions | |
bool | IsTextSelection (bool bAllowTables=true) const |
virtual | ~SwXTextViewCursor () override |
Private Attributes | |
SwView * | m_pView |
const SfxItemPropertySet * | m_pPropSet |
Additional Inherited Members | |
![]() | |
~OTextCursorHelper () | |
![]() | |
~ImplHelper1 () | |
Definition at line 163 of file unotxvw.hxx.
|
overrideprivatevirtual |
Definition at line 884 of file unotxvw.cxx.
SwXTextViewCursor::SwXTextViewCursor | ( | SwView * | pVw | ) |
Definition at line 878 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 1509 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 1519 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 969 of file unotxvw.cxx.
References SwPaM::DeleteMark(), SwWrtShell::EnterStdMode(), SwPaM::Exchange(), SwCursorShell::GetCursor(), SwPaM::GetMark(), SwPaM::GetPoint(), SwView::GetWrtShell(), SwWrtShell::HasSelection(), IsTextSelection(), m_pView, and SwCursorShell::SetSelection().
|
overridevirtual |
Definition at line 947 of file unotxvw.cxx.
References SwPaM::DeleteMark(), SwWrtShell::EnterStdMode(), SwPaM::Exchange(), SwCursorShell::GetCursor(), SwPaM::GetMark(), SwPaM::GetPoint(), SwView::GetWrtShell(), SwWrtShell::HasSelection(), IsTextSelection(), m_pView, and SwCursorShell::SetSelection().
|
overridevirtual |
Implements OTextCursorHelper.
Definition at line 1712 of file unotxvw.cxx.
References SwCursorShell::GetCursor(), and SwPaM::GetDoc().
|
overridevirtual |
Implements OTextCursorHelper.
Definition at line 1718 of file unotxvw.cxx.
References SwCursorShell::GetCursor(), SwPaM::GetDoc(), SwView::GetWrtShell(), and m_pView.
|
overridevirtual |
Definition at line 1386 of file unotxvw.cxx.
References SwXTextRange::CreateXTextRange(), SwPaM::End(), SwCursorShell::GetCursor(), SwDocShell::GetDoc(), SwView::GetDocShell(), SwView::GetWrtShell(), IsTextSelection(), and m_pView.
|
overridevirtual |
Definition at line 1673 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 1306 of file unotxvw.cxx.
References SwCursorShell::GetCursor(), SwPaM::GetPageNum(), SwView::GetWrtShell(), and m_pView.
|
overridevirtual |
Implements OTextCursorHelper.
Definition at line 1724 of file unotxvw.cxx.
References SwCursorShell::GetCursor(), SwView::GetWrtShell(), and m_pView.
|
overridevirtual |
Implements OTextCursorHelper.
Definition at line 1730 of file unotxvw.cxx.
References SwCursorShell::GetCursor(), SwView::GetWrtShell(), and m_pView.
|
overridevirtual |
Definition at line 924 of file unotxvw.cxx.
References convertTwipToMm100(), DOCUMENTBORDER, SwCursorShell::GetCharRect(), SwFEShell::GetCurPageDesc(), SvxLRSpaceItem::GetLeft(), SwFEShell::GetPageDesc(), SvxULSpaceItem::GetUpper(), SwView::GetWrtShell(), and m_pView.
|
overridevirtual |
Definition at line 1571 of file unotxvw.cxx.
References Any, SwCursorShell::GetCursor(), SwUnoCursorHelper::GetPropertyDefault(), SwView::GetWrtShell(), m_pPropSet, and m_pView.
|
overridevirtual |
Definition at line 1470 of file unotxvw.cxx.
References SfxItemPropertySet::getPropertySetInfo(), and m_pPropSet.
|
overridevirtual |
Definition at line 1529 of file unotxvw.cxx.
References SwCursorShell::GetCursor(), SwUnoCursorHelper::GetPropertyState(), SwView::GetWrtShell(), m_pPropSet, and m_pView.
|
overridevirtual |
Definition at line 1544 of file unotxvw.cxx.
References SwCursorShell::GetCursor(), SwUnoCursorHelper::GetPropertyStates(), SwView::GetWrtShell(), m_pPropSet, and m_pView.
|
overridevirtual |
Definition at line 1494 of file unotxvw.cxx.
References Any, SwCursorShell::GetCursor(), SwUnoCursorHelper::GetPropertyValue(), SwView::GetWrtShell(), m_pPropSet, and m_pView.
|
overridevirtual |
Reimplemented from OTextCursorHelper.
Definition at line 1701 of file unotxvw.cxx.
References OTextCursorHelper::getSomething().
|
overridevirtual |
Definition at line 1368 of file unotxvw.cxx.
References SwXTextRange::CreateXTextRange(), SwCursorShell::GetCursor(), SwDocShell::GetDoc(), SwView::GetDocShell(), SwView::GetWrtShell(), IsTextSelection(), m_pView, and SwPaM::Start().
|
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 1404 of file unotxvw.cxx.
References SwCursorShell::GetCursor(), SwViewShell::GetLayout(), SwView::GetShellMode(), SwUnoCursorHelper::GetTextFromPam(), SwView::GetWrtShell(), IsTextSelection(), ListText, m_pView, SAL_WARN, TableListText, and Text.
|
overridevirtual |
Definition at line 1683 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 1350 of file unotxvw.cxx.
References sw::CreateParentXText(), SwCursorShell::GetCursor(), SwDocShell::GetDoc(), SwView::GetDocShell(), SwView::GetWrtShell(), IsTextSelection(), m_pView, and SwPaM::Start().
|
static |
Definition at line 1694 of file unotxvw.cxx.
References UnoTunnelIdInit::getSeq().
Definition at line 1585 of file unotxvw.cxx.
References SwWrtShell::Down(), SwView::GetWrtShell(), IsTextSelection(), and m_pView.
Definition at line 1008 of file unotxvw.cxx.
References CRSR_SKIP_CHARS, SwView::GetWrtShell(), IsTextSelection(), SwWrtShell::Left(), and m_pView.
Definition at line 1023 of file unotxvw.cxx.
References CRSR_SKIP_CHARS, SwView::GetWrtShell(), IsTextSelection(), m_pView, and SwWrtShell::Right().
Definition at line 1193 of file unotxvw.cxx.
References SwWrtShell::EndOfSection(), SwView::GetWrtShell(), IsTextSelection(), and m_pView.
Definition at line 1647 of file unotxvw.cxx.
References SwView::GetWrtShell(), IsTextSelection(), m_pView, and SwWrtShell::RightMargin().
|
overridevirtual |
Definition at line 1039 of file unotxvw.cxx.
References SwWrtShell::EnterStdMode(), SwNode::FindSttNodeByType(), FLY_ANY, FOOTER, FOOTNOTE, SwCursorShell::GetCursor(), SwXTextRange::GetDoc(), SwDocShell::GetDoc(), SwView::GetDocShell(), SwFEShell::GetFrameType(), SwPaM::GetMark(), SwPaM::GetNode(), SwDoc::GetNodes(), OTextCursorHelper::GetPaM(), SwPaM::GetPoint(), SwXTextRange::GetPositions(), SwView::GetShellMode(), SwXParagraph::GetTextNode(), OTextCursorHelper::getUnoTunnelId(), SwXParagraph::getUnoTunnelId(), SwXTextRange::getUnoTunnelId(), SwView::GetWrtShell(), SwPaM::HasMark(), HEADER, SwNode::IsSectionNode(), IsTextSelection(), ListText, m_pView, SwPaM::SetMark(), SwCursorShell::SetSelection(), SwNode::StartOfSectionNode(), SwFlyStartNode, SwFooterStartNode, SwFootnoteStartNode, SwHeaderStartNode, SwNormalStartNode, SwTableBoxStartNode, TABLE, TableListText, TableText, Text, and sw::XTextRangeToSwPaM().
Definition at line 1179 of file unotxvw.cxx.
References SwView::GetWrtShell(), IsTextSelection(), m_pView, and SwWrtShell::StartOfSection().
Definition at line 1660 of file unotxvw.cxx.
References SwView::GetWrtShell(), IsTextSelection(), SwWrtShell::LeftMargin(), and m_pView.
Definition at line 1601 of file unotxvw.cxx.
References SwView::GetWrtShell(), IsTextSelection(), m_pView, and SwWrtShell::Up().
|
inline |
Definition at line 246 of file unotxvw.hxx.
|
overridevirtual |
Definition at line 1632 of file unotxvw.cxx.
References SwView::GetWrtShell(), SwCursorShell::IsAtRightMargin(), IsTextSelection(), and m_pView.
|
overridevirtual |
Definition at line 1617 of file unotxvw.cxx.
References SwView::GetWrtShell(), SwCursorShell::IsAtLeftMargin(), IsTextSelection(), and m_pView.
|
overridevirtual |
Definition at line 991 of file unotxvw.cxx.
References SwView::GetWrtShell(), SwWrtShell::HasSelection(), IsTextSelection(), and m_pView.
|
private |
m_pView->GetShellMode() will only work after the shell has already changed and thus can not be used here!
Definition at line 896 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().
|
overridevirtual |
Definition at line 913 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 1282 of file unotxvw.cxx.
References SwWrtShell::EndPg(), SwView::GetWrtShell(), and m_pView.
|
overridevirtual |
Definition at line 1207 of file unotxvw.cxx.
References SwWrtShell::EnterStdMode(), SwView::GetWrtShell(), SwWrtShell::IsSelFrameMode(), SwWrtShell::LeaveSelFrameMode(), m_pView, SwCursorShell::SttEndDoc(), and SwWrtShell::UnSelectFrame().
|
overridevirtual |
Definition at line 1226 of file unotxvw.cxx.
References SwWrtShell::EnterStdMode(), SwView::GetWrtShell(), SwWrtShell::IsSelFrameMode(), SwWrtShell::LeaveSelFrameMode(), m_pView, SwCursorShell::SttEndDoc(), SwWrtShell::SttPg(), and SwWrtShell::UnSelectFrame().
|
overridevirtual |
Definition at line 1258 of file unotxvw.cxx.
References SwView::GetWrtShell(), m_pView, and SwWrtShell::SttNxtPg().
|
overridevirtual |
Definition at line 1246 of file unotxvw.cxx.
References SwView::GetWrtShell(), SwWrtShell::GotoPage(), and m_pView.
|
overridevirtual |
Definition at line 1270 of file unotxvw.cxx.
References SwWrtShell::EndPrvPg(), SwView::GetWrtShell(), and m_pView.
|
overridevirtual |
Definition at line 1294 of file unotxvw.cxx.
References SwView::GetWrtShell(), m_pView, and SwWrtShell::SttPg().
|
overridevirtual |
Definition at line 1514 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 1524 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 1320 of file unotxvw.cxx.
References SwView::Execute(), FN_PAGEDOWN, SfxShell::GetPool(), GetValue, and m_pView.
|
overridevirtual |
Definition at line 1335 of file unotxvw.cxx.
References SwView::Execute(), FN_PAGEUP, SfxShell::GetPool(), GetValue, and m_pView.
|
overridevirtual |
Definition at line 1559 of file unotxvw.cxx.
References SwCursorShell::GetCursor(), SwView::GetWrtShell(), m_pPropSet, m_pView, and SwUnoCursorHelper::SetPropertyToDefault().
|
overridevirtual |
Definition at line 1476 of file unotxvw.cxx.
References SwCursorShell::GetCursor(), SwPaM::GetNode(), SwView::GetWrtShell(), SwNode::IsTextNode(), m_pPropSet, m_pView, and SwUnoCursorHelper::SetPropertyValue().
|
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 1440 of file unotxvw.cxx.
References SwView::GetShellMode(), SwCursorShell::GetSwCursor(), SwView::GetWrtShell(), IsTextSelection(), ListText, m_pView, SwUnoCursorHelper::SetString(), TableListText, and Text.
Definition at line 919 of file unotxvw.cxx.
|
overridevirtual |
Definition at line 1678 of file unotxvw.cxx.
References cppu::supportsService().
|
private |
Definition at line 166 of file unotxvw.hxx.
Referenced by getPropertyDefault(), getPropertySetInfo(), getPropertyState(), getPropertyStates(), getPropertyValue(), setPropertyToDefault(), and setPropertyValue().
|
private |
Definition at line 165 of file unotxvw.hxx.
Referenced by collapseToEnd(), collapseToStart(), GetDoc(), getEnd(), getPage(), GetPaM(), getPosition(), getPropertyDefault(), getPropertyState(), getPropertyStates(), getPropertyValue(), getStart(), getString(), getText(), goDown(), goLeft(), goRight(), gotoEnd(), gotoEndOfLine(), gotoRange(), gotoStart(), gotoStartOfLine(), goUp(), isAtEndOfLine(), isAtStartOfLine(), isCollapsed(), IsTextSelection(), jumpToEndOfPage(), jumpToFirstPage(), jumpToLastPage(), jumpToNextPage(), jumpToPage(), jumpToPreviousPage(), jumpToStartOfPage(), screenDown(), screenUp(), setPropertyToDefault(), setPropertyValue(), and setString().