28 #include <section.hxx>
38 aIdx.Assign( *pNd, -1 );
43 while( aIdx.GetIndex() )
45 pNd = aIdx.GetNode().StartOfSectionNode()->GetSectionNode();
49 if ( aIdx == aOldIdx )
56 if ( !aIdx.GetIndex() )
65 if( pNd->GetSection().IsHiddenFlag() ||
67 pNd->GetSection().IsProtectFlag() ))
70 aIdx.Assign( *pNd, - 1 );
87 aIdx = *pNd->EndOfSectionNode();
92 aIdx.Assign( *pNd, - 1 );
113 aIdx.Assign( *pNd->EndOfSectionNode(), - 1 );
116 SwNodeOffset nEndCount = aIdx.GetNode().GetNodes().Count() - 1;
118 while( aIdx.GetIndex() < nEndCount )
120 pNd = aIdx.GetNode().GetSectionNode();
124 if ( aIdx == aOldIdx )
131 if ( aIdx.GetIndex() == nEndCount )
140 if( pNd->GetSection().IsHiddenFlag() ||
142 pNd->GetSection().IsProtectFlag() ))
145 aIdx.Assign( *pNd->EndOfSectionNode(), +1 );
152 true, !bInReadOnly );
155 aIdx.Assign( *pNd->EndOfSectionNode(), +1 );
162 aIdx = *pNd->EndOfSectionNode();
164 true, !bInReadOnly );
SwSectionNode * FindSectionNode()
Search section node, in which it is.
const SwEndNode * EndOfSectionNode() const
virtual sal_Int32 Len() const
SAL_DLLPRIVATE void UpdateCursor(sal_uInt16 eFlags=SwCursorShell::SCROLLWIN|SwCursorShell::CHKRANGE, bool bIdleEnd=false)
SwNode & GetNode(bool bPoint=true) const
SwShellCursor * m_pCurrentCursor
current cursor
bool GoInContent(SwPaM &rPam, SwMoveFnCollection const &fnMove)
Marks a position in the document model.
virtual bool IsSelOvr(SwCursorSelOverFlags eFlags=SwCursorSelOverFlags::CheckNodeSection|SwCursorSelOverFlags::Toggle|SwCursorSelOverFlags::ChangePos)
static SwContentNode * GoPrevSection(SwNodeIndex *, bool bSkipHidden=true, bool bSkipProtect=true)
SwSectionFormat * GetFormat()
SwSection * GetParent() const
bool GotoRegion(std::u16string_view rName)
bool MoveRegion(SwWhichRegion, SwMoveFnCollection const &)
const SwSection & GetSection() const
std::vector< SwCursor_SavePos > m_vSavePos
SwNodeOffset GetIndex() const
SwShellTableCursor * m_pTableCursor
table Cursor; only in tables when the selection lays over 2 columns
bool(* SwWhichRegion)(SwPaM &, SwMoveFnCollection const &, bool bInReadOnly)
bool GotoRegion(std::u16string_view rName)
PaM is Point and Mark: a selection of the document model.
bool Move(SwMoveFnCollection const &fnMove=fnMoveForward, SwGoInDoc fnGo=GoInContent)
Movement of cursor.
A helper class to save cursor state (position).
const OUString & GetSectionName() const
const SwPosition * GetPoint() const
std::vector< SwSectionFormat * >::size_type size_type
SwIndex & Assign(SwIndexReg *, sal_Int32)
Marks a node in the document model.
SwNodes & GetNodes()
Node is in which nodes-array/doc?
static void SetSearchLabel(const SearchLabel &rSL)
const SwNodeIndex * GetContentIdx() const
virtual bool IsReadOnlyAvailable() const
bool GotoNextRegion(SwPaM &rCurrentCursor, SwMoveFnCollection const &fnPosRegion, bool bInReadOnly)
bool MoveRegion(SwWhichRegion, SwMoveFnCollection const &)
SwMoveFnCollection const & fnMoveForward
SwPam::Move()/Find() default argument.
sal_Int32 GetIndex() const
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset
SwMoveFnCollection const & fnMoveBackward
bool GotoPrevRegion(SwPaM &rCurrentCursor, SwMoveFnCollection const &fnPosRegion, bool bInReadOnly)
SwNodeOffset Count() const
SwContentNode * GoNextSection(SwNodeIndex *, bool bSkipHidden=true, bool bSkipProtect=true) const
Go to next content-node that is not protected or hidden (Both set FALSE ==> GoNext/GoPrevious!!!).
bool IsDocNodes() const
Is the NodesArray the regular one of Doc? (and not the UndoNds, ...) Implementation in doc...
make visible in spite of Readonly
bool GotoCurrRegionAndSkip(SwPaM &rCurrentCursor, SwMoveFnCollection const &fnPosRegion, bool bInReadOnly)
SwSectionFormats & GetSections()
Base class of the Writer document model elements.