diff options
author | Sarper Akdemir <sarper.akdemir.extern@allotropia.de> | 2023-07-12 17:15:13 +0300 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2023-07-21 14:32:16 +0200 |
commit | 83f7c6fe5bb233fa9827ff968710822b95562075 (patch) | |
tree | 11da6c859f2a95e4015d23cf710ece36d5f94666 /include/svx | |
parent | 3a23c6c7a38317794cc7e8894e6a82f4418c8c6d (diff) |
tdf#50725: sd: add new configuration option DragThresholdPixels
Adds new expert configuration option DragThresholdPixels for
Impress and Draw under Misc/DragThresholdPixels.
Also bumps up the previous hardcoded default
value from 2 to 6.
Assuming this value was set when 640x480 resolution was the
most common resolution, currently scaling the hardcoded
default by 3 makes sense.
(eg. GTK uses 8 pixels as the default)
Change-Id: I35c0eed3ce477685c759f517471ce0bdc8315864
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154379
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/svddrgv.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/svx/svddrgv.hxx b/include/svx/svddrgv.hxx index 4e47a6bd85ea..2fb7543e0970 100644 --- a/include/svx/svddrgv.hxx +++ b/include/svx/svddrgv.hxx @@ -44,6 +44,7 @@ protected: tools::Rectangle maDragLimit; OUString maInsPointUndoStr; SdrHdlKind meDragHdl; + sal_Int32 mnDragThresholdPixels; bool mbFramDrag : 1; // currently frame dragging bool mbMarkedHitMovesAlways : 1; // Persistent @@ -112,6 +113,9 @@ public: void SetDragWithCopy(bool bOn) { mbDragWithCopy = bOn; } bool IsDragWithCopy() const { return mbDragWithCopy; } + void SetDragThresholdPixels(sal_Int32 nDragThresholdPixels) { mnDragThresholdPixels = nDragThresholdPixels; } + sal_Int32 GetDragThresholdPixels() const { return mnDragThresholdPixels; } + void SetInsertGluePoint(bool bOn) { mbInsGluePoint = bOn; } bool IsInsertGluePoint() const { return mbInsGluePoint; } |