diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-03-29 12:11:27 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2021-03-30 15:14:32 +0200 |
commit | 09afa34955d76419ebe8f4d15780d801f95256ca (patch) | |
tree | 42be04790814de60f9c3d44b8af911526cee5ef6 | |
parent | eed9b5f8cb2d674ab4d1ddddafab846231f68905 (diff) |
online: update calc inputbar position on change
Change-Id: I9b340cb0f5d5d28b0cc683878ba8fad2c4d8a5af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113307
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 13 | ||||
-rw-r--r-- | sc/source/ui/inc/inputwin.hxx | 2 |
2 files changed, 15 insertions, 0 deletions
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; |