Coverage Report

Created: 2026-06-30 11:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/sc/source/ui/inc/gridwin.hxx
Line
Count
Source
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
20
#pragma once
21
22
#include <vcl/DocWindow.hxx>
23
#include <vcl/transfer.hxx>
24
#include "viewutil.hxx"
25
#include "viewdata.hxx"
26
#include "cbutton.hxx"
27
#include "checklistmenu.hxx"
28
#include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
29
#include <o3tl/deleter.hxx>
30
#include <vcl/window.hxx>
31
32
#include <memory>
33
#include <vector>
34
35
36
namespace sc {
37
    struct MisspellRangeResult;
38
    class SpellCheckContext;
39
}
40
41
namespace sdr::overlay {
42
    class OverlayManager;
43
    class OverlayObject;
44
    enum class OverlayType;
45
}
46
47
class FmFormView;
48
struct ScTableInfo;
49
struct ScDragData;
50
class ScDPObject;
51
class ScDPFieldButton;
52
class ScOutputData;
53
class SdrObject;
54
class SdrEditView;
55
class ScNoteOverlay;
56
class SdrHdlList;
57
class ScTransferObj;
58
struct SpellCallbackInfo;
59
class ScLokRTLContext;
60
61
        //  mouse status (nMouseStatus)
62
63
0
#define SC_GM_NONE          0
64
0
#define SC_GM_TABDOWN       1
65
0
#define SC_GM_DBLDOWN       2
66
0
#define SC_GM_FILTER        3
67
0
#define SC_GM_IGNORE        4
68
0
#define SC_GM_WATERUNDO     5
69
0
#define SC_GM_URLDOWN       6
70
71
        //  page drag mode
72
73
0
#define SC_PD_NONE          0
74
0
#define SC_PD_RANGE_L       1
75
0
#define SC_PD_RANGE_R       2
76
0
#define SC_PD_RANGE_T       4
77
0
#define SC_PD_RANGE_B       8
78
0
#define SC_PD_RANGE_TL      (SC_PD_RANGE_T|SC_PD_RANGE_L)
79
0
#define SC_PD_RANGE_TR      (SC_PD_RANGE_T|SC_PD_RANGE_R)
80
0
#define SC_PD_RANGE_BL      (SC_PD_RANGE_B|SC_PD_RANGE_L)
81
0
#define SC_PD_RANGE_BR      (SC_PD_RANGE_B|SC_PD_RANGE_R)
82
0
#define SC_PD_BREAK_H       16
83
0
#define SC_PD_BREAK_V       32
84
85
struct UrlData
86
{
87
    OUString aName;
88
    OUString aUrl;
89
    OUString aTarget;
90
};
91
92
// predefines
93
namespace sdr::overlay { class OverlayObjectList; }
94
95
class ScFilterListBox;
96
struct ScDPLabelData;
97
98
class SAL_DLLPUBLIC_RTTI ScGridWindow : public vcl::DocWindow, public DropTargetHelper, public DragSourceHelper
99
{
100
    // ScFilterListBox is always used for selection list
101
    friend class ScFilterListBox;
102
103
    enum RfCorner
104
    {
105
        NONE,
106
        LEFT_UP,
107
        RIGHT_UP,
108
        LEFT_DOWN,
109
        RIGHT_DOWN
110
    };
111
112
    std::unique_ptr<sdr::overlay::OverlayObjectList> mpOOCursors;
113
    std::unique_ptr<sdr::overlay::OverlayObjectList> mpOOSelection;
114
    std::unique_ptr<sdr::overlay::OverlayObjectList> mpOOHighlight;
115
    std::unique_ptr<sdr::overlay::OverlayObjectList> mpOOSelectionBorder;
116
    std::unique_ptr<sdr::overlay::OverlayObjectList> mpOOAutoFill;
117
    std::unique_ptr<sdr::overlay::OverlayObjectList> mpOODragRect;
118
    std::unique_ptr<sdr::overlay::OverlayObjectList> mpOOHeader;
119
    std::unique_ptr<sdr::overlay::OverlayObjectList> mpOOShrink;
120
    std::unique_ptr<sdr::overlay::OverlayObjectList> mpOOSparklineGroup;
121
    std::unique_ptr<sdr::overlay::OverlayObjectList> mpOODatabase;
122
123
    std::optional<tools::Rectangle> mpAutoFillRect;
124
    std::optional<tools::Rectangle> mpDBExpandRect;
125
    ScRange maDBRange;
126
127
    /// LibreOfficeKit needs a persistent FmFormView for tiled rendering,
128
    /// otherwise the invalidations from drawinglayer do not work.
129
    std::unique_ptr<FmFormView> mpLOKDrawView;
130
131
    struct MouseEventState;
132
133
    /**
134
     * Stores current visible column and row ranges, used to avoid expensive
135
     * operations on objects that are outside visible area.
136
     */
137
    struct VisibleRange
138
    {
139
        SCCOL mnCol1;
140
        SCCOL mnCol2;
141
        SCROW mnRow1;
142
        SCROW mnRow2;
143
144
        VisibleRange(const ScDocument&);
145
146
        bool isInside(SCCOL nCol, SCROW nRow) const;
147
        bool set(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2);
148
    };
149
150
    VisibleRange maVisibleRange;
151
152
    struct LOKCursorEntry
153
    {
154
        double mfScaleX;
155
        double mfScaleY;
156
        tools::Rectangle aRect;
157
    };
158
159
    // Stores the last cursor position in twips for all
160
    // zoom levels demanded from a ScGridWindow instance.
161
    std::vector<LOKCursorEntry> maLOKLastCursor;
162
163
    std::shared_ptr<sc::SpellCheckContext> mpSpellCheckCxt;
164
165
    ScViewData&             mrViewData;
166
    ScSplitPos              eWhich;
167
    ScHSplitPos             eHWhich;
168
    ScVSplitPos             eVWhich;
169
170
    std::unique_ptr<ScNoteOverlay, o3tl::default_delete<ScNoteOverlay>> mpNoteOverlay;
171
172
    std::shared_ptr<ScFilterListBox> mpFilterBox;
173
    std::unique_ptr<ScCheckListMenuControl> mpAutoFilterPopup;
174
    std::unique_ptr<ScCheckListMenuControl> mpDPFieldPopup;
175
    std::unique_ptr<ScDPFieldButton> mpFilterButton;
176
177
    ScCheckListMenuControl::ResultType aSaveAutoFilterResult;
178
179
    sal_uInt16              nCursorHideCount;
180
181
    sal_uInt16              nButtonDown;
182
    sal_uInt8               nMouseStatus;
183
    enum class ScNestedButtonState { NONE, Down, Up };
184
    ScNestedButtonState     nNestedButtonState;     // track nested button up/down calls
185
186
    tools::Long                    nDPField;
187
    ScDPObject*             pDragDPObj; //! name?
188
189
    sal_uInt16              nRFIndex;
190
    SCCOL                   nRFAddX;
191
    SCROW                   nRFAddY;
192
193
    sal_uInt16              nPagebreakMouse;        // Page break mode, Drag
194
    SCCOLROW                nPagebreakBreak;
195
    SCCOLROW                nPagebreakPrev;
196
    ScRange                 aPagebreakSource;
197
    ScRange                 aPagebreakDrag;
198
199
    SvtScriptType           nPageScript;
200
201
    SCCOL                   nDragStartX;
202
    SCROW                   nDragStartY;
203
    SCCOL                   nDragEndX;
204
    SCROW                   nDragEndY;
205
    InsCellCmd              meDragInsertMode;
206
207
    ScDDComboBoxButton      aComboButton;
208
209
    Point                   aCurMousePos;
210
211
    sal_uInt16              nPaintCount;
212
    tools::Rectangle               aRepaintPixel;
213
214
    ScAddress               aAutoMarkPos;
215
    ScAddress               aListValPos;
216
217
    Point                   aDrawSelectionPos;
218
219
    tools::Rectangle               aInvertRect;
220
221
    RfCorner                aRFSelectedCorned;
222
223
    Timer                   maShowPageBreaksTimer;
224
225
    bool                    bEEMouse:1;               // Edit Engine has mouse
226
    bool                    bDPMouse:1;               // DataPilot D&D (new Pivot table)
227
    bool                    bRFMouse:1;               // RangeFinder drag
228
    bool                    bRFSize:1;
229
    bool                    bPagebreakDrawn:1;
230
    bool                    bDragRect:1;
231
    bool                    bIsInPaint:1;
232
    bool                    bNeedsRepaint:1;
233
    bool                    bAutoMarkVisible:1;
234
    bool                    bListValButton:1;
235
    bool                    bInitialPageBreaks:1;
236
237
    DECL_DLLPRIVATE_LINK( PopupModeEndHdl, weld::Popover&, void );
238
    DECL_DLLPRIVATE_LINK( PopupSpellingHdl, SpellCallbackInfo&, void );
239
240
    bool            TestMouse( const MouseEvent& rMEvt, bool bAction );
241
242
    bool            DoPageFieldSelection( SCCOL nCol, SCROW nRow );
243
    bool            DoAutoFilterButton( SCCOL nCol, SCROW nRow, const MouseEvent& rMEvt );
244
    void            SendAutofilterPopupPosition(SCCOL nCol, SCROW nRow);
245
    void            SendAutofilterChange();
246
    void DoPushPivotButton( SCCOL nCol, SCROW nRow, const MouseEvent& rMEvt, bool bButton, bool bPopup, bool bMultiField );
247
    void DoPushPivotToggle( SCCOL nCol, SCROW nRow, const MouseEvent& rMEvt );
248
249
    void            DPMouseMove( const MouseEvent& rMEvt );
250
    void            DPMouseButtonUp( const MouseEvent& rMEvt );
251
    void            DPTestMouse( const MouseEvent& rMEvt, bool bMove );
252
253
    /**
254
     * Check if the mouse click is on a field popup button.
255
     *
256
     * @return true if the field popup menu has been launched and no further
257
     *         mouse event handling is necessary, false otherwise.
258
     */
259
    bool DPTestFieldPopupArrow(const MouseEvent& rMEvt, const ScAddress& rPos, const ScAddress& rDimPos, ScDPObject* pDPObj);
260
    bool DPTestMultiFieldPopupArrow(const MouseEvent& rMEvt, const ScAddress& rPos, ScDPObject* pDPObj);
261
262
    void DPPopulateFieldMembers(const ScDPLabelData& rLabelData);
263
    void DPSetupFieldPopup(std::unique_ptr<ScCheckListMenuControl::ExtendedData> pDPData, bool bDimOrientNotPage,
264
                           ScDPObject* pDPObj, bool bMultiField = false);
265
    void DPConfigFieldPopup();
266
    void DPLaunchFieldPopupMenu(const Point& rScrPos, const Size& rScrSize, const ScAddress& rPos, ScDPObject* pDPObj);
267
    void DPLaunchMultiFieldPopupMenu(const Point& rScrPos, const Size& rScrSize, ScDPObject* pDPObj,
268
                                     css::sheet::DataPilotFieldOrientation nOrient);
269
270
    void            RFMouseMove( const MouseEvent& rMEvt, bool bUp );
271
272
    void            PagebreakMove( const MouseEvent& rMEvt, bool bUp );
273
274
    void            UpdateDragRect( bool bShowRange, const tools::Rectangle& rPosRect );
275
276
    bool            IsAutoFilterActive( SCCOL nCol, SCROW nRow, SCTAB nTab );
277
    void            FilterSelect( sal_uLong nSel );
278
279
    void            ExecDataSelect( SCCOL nCol, SCROW nRow, const OUString& rStr );
280
281
    bool            HasScenarioButton( const Point& rPosPixel, ScRange& rScenRange );
282
283
    void            DropScroll( const Point& rMousePos );
284
285
    sal_Int8        AcceptPrivateDrop( const AcceptDropEvent& rEvt, const ScDragData& rData );
286
    sal_Int8        ExecutePrivateDrop( const ExecuteDropEvent& rEvt, const ScDragData& rData );
287
    sal_Int8        DropTransferObj( ScTransferObj* pTransObj, SCCOL nDestPosX, SCROW nDestPosY,
288
                                     const Point& rLogicPos, sal_Int8 nDndAction );
289
290
    void            HandleMouseButtonDown( const MouseEvent& rMEvt, MouseEventState& rState );
291
292
    bool            DrawMouseButtonDown(const MouseEvent& rMEvt);
293
    bool            DrawMouseButtonUp(const MouseEvent& rMEvt);
294
    bool            DrawMouseMove(const MouseEvent& rMEvt);
295
    bool            DrawKeyInput(const KeyEvent& rKEvt, vcl::Window* pWin);
296
    bool            DrawCommand(const CommandEvent& rCEvt);
297
    bool            DrawHasMarkedObj();
298
    void            DrawEndAction();
299
    void            DrawMarkDropObj( SdrObject* pObj );
300
    bool            IsMyModel(const SdrEditView* pSdrView);
301
302
    void            DrawRedraw( ScOutputData& rOutputData, SdrLayerID nLayer );
303
    void            DrawSdrGrid( const tools::Rectangle& rDrawingRect, OutputDevice* pContentDev );
304
    void            DrawAfterScroll();
305
    tools::Rectangle       GetListValButtonRect( const ScAddress& rButtonPos );
306
307
    void            DrawHiddenIndicator( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, vcl::RenderContext& rRenderContext);
308
    void            DrawPagePreview( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, vcl::RenderContext& rRenderContext);
309
310
    bool            HitRangeFinder( const Point& rMouse, RfCorner& rCorner, sal_uInt16* pIndex,
311
                                    SCCOL* pAddX, SCROW* pAddY );
312
313
    sal_uInt16      HitPageBreak( const Point& rMouse, ScRange* pSource,
314
                                  SCCOLROW* pBreak, SCCOLROW* pPrev );
315
316
    void            PasteSelection( const Point& rPosPixel );
317
318
    void            SelectForContextMenu( const Point& rPosPixel, SCCOL nCellX, SCROW nCellY );
319
320
    void            GetSelectionRects( ::std::vector< tools::Rectangle >& rPixelRects ) const;
321
    void            GetSelectionRectsPrintTwips(::std::vector< tools::Rectangle >& rRects) const;
322
    void            GetPixelRectsFor( const ScMarkData &rMarkData,
323
                                      ::std::vector< tools::Rectangle >& rPixelRects ) const;
324
    void            GetRectsAnyFor(const ScMarkData &rMarkData,
325
                                  ::std::vector< tools::Rectangle >& rRects, bool bInPrintTwips) const;
326
    void            UpdateKitSelection(const std::vector<tools::Rectangle>& rRectangles,
327
                                       std::vector<tools::Rectangle>* pLogicRects = nullptr);
328
    bool            NeedLOKCursorInvalidation(const tools::Rectangle& rCursorRect,
329
                                              double fScaleX, double fScaleY);
330
    void            InvalidateLOKViewCursor(const tools::Rectangle& rCursorRect,
331
                                            double fScaleX, double fScaleY);
332
333
    void            SetupInitialPageBreaks(const ScDocument& rDoc, SCTAB nTab);
334
    DECL_DLLPRIVATE_LINK(InitiatePageBreaksTimer, Timer*, void);
335
336
    void            UpdateFormulaRange(SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2);
337
338
    std::unique_ptr<sdr::overlay::OverlayObject> DrawOverlay(const std::vector<tools::Rectangle>& rRects, const Color& rColor, bool bBorder, bool bContrastOutline, sdr::overlay::OverlayType eOverlayType);
339
    std::unique_ptr<sdr::overlay::OverlayObjectList> DrawFillMarker(SCCOL nCol, SCROW nRow, std::optional<tools::Rectangle>& rRect, bool bIsTableArea);
340
341
protected:
342
    virtual void    PrePaint(vcl::RenderContext& rRenderContext) override;
343
    virtual void    Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
344
    virtual void    GetFocus() override;
345
    virtual void    LoseFocus() override;
346
347
    virtual void    RequestHelp( const HelpEvent& rEvt ) override;
348
349
    virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) override;
350
    virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) override;
351
    virtual void    StartDrag( sal_Int8 nAction, const Point& rPosPixel ) override;
352
353
public:
354
    enum class AutoFilterMode
355
    {
356
        Normal,
357
        Empty,
358
        NonEmpty,
359
        Top10,
360
        Bottom10,
361
        Custom,
362
        TextColor,
363
        BackgroundColor,
364
        SortAscending,
365
        SortDescending,
366
        Clear
367
    };
368
369
    ScGridWindow( vcl::Window* pParent, ScViewData& rData, ScSplitPos eWhichPos );
370
    virtual ~ScGridWindow() override;
371
    virtual void dispose() override;
372
373
    virtual void    KeyInput(const KeyEvent& rKEvt) override;
374
    rtl::Reference<sdr::overlay::OverlayManager> getOverlayManager() const;
375
376
    virtual OUString GetSurroundingText() const override;
377
    virtual Selection GetSurroundingTextSelection() const override;
378
    virtual bool DeleteSurroundingText(const Selection& rSelection) override;
379
380
    virtual void    Command( const CommandEvent& rCEvt ) override;
381
    virtual void    DataChanged( const DataChangedEvent& rDCEvt ) override;
382
383
    virtual void    MouseButtonDown( const MouseEvent& rMEvt ) override;
384
    virtual void    MouseButtonUp( const MouseEvent& rMEvt ) override;
385
    virtual void    MouseMove( const MouseEvent& rMEvt ) override;
386
    virtual bool    PreNotify( NotifyEvent& rNEvt ) override;
387
    virtual void    Tracking( const TrackingEvent& rTEvt ) override;
388
389
    void            PaintTile( VirtualDevice& rDevice,
390
                               int nOutputWidth, int nOutputHeight,
391
                               int nTilePosX, int nTilePosY,
392
                               tools::Long nTileWidth, tools::Long nTileHeight,
393
                               SCCOL nTiledRenderingAreaEndCol, SCROW nTiledRenderingAreaEndRow );
394
395
    /// @see Window::LogicInvalidate().
396
    void LogicInvalidate(const tools::Rectangle* pRectangle) override;
397
    void LogicInvalidatePart(const tools::Rectangle* pRectangle, int nPart);
398
399
    bool InvalidateByForeignEditView(EditView* pEditView) override;
400
    /// Update the cell selection according to what handles have been dragged.
401
    /// @see vcl::ITiledRenderable::setTextSelection() for the values of nType.
402
    /// Coordinates are in pixels.
403
    void SetCellSelectionPixel(int nType, int nPixelX, int nPixelY);
404
    /// Get the cell selection, coordinates are in logic units.
405
    void GetCellSelection(std::vector<tools::Rectangle>& rLogicRects);
406
407
    bool GetEditUrl(const Point& rPos, OUString* pName = nullptr, OUString* pUrl = nullptr,
408
                    OUString* pTarget = nullptr, SCCOL* pnCol= nullptr);
409
410
    virtual rtl::Reference<comphelper::OAccessible> CreateAccessible() override;
411
412
    void            FakeButtonUp();
413
414
0
    const Point&    GetMousePosPixel() const { return aCurMousePos; }
415
0
    ScSplitPos      getScSplitPos() const { return eWhich; }
416
417
    void            UpdateStatusPosSize();
418
419
    void            ClickExtern();
420
421
    using Window::SetPointer;
422
423
    void            MoveMouseStatus( ScGridWindow &rDestWin );
424
425
    void            ScrollPixel( tools::Long nDifX, tools::Long nDifY );
426
    void            UpdateEditViewPos();
427
428
    void            UpdateFormulas(SCCOL nX1 = -1, SCROW nY1 = -1, SCCOL nX2 = -1, SCROW nY2 = -1);
429
430
    void            ShowFilterMenu(weld::Window* pParent, const tools::Rectangle& rCellRect, bool bLayoutRTL);
431
432
    void            LaunchDataSelectMenu( SCCOL nCol, SCROW nRow );
433
    void            DoScenarioMenu( const ScRange& rScenRange );
434
435
    void            LaunchAutoFilterMenu(SCCOL nCol, SCROW nRow);
436
    void            RefreshAutoFilterButton(const ScAddress& rPos);
437
    void            UpdateAutoFilterFromMenu(AutoFilterMode eMode);
438
439
    void            LaunchPageFieldMenu( SCCOL nCol, SCROW nRow );
440
    void            LaunchDPFieldMenu( SCCOL nCol, SCROW nRow );
441
442
    css::sheet::DataPilotFieldOrientation GetDPFieldOrientation( SCCOL nCol, SCROW nRow ) const;
443
444
    void DPLaunchFieldPopupMenu(const Point& rScrPos, const Size& rScrSize,
445
                                tools::Long nDimIndex, ScDPObject* pDPObj);
446
447
    void DrawButtons(SCCOL nX1, SCCOL nX2, const ScTableInfo& rTabInfo, OutputDevice* pContentDev,
448
                     const ScLokRTLContext* pLokRTLContext);
449
450
    using Window::Draw;
451
    void            Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2,
452
                          ScUpdateMode eMode );
453
    void Resize() override;
454
455
    /// Draw content of the gridwindow; shared between the desktop and the tiled rendering.
456
    void DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableInfo, ScOutputData& aOutputData, bool bLogicText);
457
458
    void            CreateAnchorHandle(SdrHdlList& rHdl, const ScAddress& rAddress);
459
460
    void            HideCursor();
461
    void            ShowCursor();
462
    void            UpdateAutoFillMark(bool bMarked, const ScRange& rMarkRange);
463
464
    void            UpdateListValPos( bool bVisible, const ScAddress& rPos );
465
466
    bool            ShowNoteMarker( SCCOL nPosX, SCROW nPosY, bool bKeyboard );
467
    void            HideNoteOverlay();
468
469
    /// MapMode for the drawinglayer objects.
470
    MapMode         GetDrawMapMode( bool bForce = false );
471
472
    void            StopMarking();
473
    void            UpdateInputContext();
474
475
0
    bool            NeedsRepaint() const { return bNeedsRepaint; }
476
477
    void            DoInvertRect( const tools::Rectangle& rPixel );
478
479
    void            CheckNeedsRepaint();
480
481
    void            UpdateDPPopupMenuForFieldChange();
482
    void            UpdateDPFromFieldPopupMenu();
483
    bool            UpdateVisibleRange();
484
485
    void CursorChanged();
486
    void DrawLayerCreated();
487
    void SetAutoSpellContext( const std::shared_ptr<sc::SpellCheckContext> &ctx );
488
    void ResetAutoSpell();
489
    void ResetAutoSpellForContentChange();
490
    void SetAutoSpellData( SCCOL nPosX, SCROW nPosY, const sc::MisspellRangeResult& rRangeResult );
491
    sc::MisspellRangeResult GetAutoSpellData( SCCOL nPosX, SCROW nPosY );
492
    bool InsideVisibleRange( SCCOL nPosX, SCROW nPosY );
493
494
    void UpdateSparklineGroupOverlay();
495
    void DeleteSparklineGroupOverlay();
496
    void            DeleteCopySourceOverlay();
497
    void            UpdateCopySourceOverlay();
498
    void            DeleteCursorOverlay();
499
    void            UpdateCursorOverlay();
500
    void            DeleteSelectionOverlay();
501
    void            UpdateSelectionOverlay();
502
    void            UpdateDatabaseOverlay();
503
    void            DeleteDatabaseOverlay();
504
    void            UpdateHighlightOverlay();
505
    void            DeleteAutoFillOverlay();
506
    void            UpdateAutoFillOverlay();
507
    void            DeleteDragRectOverlay();
508
    void            UpdateDragRectOverlay();
509
    void            DeleteHeaderOverlay();
510
    void            UpdateHeaderOverlay();
511
    void            DeleteShrinkOverlay();
512
    void            UpdateShrinkOverlay();
513
    void            UpdateAllOverlays();
514
515
    /// get Cell cursor in this view's co-ordinate system @see ScModelObj::getCellCursor().
516
    OString getCellCursor() const;
517
    void notifyKitCellCursor() const;
518
    void notifyKitCellViewCursor(const SfxViewShell* pForShell) const;
519
    void updateKitCellCursor(const SfxViewShell* pOtherShell) const;
520
    /// notify this view with new positions for other view's cursors (after zoom)
521
    void updateKitOtherCursors() const;
522
    void updateOtherKitSelections() const;
523
    void resetCachedViewGridOffsets() const;
524
525
    void notifyKitCellFollowJump() const;
526
527
    ScViewData& getViewData();
528
    virtual FactoryFunction GetUITestFactory() const override;
529
530
    void updateLOKValListButton(bool bVisible, const ScAddress& rPos) const;
531
    void updateLOKInputHelp(const OUString& title, const OUString& content) const;
532
533
    void initiatePageBreaks();
534
535
    std::vector<UrlData> GetEditUrls(const ScAddress& rSelectedCell);
536
537
protected:
538
    void ImpCreateOverlayObjects();
539
    void ImpDestroyOverlayObjects();
540
541
private:
542
    SCCOL m_nDownPosX;
543
    SCROW m_nDownPosY;
544
545
#ifdef DBG_UTIL
546
    void dumpCellProperties();
547
    void dumpPivotTable();
548
    void dumpColumnInformationPixel();
549
    void dumpColumnInformationHmm();
550
    void dumpGraphicInformation();
551
    void dumpColumnCellStorage();
552
#endif
553
554
};
555
556
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */