LibreOffice Module sw (master)
1
|
#include <viscrs.hxx>
Public Member Functions | |
SwShellCursor (const SwCursorShell &rCursorSh, const SwPosition &rPos) | |
SwShellCursor (const SwCursorShell &rCursorSh, const SwPosition &rPos, const Point &rPtPos, SwPaM *pRing) | |
SwShellCursor (SwShellCursor &) | |
virtual | ~SwShellCursor () override |
virtual void | FillRects () override |
virtual void | FillStartEnd (SwRect &rStart, SwRect &rEnd) const override |
void | Show (SfxViewShell const *pViewShell) |
void | Hide () |
void | Invalidate (const SwRect &rRect) |
const Point & | GetPtPos () const |
Point & | GetPtPos () |
const Point & | GetMkPos () const |
Point & | GetMkPos () |
const Point & | GetSttPos () const |
Point & | GetSttPos () |
const Point & | GetEndPos () const |
Point & | GetEndPos () |
virtual void | SetMark () override |
Unless this is called, the getter method of Mark will return Point. More... | |
virtual SwCursor * | Create (SwPaM *pRing=nullptr) const override |
virtual short | MaxReplaceArived () override |
virtual void | SaveTableBoxContent (const SwPosition *pPos) override |
bool | UpDown (bool bUp, sal_uInt16 nCnt) |
virtual bool | IsAtValidPos (bool bPoint=true) const override |
Return <true> if cursor can be set to this position. More... | |
virtual bool | IsReadOnlyAvailable () const override |
SwShellCursor * | GetNext () |
const SwShellCursor * | GetNext () const |
SwShellCursor * | GetPrev () |
const SwShellCursor * | GetPrev () const |
![]() | |
SwCursor (const SwPosition &rPos, SwPaM *pRing) | |
virtual | ~SwCursor () override |
SwCursor & | operator= (SwCursor const &)=default |
SwCursor (SwCursor const &rCursor, SwPaM *pRing) | |
this takes a second parameter, which indicates the Ring that the new cursor should be part of (may be null) More... | |
void | FillFindPos (SwDocPositions ePos, SwPosition &rPos) const |
SwMoveFnCollection const & | MakeFindRange (SwDocPositions, SwDocPositions, SwPaM *) const |
set range for search in document More... | |
sal_uLong | Find_Text (const i18nutil::SearchOptions2 &rSearchOpt, bool bSearchInNotes, SwDocPositions nStart, SwDocPositions nEnde, bool &bCancel, FindRanges, bool bReplace=false, SwRootFrame const *const pLayout=nullptr) |
sal_uLong | FindFormat (const SwTextFormatColl &rFormatColl, SwDocPositions nStart, SwDocPositions nEnde, bool &bCancel, FindRanges, const SwTextFormatColl *pReplFormat, SwRootFrame const *const pLayout=nullptr) |
search for Format-Collections More... | |
sal_uLong | FindAttrs (const SfxItemSet &rSet, bool bNoCollections, SwDocPositions nStart, SwDocPositions nEnde, bool &bCancel, FindRanges, const i18nutil::SearchOptions2 *pSearchOpt, const SfxItemSet *rReplSet=nullptr, SwRootFrame const *const pLayout=nullptr) |
search for attributes More... | |
bool | IsStartEndSentence (bool bEnd, SwRootFrame const *pLayout) const |
bool | SelectWord (SwViewShell const *pViewShell, const Point *pPt) |
bool | IsStartWordWT (sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr) const |
bool | IsEndWordWT (sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr) const |
bool | IsInWordWT (sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr) const |
bool | GoStartWordWT (sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr) |
bool | GoEndWordWT (sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr) |
bool | GoNextWordWT (sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr) |
bool | GoPrevWordWT (sal_Int16 nWordType, SwRootFrame const *pLayout=nullptr) |
bool | SelectWordWT (SwViewShell const *pViewShell, sal_Int16 nWordType, const Point *pPt) |
bool | GoSentence (SentenceMoveType eMoveType, SwRootFrame const *pLayout=nullptr) |
bool | ExpandToSentenceBorders (SwRootFrame const *pLayout) |
virtual bool | LeftRight (bool bLeft, sal_uInt16 nCnt, sal_uInt16 nMode, bool bAllowVisual, bool bSkipHidden, bool bInsertCursor, SwRootFrame const *pLayout) |
bool | UpDown (bool bUp, sal_uInt16 nCnt, Point const *pPt, long nUpDownX, SwRootFrame &rLayout) |
bool | LeftRightMargin (SwRootFrame const &rLayout, bool bLeftMargin, bool bAPI) |
bool | IsAtLeftRightMargin (SwRootFrame const &rLayout, bool bLeftMargin, bool bAPI) const |
bool | SttEndDoc (bool bSttDoc) |
bool | GoPrevNextCell (bool bNext, sal_uInt16 nCnt) |
bool | Left (sal_uInt16 nCnt) |
bool | Right (sal_uInt16 nCnt) |
bool | GoNextCell (sal_uInt16 nCnt=1) |
bool | GoPrevCell (sal_uInt16 nCnt=1) |
virtual bool | GotoTable (const OUString &rName) |
bool | GotoTableBox (const OUString &rName) |
bool | GotoRegion (const OUString &rName) |
bool | GotoFootnoteAnchor () |
bool | GotoFootnoteText () |
bool | GotoNextFootnoteAnchor () |
bool | GotoPrevFootnoteAnchor () |
bool | MovePara (SwWhichPara, SwMoveFnCollection const &) |
bool | MoveSection (SwWhichSection, SwMoveFnCollection const &) |
bool | MoveTable (SwWhichTable, SwMoveFnCollection const &) |
bool | MoveRegion (SwWhichRegion, SwMoveFnCollection const &) |
virtual bool | IsSelOvr (SwCursorSelOverFlags eFlags=SwCursorSelOverFlags::CheckNodeSection|SwCursorSelOverFlags::Toggle|SwCursorSelOverFlags::ChangePos) |
bool | IsInProtectTable (bool bMove=false, bool bChgCursor=true) |
bool | IsNoContent () const |
determine if point is outside of the node-array's content area More... | |
void | RestoreSavePos () |
Restore cursor state to the one saved by SwCursorSaveState. More... | |
virtual bool | IsSkipOverProtectSections () const |
virtual bool | IsSkipOverHiddenSections () const |
sal_uInt8 | GetCursorBidiLevel () const |
void | SetCursorBidiLevel (sal_uInt8 nNewLevel) |
bool | IsColumnSelection () const |
void | SetColumnSelection (bool bNew) |
long | GetCursorRowSpanOffset () const |
SwCursor * | GetNext () |
const SwCursor * | GetNext () const |
SwCursor * | GetPrev () |
const SwCursor * | GetPrev () const |
![]() | |
SwPaM (const SwPosition &rPos, SwPaM *pRing=nullptr) | |
SwPaM (const SwPosition &rMk, const SwPosition &rPt, SwPaM *pRing=nullptr) | |
SwPaM (const SwNodeIndex &rMk, const SwNodeIndex &rPt, long nMkOffset=0, long nPtOffset=0, SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rMk, const SwNode &rPt, long nMkOffset=0, long nPtOffset=0, SwPaM *pRing=nullptr) | |
SwPaM (const SwNodeIndex &rMk, sal_Int32 nMkContent, const SwNodeIndex &rPt, sal_Int32 nPtContent, SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rMk, sal_Int32 nMkContent, const SwNode &rPt, sal_Int32 nPtContent, SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rNd, sal_Int32 nContent=0, SwPaM *pRing=nullptr) | |
SwPaM (const SwNodeIndex &rNd, sal_Int32 nContent=0, SwPaM *pRing=nullptr) | |
virtual | ~SwPaM () override |
SwPaM (SwPaM const &rPaM, SwPaM *pRing) | |
this takes a second parameter, which indicates the Ring that the new PaM should be part of (may be null) More... | |
SwPaM & | operator= (const SwPaM &) |
@@ semantic: no copy assignment for super class Ring. More... | |
bool | Move (SwMoveFnCollection const &fnMove=fnMoveForward, SwGoInDoc fnGo=GoInContent) |
Movement of cursor. More... | |
bool | IsInFrontOfLabel () const |
void | SetInFrontOfLabel_ (bool bNew) |
void | DeleteMark () |
void | Exchange () |
bool | HasMark () const |
A PaM marks a selection if Point and Mark are distinct positions. More... | |
const SwPosition * | GetPoint () const |
SwPosition * | GetPoint () |
const SwPosition * | GetMark () const |
SwPosition * | GetMark () |
const SwPosition * | Start () const |
SwPosition * | Start () |
const SwPosition * | End () const |
SwPosition * | End () |
SwNode & | GetNode (bool bPoint=true) const |
SwContentNode * | GetContentNode (bool bPoint=true) const |
void | Normalize (bool bPointFirst=true) |
Normalizes PaM, i.e. More... | |
SwDoc * | GetDoc () const |
SwPosition & | GetBound (bool bOne=true) |
const SwPosition & | GetBound (bool bOne=true) const |
sal_uInt16 | GetPageNum (bool bAtPoint=true, const Point *pLayPos=nullptr) |
Get number of page which contains cursor. More... | |
bool | HasReadonlySel (bool bFormView) const |
Is in something protected (readonly) or selection contains something protected. More... | |
bool | ContainsPosition (const SwPosition &rPos) const |
OUString | GetText () const |
void | InvalidatePaM () |
SwPaM * | GetNext () |
const SwPaM * | GetNext () const |
SwPaM * | GetPrev () |
const SwPaM * | GetPrev () const |
bool | IsMultiSelection () const |
void | dumpAsXml (xmlTextWriterPtr pWriter) const |
![]() | |
virtual | ~Ring () COVERITY_NOEXCEPT_FALSE |
void | unlink () |
algo::unlink is buggy! don't call it directly! More... | |
void | MoveTo (SwPaM *pDestRing) |
Removes this item from its current ring container and adds it to another ring container. More... | |
ring_container | GetRingContainer () |
const_ring_container | GetRingContainer () const |
![]() | |
SwSelPaintRects (const SwCursorShell &rCSh) | |
virtual | ~SwSelPaintRects () |
void | swapContent (SwSelPaintRects &rSwap) |
void | Show (std::vector< OString > *pSelectionRectangles=nullptr) |
void | Hide () |
void | Invalidate (const SwRect &rRect) |
void | SetShowTextInputFieldOverlay (const bool bShow) |
const SwCursorShell * | GetShell () const |
Private Attributes | |
Point | m_MarkPt |
Point | m_PointPt |
const SwPosition * | m_pInitialPoint |
Additional Inherited Members | |
![]() | |
enum | SentenceMoveType { NEXT_SENT, PREV_SENT, START_SENT, END_SENT } |
![]() | |
typedef std::add_const< SwPaM >::type | const_value_type |
typedef RingContainer< SwPaM > | ring_container |
typedef RingContainer< const_value_type > | const_ring_container |
![]() | |
static void | Get1PixelInLogic (const SwViewShell &rSh, long *pX=nullptr, long *pY=nullptr) |
![]() | |
void | SaveState () |
void | RestoreState () |
const SwCursor_SavePos * | GetSavePos () const |
virtual const SwContentFrame * | DoSetBidiLevelLeftRight (bool &io_rbLeft, bool bVisualAllowed, bool bInsertCursor) |
virtual void | DoSetBidiLevelUpDown () |
virtual bool | IsSelOvrCheck (SwCursorSelOverFlags eFlags) |
![]() | |
Ring () | |
Creates a new item in a ring container all by itself. More... | |
Ring (SwPaM *pRing) | |
Creates a new item and add it to an existing ring container. More... | |
SwPaM * | GetNextInRing () |
const_value_type * | GetNextInRing () const |
SwPaM * | GetPrevInRing () |
const_value_type * | GetPrevInRing () const |
bool | unique () const |
Definition at line 116 of file viscrs.hxx.
SwShellCursor::SwShellCursor | ( | const SwCursorShell & | rCursorSh, |
const SwPosition & | rPos | ||
) |
Definition at line 536 of file viscrs.cxx.
Referenced by Create().
SwShellCursor::SwShellCursor | ( | const SwCursorShell & | rCursorSh, |
const SwPosition & | rPos, | ||
const Point & | rPtPos, | ||
SwPaM * | pRing | ||
) |
Definition at line 544 of file viscrs.cxx.
SwShellCursor::SwShellCursor | ( | SwShellCursor & | rICursor | ) |
Definition at line 556 of file viscrs.cxx.
References GetShell().
|
overridevirtual |
Definition at line 564 of file viscrs.cxx.
Reimplemented from SwCursor.
Reimplemented in SwShellTableCursor.
Definition at line 651 of file viscrs.cxx.
References SwPaM::GetPoint(), GetPtPos(), SwSelPaintRects::GetShell(), and SwShellCursor().
Referenced by SwShellTableCursor::Create().
|
overridevirtual |
Implements SwSelPaintRects.
Reimplemented in SwShellTableCursor.
Definition at line 581 of file viscrs.cxx.
References SwRootFrame::CalcFrameRects(), SwNode::GetContentNode(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SwSelPaintRects::GetShell(), SwPaM::HasMark(), SwNode::IsContentNode(), and SwPosition::nNode.
Referenced by SwXTextDocument::getTrackedChanges().
Implements SwSelPaintRects.
Reimplemented in SwShellTableCursor.
Definition at line 302 of file viscrs.cxx.
References SwPaM::End(), GetEndPos(), SwSelPaintRects::GetShell(), SwCursorShell::getShellCursor(), GetSttPos(), lcl_getLayoutRect(), and SwPaM::Start().
|
inline |
Definition at line 148 of file viscrs.hxx.
References SwPaM::End().
Referenced by SwRootFrame::CalcFrameRects(), and FillStartEnd().
|
inline |
Definition at line 149 of file viscrs.hxx.
References SwPaM::End().
|
inline |
Definition at line 144 of file viscrs.hxx.
References SwPaM::GetMark().
Referenced by CheckSplitCells(), SwCursorShell::CursorToBlockCursor(), GetAutoSumSel(), GetTableSel(), lcl_GetStartEndCell(), SwRootFrame::MakeTableCursors(), SwCursorShell::RefreshBlockCursor(), SwCursorShell::SelTable(), SwCursorShell::SelTableRowOrCol(), SwCursorShell::SetCursor(), SwShellTableCursor::SwShellTableCursor(), and SwCursorShell::UpdateCursor().
|
inline |
Definition at line 145 of file viscrs.hxx.
References SwPaM::GetMark().
|
inline |
Definition at line 165 of file viscrs.hxx.
References sw::Ring< SwPaM >::GetNextInRing().
Referenced by SwCursorShell::CheckTableBoxContent(), SwCursorShell::Combine(), SwViewShell::FillPrtDoc(), SwFEShell::Insert(), SwCursorShell::IsMultiSelection(), SwCursorShell::IsSelection(), SwCursorShell::Pop(), SwCursorShell::TestCurrPam(), and SwCursorShell::~SwCursorShell().
|
inline |
Definition at line 166 of file viscrs.hxx.
References sw::Ring< SwPaM >::GetNextInRing().
|
inline |
Definition at line 167 of file viscrs.hxx.
References sw::Ring< SwPaM >::GetPrevInRing().
Referenced by SwViewShell::FillPrtDoc().
|
inline |
Definition at line 168 of file viscrs.hxx.
References sw::Ring< SwPaM >::GetPrevInRing().
|
inline |
Definition at line 142 of file viscrs.hxx.
References SwPaM::GetPoint().
Referenced by CheckSplitCells(), Create(), SwCursorShell::CursorToBlockCursor(), SwCursorShell::FindValidContentNode(), GetAutoSumSel(), SwCursorShell::GetCursorDocPos(), GetTableSel(), SwCursorShell::GetTextDirection(), SwCursorShell::GotoFootnoteAnchor(), SwCursorShell::GotoTable(), SwFEShell::Insert(), IsAtStartOrEndOfFrame(), SwCursorShell::isInHiddenTextFrame(), SwShellTableCursor::IsInside(), SwCursorShell::KillPams(), lcl_GetStartEndCell(), SwRootFrame::MakeTableCursors(), SwCursorShell::MoveCursorToNum(), SwCursorShell::MoveTable(), SwCursorShell::Push(), SwCursorShell::RefreshBlockCursor(), SwFEShell::SelTableRowCol(), SwCursorShell::SelTableRowOrCol(), SwRootFrame::SetCurrPage(), SwCursorShell::SetCursor(), SwCursorShell::SetCursorInHdFt(), SwCursorShell::SttEndDoc(), SwShellTableCursor::SwShellTableCursor(), SwCursorShell::UpdateCursor(), SwCursorShell::UpdateCursorPos(), and UpDown().
|
inline |
Definition at line 143 of file viscrs.hxx.
References SwPaM::GetPoint().
|
inline |
Definition at line 146 of file viscrs.hxx.
References SwPaM::Start().
Referenced by SwRootFrame::CalcFrameRects(), SwViewShell::FillPrtDoc(), SwShellTableCursor::FillRects(), and FillStartEnd().
|
inline |
Definition at line 147 of file viscrs.hxx.
References SwPaM::Start().
void SwShellCursor::Hide | ( | ) |
Definition at line 641 of file viscrs.cxx.
References sw::Ring< SwPaM >::GetRingContainer().
Referenced by SwCursorShell::HideCursors().
Definition at line 629 of file viscrs.cxx.
References sw::Ring< SwPaM >::GetRingContainer().
Referenced by SwCursorShell::Paint().
|
overridevirtual |
Return <true> if cursor can be set to this position.
Reimplemented from SwCursor.
Reimplemented in SwShellTableCursor.
Definition at line 709 of file viscrs.cxx.
References SwSelPaintRects::GetShell(), and SwCursor::IsAtValidPos().
Referenced by SwShellTableCursor::IsAtValidPos().
|
overridevirtual |
Reimplemented from SwCursor.
Definition at line 567 of file viscrs.cxx.
References SwSelPaintRects::GetShell(), and SwCursorShell::IsReadOnlyAvailable().
|
overridevirtual |
Reimplemented from SwCursor.
Reimplemented in SwShellTableCursor.
Definition at line 656 of file viscrs.cxx.
References Application::CreateBuilder(), sw::Ring< SwPaM >::GetRingContainer(), SwView::GetSearchDialog(), SwSelPaintRects::GetShell(), and RET_YES.
Referenced by SwShellTableCursor::MaxReplaceArived().
|
overridevirtual |
Reimplemented from SwCursor.
Reimplemented in SwShellTableCursor.
Definition at line 696 of file viscrs.cxx.
References SwSelPaintRects::GetShell().
Referenced by SwShellTableCursor::SaveTableBoxContent().
|
overridevirtual |
Unless this is called, the getter method of Mark will return Point.
Reimplemented from SwPaM.
Reimplemented in SwShellTableCursor.
Definition at line 572 of file viscrs.cxx.
References SwPaM::GetPoint(), m_MarkPt, m_pInitialPoint, m_PointPt, and SwPaM::SetMark().
Referenced by SwCursorShell::CursorToBlockCursor(), SwXTextDocument::getTrackedChanges(), SwCursorShell::GotoRedline_(), SwRedlineTable::LOKRedlineNotification(), SwCursorShell::MakeOutlineSel(), SwCursorShell::Push(), SwCursorShell::SelectHiddenRange(), SwCursorShell::SelectNxtPrvHyperlink(), SwCursorShell::SelectText(), SwFEShell::SelTableRowCol(), SwShellTableCursor::SetMark(), SwCursorShell::SetMark(), sw::annotation::SwAnnotationWin::SetPosAndSize(), and SwWrtShell::SttSelect().
void SwShellCursor::Show | ( | SfxViewShell const * | pViewShell | ) |
Definition at line 593 of file viscrs.cxx.
References sw::Ring< SwPaM >::GetRingContainer(), SwViewShell::GetSfxViewShell(), SwSelPaintRects::GetShell(), comphelper::LibreOfficeKit::isActive(), comphelper::string::join(), SfxViewShell::libreOfficeKitViewCallback(), SfxLokHelper::notifyOtherView(), and SfxLokHelper::notifyOtherViews().
Referenced by SwCursorShell::Paint(), and SwCursorShell::ShowCursors().
bool SwShellCursor::UpDown | ( | bool | bUp, |
sal_uInt16 | nCnt | ||
) |
Definition at line 701 of file viscrs.cxx.
References GetPtPos(), SwSelPaintRects::GetShell(), and SwCursor::UpDown().
Referenced by SwCursorShell::UpDown().
|
private |
Definition at line 120 of file viscrs.hxx.
Referenced by SetMark().
|
private |
Definition at line 122 of file viscrs.hxx.
Referenced by SetMark().
|
private |
Definition at line 121 of file viscrs.hxx.
Referenced by SetMark().