diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-03-29 12:11:27 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-04-09 10:48:40 +0200 |
commit | bff456b37814303e386e86b9d395babaccf164db (patch) | |
tree | 7a37ef1fb9d313829c5d772ecc6cb7c9b030a66d /sc | |
parent | 422c939f44eec82aca1060d22ea9a95a44d6b17d (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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113807
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sc')
-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 6303541376dd..91d81aac4183 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -476,6 +476,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(mxTextWindow->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 4767d09e9db3..70796002f2c0 100644 --- a/sc/source/ui/inc/inputwin.hxx +++ b/sc/source/ui/inc/inputwin.hxx @@ -290,6 +290,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; |