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.k...@collabora.com>
AuthorDate: Mon Mar 29 12:11:27 2021 +0200
Commit:     Jan Holesovsky <ke...@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 <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Jan Holesovsky <ke...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to