37 bool bRet = (this->*fnCursor)();
48 bool bRet = (pCursor->*fnCursor)();
92 std::pair<Point, bool>
const tmp(
GetCursor_()->GetSttPos(),
true);
110 (pFrame)->ContainsContent();
114 static_cast<const SwTextFrame*>(pCnt));
125 pFrame = pFootnoteBoss->
GetNext();
142 for(
size_t n = 0;
n < rFootnoteArr.
size(); ++
n )
180 return nTNd < nNd || ( nTNd == nNd && rFootnote.
GetStart() <= nCnt );
186 return nTNd < nNd || ( nTNd == nNd && rFootnote.
GetStart() < nCnt );
195 if( rFootnoteArr.
empty() )
204 if( nPos < rFootnoteArr.
size() )
209 pTextFootnote = rFootnoteArr[ nPos ];
211 if(
CmpLE( *pTextFootnote, nNdPos, nCntPos ) )
213 pTextFootnote =
nullptr;
214 for( ++nPos; nPos < rFootnoteArr.
size(); ++nPos )
216 pTextFootnote = rFootnoteArr[ nPos ];
217 if( !
CmpLE( *pTextFootnote, nNdPos, nCntPos ) )
219 pTextFootnote =
nullptr;
225 pTextFootnote =
nullptr;
228 pTextFootnote = rFootnoteArr[ --nPos ];
229 if(
CmpLE( *pTextFootnote, nNdPos, nCntPos ) )
231 pTextFootnote = rFootnoteArr[ ++nPos ];
238 else if( nPos < rFootnoteArr.
size() )
239 pTextFootnote = rFootnoteArr[ nPos ];
241 if (pTextFootnote ==
nullptr)
243 pTextFootnote = rFootnoteArr[ 0 ];
249 bool bRet =
nullptr != pTextFootnote;
268 if( rFootnoteArr.
empty() )
280 pTextFootnote = rFootnoteArr[ nPos ];
282 if(
CmpL( *pTextFootnote, nNdPos, nCntPos ))
284 for( ++nPos; nPos < rFootnoteArr.
size(); ++nPos )
286 pTextFootnote = rFootnoteArr[ nPos ];
287 if( !
CmpL( *pTextFootnote, nNdPos, nCntPos ) )
289 pTextFootnote = rFootnoteArr[ nPos-1 ];
297 pTextFootnote =
nullptr;
300 pTextFootnote = rFootnoteArr[ --nPos ];
301 if(
CmpL( *pTextFootnote, nNdPos, nCntPos ))
303 pTextFootnote =
nullptr;
307 pTextFootnote =
nullptr;
310 pTextFootnote = rFootnoteArr[ nPos-1 ];
312 if( pTextFootnote ==
nullptr )
314 pTextFootnote = rFootnoteArr[ rFootnoteArr.
size() - 1 ];
320 bool bRet =
nullptr != pTextFootnote;
363 ( aTmpRect.
Bottom() - aTmpRect.
Top() ) / 2 );
Base class of the Writer layout elements.
Represents the visualization of a paragraph.
sal_uLong GetIndex() const
SAL_DLLPRIVATE void UpdateCursor(sal_uInt16 eFlags=SwCursorShell::SCROLLWIN|SwCursorShell::CHKRANGE, bool bIdleEnd=false)
SwNode & GetNode(bool bPoint=true) const
void Right(const tools::Long nRight)
SwShellCursor * m_pCurrentCursor
current cursor
bool IsInProtectTable(bool bMove=false, bool bChgCursor=true)
bool GotoNextFootnoteAnchor()
void Left(const tools::Long nLeft)
bool IsInFootnote() const
SwShellCursor * getShellCursor(bool bBlock)
Delivers the current shell cursor.
SwContentFrame * getLayoutFrame(const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
virtual bool IsSelOvr(SwCursorSelOverFlags eFlags=SwCursorSelOverFlags::CheckNodeSection|SwCursorSelOverFlags::Toggle|SwCursorSelOverFlags::ChangePos)
bool GotoFootnoteAnchor()
jump from footnote to anchor
Of course Writer needs its own rectangles.
bool GotoNextFootnoteAnchor()
virtual bool GetModelPositionForViewPoint(SwPosition *, Point &, SwCursorMoveState *=nullptr, bool bTestBackground=false) const
SwTextAttr * GetTextAttrForCharAt(const sal_Int32 nIndex, const sal_uInt16 nWhich=RES_TXTATR_END) const
get the text attribute at position nIndex which owns the dummy character CH_TXTATR_* at that position...
const SwRect & getFrameArea() const
bool GotoFootnoteText()
jump from content to footnote
sal_uLong GetIndex() const
sal_Int32 GetStart() const
static bool CmpL(const SwTextFootnote &rFootnote, sal_uLong nNd, sal_Int32 nCnt)
constexpr TypedWhichId< SwFormatFootnote > RES_TXTATR_FTN(58)
TextFrameIndex GetOffset() const
SwShellCursor * GetCursor_()
static SwNodePtr GetStartNode(SwOutlineNodes const *pOutlNds, int nOutlineLevel, SwOutlineNodes::size_type *nOutl)
A helper class to save cursor state (position).
const SwPosition * GetPoint() const
SwIndex & Assign(SwIndexReg *, sal_Int32)
SwPageFrame * FindPageFrame()
SwLayoutFrame * GetUpper()
SwFootnoteBossFrame * FindFootnoteBossFrame(bool bFootnotes=false)
void SSize(const Size &rNew)
bool GotoPrevFootnoteAnchor()
static bool CmpLE(const SwTextFootnote &rFootnote, sal_uLong nNd, sal_Int32 nCnt)
A page of the document layout.
static void SetSearchLabel(const SearchLabel &rSL)
bool GotoPrevFootnoteAnchor()
virtual bool IsReadOnlyAvailable() const
void Bottom(const tools::Long nBottom)
SwTextNode is a paragraph in the document model.
SwContentFrame * GetCurrFrame(const bool bCalcFrame=true) const
Get current frame in which the cursor is positioned.
sal_Int32 GetIndex() const
bool IsInside(const Point &rPOINT) const
void Top(const tools::Long nTop)
const Point & GetPtPos() const
SAL_DLLPRIVATE bool CallCursorShellFN(FNCursorShell)
SwFootnoteIdxs & GetFootnoteIdxs()
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!!!).
make visible in spite of Readonly
A layout frame is a frame that contains other frames (m_pLower), e.g. SwPageFrame or SwTabFrame...
void GotoFlyAnchor()
jump from the frame to the anchor
bool GotoFootnoteAnchor()
SwRect m_aCharRect
Char-SRectangle on which the cursor is located.
SwRootFrame * GetLayout() const
const SwContentFrame * GetContentPos(Point &rPoint, const bool bDontLeave, const bool bBodyOnly=false, SwCursorMoveState *pCMS=nullptr, const bool bDefaultExpand=true) const
Finds the closest Content for the SPoint Is used for Pages, Flys and Cells if GetModelPositionForView...
SwPosition MapViewToModelPos(TextFrameIndex nIndex) const
SAL_DLLPRIVATE bool CallCursorFN(FNCursor)
const SwStartNode * FindFootnoteStartNode() const
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
Base class of the Writer document model elements.