LibreOffice Module sw (master) 1
|
#include <viscrs.hxx>
Public Member Functions | |
SwShellTableCursor (const SwCursorShell &rCursorSh, const SwPosition &rPos) | |
SwShellTableCursor (const SwCursorShell &rCursorSh, const SwPosition &rMkPos, const Point &rMkPt, const SwPosition &rPtPos, const Point &rPtPt) | |
virtual | ~SwShellTableCursor () override |
virtual void | FillRects () override |
virtual void | FillStartEnd (SwRect &rStart, SwRect &rEnd) const override |
bool | Contains (const Point &rPt) const |
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 |
virtual bool | IsAtValidPos (bool bPoint=true) const override |
Return <true> if cursor can be set to this position. More... | |
SwShellTableCursor * | GetNext () |
const SwShellTableCursor * | GetNext () const |
SwShellTableCursor * | GetPrev () |
const SwShellTableCursor * | GetPrev () const |
Public Member Functions inherited from SwShellCursor | |
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 |
Public Member Functions inherited from SwCursor | |
SwCursor (const SwPosition &rPos, SwPaM *pRing) | |
virtual | ~SwCursor () override |
SwCursor & | operator= (SwCursor const &) |
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... | |
virtual SwCursor * | Create (SwPaM *pRing=nullptr) const |
virtual short | MaxReplaceArived () |
virtual void | SaveTableBoxContent (const SwPosition *pPos) |
void | FillFindPos (SwDocPositions ePos, SwPosition &rPos) const |
SwMoveFnCollection const & | MakeFindRange (SwDocPositions, SwDocPositions, SwPaM *) const |
set range for search in document More... | |
sal_Int32 | Find_Text (const i18nutil::SearchOptions2 &rSearchOpt, bool bSearchInNotes, SwDocPositions nStart, SwDocPositions nEnd, bool &bCancel, FindRanges, bool bReplace=false, SwRootFrame const *const pLayout=nullptr) |
sal_Int32 | FindFormat (const SwTextFormatColl &rFormatColl, SwDocPositions nStart, SwDocPositions nEnd, bool &bCancel, FindRanges, const SwTextFormatColl *pReplFormat, SwRootFrame const *const pLayout=nullptr) |
search for Format-Collections More... | |
sal_Int32 | FindAttrs (const SfxItemSet &rSet, bool bNoCollections, SwDocPositions nStart, SwDocPositions nEnd, 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) |
void | ExpandToSentenceBorders (SwRootFrame const *pLayout) |
virtual bool | LeftRight (bool bLeft, sal_uInt16 nCnt, SwCursorSkipMode nMode, bool bAllowVisual, bool bSkipHidden, bool bInsertCursor, SwRootFrame const *pLayout, bool isFieldNames) |
bool | UpDown (bool bUp, sal_uInt16 nCnt, Point const *pPt, tools::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 (std::u16string_view 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 | IsAtValidPos (bool bPoint=true) const |
Return <true> if cursor can be set to this position. More... | |
virtual bool | IsReadOnlyAvailable () const |
virtual bool | IsSkipOverProtectSections () const |
virtual bool | IsSkipOverHiddenSections () const |
sal_uInt8 | GetCursorBidiLevel () const |
void | SetCursorBidiLevel (sal_uInt8 nNewLevel) |
bool | IsColumnSelection () const |
void | SetColumnSelection (bool bNew) |
sal_Int32 | GetCursorRowSpanOffset () const |
SwCursor * | GetNext () |
const SwCursor * | GetNext () const |
SwCursor * | GetPrev () |
const SwCursor * | GetPrev () const |
Public Member Functions inherited from SwPaM | |
SwPaM (const SwPosition &rPos, SwPaM *pRing=nullptr) | |
SwPaM (const SwPosition &rMk, const SwPosition &rPt, SwPaM *pRing=nullptr) | |
SwPaM (const SwNodeIndex &rMk, const SwNodeIndex &rPt, SwNodeOffset nMkOffset=SwNodeOffset(0), SwNodeOffset nPtOffset=SwNodeOffset(0), SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rMk, const SwNode &rPt, SwNodeOffset nMkOffset=SwNodeOffset(0), SwNodeOffset nPtOffset=SwNodeOffset(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 &rMk, SwNodeOffset nMkOffset, sal_Int32 nMkContent, const SwNode &rPt, SwNodeOffset nPtOffset, sal_Int32 nPtContent, SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rNd, SwNodeOffset nNdOffset, sal_Int32 nContent=0, 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) | |
SwPaM (SwNodes &rNds, SwNodeOffset nMkOffset=SwNodeOffset(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) |
virtual void | SetMark () |
Unless this is called, the getter method of Mark will return Point. More... | |
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 () |
std::pair< const SwPosition *, const SwPosition * > | StartEnd () const |
Because sometimes the cost of the operator<= can add up. More... | |
std::pair< SwPosition *, SwPosition * > | StartEnd () |
SwNode & | GetPointNode () const |
SwNode & | GetMarkNode () const |
SwContentNode * | GetPointContentNode () const |
SwContentNode * | GetMarkContentNode () 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, bool isReplace) const |
Is in something protected (readonly) or selection contains something protected. More... | |
bool | HasHiddenSections () const |
Is there hidden sections in the selected area. 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 |
Public Member Functions inherited from sw::Ring< SwPaM > | |
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 |
Public Member Functions inherited from SwSelPaintRects | |
SwSelPaintRects (const SwCursorShell &rCSh) | |
virtual | ~SwSelPaintRects () |
virtual void | FillRects ()=0 |
virtual void | FillStartEnd (SwRect &rStart, SwRect &rEnd) const =0 |
Fill rStart and rEnd with a rectangle that represents the start and end for selection handles. More... | |
void | swapContent (SwSelPaintRects &rSwap) |
void | Show (std::vector< OString > *pSelectionRectangles=nullptr) |
void | Hide () |
void | Invalidate (const SwRect &rRect) |
void | SetShowTextInputFieldOverlay (const bool bShow) |
void | SetShowContentControlOverlay (const bool bShow) |
const VclPtr< SwContentControlButton > & | GetContentControlButton () const |
const SwCursorShell * | GetShell () const |
std::optional< OString > | getLOKPayload (int nType, int nViewId) const |
Public Member Functions inherited from SwTableCursor | |
SwTableCursor (const SwPosition &rPos) | |
SwTableCursor (SwTableCursor &) | |
virtual | ~SwTableCursor () override |
virtual bool | LeftRight (bool bLeft, sal_uInt16 nCnt, SwCursorSkipMode nMode, bool bAllowVisual, bool bSkipHidden, bool bInsertCursor, SwRootFrame const *, bool) override |
virtual bool | GotoTable (const OUString &rName) override |
void | InsertBox (const SwTableBox &rTableBox) |
void | DeleteBox (size_t nPos) |
size_t | GetSelectedBoxesCount () const |
const SwSelBoxes & | GetSelectedBoxes () const |
SwCursor * | MakeBoxSels (SwCursor *pCurrentCursor) |
bool | HasReadOnlyBoxSel () const |
bool | HasHiddenBoxSel () const |
bool | IsCursorMovedUpdate () |
bool | IsCursorMoved () const |
bool | IsChgd () const |
void | SetChgd () |
void | ParkCursor () |
park table cursor on the boxes' start node More... | |
bool | NewTableSelection () |
void | ActualizeSelection (const SwSelBoxes &rBoxes) |
SwTableCursor * | GetNext () |
const SwTableCursor * | GetNext () const |
SwTableCursor * | GetPrev () |
const SwTableCursor * | GetPrev () const |
Private Attributes | |
SwRect | m_aStart |
Left edge of the selection start (top left cell). More... | |
SwRect | m_aEnd |
Right edge of the selection end (bottom right cell). More... | |
Additional Inherited Members | |
Public Types inherited from SwCursor | |
enum | SentenceMoveType { NEXT_SENT , PREV_SENT , START_SENT , END_SENT } |
Public Types inherited from sw::Ring< SwPaM > | |
typedef std::add_const< SwPaM >::type | const_value_type |
typedef RingContainer< SwPaM > | ring_container |
typedef RingContainer< const_value_type > | const_ring_container |
Static Public Member Functions inherited from SwSelPaintRects | |
static void | Get1PixelInLogic (const SwViewShell &rSh, tools::Long *pX=nullptr, tools::Long *pY=nullptr) |
Protected Member Functions inherited from SwCursor | |
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) |
Protected Member Functions inherited from sw::Ring< SwPaM > | |
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 |
Protected Member Functions inherited from SwTableCursor | |
virtual bool | IsSelOvrCheck (SwCursorSelOverFlags eFlags) override |
Protected Attributes inherited from SwTableCursor | |
SwNodeOffset | m_nTablePtNd |
SwNodeOffset | m_nTableMkNd |
sal_Int32 | m_nTablePtCnt |
sal_Int32 | m_nTableMkCnt |
SwSelBoxes | m_SelectedBoxes |
bool | m_bChanged: 1 |
bool | m_bParked: 1 |
Definition at line 194 of file viscrs.hxx.
SwShellTableCursor::SwShellTableCursor | ( | const SwCursorShell & | rCursorSh, |
const SwPosition & | rPos | ||
) |
Definition at line 1114 of file viscrs.cxx.
SwShellTableCursor::SwShellTableCursor | ( | const SwCursorShell & | rCursorSh, |
const SwPosition & | rMkPos, | ||
const Point & | rMkPt, | ||
const SwPosition & | rPtPos, | ||
const Point & | rPtPt | ||
) |
Definition at line 1120 of file viscrs.cxx.
References SwPaM::GetMark(), SwShellCursor::GetMkPos(), SwShellCursor::GetPtPos(), and SetMark().
|
overridevirtual |
Definition at line 1131 of file viscrs.cxx.
bool SwShellTableCursor::Contains | ( | const Point & | rPt | ) | const |
Definition at line 1220 of file viscrs.cxx.
References SwRect::Contains(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), SwPaM::GetDoc(), SwCellFrame::GetFollowCell(), SwFrameAreaDefinition::getFrameArea(), SwContentNode::getLayoutFrame(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwShellCursor::GetPtPos(), SwSelPaintRects::GetShell(), SwFrame::GetUpper(), SwNodes::GoNextSection(), SwFrame::IsCellFrame(), SwTableCursor::m_bParked, SwTableCursor::m_SelectedBoxes, n, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size().
Referenced by SwCursorShell::TestCurrPam().
Reimplemented from SwShellCursor.
Definition at line 1135 of file viscrs.cxx.
References SwShellCursor::Create().
|
overridevirtual |
Reimplemented from SwShellCursor.
Definition at line 1150 of file viscrs.cxx.
References begin, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), SwNode::EndOfSectionIndex(), SwNode::FindTableNode(), SwPaM::GetDoc(), SwFrameAreaDefinition::getFrameArea(), SwContentNode::getLayoutFrame(), SwFrame::GetNextCellLeaf(), SwDoc::GetNodes(), SwRegionRects::GetOrigin(), SwPaM::GetPoint(), SwSelPaintRects::GetShell(), SwShellCursor::GetSttPos(), SwFrame::GetUpper(), SwNodes::GoNextSection(), SwRect::Height(), SwRegionRects::Invert(), comphelper::LibreOfficeKit::isActive(), SwFrame::IsCellFrame(), SwRect::Left(), m_aEnd, m_aStart, SwTableCursor::m_bParked, SwTableCursor::m_SelectedBoxes, n, SwRect::Overlaps(), SwRect::Right(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and SwRect::Top().
Reimplemented from SwShellCursor.
Definition at line 1213 of file viscrs.cxx.
|
inline |
Definition at line 227 of file viscrs.hxx.
References sw::Ring< SwPaM >::GetNextInRing().
|
inline |
Definition at line 228 of file viscrs.hxx.
References sw::Ring< SwPaM >::GetNextInRing().
|
inline |
Definition at line 229 of file viscrs.hxx.
References sw::Ring< SwPaM >::GetPrevInRing().
|
inline |
Definition at line 230 of file viscrs.hxx.
References sw::Ring< SwPaM >::GetPrevInRing().
|
overridevirtual |
Return <true> if cursor can be set to this position.
Reimplemented from SwShellCursor.
Definition at line 1251 of file viscrs.cxx.
References SwShellCursor::IsAtValidPos().
|
overridevirtual |
Reimplemented from SwShellCursor.
Definition at line 1140 of file viscrs.cxx.
References SwShellCursor::MaxReplaceArived().
|
overridevirtual |
Reimplemented from SwShellCursor.
Definition at line 1145 of file viscrs.cxx.
References SwShellCursor::SaveTableBoxContent().
|
overridevirtual |
Unless this is called, the getter method of Mark will return Point.
Reimplemented from SwShellCursor.
Definition at line 1133 of file viscrs.cxx.
References SwShellCursor::SetMark().
Referenced by SwFEShell::DeleteRow(), SwCursorShell::MoveTable(), SwCursorShell::SelTable(), SwCursorShell::SelTableBox(), SwCursorShell::SelTableRowOrCol(), sw::annotation::SwAnnotationWin::SetPosAndSize(), and SwShellTableCursor().
|
private |
Right edge of the selection end (bottom right cell).
Definition at line 199 of file viscrs.hxx.
Referenced by FillRects(), and FillStartEnd().
|
private |
Left edge of the selection start (top left cell).
Definition at line 197 of file viscrs.hxx.
Referenced by FillRects(), and FillStartEnd().