diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-02 17:32:04 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-02 17:21:56 +0000 |
commit | 1e1eb87f36095acefe73579448ceef8442beba5f (patch) | |
tree | 1f0997915b44edac0112cc7c7db1de6b1f49bce4 /include/svx | |
parent | 6228d6c52e4a6e6c0d82632a135211286e06852e (diff) |
sd lok: implement SfxViewShell::NotifyCursor() API
The same API is already implemented in sw and sc already, the sd
implementation allows selecting a shape in one view, then creating a
second view, and seeing the selection of the first view in the second
view, without de-selecting and re-selecting the shape in question in the
first view.
Change-Id: Ia36e4772584d132f1ff6a7eb07ca4cadaa384ee9
Reviewed-on: https://gerrit.libreoffice.org/28623
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/svddrgv.hxx | 2 | ||||
-rw-r--r-- | include/svx/svdmrkv.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/svx/svddrgv.hxx b/include/svx/svddrgv.hxx index 8df3f1dfe7a6..3a84ee644bb7 100644 --- a/include/svx/svddrgv.hxx +++ b/include/svx/svddrgv.hxx @@ -61,7 +61,7 @@ private: SVX_DLLPRIVATE void ImpClearVars(); protected: - virtual void SetMarkHandles() override; + virtual void SetMarkHandles(SfxViewShell* pOtherShell) override; void ShowDragObj(); void HideDragObj(); bool ImpBegInsObjPoint(bool bIdxZwang, sal_uInt32 nIdx, const Point& rPnt, bool bNewObj, OutputDevice* pOut); diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx index 1c851ec25940..ae49ba2344be 100644 --- a/include/svx/svdmrkv.hxx +++ b/include/svx/svdmrkv.hxx @@ -142,7 +142,7 @@ private: protected: virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override; virtual void ModelHasChanged() override; // Is called by the PaintView - virtual void SetMarkHandles(); // maHdlList - fill (List of handles) + virtual void SetMarkHandles(SfxViewShell* pOtherShell); // maHdlList - fill (List of handles) void SetMarkRects(); // Rects at the PageViews void CheckMarked(); // Scan MarkList after Del and Lock Layer ... void AddDragModeHdl(SdrDragMode eMode); @@ -406,7 +406,7 @@ public: // AdjustMarkHdl is just called in case of changes; usually this causes an Invalidate // At the end of a redraw the handles are drawn automatically. // The purpose is to avoid unnecessary flickering. -> This does not yet work, that's why sal_True! - void AdjustMarkHdl(); //HMHBOOL bRestraintPaint=sal_True); + void AdjustMarkHdl(SfxViewShell* pOtherShell = nullptr); //HMHBOOL bRestraintPaint=sal_True); const Rectangle& GetMarkedObjRect() const; // SnapRects of Objects, without line width Rectangle GetMarkedObjBoundRect() const; // incl. line width, overlapping rags, ... |