summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-18 16:38:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-19 06:53:51 +0200
commit50acead19bd13a344f8ca9b3879f8e8cb0b24eb7 (patch)
tree89a87c4192744c95a6626d78b80c63cff3fdcf54 /include
parent4105174973aaabc25148e53571b7a4fc356098de (diff)
convert WB_SLIDERSET to a bool field
Change-Id: I8a3767e162a14069937d52f5eb57ae5cd7f3fa7b Reviewed-on: https://gerrit.libreoffice.org/41302 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/tools/wintypes.hxx4
-rw-r--r--include/vcl/slider.hxx2
2 files changed, 2 insertions, 4 deletions
diff --git a/include/tools/wintypes.hxx b/include/tools/wintypes.hxx
index def5ffd6bb09..0eccec5cc259 100644
--- a/include/tools/wintypes.hxx
+++ b/include/tools/wintypes.hxx
@@ -267,11 +267,7 @@ WinBits const WB_PATH = 0x00100000;
WinBits const WB_OPEN = 0x00200000;
WinBits const WB_SAVEAS = 0x00400000;
-// For Slider
-// Window-Bits for TabControl
-WinBits const WB_SLIDERSET = 0x02000000;
-// WindowAlign
enum class WindowAlign { Left, Top, Right, Bottom };
diff --git a/include/vcl/slider.hxx b/include/vcl/slider.hxx
index f4536b4c9af6..879340fc387f 100644
--- a/include/vcl/slider.hxx
+++ b/include/vcl/slider.hxx
@@ -49,6 +49,7 @@ private:
ScrollType meScrollType;
bool mbCalcSize;
bool mbFullDrag;
+ bool mbScrollTypeSet;
VclPtr<NumericField> mpLinkedField;
@@ -104,6 +105,7 @@ public:
long GetLineSize() const { return mnLineSize; }
void SetPageSize( long nNewSize ) { mnPageSize = nNewSize; }
long GetPageSize() const { return mnPageSize; }
+ void SetScrollTypeSet(bool b) { mbScrollTypeSet = b; }
Size CalcWindowSizePixel();