[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - sc/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Tue Mar 30 13:15:06 UTC 2021


 sc/source/ui/app/inputwin.cxx |   13 +++++++++++++
 sc/source/ui/inc/inputwin.hxx |    2 ++
 2 files changed, 15 insertions(+)

New commits:
commit 09afa34955d76419ebe8f4d15780d801f95256ca
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Mon Mar 29 12:11:27 2021 +0200
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Tue Mar 30 15:14:32 2021 +0200

    online: update calc inputbar position on change
    
    Change-Id: I9b340cb0f5d5d28b0cc683878ba8fad2c4d8a5af
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113307
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index b106a188dbd3..b718ba7cb7a5 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -487,6 +487,19 @@ void ScInputWindow::SetSizePixel( const Size& rNewSize )
     ToolBox::SetSizePixel(rNewSize);
 }
 
+void ScInputWindow::setPosSizePixel(long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags)
+{
+    ToolBox::setPosSizePixel(nX, nY, nWidth, nHeight, nFlags);
+    if (const vcl::ILibreOfficeKitNotifier* pNotifier = GetLOKNotifier())
+    {
+        std::vector<vcl::LOKPayloadItem> aItems;
+        aItems.emplace_back(std::make_pair("position", Point(GetOutOffXPixel(), GetOutOffYPixel()).toString()));
+        aItems.emplace_back("size", GetSizePixel().toString());
+        aItems.emplace_back("lines", OString::number(aTextWindow.GetNumLines()));
+        pNotifier->notifyWindow(GetLOKWindowId(), "size_changed", aItems);
+    }
+}
+
 void ScInputWindow::Resize()
 {
     ToolBox::Resize();
diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx
index 9150096fec72..c77ecb8d0e59 100644
--- a/sc/source/ui/inc/inputwin.hxx
+++ b/sc/source/ui/inc/inputwin.hxx
@@ -259,6 +259,8 @@ public:
 
     virtual void    Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override;
     virtual void    PixelInvalidate(const tools::Rectangle* pRectangle) override;
+    virtual void    setPosSizePixel( long nX, long nY, long nWidth, long nHeight,
+                                     PosSizeFlags nFlags = PosSizeFlags::All ) override;
     virtual void    SetSizePixel( const Size& rNewSize ) override;
     virtual void    Resize() override;
     virtual void    Select() override;


More information about the Libreoffice-commits mailing list