Coverage Report

Created: 2025-12-31 10:39

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