LibreOffice Module sw (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SwTableCursor Class Reference

#include <swcrsr.hxx>

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

Public Member Functions

 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 SwSelBoxesGetSelectedBoxes () const
 
SwCursorMakeBoxSels (SwCursor *pCurrentCursor)
 
bool HasReadOnlyBoxSel () 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)
 
SwTableCursorGetNext ()
 
const SwTableCursorGetNext () const
 
SwTableCursorGetPrev ()
 
const SwTableCursorGetPrev () const
 
- Public Member Functions inherited from SwCursor
 SwCursor (const SwPosition &rPos, SwPaM *pRing)
 
virtual ~SwCursor () override
 
SwCursoroperator= (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 SwCursorCreate (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
 
SwCursorGetNext ()
 
const SwCursorGetNext () const
 
SwCursorGetPrev ()
 
const SwCursorGetPrev () 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...
 
SwPaMoperator= (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 SwPositionGetPoint () const
 
SwPositionGetPoint ()
 
const SwPositionGetMark () const
 
SwPositionGetMark ()
 
const SwPositionStart () const
 
SwPositionStart ()
 
const SwPositionEnd () const
 
SwPositionEnd ()
 
std::pair< const SwPosition *, const SwPosition * > StartEnd () const
 Because sometimes the cost of the operator<= can add up. More...
 
std::pair< SwPosition *, SwPosition * > StartEnd ()
 
SwNodeGetPointNode () const
 
SwNodeGetMarkNode () const
 
SwContentNodeGetPointContentNode () const
 
SwContentNodeGetMarkContentNode () const
 
void Normalize (bool bPointFirst=true)
 Normalizes PaM, i.e. More...
 
SwDocGetDoc () const
 
SwPositionGetBound (bool bOne=true)
 
const SwPositionGetBound (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 ContainsPosition (const SwPosition &rPos) const
 
OUString GetText () const
 
void InvalidatePaM ()
 
SwPaMGetNext ()
 
const SwPaMGetNext () const
 
SwPaMGetPrev ()
 
const SwPaMGetPrev () 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
 

Protected Member Functions

virtual bool IsSelOvrCheck (SwCursorSelOverFlags eFlags) override
 
- Protected Member Functions inherited from SwCursor
void SaveState ()
 
void RestoreState ()
 
const SwCursor_SavePosGetSavePos () const
 
virtual const SwContentFrameDoSetBidiLevelLeftRight (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...
 
SwPaMGetNextInRing ()
 
const_value_typeGetNextInRing () const
 
SwPaMGetPrevInRing ()
 
const_value_typeGetPrevInRing () const
 
bool unique () const
 

Protected Attributes

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
 

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< SwPaMring_container
 
typedef RingContainer< const_value_typeconst_ring_container
 

Detailed Description

Definition at line 253 of file swcrsr.hxx.

Constructor & Destructor Documentation

◆ SwTableCursor() [1/2]

SwTableCursor::SwTableCursor ( const SwPosition rPos)

Definition at line 2360 of file swcrsr.cxx.

References m_bChanged, m_bParked, m_nTableMkCnt, m_nTableMkNd, m_nTablePtCnt, and m_nTablePtNd.

◆ SwTableCursor() [2/2]

SwTableCursor::SwTableCursor ( SwTableCursor )

◆ ~SwTableCursor()

SwTableCursor::~SwTableCursor ( )
overridevirtual

Definition at line 2371 of file swcrsr.cxx.

Member Function Documentation

◆ ActualizeSelection()

void SwTableCursor::ActualizeSelection ( const SwSelBoxes rBoxes)

◆ DeleteBox()

void SwTableCursor::DeleteBox ( size_t  nPos)

◆ GetNext() [1/2]

SwTableCursor * SwTableCursor::GetNext ( )
inline

Definition at line 307 of file swcrsr.hxx.

References sw::Ring< SwPaM >::GetNextInRing().

◆ GetNext() [2/2]

const SwTableCursor * SwTableCursor::GetNext ( ) const
inline

Definition at line 308 of file swcrsr.hxx.

References sw::Ring< SwPaM >::GetNextInRing().

◆ GetPrev() [1/2]

SwTableCursor * SwTableCursor::GetPrev ( )
inline

Definition at line 309 of file swcrsr.hxx.

References sw::Ring< SwPaM >::GetPrevInRing().

◆ GetPrev() [2/2]

const SwTableCursor * SwTableCursor::GetPrev ( ) const
inline

Definition at line 310 of file swcrsr.hxx.

References sw::Ring< SwPaM >::GetPrevInRing().

◆ GetSelectedBoxes()

const SwSelBoxes & SwTableCursor::GetSelectedBoxes ( ) const
inline

◆ GetSelectedBoxesCount()

size_t SwTableCursor::GetSelectedBoxesCount ( ) const
inline

◆ GotoTable()

bool SwTableCursor::GotoTable ( const OUString &  rName)
overridevirtual

Reimplemented from SwCursor.

Definition at line 2239 of file swcrsr.cxx.

◆ HasReadOnlyBoxSel()

bool SwTableCursor::HasReadOnlyBoxSel ( ) const

◆ InsertBox()

void SwTableCursor::InsertBox ( const SwTableBox rTableBox)

◆ IsChgd()

bool SwTableCursor::IsChgd ( ) const
inline

◆ IsCursorMoved()

bool SwTableCursor::IsCursorMoved ( ) const
inline

◆ IsCursorMovedUpdate()

bool SwTableCursor::IsCursorMovedUpdate ( )

◆ IsSelOvrCheck()

bool SwTableCursor::IsSelOvrCheck ( SwCursorSelOverFlags  eFlags)
overrideprotectedvirtual

◆ LeftRight()

bool SwTableCursor::LeftRight ( bool  bLeft,
sal_uInt16  nCnt,
SwCursorSkipMode  nMode,
bool  bAllowVisual,
bool  bSkipHidden,
bool  bInsertCursor,
SwRootFrame const *  ,
bool   
)
overridevirtual

Reimplemented from SwCursor.

Definition at line 1662 of file swcrsr.cxx.

References SwCursor::GoNextCell(), and SwCursor::GoPrevCell().

◆ MakeBoxSels()

SwCursor * SwTableCursor::MakeBoxSels ( SwCursor pCurrentCursor)

◆ NewTableSelection()

bool SwTableCursor::NewTableSelection ( )

◆ ParkCursor()

void SwTableCursor::ParkCursor ( )

◆ SetChgd()

void SwTableCursor::SetChgd ( )
inline

Definition at line 299 of file swcrsr.hxx.

References m_bChanged.

Member Data Documentation

◆ m_bChanged

bool SwTableCursor::m_bChanged
protected

Definition at line 262 of file swcrsr.hxx.

Referenced by DeleteBox(), InsertBox(), IsChgd(), MakeBoxSels(), ParkCursor(), SetChgd(), and SwTableCursor().

◆ m_bParked

bool SwTableCursor::m_bParked
protected

◆ m_nTableMkCnt

sal_Int32 SwTableCursor::m_nTableMkCnt
protected

Definition at line 260 of file swcrsr.hxx.

Referenced by IsCursorMoved(), IsCursorMovedUpdate(), and SwTableCursor().

◆ m_nTableMkNd

SwNodeOffset SwTableCursor::m_nTableMkNd
protected

Definition at line 258 of file swcrsr.hxx.

Referenced by IsCursorMoved(), IsCursorMovedUpdate(), and SwTableCursor().

◆ m_nTablePtCnt

sal_Int32 SwTableCursor::m_nTablePtCnt
protected

Definition at line 259 of file swcrsr.hxx.

Referenced by IsCursorMoved(), IsCursorMovedUpdate(), and SwTableCursor().

◆ m_nTablePtNd

SwNodeOffset SwTableCursor::m_nTablePtNd
protected

Definition at line 257 of file swcrsr.hxx.

Referenced by IsCursorMoved(), IsCursorMovedUpdate(), and SwTableCursor().

◆ m_SelectedBoxes

SwSelBoxes SwTableCursor::m_SelectedBoxes
protected

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