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