LibreOffice Module sw (master)
1
|
#include <swcrsr.hxx>
Public Member Functions | |
SwTableCursor (const SwPosition &rPos) | |
SwTableCursor (SwTableCursor &) | |
virtual | ~SwTableCursor () override |
virtual bool | LeftRight (bool bLeft, sal_uInt16 nCnt, sal_uInt16 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 | 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 |
![]() | |
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... | |
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_uLong | Find_Text (const i18nutil::SearchOptions2 &rSearchOpt, bool bSearchInNotes, SwDocPositions nStart, SwDocPositions nEnd, bool &bCancel, FindRanges, bool bReplace=false, SwRootFrame const *const pLayout=nullptr) |
sal_uLong | 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_uLong | 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) |
bool | ExpandToSentenceBorders (SwRootFrame const *pLayout) |
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) |
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) |
tools::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, tools::Long nMkOffset=0, tools::Long nPtOffset=0, SwPaM *pRing=nullptr) | |
SwPaM (const SwNode &rMk, const SwNode &rPt, tools::Long nMkOffset=0, tools::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) |
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 () |
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 |
Protected Member Functions | |
virtual bool | IsSelOvrCheck (SwCursorSelOverFlags eFlags) override |
![]() | |
void | SaveState () |
void | RestoreState () |
const SwCursor_SavePos * | GetSavePos () const |
virtual const SwContentFrame * | DoSetBidiLevelLeftRight (bool &io_rbLeft, bool bVisualAllowed, bool bInsertCursor) |
virtual void | DoSetBidiLevelUpDown () |
![]() | |
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 Attributes | |
sal_uLong | m_nTablePtNd |
sal_uLong | m_nTableMkNd |
sal_Int32 | m_nTablePtCnt |
sal_Int32 | m_nTableMkCnt |
SwSelBoxes | m_SelectedBoxes |
bool | m_bChanged: 1 |
bool | m_bParked: 1 |
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 |
Definition at line 253 of file swcrsr.hxx.
SwTableCursor::SwTableCursor | ( | const SwPosition & | rPos | ) |
Definition at line 2364 of file swcrsr.cxx.
References m_bChanged, m_bParked, m_nTableMkCnt, m_nTableMkNd, m_nTablePtCnt, and m_nTablePtNd.
SwTableCursor::SwTableCursor | ( | SwTableCursor & | ) |
|
overridevirtual |
Definition at line 2375 of file swcrsr.cxx.
void SwTableCursor::ActualizeSelection | ( | const SwSelBoxes & | rBoxes | ) |
Definition at line 2542 of file swcrsr.cxx.
References DeleteBox(), SwTableBox::GetSttIdx(), InsertBox(), m_SelectedBoxes, and o3tl::sorted_vector< Value, Compare, Find, class >::size().
Referenced by SwRootFrame::MakeTableCursors(), and NewTableSelection().
void SwTableCursor::DeleteBox | ( | size_t | nPos | ) |
Definition at line 2515 of file swcrsr.cxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::begin(), o3tl::sorted_vector< Value, Compare, Find, class >::erase(), m_bChanged, and m_SelectedBoxes.
Referenced by ActualizeSelection(), SwUnoTableCursor::MakeBoxSels(), and SwXTextTableCursor::mergeRange().
|
inline |
Definition at line 307 of file swcrsr.hxx.
References sw::Ring< SwPaM >::GetNextInRing().
|
inline |
Definition at line 308 of file swcrsr.hxx.
References sw::Ring< SwPaM >::GetNextInRing().
|
inline |
Definition at line 309 of file swcrsr.hxx.
References sw::Ring< SwPaM >::GetPrevInRing().
|
inline |
Definition at line 310 of file swcrsr.hxx.
References sw::Ring< SwPaM >::GetPrevInRing().
|
inline |
Definition at line 280 of file swcrsr.hxx.
References m_SelectedBoxes.
Referenced by SwAccessibleTable::GetSelBoxes(), GetTableSelCrs(), SwUnoTableCursor::MakeBoxSels(), SwXCellRange::sort(), SwXTextTableCursor::splitRange(), and SwXTextTableCursor::SwXTextTableCursor().
|
inline |
Definition at line 279 of file swcrsr.hxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::size().
Referenced by GetTableSelCrs(), SwUnoTableCursor::MakeBoxSels(), SwXTextTableCursor::mergeRange(), SwFEShell::MergeTab(), and SwCursorShell::UpdateTableSelBoxes().
|
overridevirtual |
Reimplemented from SwCursor.
Definition at line 2243 of file swcrsr.cxx.
bool SwTableCursor::HasReadOnlyBoxSel | ( | ) | const |
Definition at line 2609 of file swcrsr.cxx.
References m_SelectedBoxes, n, and o3tl::sorted_vector< Value, Compare, Find, class >::size().
Referenced by SwCursorShell::HasReadonlySel().
void SwTableCursor::InsertBox | ( | const SwTableBox & | rTableBox | ) |
Definition at line 2508 of file swcrsr.cxx.
References o3tl::sorted_vector< Value, Compare, Find, class >::insert(), m_bChanged, and m_SelectedBoxes.
Referenced by ActualizeSelection(), SwUnoTableCursor::MakeBoxSels(), and SwXTextTableCursor::SwXTextTableCursor().
|
inline |
Definition at line 298 of file swcrsr.hxx.
References m_bChanged.
Referenced by GetTableSelCrs(), SwUnoTableCursor::MakeBoxSels(), and SwCursorShell::UpdateTableSelBoxes().
|
inline |
Definition at line 290 of file swcrsr.hxx.
References SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwPaM::GetMark(), SwPaM::GetPoint(), SwPosition::nContent, and SwPosition::nNode.
Referenced by IsCursorMovedUpdate().
bool SwTableCursor::IsCursorMovedUpdate | ( | ) |
Definition at line 2577 of file swcrsr.cxx.
References SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwPaM::GetMark(), SwPaM::GetPoint(), IsCursorMoved(), m_nTableMkCnt, m_nTableMkNd, m_nTablePtCnt, m_nTablePtNd, SwPosition::nContent, and SwPosition::nNode.
|
overrideprotectedvirtual |
Reimplemented from SwCursor.
Definition at line 195 of file swcrsr.cxx.
References SwIndex::Assign(), CheckNodeSection, CheckNodesRange(), SwPaM::GetContentNode(), SwPaM::GetDoc(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwCursor::GetSavePos(), SwPaM::HasMark(), SwCursor::IsSelOvrCheck(), SwPosition::nContent, and SwPosition::nNode.
|
overridevirtual |
Reimplemented from SwCursor.
Definition at line 1678 of file swcrsr.cxx.
References SwCursor::GoNextCell(), and SwCursor::GoPrevCell().
Definition at line 2407 of file swcrsr.cxx.
References SwIndex::Assign(), SwNodeIndex::Assign(), o3tl::sorted_vector< Value, Compare, Find, class >::begin(), SwCursor::Create(), SwPaM::DeleteMark(), SwNode::EndOfSectionNode(), o3tl::sorted_vector< Value, Compare, Find, class >::erase(), SwPaM::Exchange(), SwNode::FindTableBoxStartNode(), fnMoveForward, SwPaM::GetDoc(), SwPaM::GetMark(), SwPaM::GetNext(), SwNodeIndex::GetNode(), SwNodeIndex::GetNodes(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwPaM::GetPrev(), SwNodes::GoNextSection(), SwNodes::GoPrevSection(), SwPaM::HasMark(), SwNode::IsContentNode(), SwPaM::IsMultiSelection(), lcl_SeekEntry(), m_bChanged, m_bParked, m_SelectedBoxes, SwPaM::Move(), SwPosition::nContent, SwPosition::nNode, nPos, SwPaM::SetMark(), and o3tl::sorted_vector< Value, Compare, Find, class >::size().
Referenced by SwUnoTableCursor::MakeBoxSels().
bool SwTableCursor::NewTableSelection | ( | ) |
Definition at line 2521 of file swcrsr.cxx.
References ActualizeSelection(), SwTable::CreateSelection(), SwNode::FindTableBoxStartNode(), SwNode::FindTableNode(), SwPaM::GetNode(), SwTableNode::GetTable(), SwTable::IsNewModel(), m_SelectedBoxes, and SwTable::SEARCH_NONE.
Referenced by SwRootFrame::MakeTableCursors(), and sw::annotation::SwAnnotationWin::SetPosAndSize().
void SwTableCursor::ParkCursor | ( | ) |
park table cursor on the boxes' start node
Definition at line 2590 of file swcrsr.cxx.
References SwIndex::Assign(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SwNode::IsStartNode(), m_bChanged, m_bParked, SwPosition::nContent, SwPosition::nNode, and SwNode::StartOfSectionNode().
|
inline |
Definition at line 299 of file swcrsr.hxx.
References m_bChanged.
|
protected |
Definition at line 262 of file swcrsr.hxx.
Referenced by DeleteBox(), InsertBox(), IsChgd(), MakeBoxSels(), ParkCursor(), SetChgd(), and SwTableCursor().
|
protected |
Definition at line 263 of file swcrsr.hxx.
Referenced by SwShellTableCursor::FillRects(), SwShellTableCursor::IsInside(), MakeBoxSels(), ParkCursor(), and SwTableCursor().
|
protected |
Definition at line 260 of file swcrsr.hxx.
Referenced by IsCursorMovedUpdate(), and SwTableCursor().
|
protected |
Definition at line 258 of file swcrsr.hxx.
Referenced by IsCursorMovedUpdate(), and SwTableCursor().
|
protected |
Definition at line 259 of file swcrsr.hxx.
Referenced by IsCursorMovedUpdate(), and SwTableCursor().
|
protected |
Definition at line 257 of file swcrsr.hxx.
Referenced by IsCursorMovedUpdate(), and SwTableCursor().
|
protected |
Definition at line 261 of file swcrsr.hxx.
Referenced by ActualizeSelection(), DeleteBox(), SwShellTableCursor::FillRects(), GetSelectedBoxes(), HasReadOnlyBoxSel(), InsertBox(), SwShellTableCursor::IsInside(), MakeBoxSels(), and NewTableSelection().