summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-10-24 08:50:15 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-10-24 12:51:32 +0200
commitfaca390c57841fa15616abdd8a679855971bc6d3 (patch)
tree6261112add272f190048558cb50483bc856e5f95 /sd/source/ui
parent5e3e507b1a68f5b9883337f1e55c54c2fc9de9fc (diff)
Drop Window::LogicMouse*
As mentioned in commit 510bca3d3ab0b2fd21f0083b4e0fe14ff8c903c3, over the time these functions were changed; now they don't take logical coordinates, but pixels, so became true duplicates of corresponding Mouse* functions. The calls to SetLastMousePos are now made from LOKPostAsyncEvent uniformly. Change-Id: I2c8a9095719c0c8e21cf81342a286b00c1d1a41c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141693 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/inc/Window.hxx6
-rw-r--r--sd/source/ui/view/sdwindow.cxx27
2 files changed, 0 insertions, 33 deletions
diff --git a/sd/source/ui/inc/Window.hxx b/sd/source/ui/inc/Window.hxx
index f1beddbc6bba..0464ad32e19e 100644
--- a/sd/source/ui/inc/Window.hxx
+++ b/sd/source/ui/inc/Window.hxx
@@ -198,12 +198,6 @@ protected:
/// @see Window::LogicInvalidate().
void LogicInvalidate(const ::tools::Rectangle* pRectangle) override;
- /// Same as MouseButtonDown(), but coordinates are in logic unit.
- virtual void LogicMouseButtonDown(const MouseEvent& rMouseEvent) override;
- /// Same as MouseButtonUp(), but coordinates are in logic unit.
- virtual void LogicMouseButtonUp(const MouseEvent& rMouseEvent) override;
- /// Same as MouseMove(), but coordinates are in logic unit.
- virtual void LogicMouseMove(const MouseEvent& rMouseEvent) override;
FactoryFunction GetUITestFactory() const override;
};
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx
index b637a1a01aa8..1ccd7461d7bc 100644
--- a/sd/source/ui/view/sdwindow.cxx
+++ b/sd/source/ui/view/sdwindow.cxx
@@ -1045,33 +1045,6 @@ void Window::LogicInvalidate(const ::tools::Rectangle* pRectangle)
SfxLokHelper::notifyInvalidation(&rSfxViewShell, pResultRectangle);
}
-void Window::LogicMouseButtonDown(const MouseEvent& rMouseEvent)
-{
- // When we're not doing tiled rendering, then positions must be passed as pixels.
- assert(comphelper::LibreOfficeKit::isActive());
-
- SetLastMousePos(rMouseEvent.GetPosPixel());
- mpViewShell->MouseButtonDown(rMouseEvent, this);
-}
-
-void Window::LogicMouseButtonUp(const MouseEvent& rMouseEvent)
-{
- // When we're not doing tiled rendering, then positions must be passed as pixels.
- assert(comphelper::LibreOfficeKit::isActive());
-
- SetLastMousePos(rMouseEvent.GetPosPixel());
- mpViewShell->MouseButtonUp(rMouseEvent, this);
-}
-
-void Window::LogicMouseMove(const MouseEvent& rMouseEvent)
-{
- // When we're not doing tiled rendering, then positions must be passed as pixels.
- assert(comphelper::LibreOfficeKit::isActive());
-
- SetLastMousePos(rMouseEvent.GetPosPixel());
- mpViewShell->MouseMove(rMouseEvent, this);
-}
-
FactoryFunction Window::GetUITestFactory() const
{
if (get_id() == "impress_win")