LibreOffice Module sw (master) 1
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwCursor Class Reference

#include <swcrsr.hxx>

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

Public Types

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
 

Public Member Functions

 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 HasHiddenSections () const
 Is there hidden sections in the selected area. 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

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
 

Private Member Functions

sal_Int32 FindAll (SwFindParas &, SwDocPositions, SwDocPositions, FindRanges, bool &bCancel)
 
 SwCursor (SwCursor const &rPaM)=delete
 

Private Attributes

std::vector< SwCursor_SavePosm_vSavePos
 
sal_Int32 m_nRowSpanOffset
 
sal_uInt8 m_nCursorBidiLevel
 
bool m_bColumnSelection
 

Friends

class SwCursorSaveState
 

Detailed Description

Definition at line 70 of file swcrsr.hxx.

Member Enumeration Documentation

◆ SentenceMoveType

Enumerator
NEXT_SENT 
PREV_SENT 
START_SENT 
END_SENT 

Definition at line 153 of file swcrsr.hxx.

Constructor & Destructor Documentation

◆ SwCursor() [1/3]

SwCursor::SwCursor ( SwCursor const &  rPaM)
privatedelete

Referenced by Create().

◆ SwCursor() [2/3]

SwCursor::SwCursor ( const SwPosition rPos,
SwPaM pRing 
)

Definition at line 124 of file swcrsr.cxx.

◆ ~SwCursor()

SwCursor::~SwCursor ( )
overridevirtual

Definition at line 141 of file swcrsr.cxx.

◆ SwCursor() [3/3]

SwCursor::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)

Definition at line 133 of file swcrsr.cxx.

Member Function Documentation

◆ Create()

SwCursor * SwCursor::Create ( SwPaM pRing = nullptr) const
virtual

Reimplemented in SwShellCursor, and SwShellTableCursor.

Definition at line 145 of file swcrsr.cxx.

References SwPaM::GetPoint(), and SwCursor().

Referenced by FindAll(), lcl_FindSelection(), and SwTableCursor::MakeBoxSels().

◆ DoSetBidiLevelLeftRight()

const SwContentFrame * SwCursor::DoSetBidiLevelLeftRight ( bool &  io_rbLeft,
bool  bVisualAllowed,
bool  bInsertCursor 
)
protectedvirtual

◆ DoSetBidiLevelUpDown()

void SwCursor::DoSetBidiLevelUpDown ( )
protectedvirtual

◆ ExpandToSentenceBorders()

void SwCursor::ExpandToSentenceBorders ( SwRootFrame const *  pLayout)

◆ FillFindPos()

void SwCursor::FillFindPos ( SwDocPositions  ePos,
SwPosition rPos 
) const

◆ Find_Text()

sal_Int32 SwCursor::Find_Text ( const i18nutil::SearchOptions2 rSearchOpt,
bool  bSearchInNotes,
SwDocPositions  nStart,
SwDocPositions  nEnd,
bool &  bCancel,
FindRanges  eFndRngs,
bool  bReplace = false,
SwRootFrame const *const  pLayout = nullptr 
)

◆ FindAll()

sal_Int32 SwCursor::FindAll ( SwFindParas rParas,
SwDocPositions  nStart,
SwDocPositions  nEnd,
FindRanges  eFndRngs,
bool &  bCancel 
)
private

◆ FindAttrs()

sal_Int32 SwCursor::FindAttrs ( const SfxItemSet rSet,
bool  bNoCollections,
SwDocPositions  nStart,
SwDocPositions  nEnd,
bool &  bCancel,
FindRanges  eFndRngs,
const i18nutil::SearchOptions2 pSearchOpt,
const SfxItemSet rReplSet = nullptr,
SwRootFrame const *const  pLayout = nullptr 
)

◆ FindFormat()

sal_Int32 SwCursor::FindFormat ( const SwTextFormatColl rFormatColl,
SwDocPositions  nStart,
SwDocPositions  nEnd,
bool &  bCancel,
FindRanges  eFndRngs,
const SwTextFormatColl pReplFormat,
SwRootFrame const *const  pLayout = nullptr 
)

◆ GetCursorBidiLevel()

sal_uInt8 SwCursor::GetCursorBidiLevel ( ) const
inline

◆ GetCursorRowSpanOffset()

sal_Int32 SwCursor::GetCursorRowSpanOffset ( ) const
inline

Definition at line 217 of file swcrsr.hxx.

Referenced by SwCursorShell::GoNextCell().

◆ GetNext() [1/2]

SwCursor * SwCursor::GetNext ( )
inline

◆ GetNext() [2/2]

const SwCursor * SwCursor::GetNext ( ) const
inline

Definition at line 220 of file swcrsr.hxx.

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

◆ GetPrev() [1/2]

SwCursor * SwCursor::GetPrev ( )
inline

Definition at line 221 of file swcrsr.hxx.

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

Referenced by lcl_FindSelection(), and SwTableCursor::MakeBoxSels().

◆ GetPrev() [2/2]

const SwCursor * SwCursor::GetPrev ( ) const
inline

Definition at line 222 of file swcrsr.hxx.

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

◆ GetSavePos()

const SwCursor_SavePos * SwCursor::GetSavePos ( ) const
inlineprotected

◆ GoEndWordWT()

bool SwCursor::GoEndWordWT ( sal_Int16  nWordType,
SwRootFrame const *  pLayout = nullptr 
)

◆ GoNextCell()

bool SwCursor::GoNextCell ( sal_uInt16  nCnt = 1)
inline

◆ GoNextWordWT()

bool SwCursor::GoNextWordWT ( sal_Int16  nWordType,
SwRootFrame const *  pLayout = nullptr 
)

◆ GoPrevCell()

bool SwCursor::GoPrevCell ( sal_uInt16  nCnt = 1)
inline

◆ GoPrevNextCell()

bool SwCursor::GoPrevNextCell ( bool  bNext,
sal_uInt16  nCnt 
)

◆ GoPrevWordWT()

bool SwCursor::GoPrevWordWT ( sal_Int16  nWordType,
SwRootFrame const *  pLayout = nullptr 
)

◆ GoSentence()

bool SwCursor::GoSentence ( SentenceMoveType  eMoveType,
SwRootFrame const *  pLayout = nullptr 
)

◆ GoStartWordWT()

bool SwCursor::GoStartWordWT ( sal_Int16  nWordType,
SwRootFrame const *  pLayout = nullptr 
)

◆ GotoFootnoteAnchor()

bool SwCursor::GotoFootnoteAnchor ( )

◆ GotoFootnoteText()

bool SwCursor::GotoFootnoteText ( )

◆ GotoNextFootnoteAnchor()

bool SwCursor::GotoNextFootnoteAnchor ( )

◆ GotoPrevFootnoteAnchor()

bool SwCursor::GotoPrevFootnoteAnchor ( )

◆ GotoRegion()

bool SwCursor::GotoRegion ( std::u16string_view  rName)

◆ GotoTable()

bool SwCursor::GotoTable ( const OUString &  rName)
virtual

◆ GotoTableBox()

bool SwCursor::GotoTableBox ( const OUString &  rName)

◆ IsAtLeftRightMargin()

bool SwCursor::IsAtLeftRightMargin ( SwRootFrame const &  rLayout,
bool  bLeftMargin,
bool  bAPI 
) const

◆ IsAtValidPos()

bool SwCursor::IsAtValidPos ( bool  bPoint = true) const
virtual

◆ IsColumnSelection()

bool SwCursor::IsColumnSelection ( ) const
inline

Definition at line 214 of file swcrsr.hxx.

Referenced by SwEditShell::CopySelToDoc().

◆ IsEndWordWT()

bool SwCursor::IsEndWordWT ( sal_Int16  nWordType,
SwRootFrame const *  pLayout = nullptr 
) const

◆ IsInProtectTable()

bool SwCursor::IsInProtectTable ( bool  bMove = false,
bool  bChgCursor = true 
)

◆ IsInWordWT()

bool SwCursor::IsInWordWT ( sal_Int16  nWordType,
SwRootFrame const *  pLayout = nullptr 
) const

◆ IsNoContent()

bool SwCursor::IsNoContent ( ) const

determine if point is outside of the node-array's content area

Definition at line 181 of file swcrsr.cxx.

References SwPaM::GetDoc(), SwNodes::GetEndOfExtras(), SwNode::GetIndex(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), and SwPaM::GetPoint().

Referenced by SwCursorShell::MovePage(), and SttEndDoc().

◆ IsReadOnlyAvailable()

bool SwCursor::IsReadOnlyAvailable ( ) const
virtual

◆ IsSelOvr()

Reimplemented in SwUnoCursor, and SwUnoTableCursor.

Definition at line 222 of file swcrsr.cxx.

References SwPosition::Assign(), ChangePos, CheckNodesRange(), EnableRevDirection, SwNode::FindSectionNode(), SwNode::GetContentNode(), SwPaM::GetDoc(), SwDoc::GetDocShell(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwSectionNode::GetSection(), SwNodes::GoNextSection(), SwNodes::GoPrevSection(), SwSection::IsHiddenFlag(), SwSection::IsProtectFlag(), SfxObjectShell::IsReadOnlyUI(), IsSelOvrCheck(), IsSkipOverHiddenSections(), IsSkipOverProtectSections(), m_vSavePos, and RestoreSavePos().

Referenced by SwCursorShell::Combine(), FindAll(), SwCursorShell::GetContentAtPos(), GoEndWordWT(), GoNextWordWT(), GoPrevWordWT(), GoSentence(), GoStartWordWT(), SwCursorShell::GotoFlyAnchor(), SwCursorShell::GotoFooterText(), GotoFootnoteAnchor(), SwWrtShell::GotoFootnoteAnchor(), GotoFootnoteText(), SwCursorShell::GotoFormatField(), SwCursorShell::GotoHeaderText(), SwCursorShell::GotoINetAttr(), GotoNextFootnoteAnchor(), SwCursorShell::GotoNextOutline(), SwCursorShell::GotoNextTOXBase(), SwCursorShell::GotoNxtPrvTableFormula(), SwCursorShell::GotoNxtPrvTOXMark(), SwCursorShell::GotoOutline(), SwCursorShell::GotoPage(), GotoPrevFootnoteAnchor(), SwCursorShell::GotoPrevOutline(), SwCursorShell::GotoPrevTOXBase(), SwCursorShell::GotoRedline_(), SwCursorShell::GotoRefMark(), GotoRegion(), GotoTable(), GotoTableBox(), SwCursorShell::GotoTOXMark(), SwCursorShell::GotoTOXMarkBase(), IsInProtectTable(), SwUnoCursor::IsSelOvr(), LeftRight(), LeftRightMargin(), SwCursorShell::MakeOutlineSel(), SwCursorShell::MoveColumn(), SwCursorShell::MoveCursorToNum(), SwCursorShell::MoveFieldType(), SwCursorShell::MovePage(), MovePara(), MoveRegion(), MoveSection(), MoveTable(), SwCursorShell::SelectNxtPrvHyperlink(), SwCursorShell::SelectTextModel(), SelectWordWT(), SwCursorShell::SelNextRedline(), SwCursorShell::SelPrevRedline(), SwCursorShell::SetCursor(), SwCursorShell::SetCursorInHdFt(), SttEndDoc(), and UpDown().

◆ IsSelOvrCheck()

bool SwCursor::IsSelOvrCheck ( SwCursorSelOverFlags  eFlags)
protectedvirtual

Reimplemented in SwTableCursor.

Definition at line 187 of file swcrsr.cxx.

Referenced by IsSelOvr(), and SwTableCursor::IsSelOvrCheck().

◆ IsSkipOverHiddenSections()

bool SwCursor::IsSkipOverHiddenSections ( ) const
virtual

Reimplemented in SwUnoCursor.

Definition at line 155 of file swcrsr.cxx.

Referenced by IsSelOvr().

◆ IsSkipOverProtectSections()

bool SwCursor::IsSkipOverProtectSections ( ) const
virtual

Reimplemented in SwUnoCursor.

Definition at line 160 of file swcrsr.cxx.

References IsReadOnlyAvailable().

Referenced by IsSelOvr().

◆ IsStartEndSentence()

bool SwCursor::IsStartEndSentence ( bool  bEnd,
SwRootFrame const *  pLayout 
) const

◆ IsStartWordWT()

bool SwCursor::IsStartWordWT ( sal_Int16  nWordType,
SwRootFrame const *  pLayout = nullptr 
) const

◆ Left()

bool SwCursor::Left ( sal_uInt16  nCnt)
inline

◆ LeftRight()

bool SwCursor::LeftRight ( bool  bLeft,
sal_uInt16  nCnt,
SwCursorSkipMode  nMode,
bool  bAllowVisual,
bool  bSkipHidden,
bool  bInsertCursor,
SwRootFrame const *  pLayout,
bool  isFieldNames 
)
virtual

◆ LeftRightMargin()

bool SwCursor::LeftRightMargin ( SwRootFrame const &  rLayout,
bool  bLeftMargin,
bool  bAPI 
)

◆ MakeFindRange()

SwMoveFnCollection const & SwCursor::MakeFindRange ( SwDocPositions  nStart,
SwDocPositions  nEnd,
SwPaM pRange 
) const

set range for search in document

Definition at line 744 of file swcrsr.cxx.

References Curr, End, FillFindPos(), fnMoveBackward, fnMoveForward, SwPaM::GetMark(), SwPaM::GetPoint(), OtherEnd, OtherStart, SwPaM::SetMark(), and Start.

Referenced by FindAll(), and SwCursorShell::MakeFindRange().

◆ MaxReplaceArived()

short SwCursor::MaxReplaceArived ( )
virtual

Reimplemented in SwShellCursor, and SwShellTableCursor.

Definition at line 1138 of file swcrsr.cxx.

References RET_YES.

Referenced by lcl_FindSelection().

◆ MovePara()

bool SwCursor::MovePara ( SwWhichPara  fnWhichPara,
SwMoveFnCollection const &  fnPosPara 
)

◆ MoveRegion()

bool SwCursor::MoveRegion ( SwWhichRegion  fnWhichRegion,
SwMoveFnCollection const &  fnPosRegion 
)

◆ MoveSection()

bool SwCursor::MoveSection ( SwWhichSection  fnWhichSect,
SwMoveFnCollection const &  fnPosSect 
)

◆ MoveTable()

bool SwCursor::MoveTable ( SwWhichTable  fnWhichTable,
SwMoveFnCollection const &  fnPosTable 
)

◆ operator=()

SwCursor & SwCursor::operator= ( SwCursor const &  )
inlinedefault

References Create().

◆ RestoreSavePos()

void SwCursor::RestoreSavePos ( )

◆ RestoreState()

void SwCursor::RestoreState ( )
protected

Definition at line 172 of file swcrsr.cxx.

References m_vSavePos.

Referenced by SwCursorSaveState::~SwCursorSaveState().

◆ Right()

bool SwCursor::Right ( sal_uInt16  nCnt)
inline

◆ SaveState()

void SwCursor::SaveState ( )
protected

Definition at line 167 of file swcrsr.cxx.

References m_vSavePos.

Referenced by SwCursorSaveState::SwCursorSaveState().

◆ SaveTableBoxContent()

void SwCursor::SaveTableBoxContent ( const SwPosition pPos)
virtual

Reimplemented in SwShellCursor, and SwShellTableCursor.

Definition at line 741 of file swcrsr.cxx.

◆ SelectWord()

bool SwCursor::SelectWord ( SwViewShell const *  pViewShell,
const Point pPt 
)

Definition at line 1202 of file swcrsr.cxx.

References SelectWordWT().

Referenced by SwCursorShell::SelectWord().

◆ SelectWordWT()

bool SwCursor::SelectWordWT ( SwViewShell const *  pViewShell,
sal_Int16  nWordType,
const Point pPt 
)

◆ SetColumnSelection()

void SwCursor::SetColumnSelection ( bool  bNew)
inline

Definition at line 215 of file swcrsr.hxx.

Referenced by SwCursorShell::KillPams(), and SwCursorShell::RefreshBlockCursor().

◆ SetCursorBidiLevel()

void SwCursor::SetCursorBidiLevel ( sal_uInt8  nNewLevel)
inline

◆ SttEndDoc()

bool SwCursor::SttEndDoc ( bool  bSttDoc)

◆ UpDown()

bool SwCursor::UpDown ( bool  bUp,
sal_uInt16  nCnt,
Point const *  pPt,
tools::Long  nUpDownX,
SwRootFrame rLayout 
)

Friends And Related Function Documentation

◆ SwCursorSaveState

friend class SwCursorSaveState
friend

Definition at line 72 of file swcrsr.hxx.

Member Data Documentation

◆ m_bColumnSelection

bool SwCursor::m_bColumnSelection
private

Definition at line 77 of file swcrsr.hxx.

◆ m_nCursorBidiLevel

sal_uInt8 SwCursor::m_nCursorBidiLevel
private

Definition at line 76 of file swcrsr.hxx.

◆ m_nRowSpanOffset

sal_Int32 SwCursor::m_nRowSpanOffset
private

Definition at line 75 of file swcrsr.hxx.

Referenced by GoPrevNextCell(), and LeftRight().

◆ m_vSavePos

std::vector<SwCursor_SavePos> SwCursor::m_vSavePos
private

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