LibreOffice Module sw (master) 1
crsrsh.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#ifndef INCLUDED_SW_INC_CRSRSH_HXX
20#define INCLUDED_SW_INC_CRSRSH_HXX
21
22#include <com/sun/star/i18n/WordType.hpp>
23
24#include <rtl/ustring.hxx>
25#include <tools/link.hxx>
26#include <vcl/keycod.hxx>
28
29#ifdef SW_DLLIMPLEMENTATION
30#include <TextFrameIndex.hxx>
31#endif
33#include "swdllapi.h"
34#include "docary.hxx"
35#include "viewsh.hxx"
36#include "calbck.hxx"
37#include "cshtyp.hxx"
38#include "crstate.hxx"
39#include "toxe.hxx"
40#include "tblsel.hxx"
41#include "viscrs.hxx"
42#include "node.hxx"
43#include "fldbas.hxx"
45#include <optional>
46
47class SfxItemSet;
48class SfxPoolItem;
49class SwCallLink;
50class SwContentFrame;
51class SwUnoCursor;
52class SwFormatField;
56class SwTextAttr;
57class SwTableBox;
58class SwTOXMark;
59class SwRangeRedline;
60class SwBlockCursor;
61class SwPostItField;
62class SwTextField;
63class SwTextFootnote;
65
66namespace i18nutil {
67 struct SearchOptions2;
68}
69namespace com::sun::star::text { class XTextRange; }
70namespace com::sun::star::container { class XStringKeyMap; }
71
72// enum and struct to get information via the Doc-Position
73
74enum class IsAttrAtPos
75{
76 NONE = 0x0000,
77 Field = 0x0001,
78 ClickField = 0x0002,
79 Ftn = 0x0004,
80 InetAttr = 0x0008,
81 TableBoxFml = 0x0010,
82 Redline = 0x0020,
83 Outline = 0x0040,
84 ToxMark = 0x0080,
85 RefMark = 0x0100,
86 NumLabel = 0x0200,
87 ContentCheck = 0x0400,
88 SmartTag = 0x0800,
89 FormControl = 0x1000,
90 TableRedline = 0x2000,
91 TableColRedline = 0x4000,
92#ifdef DBG_UTIL
93 CurrAttrs = 0x8000,
94 TableBoxValue = 0x10000,
95#endif
96 ContentControl = 0x20000,
97 AllowContaining = 0x40000, // With Outline, finds an outline node for non-outline position
98};
99namespace o3tl {
100 template<> struct typed_flags<IsAttrAtPos> : is_typed_flags<IsAttrAtPos, 0x7ffff> {};
101}
102
104{
105 union {
110 const sw::mark::IFieldmark* pFieldmark;
113 int nDist;
114 OUString sStr;
116
118 : eContentAtPos( eGetAtPos )
119 {
120 aFnd.pField = nullptr;
121 pFndTextAttr = nullptr;
122 nDist = 0; // #i23726#
123 }
124
125 bool IsInProtectSect() const;
126 bool IsInRTLText() const;
127};
128
129// return values of SetCursor (can be combined via ||)
130const int CRSR_POSOLD = 0x01, // cursor stays at old position
131 CRSR_POSCHG = 0x02; // position changed by the layout
132
133namespace sw {
134
135bool ReplaceImpl(SwPaM & rCursor, OUString const& rReplacement,
136 bool const bRegExp, SwDoc & rDoc, SwRootFrame const*const pLayout);
137
139std::optional<OUString> ReplaceBackReferences(const i18nutil::SearchOptions2& rSearchOpt,
140 SwPaM* pPam, SwRootFrame const* pLayout );
141
142bool GetRanges(std::vector<std::shared_ptr<SwUnoCursor>> & rRanges,
143 SwDoc & rDoc, SwPaM const& rDelPam);
144
145} // namespace sw
146
148 : public SwViewShell
149 , public sw::BroadcastingModify
151{
152 friend class SwCallLink;
153 friend class SwVisibleCursor;
154 friend class SwSelPaintRects;
155
156 // requires the Cursor as InternalCursor
157 friend bool GetAutoSumSel( const SwCursorShell&, SwCellFrames& );
158
159public:
160
163 UPDOWN = (1 << 0),
164 SCROLLWIN = (1 << 1),
165 CHKRANGE = (1 << 2),
166 READONLY = (1 << 3)
167 };
168
169 SAL_DLLPRIVATE void UpdateCursor(
171 bool bIdleEnd = false );
172
173private:
174
178 // (used in Invalidate by Cursor)
179
185
189
191
197
201 SwNodeOffset m_nCurrentNode; // save CursorPos at Start-Action
204
205 /*
206 * Via the Method SttCursorMove and EndCursorMove this counter gets
207 * incremented/decremented. As long as the counter is inequal to 0, the
208 * current Cursor gets no update. This way, "complicated" cursor movements
209 * (via Find()) can be realised.
210 */
211 sal_uInt16 m_nCursorMove;
214
217
218 bool m_bHasFocus : 1;
219 bool m_bSVCursorVis : 1;
220 bool m_bChgCallFlag : 1;
221 bool m_bVisPortChgd : 1;
222 // (used in Invalidate by the Cursor)
223
224 bool m_bCallChgLnk : 1;
225 // true -> call ChgLnk
226 // access only via SwChgLinkFlag
227 bool m_bAllProtect : 1;
228 // true -> everything protected / hidden
230 // true -> view was moved
231 bool m_bGCAttr : 1; // true -> non expanded attributes exist.
232 bool m_bIgnoreReadonly : 1; // true -> make the cursor visible on next
233 // EndAction in spite of Readonly
234 bool m_bSelTableCells : 1; // true -> select cells over the InputWin
235 bool m_bAutoUpdateCells : 1; // true -> autoformat cells
236 bool m_bBasicHideCursor : 1; // true -> HideCursor from Basic
237 bool m_bSetCursorInReadOnly : 1;// true -> Cursor is allowed in ReadOnly-Areas
238 bool m_bOverwriteCursor : 1; // true -> show Overwrite Cursor
239
240 // true -> send accessible events when cursor changes
241 // (set to false when using internal-only helper cursor)
243
245
247
248 SAL_DLLPRIVATE void MoveCursorToNum();
249
250 SAL_DLLPRIVATE void ParkPams( SwPaM* pDelRg, SwShellCursor** ppDelRing );
251
261 SAL_DLLPRIVATE void MarkListLevel( const OUString& sListId,
262 const int nLevel );
263
264 // private method(s) accessed from public inline method(s) must be exported.
265 bool LeftRight( bool, sal_uInt16, SwCursorSkipMode, bool );
266 SAL_DLLPRIVATE bool UpDown( bool, sal_uInt16 );
267 SAL_DLLPRIVATE bool LRMargin( bool, bool bAPI = false );
268 SAL_DLLPRIVATE bool IsAtLRMargin( bool, bool bAPI = false ) const;
269
270 SAL_DLLPRIVATE bool isInHiddenTextFrame(SwShellCursor* pShellCursor);
271
272 SAL_DLLPRIVATE bool GoStartWordImpl();
273 SAL_DLLPRIVATE bool GoEndWordImpl();
274 SAL_DLLPRIVATE bool GoNextWordImpl();
275 SAL_DLLPRIVATE bool GoPrevWordImpl();
276 SAL_DLLPRIVATE bool GoNextSentenceImpl();
277 SAL_DLLPRIVATE bool GoEndSentenceImpl();
278 SAL_DLLPRIVATE bool GoStartSentenceImpl();
279
280 typedef bool (SwCursor::*FNCursor)();
281 typedef bool (SwCursorShell::*FNCursorShell)();
282 SAL_DLLPRIVATE bool CallCursorFN( FNCursor );
283 SAL_DLLPRIVATE bool CallCursorShellFN( FNCursorShell );
284
285 SAL_DLLPRIVATE const SwRangeRedline* GotoRedline_( SwRedlineTable::size_type nArrPos, bool bSelect );
286
287 SAL_DLLPRIVATE void sendLOKCursorUpdates();
288protected:
289
290 inline SwMoveFnCollection const & MakeFindRange( SwDocPositions, SwDocPositions, SwPaM* ) const;
291
292 /*
293 * Compare-Method for the StackCursor and the current Cursor.
294 * The Methods return -1, 0, 1 for lower, equal, greater.
295 */
296 int CompareCursorStackMkCurrPt() const;
297
298 bool SelTableRowOrCol( bool bRow, bool bRowSimple = false );
299
300 bool SetInFrontOfLabel( bool bNew );
301
302 void RefreshBlockCursor();
303
306 SAL_DLLPRIVATE void UpdateMarkedListLevel();
307
308protected:
309 virtual void SwClientNotify(const SwModify&, const SfxHint&) override;
310
311public:
312 SwCursorShell( SwDoc& rDoc, vcl::Window *pWin, const SwViewOption *pOpt );
313 // disguised copy constructor
314 SwCursorShell( SwCursorShell& rShell, vcl::Window *pWin );
315 virtual ~SwCursorShell() override;
316
317 // create new cursor and append the old one
318 virtual SwCursor & CreateNewShellCursor() override;
319 virtual SwCursor & GetCurrentShellCursor() override;
320
321 SwPaM * CreateCursor();
323 void DestroyCursor();
325 void TableCursorToCursor();
327 void CursorToBlockCursor();
329 void BlockCursorToCursor();
330
331 // SelAll() selects the document body content
332 // if ExtendedSelect() is called afterwards, the whole nodes array is selected
333 // only for usage in special cases allowed!
334 void ExtendedSelectAll(bool bFootnotes = true);
336 ::std::optional<::std::pair<SwNode const*, ::std::vector<SwTableNode*>>> ExtendedSelectedAll() const;
337 enum class StartsWith { None, Table, HiddenPara };
339 StartsWith StartsWith_();
340
341 SwCursor* GetCursor( bool bMakeTableCursor = true ) const;
342 // return only the current cursor
343 SwShellCursor* GetCursor_() { return m_pCurrentCursor; }
344 const SwShellCursor* GetCursor_() const { return m_pCurrentCursor; }
345
346 // show passed cursor - for UNO
347 void SetSelection(const SwPaM& rCursor);
348
349 // remove all cursors from ContentNodes and set to 0
350 void ParkCursor( const SwNode &rIdx );
351
352 // return the current cursor stack
353 // (required in EditShell when deleting contents)
354 inline SwPaM* GetStackCursor() const;
355
356 // start parenthesing, hide SV-Cursor and selected areas
357 void StartAction();
358 // end parenthesing, show SV-Cursor and selected areas
359 void EndAction( const bool bIdleEnd = false );
360
361 // basic cursor travelling
362 tools::Long GetUpDownX() const { return m_nUpDownX; }
363
364 bool Left( sal_uInt16 nCnt, SwCursorSkipMode nMode, bool bAllowVisual = false )
365 { return LeftRight( true, nCnt, nMode, bAllowVisual ); }
366 bool Right( sal_uInt16 nCnt, SwCursorSkipMode nMode, bool bAllowVisual = false )
367 { return LeftRight( false, nCnt, nMode, bAllowVisual ); }
368 bool Up( sal_uInt16 nCnt = 1 ) { return UpDown( true, nCnt ); }
369 bool Down( sal_uInt16 nCnt = 1 ) { return UpDown( false, nCnt ); }
370 bool LeftMargin() { return LRMargin( true ); }
371 bool RightMargin(bool bAPI = false) { return LRMargin( false, bAPI ); }
372 bool SttEndDoc( bool bStt );
373
374 bool MovePage( SwWhichPage, SwPosPage );
375 bool MovePara( SwWhichPara, SwMoveFnCollection const & );
376 bool MoveSection( SwWhichSection, SwMoveFnCollection const & );
377 bool MoveTable( SwWhichTable, SwMoveFnCollection const & );
378 void MoveColumn( SwWhichColumn, SwPosColumn );
379 bool MoveRegion( SwWhichRegion, SwMoveFnCollection const & );
380
381 // note: DO NOT call it FindText because windows.h
382 sal_Int32 Find_Text( const i18nutil::SearchOptions2& rSearchOpt,
383 bool bSearchInNotes,
384 SwDocPositions eStart, SwDocPositions eEnd,
385 bool& bCancel,
386 FindRanges eRng, bool bReplace = false );
387
388 sal_Int32 FindFormat( const SwTextFormatColl& rFormatColl,
389 SwDocPositions eStart, SwDocPositions eEnd,
390 bool& bCancel,
391 FindRanges eRng, const SwTextFormatColl* pReplFormat );
392
393 sal_Int32 FindAttrs( const SfxItemSet& rSet, bool bNoCollections,
394 SwDocPositions eStart, SwDocPositions eEnd,
395 bool& bCancel,
396 FindRanges eRng,
397 const i18nutil::SearchOptions2* pSearchOpt,
398 const SfxItemSet* rReplSet );
399
400 // Position the Cursor
401 // return values:
402 // CRSR_POSCHG: when cursor was corrected from SPoint by the layout
403 // CRSR_POSOLD: when the cursor was not changed
404 int SetCursor( const Point &rPt, bool bOnlyText = false, bool bBlock = true );
405
406 /*
407 * Notification that the visible area was changed. m_aVisArea is reset, then
408 * scrolling is done. The passed Rectangle lays on pixel borders to avoid
409 * pixel errors.
410 */
411 virtual void VisPortChgd( const SwRect & ) override;
412
413 /*
414 * virtual paint method to make selection visible again after Paint
415 */
416 void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle & rRect) override;
417
418 // Areas
419 inline void SetMark();
420 inline bool HasMark() const;
421
422 void ClearMark();
423
431 void NormalizePam(bool bPointFirst = true);
432
433 void SwapPam();
434 bool TestCurrPam( const Point & rPt,
435 bool bTstHit = false); // only exact matches
436 void KillPams();
437
439 void Push();
440 enum class PopMode { DeleteCurrent, DeleteStack };
441 /*
442 * Delete a cursor
443 * - either from the top of the stack
444 * - or delete the current one and replace it with the cursor from the
445 * stack
446 * @return <true> if there was one on the stack, <false> otherwise
447 */
448 bool Pop(PopMode, ::std::optional<SwCallLink>& roLink);
449 bool Pop(PopMode);
450 /*
451 * Combine 2 Cursors.
452 * Delete the topmost from the stack and move its Mark into the current.
453 */
454 void Combine();
455
456 void SttCursorMove();
457 void EndCursorMove( const bool bIdleEnd = false );
458
459 /*
460 * When the focus is lost the selected ranges are not displayed anymore.
461 * On the other hand, on receiving the focus all selected ranges are displayed again
462 * (ranges must be recalculated!).
463 */
464 bool HasShellFocus() const { return m_bHasFocus; }
465 void ShellLoseFocus();
466 void ShellGetFocus();
467
468 // Methods for displaying or hiding the visible text cursor.
469 void ShowCursor();
470 void HideCursor();
471 // Methods for displaying or hiding the selected ranges with visible cursor.
472 void ShowCursors( bool bCursorVis );
473 void HideCursors();
474
475 bool IsOverwriteCursor() const { return m_bOverwriteCursor; }
476 void SetOverwriteCursor( bool bFlag ) { m_bOverwriteCursor = bFlag; }
477
478 bool IsSendAccessibleCursorEvents() const { return m_bSendAccessibleCursorEvents; };
479 void SetSendAccessibleCursorEvents(bool bEnable) { m_bSendAccessibleCursorEvents = bEnable; };
480
481 // Return current frame in which the cursor is placed.
482 SwContentFrame *GetCurrFrame( const bool bCalcFrame = true ) const;
483
484 //true if cursor is hidden because of readonly.
485 //false if it is working despite readonly.
486 bool IsCursorReadonly() const;
487
488 // Cursor is placed in something that is protected or selection contains
489 // something that is protected.
490 bool HasReadonlySel(bool isReplace = false) const;
491 bool HasHiddenSections() const;
492
493 // Can the cursor be set to read only ranges?
494 bool IsReadOnlyAvailable() const { return m_bSetCursorInReadOnly; }
495 void SetReadOnlyAvailable( bool bFlag );
496 bool IsOverReadOnlyPos( const Point& rPt ) const;
497
498 // Methods for aFlyMacroLnk.
499 void SetFlyMacroLnk( const Link<const SwFlyFrameFormat*,void>& rLnk ) { m_aFlyMacroLnk = rLnk; }
500 const Link<const SwFlyFrameFormat*,void>& GetFlyMacroLnk() const { return m_aFlyMacroLnk; }
501
502 // Methods returning/altering link for changes of attributes/formats.
503 void SetChgLnk( const Link<LinkParamNone*,void> &rLnk ) { m_aChgLnk = rLnk; }
504 const Link<LinkParamNone*,void>& GetChgLnk() const { return m_aChgLnk; }
505
506 // Methods returning/altering link for "graphic completely loaded".
507 void SetGrfArrivedLnk( const Link<SwCursorShell&,void> &rLnk ) { m_aGrfArrivedLnk = rLnk; }
508 const Link<SwCursorShell&,void>& GetGrfArrivedLnk() const { return m_aGrfArrivedLnk; }
509
510 //Call ChgLink. When within an action calling will be delayed.
511 void CallChgLnk();
512
513 // Check if the current cursor contains a selection, i.e.
514 // if Mark is set and SPoint and Mark are different.
515 bool HasSelection() const;
516
517 // Check if a selection exists, i.e. if the current cursor comprises a selection.
518 inline bool IsSelection() const;
519 // returns if multiple cursors are available
520 inline bool IsMultiSelection() const;
521
522 // Check if a complete paragraph was selected.
523 bool IsSelFullPara() const;
524
525 // Check if selection is within one paragraph.
526
527 //Should WaitPtr be activated for Clipboard.
528 bool ShouldWait() const;
529
530 // Check if selection is within one paragraph.
531 bool IsSelOnePara() const;
532
533 /*
534 * Returns SRectangle, at which the cursor is located.
535 */
536 const SwRect &GetCharRect() const { return m_aCharRect; }
537 /*
538 * Returns if cursor is wholly or partly within visible range.
539 */
540 bool IsCursorVisible() const { return VisArea().Overlaps( GetCharRect() ); }
541 /*
542 * Returns SwRect, at which the character is located.
543 */
544 void GetCharRectAt(SwRect& rRect, const SwPosition* pPos);
545
546 // Return current page number:
547 // true: in which cursor is located.
548 // false: which is visible at the upper margin.
549 void GetPageNum( sal_uInt16 &rnPhyNum, sal_uInt16 &rnVirtNum,
550 bool bAtCursorPos = true, const bool bCalcFrame = true );
551 // Returns current page's sequential number (1-based),in which cursor is located, ignoring autoinserted empty pages.
552 // Returns 0 on error
553 sal_uInt16 GetPageNumSeqNonEmpty();
554 // Determine how "empty pages" are handled
555 // (used in PhyPage).
556 sal_uInt16 GetNextPrevPageNum( bool bNext = true );
557
558 // Move cursor at the beginning of page "nPage".
559 bool GotoPage( sal_uInt16 nPage );
560
561 sal_uInt16 GetPageCnt();
562
563 bool GoNextCursor();
564
565 bool GoPrevCursor();
566
567 void GoNextPrevCursorSetSearchLabel(const bool bNext);
568
569 // at CurrentCursor.SPoint
570 ::sw::mark::IMark* SetBookmark(
571 const vcl::KeyCode&,
572 const OUString& rName,
574 ::sw::mark::IMark* SetBookmark2(
575 const vcl::KeyCode&,
576 const OUString& rName,
577 bool bHide,
578 const OUString& rCondition);
579 bool GotoMark( const ::sw::mark::IMark* const pMark ); // sets CurrentCursor.SPoint
580 bool GotoMark( const ::sw::mark::IMark* const pMark, bool bAtStart );
581 bool GoNextBookmark(); // true, if there was one
582 bool GoPrevBookmark();
583
584 bool IsFormProtected();
585 ::sw::mark::IFieldmark* GetCurrentFieldmark();
586 sw::mark::IFieldmark* GetFieldmarkAfter(bool bLoop);
587 sw::mark::IFieldmark* GetFieldmarkBefore(bool bLoop);
588 bool GotoFieldmark( const ::sw::mark::IFieldmark* const pMark );
589
590 // update Cursr, i.e. reset it into content should only be called when the
591 // cursor was set to a random position e.g. when deleting frames
592 void UpdateCursorPos();
593
594 // get the selected text at the current cursor. It will be filled with
595 // fields etc.
596 OUString GetSelText() const;
597
599 const SwTableNode* IsCursorInTable() const;
600 bool MoveOutOfTable();
601 bool TrySelectOuterTable();
602 bool MoveStartText();
603
604 bool IsCursorInFootnote() const;
605
606 inline Point& GetCursorDocPos() const;
607 // get cursor position relative to the page it is in
608 Point GetCursorPagePos() const;
609 inline bool IsCursorPtAtEnd() const;
610
611 inline const SwPaM* GetTableCrs() const;
612 inline SwPaM* GetTableCrs();
613
614 bool IsTableComplexForChart();
615 // get current table selection as text
616 OUString GetBoxNms() const;
617
618 // set Cursor to the next/previous cell
619 bool GoNextCell( bool bAppendLine = true );
620 bool GoPrevCell();
621 // go to this box (if available and inside of table)
622 bool GotoTable( const OUString& rName );
623
624 // select a table row, column or box (based on the current cursor)
625 bool SelTableRow() { return SelTableRowOrCol( true ); }
626 bool SelTableCol() { return SelTableRowOrCol( false ); }
627 bool SelTableBox();
628
629 bool SelTable();
630
631 void GotoNextNum();
632 void GotoPrevNum();
633
634 bool GotoOutline( const OUString& rName );
635 // to the next/previous or the given OutlineNode
636 void GotoOutline( SwOutlineNodes::size_type nIdx );
637 // find the "outline position" in the nodes array of the current chapter
638 SwOutlineNodes::size_type GetOutlinePos(sal_uInt8 nLevel = UCHAR_MAX, SwPaM* pPaM = nullptr);
639 // select the given range of OutlineNodes. Optionally including the children
640 // the sal_uInt16s are the positions in OutlineNodes-Array (EditShell)
641 void MakeOutlineSel(SwOutlineNodes::size_type nSttPos, SwOutlineNodes::size_type nEndPos,
642 bool bWithChildren, bool bKillPams = true );
643
644 bool GotoNextOutline();
645 bool GotoPrevOutline();
646
661 SwShellCursor* getShellCursor( bool bBlock );
662 const SwShellCursor* getShellCursor( bool bBlock ) const
663 { return const_cast<SwCursorShell*>(this)->getShellCursor( bBlock ); }
664
665 bool IsBlockMode() const { return nullptr != m_pBlockCursor; }
666
667 // is the Cursor in a table and is the selection over 2 columns
668 bool IsTableMode() const { return nullptr != m_pTableCursor; }
669
670 const SwShellTableCursor* GetTableCursor() const { return m_pTableCursor; }
671 SwShellTableCursor* GetTableCursor() { return m_pTableCursor; }
672 size_t UpdateTableSelBoxes();
673
674 bool GotoFootnoteText();
675 bool GotoFootnoteAnchor();
676 bool GotoPrevFootnoteAnchor();
677 bool GotoNextFootnoteAnchor();
678
679 void GotoFlyAnchor();
680 bool GotoHeaderText();
681 bool GotoFooterText();
682 // jump to the header/footer of the given or current PageDesc
683 bool SetCursorInHdFt(size_t nDescNo, bool bInHeader, bool bEven = false, bool bFirst = false);
684 // is point of cursor in header/footer. pbInHeader return true if it is
685 // in a headerframe otherwise in a footerframe
686 bool IsInHeaderFooter( bool* pbInHeader = nullptr ) const;
687
688 bool GotoNextTOXBase( const OUString* = nullptr );
689 bool GotoPrevTOXBase( const OUString* = nullptr );
690 void GotoTOXMarkBase();
691 // jump to the next or previous index entry
692 bool GotoNxtPrvTOXMark( bool bNext = true );
693 // jump to the next/previous index mark of this type
694 const SwTOXMark& GotoTOXMark( const SwTOXMark& rStart, SwTOXSearch eDir );
695
696 // jump to the next or previous table formula
697 // optionally only to broken formulas
698 bool GotoNxtPrvTableFormula( bool bNext = true,
699 bool bOnlyErrors = false );
700 // jump to the next / previous hyperlink - inside text and also
701 // on graphics
702 bool SelectNxtPrvHyperlink( bool bNext );
703
704 bool GotoRefMark( const OUString& rRefMark, sal_uInt16 nSubType,
705 sal_uInt16 nSeqNo );
706
707 // get the nth character from the start or end of the current selection
708 sal_Unicode GetChar( bool bEnd = true, tools::Long nOffset = 0 );
709 bool ExtendSelection( bool bEnd = true, sal_Int32 nCount = 1 );
710
711 // Place only the visible cursor at the given position in the document.
712 // Return false if SPoint was corrected by layout.
713 // (This is needed for displaying the Drag&Drop/Copy-Cursor.)
714 bool SetVisibleCursor( const Point &rPt );
715 inline void UnSetVisibleCursor();
716 SwVisibleCursor* GetVisibleCursor() const;
717
718 // jump to the next or previous field of the corresponding type
719 bool MoveFieldType(
720 const SwFieldType* pFieldType,
721 const bool bNext,
722 const SwFieldIds nResType = SwFieldIds::Unknown,
723 const bool bAddSetExpressionFieldsToInputFields = true );
724
725 bool GotoFormatField( const SwFormatField& rField );
726
727 bool GotoFormatContentControl(const SwFormatContentControl& rContentControl);
728
729 void GotoFormControl(bool bNext);
730
731 static SwTextField* GetTextFieldAtPos(
732 const SwPosition* pPos,
734 static SwTextField* GetTextFieldAtCursor(
735 const SwPaM* pCursor,
737 static SwField* GetFieldAtCursor(
738 const SwPaM* pCursor,
739 const bool bIncludeInputFieldAtStart );
740 SwField* GetCurField( const bool bIncludeInputFieldAtStart = false ) const;
741 bool CursorInsideInputField() const;
742 SwTextContentControl* CursorInsideContentControl() const;
743 static bool PosInsideInputField( const SwPosition& rPos );
744 bool DocPtInsideInputField( const Point& rDocPt ) const;
745 static sal_Int32 StartOfInputFieldAtPos( const SwPosition& rPos );
746 static sal_Int32 EndOfInputFieldAtPos( const SwPosition& rPos );
747
748 // Return number of cursors in ring (The flag indicates whether
749 // only cursors containing selections are requested).
750 sal_uInt16 GetCursorCnt( bool bAll = true ) const;
751
752 // Char Travelling - methods (in crstrvl1.cxx)
753 bool GoStartWord();
754 bool GoEndWord();
755 bool GoNextWord();
756 bool GoPrevWord();
757 bool GoNextSentence();
758 bool GoStartSentence();
759 bool GoEndSentence();
760 bool SelectWord( const Point* pPt );
761 void ExpandToSentenceBorders();
762
763 // get position from current cursor
764 bool IsStartWord( sal_Int16 nWordType = css::i18n::WordType::ANYWORD_IGNOREWHITESPACES )const;
765 bool IsEndWord( sal_Int16 nWordType = css::i18n::WordType::ANYWORD_IGNOREWHITESPACES ) const;
766 bool IsInWord( sal_Int16 nWordType = css::i18n::WordType::ANYWORD_IGNOREWHITESPACES ) const;
767 bool IsStartSentence() const;
768 bool IsEndSentence() const;
769 bool IsSttPara() const;
770 bool IsEndPara() const;
771 bool IsEndOfTable() const;
772 bool IsStartOfDoc() const;
773 bool IsEndOfDoc() const;
774 bool IsInFrontOfLabel() const;
775 bool IsAtLeftMargin() const { return IsAtLRMargin( true ); }
776 bool IsAtRightMargin() const { return IsAtLRMargin( false, true/*bAPI*/ ); }
777
778 // delete all created cursors, set the table cursor and the last cursor to
779 // its TextNode (or StartNode?)
780 // They all get created on the next ::GetCursor again
781 // Used for Drag&Drop/Clipboard-Paste in tables
782 bool ParkTableCursor();
783
784 // Non expanded attributes?
785 bool IsGCAttr() const { return m_bGCAttr; }
786 void ClearGCAttr() { m_bGCAttr = false; }
787 void UpdateAttr() { m_bGCAttr = true; }
788
789 // is the whole document protected/hidden (for UI...)
790 bool IsAllProtect() const { return m_bAllProtect; }
791
792 bool GotoRegion( std::u16string_view rName );
793
794 // show the current selection
795 virtual void MakeSelVisible();
796
797 // set the cursor to a NOT protected/hidden node
798 bool FindValidContentNode( bool bOnlyText );
799
800 bool GetContentAtPos( const Point& rPt,
801 SwContentAtPos& rContentAtPos,
802 bool bSetCursor = false,
803 SwRect* pFieldRect = nullptr );
804
805 const SwPostItField* GetPostItFieldAtCursor() const;
806
807 // get smart tags rectangle for the given point
808 void GetSmartTagRect( const Point& rPt, SwRect& rSelectRect );
809
810 // get smart tags at current cursor position
811 void GetSmartTagTerm( std::vector< OUString >& rSmartTagTypes,
812 css::uno::Sequence< css::uno::Reference< css::container::XStringKeyMap > >& rStringKeyMaps,
813 css::uno::Reference<css::text::XTextRange>& rRange ) const;
814
815 bool IsPageAtPos( const Point &rPt ) const;
816
817 bool SelectTextAttr( sal_uInt16 nWhich, bool bExpand, const SwTextAttr* pAttr = nullptr );
818 bool GotoINetAttr( const SwTextINetFormat& rAttr );
819 const SwFormatINetFormat* FindINetAttr( std::u16string_view rName ) const;
820
821 bool SelectTextModel(sal_Int32 nStart, sal_Int32 nEnd);
822#ifdef SW_DLLIMPLEMENTATION
823 bool SelectTextView(TextFrameIndex nStart, TextFrameIndex nEnd);
824 // result is only valid while cursor isn't moved!
825 TextFrameIndex GetCursorPointAsViewIndex() const;
826#endif
827
828 bool CheckTableBoxContent( const SwPosition* pPos = nullptr );
829 void SaveTableBoxContent( const SwPosition* pPos = nullptr );
830 void ClearTableBoxContent();
831 bool EndAllTableBoxEdit();
832
833 void SetSelTableCells( bool bFlag ) { m_bSelTableCells = bFlag; }
834 bool IsSelTableCells() const { return m_bSelTableCells; }
835
836 void UnsetEnhancedTableSelection() { m_eEnhancedTableSel = SwTable::SEARCH_NONE; }
837 SwTable::SearchType GetEnhancedTableSelection() const { return m_eEnhancedTableSel; }
838
839 bool IsAutoUpdateCells() const { return m_bAutoUpdateCells; }
840 void SetAutoUpdateCells( bool bFlag ) { m_bAutoUpdateCells = bFlag; }
841
842 bool GetShadowCursorPos( const Point& rPt, SwFillMode eFillMode,
843 SwRect& rRect, sal_Int16& rOrient );
844 bool SetShadowCursorPos( const Point& rPt, SwFillMode eFillMode );
845
846 const SwRangeRedline* SelNextRedline();
847 const SwRangeRedline* SelPrevRedline();
848 const SwRangeRedline* GotoRedline( SwRedlineTable::size_type nArrPos, bool bSelect );
849
850 bool GotoFootnoteAnchor(const SwTextFootnote& rTextFootnote);
851
852 SAL_DLLPRIVATE SvxFrameDirection GetTextDirection( const Point* pPt = nullptr ) const;
853 // is cursor or the point in/over a vertical formatted text?
854 bool IsInVerticalText( const Point* pPt = nullptr ) const;
855 // is cursor or the point in/over a right to left formatted text?
856 bool IsInRightToLeftText() const;
857
858 static void FirePageChangeEvent(sal_uInt16 nOldPage, sal_uInt16 nNewPage);
859 bool bColumnChange();
860 static void FireSectionChangeEvent(sal_uInt16 nOldSection, sal_uInt16 nNewSection);
861 static void FireColumnChangeEvent(sal_uInt16 nOldColumn, sal_uInt16 nNewColumn);
862 // If the current cursor position is inside a hidden range true is returned. If bSelect is
863 // true, the hidden range is selected. If bSelect is false, the hidden range is not selected.
864 bool IsInHiddenRange(const bool bSelect);
865
866 // remove all invalid cursors
867 void ClearUpCursors();
868
869 void SetMacroExecAllowed( const bool _bMacroExecAllowed )
870 {
871 m_bMacroExecAllowed = _bMacroExecAllowed;
872 }
874 {
875 return m_bMacroExecAllowed;
876 }
877
887 OUString GetCursorDescr() const;
888
889 virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override;
891 OUString getPageRectangles();
892
894 void NotifyCursor(SfxViewShell* pViewShell) const;
895};
896
897// Cursor Inlines:
899 SwDocPositions nStt, SwDocPositions nEnd, SwPaM* pPam ) const
900{
901 return m_pCurrentCursor->MakeFindRange( nStt, nEnd, pPam );
902}
903
905
907
908inline bool SwCursorShell::HasMark() const { return m_pCurrentCursor->HasMark(); }
909
910inline bool SwCursorShell::IsSelection() const
911{
912 return IsTableMode() || m_pCurrentCursor->HasMark() ||
914}
916{
918}
919
921{
923}
924
926{
927 return m_pCurrentCursor->GetPtPos();
928}
929
931{
932 return m_pTableCursor;
933}
934
936{
937 return m_pTableCursor;
938}
939
941{
944}
945
946#endif // _CRSRSH_HXX
947
948/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Access to the block cursor.
Definition: BlockCursor.hxx:40
SwContentFrame is the layout for content nodes: a common base class for text (paragraph) and non-text...
Definition: cntfrm.hxx:59
tools::Long m_nLeftFramePos
Definition: crsrsh.hxx:200
bool Pop(PopMode, ::std::optional< SwCallLink > &roLink)
tools::Long GetUpDownX() const
Definition: crsrsh.hxx:362
bool IsAtLeftMargin() const
Definition: crsrsh.hxx:775
void SetAutoUpdateCells(bool bFlag)
Definition: crsrsh.hxx:840
const SwPaM * GetTableCrs() const
Definition: crsrsh.hxx:930
bool m_bSetCursorInReadOnly
Definition: crsrsh.hxx:237
bool LeftMargin()
Definition: crsrsh.hxx:370
bool m_bMacroExecAllowed
Definition: crsrsh.hxx:244
void SetOverwriteCursor(bool bFlag)
Definition: crsrsh.hxx:476
bool IsReadOnlyAvailable() const
Definition: crsrsh.hxx:494
void SetMacroExecAllowed(const bool _bMacroExecAllowed)
Definition: crsrsh.hxx:869
bool m_bInCMvVisportChgd
Flag for CursorMoves.
Definition: crsrsh.hxx:229
bool m_bSendAccessibleCursorEvents
Definition: crsrsh.hxx:242
SwShellCursor * GetCursor_()
Definition: crsrsh.hxx:343
bool m_bIgnoreReadonly
Definition: crsrsh.hxx:232
void ClearGCAttr()
Definition: crsrsh.hxx:786
const SwRect & GetCharRect() const
Definition: crsrsh.hxx:536
const Link< LinkParamNone *, void > & GetChgLnk() const
Definition: crsrsh.hxx:504
bool IsMacroExecAllowed() const
Definition: crsrsh.hxx:873
Point & GetCursorDocPos() const
Definition: crsrsh.hxx:925
Point m_aOldRBPos
Right/Bottom of last VisArea.
Definition: crsrsh.hxx:177
SwTable::SearchType m_eEnhancedTableSel
Definition: crsrsh.hxx:213
SwPaM * GetStackCursor() const
Definition: crsrsh.hxx:904
tools::Long m_nUpDownX
try to move the cursor on up/down always in the same column
Definition: crsrsh.hxx:198
SwNodeIndex * m_pBoxIdx
for recognizing of the changed
Definition: crsrsh.hxx:195
bool m_bChgCallFlag
attribute change inside Start- and EndAction
Definition: crsrsh.hxx:220
const SwShellCursor * GetCursor_() const
Definition: crsrsh.hxx:344
void SetFlyMacroLnk(const Link< const SwFlyFrameFormat *, void > &rLnk)
Definition: crsrsh.hxx:499
bool IsMultiSelection() const
Definition: crsrsh.hxx:915
CursorMoveState m_eMvState
Status for Cursor-Travelling - GetModelPositionForViewPoint.
Definition: crsrsh.hxx:212
bool IsCursorVisible() const
Definition: crsrsh.hxx:540
Point m_aCursorHeight
height & offset from visible Cursor
Definition: crsrsh.hxx:176
SwBlockCursor * m_pBlockCursor
interface of cursor for block (=rectangular) selection
Definition: crsrsh.hxx:190
bool m_bAllProtect
Flag for areas.
Definition: crsrsh.hxx:227
bool RightMargin(bool bAPI=false)
Definition: crsrsh.hxx:371
bool IsSelTableCells() const
Definition: crsrsh.hxx:834
bool m_bSelTableCells
Definition: crsrsh.hxx:234
SwShellTableCursor * GetTableCursor()
Definition: crsrsh.hxx:671
void SetSelTableCells(bool bFlag)
Definition: crsrsh.hxx:833
bool m_bGCAttr
Definition: crsrsh.hxx:231
bool m_bCallChgLnk
flag for derived classes
Definition: crsrsh.hxx:224
bool IsSelection() const
Definition: crsrsh.hxx:910
SwTableBox * m_pBoxPtr
table row
Definition: crsrsh.hxx:196
int m_nMarkedListLevel
Definition: crsrsh.hxx:216
void UpdateAttr()
Definition: crsrsh.hxx:787
SwMoveFnCollection const & MakeFindRange(SwDocPositions, SwDocPositions, SwPaM *) const
Definition: crsrsh.hxx:898
bool HasMark() const
Definition: crsrsh.hxx:908
Link< const SwFlyFrameFormat *, void > m_aFlyMacroLnk
Link will be called, if the Cursor is set into a fly.
Definition: crsrsh.hxx:180
const SwShellTableCursor * GetTableCursor() const
Definition: crsrsh.hxx:670
sal_uInt16 m_nCursorMove
Definition: crsrsh.hxx:211
void UnsetEnhancedTableSelection()
Definition: crsrsh.hxx:836
bool m_bBasicHideCursor
Definition: crsrsh.hxx:236
bool Right(sal_uInt16 nCnt, SwCursorSkipMode nMode, bool bAllowVisual=false)
Definition: crsrsh.hxx:366
SwVisibleCursor * m_pVisibleCursor
the visible cursor
Definition: crsrsh.hxx:188
SwShellCursor * m_pStackCursor
stack for the cursor
Definition: crsrsh.hxx:187
bool IsAtRightMargin() const
Definition: crsrsh.hxx:776
const Link< const SwFlyFrameFormat *, void > & GetFlyMacroLnk() const
Definition: crsrsh.hxx:500
const Link< SwCursorShell &, void > & GetGrfArrivedLnk() const
Definition: crsrsh.hxx:508
void SetMark()
Definition: crsrsh.hxx:906
bool IsAutoUpdateCells() const
Definition: crsrsh.hxx:839
bool IsSendAccessibleCursorEvents() const
Definition: crsrsh.hxx:478
bool Down(sal_uInt16 nCnt=1)
Definition: crsrsh.hxx:369
const SwShellCursor * getShellCursor(bool bBlock) const
Definition: crsrsh.hxx:662
Link< SwCursorShell &, void > m_aGrfArrivedLnk
Link calls to UI if a graphic is arrived.
Definition: crsrsh.hxx:184
SwNodeType m_nCurrentNdTyp
Definition: crsrsh.hxx:203
bool IsOverwriteCursor() const
Definition: crsrsh.hxx:475
bool SelTableCol()
Definition: crsrsh.hxx:626
bool m_bSVCursorVis
SV-Cursor visible/invisible.
Definition: crsrsh.hxx:219
bool IsGCAttr() const
Definition: crsrsh.hxx:785
OUString m_sMarkedListId
table rows or columns selected by not cell by cell
Definition: crsrsh.hxx:215
SwRect m_aCharRect
Char-SRectangle on which the cursor is located.
Definition: crsrsh.hxx:175
SwTable::SearchType GetEnhancedTableSelection() const
Definition: crsrsh.hxx:837
SwShellTableCursor * m_pTableCursor
table Cursor; only in tables when the selection lays over 2 columns
Definition: crsrsh.hxx:192
void SetChgLnk(const Link< LinkParamNone *, void > &rLnk)
Definition: crsrsh.hxx:503
CursorFlag
for calling UpdateCursor
Definition: crsrsh.hxx:162
@ CHKRANGE
check overlapping PaMs
Definition: crsrsh.hxx:165
@ SCROLLWIN
scroll window
Definition: crsrsh.hxx:164
bool Left(sal_uInt16 nCnt, SwCursorSkipMode nMode, bool bAllowVisual=false)
Definition: crsrsh.hxx:364
bool HasShellFocus() const
Definition: crsrsh.hxx:464
void SetGrfArrivedLnk(const Link< SwCursorShell &, void > &rLnk)
Definition: crsrsh.hxx:507
bool SelTableRow()
Definition: crsrsh.hxx:625
SwNodeOffset m_nCurrentNode
Definition: crsrsh.hxx:201
Link< LinkParamNone *, void > m_aChgLnk
link will be called by every attribute/ format changes at cursor position.
Definition: crsrsh.hxx:182
SwFrame * m_oldColFrame
Definition: crsrsh.hxx:246
bool m_bHasFocus
Shell is "active" in a window.
Definition: crsrsh.hxx:218
SwShellCursor * m_pCurrentCursor
current cursor
Definition: crsrsh.hxx:186
bool m_bOverwriteCursor
Definition: crsrsh.hxx:238
bool m_bAutoUpdateCells
Definition: crsrsh.hxx:235
bool IsCursorPtAtEnd() const
Definition: crsrsh.hxx:920
bool IsTableMode() const
Definition: crsrsh.hxx:668
bool Up(sal_uInt16 nCnt=1)
Definition: crsrsh.hxx:368
bool IsBlockMode() const
Definition: crsrsh.hxx:665
sal_Int32 m_nCurrentContent
Definition: crsrsh.hxx:202
void SetSendAccessibleCursorEvents(bool bEnable)
Definition: crsrsh.hxx:479
bool IsAllProtect() const
Definition: crsrsh.hxx:790
void UnSetVisibleCursor()
Definition: crsrsh.hxx:940
bool m_bVisPortChgd
in VisPortChg-Call
Definition: crsrsh.hxx:221
SwMoveFnCollection const & MakeFindRange(SwDocPositions, SwDocPositions, SwPaM *) const
set range for search in document
Definition: swcrsr.cxx:744
Definition: doc.hxx:197
Instances of SwFields and those derived from it occur 0 to n times.
Definition: fldbas.hxx:247
Base class of all fields.
Definition: fldbas.hxx:296
SfxPoolItem subclass that wraps an SwContentControl.
Base class of the Writer layout elements.
Definition: frame.hxx:315
Marks a node in the document model.
Definition: ndindex.hxx:31
Base class of the Writer document model elements.
Definition: node.hxx:98
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:188
const SwPosition * End() const
Definition: pam.hxx:263
const SwPosition * GetPoint() const
Definition: pam.hxx:253
bool HasMark() const
A PaM marks a selection if Point and Mark are distinct positions.
Definition: pam.hxx:251
Of course Writer needs its own rectangles.
Definition: swrect.hxx:35
bool Overlaps(const SwRect &rRect) const
Definition: swrect.hxx:374
vector_type::size_type size_type
Definition: docary.hxx:223
The root element of a Writer document layout.
Definition: rootfrm.hxx:85
SwSelPaintRects is a base class of SwShellCursor, which stores the overlay for the cursor/selection: ...
Definition: viscrs.hxx:80
Represents the current text cursor of one opened edit window.
Definition: viscrs.hxx:140
SwShellCursor * GetNext()
Definition: viscrs.hxx:188
const Point & GetPtPos() const
Definition: viscrs.hxx:165
virtual void SetMark() override
Unless this is called, the getter method of Mark will return Point.
Definition: viscrs.cxx:939
SwTableBox is one table cell in the document model.
Definition: swtable.hxx:443
@ SEARCH_NONE
Definition: swtable.hxx:146
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
Definition: txatbase.hxx:44
SwTextAttr subclass that tracks the location of the wrapped SwFormatContentControl.
SwTextAttr subclass for footnotes and endnotes.
Definition: txtftn.hxx:34
Represents the style of a paragraph.
Definition: fmtcol.hxx:61
SwTextAttr subclass that tracks the location of the wrapped SwFormatURL.
Definition: txtinet.hxx:30
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
Definition: viewsh.cxx:157
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
Definition: viewsh.cxx:1851
void StartAction()
Definition: viewsh.hxx:619
void EndAction(const bool bIdleEnd=false)
Definition: viewsh.hxx:625
const SwRect & VisArea() const
Definition: viewsh.cxx:642
virtual void VisPortChgd(const SwRect &)
Definition: viewsh.cxx:1165
void SetDragCursor(bool bFlag=true)
Definition: viscrs.hxx:62
The Undo actions need to create new Shell cursors.
virtual SwCursor & GetCurrentShellCursor()=0
virtual SwCursor & CreateNewShellCursor()=0
static SwCursorShell::StartsWith StartsWith(SwStartNode const &rStart)
Definition: crsrsh.cxx:769
const int CRSR_POSCHG
Definition: crsrsh.hxx:131
IsAttrAtPos
Definition: crsrsh.hxx:75
@ CurrAttrs
only for debugging
@ TableBoxValue
only for debugging
const int CRSR_POSOLD
Definition: crsrsh.hxx:130
SwFillMode
Definition: crstate.hxx:29
CursorMoveState
Definition: crstate.hxx:122
bool(* SwWhichTable)(SwPaM &, SwMoveFnCollection const &, bool bInReadOnly)
Definition: cshtyp.hxx:58
SwContentFrame *(* SwPosColumn)(const SwLayoutFrame *)
Definition: cshtyp.hxx:67
bool(* SwWhichPara)(SwPaM &, SwMoveFnCollection const &)
Definition: cshtyp.hxx:43
SwDocPositions
Definition: cshtyp.hxx:104
SwLayoutFrame *(* SwWhichColumn)(const SwLayoutFrame *)
Definition: cshtyp.hxx:66
FindRanges
Definition: cshtyp.hxx:91
bool(* SwWhichRegion)(SwPaM &, SwMoveFnCollection const &, bool bInReadOnly)
Definition: cshtyp.hxx:75
SwLayoutFrame *(* SwWhichPage)(const SwLayoutFrame *)
Definition: cshtyp.hxx:34
SwContentFrame *(* SwPosPage)(const SwLayoutFrame *)
Definition: cshtyp.hxx:38
bool(* SwWhichSection)(SwPaM &, SwMoveFnCollection const &)
Definition: cshtyp.hxx:51
struct _xmlTextWriter * xmlTextWriterPtr
SwFieldIds
Definition: fldbas.hxx:49
SvxFrameDirection
NONE
None
Dialog to specify the properties of date form field.
std::optional< OUString > ReplaceBackReferences(const i18nutil::SearchOptions2 &rSearchOpt, SwPaM *const pPam, SwRootFrame const *const pLayout)
Helperfunction to resolve backward references in regular expressions.
Definition: findtxt.cxx:1108
bool GetRanges(std::vector< std::shared_ptr< SwUnoCursor > > &rRanges, SwDoc &rDoc, SwPaM const &rDelPam)
Definition: autofmt.cxx:1111
bool ReplaceImpl(SwPaM &rCursor, OUString const &rReplacement, bool const bRegExp, SwDoc &rDoc, SwRootFrame const *const pLayout)
Definition: findtxt.cxx:1040
GetTextAttrMode
Definition: swtypes.hxx:163
long Long
SwNodeType
Definition: ndtyp.hxx:28
union SwContentAtPos::@21 aFnd
const SwRangeRedline * pRedl
Definition: crsrsh.hxx:108
SwContentNode * pNode
Definition: crsrsh.hxx:109
bool IsInProtectSect() const
is the node in a protected section?
Definition: crstrvl.cxx:2129
const SfxPoolItem * pAttr
Definition: crsrsh.hxx:107
bool IsInRTLText() const
Definition: crstrvl.cxx:2163
SwContentAtPos(IsAttrAtPos eGetAtPos)
Definition: crsrsh.hxx:117
OUString sStr
Definition: crsrsh.hxx:114
const SwField * pField
Definition: crsrsh.hxx:106
const SwTextAttr * pFndTextAttr
Definition: crsrsh.hxx:115
IsAttrAtPos eContentAtPos
Definition: crsrsh.hxx:112
const sw::mark::IFieldmark * pFieldmark
Definition: crsrsh.hxx:110
Marks a position in the document model.
Definition: pam.hxx:38
SwCursorSkipMode
Definition: swcrsr.hxx:65
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
bool GetAutoSumSel(const SwCursorShell &rShell, SwCellFrames &rBoxes)
Definition: tblsel.cxx:691
std::deque< SwCellFrame * > SwCellFrames
Definition: tblsel.hxx:41
SwTOXSearch
Definition: toxe.hxx:23
unsigned char sal_uInt8
sal_uInt16 sal_Unicode
constexpr OUStringLiteral UPDOWN(u"UpDown")