summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw
diff options
context:
space:
mode:
authorTibor Nagy <tibor.nagy.extern@allotropia.de>2024-07-25 02:05:09 +0200
committerNagy Tibor <tibor.nagy.extern@allotropia.de>2024-07-25 12:00:17 +0200
commit042c62954be6ca55287e64cc725e71db4ddd7d8c (patch)
treef7f0b71eb7f579acbdb55b4dd33b8a32f377e631 /sw/source/uibase/docvw
parent566fbd5cc3b56fdfae88274e6f01fa3451cc1b79 (diff)
tdf#85677: Add support for Windows touch gestures (panning,zooming)
Change-Id: Ib0243889621663ddb9b6789ede7643d54f06041e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170988 Tested-by: Jenkins Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
Diffstat (limited to 'sw/source/uibase/docvw')
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 81064a94a8f7..8a917ac2e806 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -5780,6 +5780,18 @@ void SwEditWin::Command( const CommandEvent& rCEvt )
break;
}
+ case CommandEventId::GesturePan:
+ {
+ if (m_pSavedOutlineFrame && rSh.GetViewOptions()->IsShowOutlineContentVisibilityButton())
+ {
+ GetFrameControlsManager().RemoveControlsByType(FrameControlType::Outline, m_pSavedOutlineFrame);
+ m_pSavedOutlineFrame = nullptr;
+ }
+ m_pShadCursor.reset();
+ bCallBase = !m_rView.HandleGesturePanCommand(rCEvt);
+ break;
+ }
+
case CommandEventId::GestureLongPress:
case CommandEventId::GestureSwipe: //nothing yet
break;