diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-25 13:46:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-26 07:30:07 +0100 |
commit | 9e23683b4c91c60e39839a03cfa6adc436a9afeb (patch) | |
tree | c63efbe4a1b51c495dae1867cf04f4cf2c617f8d /vcl | |
parent | 55febfff803fd0a49a8b24fd7dc16253e70bd28e (diff) |
loplugin:singlevalfields
Change-Id: I4a56a27ebce927b8e21cf37bb2c527caf1317bcc
Reviewed-on: https://gerrit.libreoffice.org/69681
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/toolbox.h | 1 | ||||
-rw-r--r-- | vcl/source/window/toolbox.cxx | 27 | ||||
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 1 |
3 files changed, 3 insertions, 26 deletions
diff --git a/vcl/inc/toolbox.h b/vcl/inc/toolbox.h index 17c5585ef490..4540cb0c109c 100644 --- a/vcl/inc/toolbox.h +++ b/vcl/inc/toolbox.h @@ -147,7 +147,6 @@ struct ImplToolBoxPrivateData mbKeyInputDisabled:1, // no KEY input if all items disabled, closing/docking will be allowed though mbIsPaintLocked:1, // don't allow paints mbMenubuttonSelected:1, // menu button is highlighted - mbPageScroll:1, // determines if we scroll a page at a time mbNativeButtons:1, // system supports native toolbar buttons mbWillUsePopupMode:1, // this toolbox will be opened in popup mode mbDropDownByKeyboard:1; // tells whether a dropdown was started by key input diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 671814e2c646..c7bc19f089c1 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -2988,33 +2988,12 @@ void ToolBox::ImplFloatControl( bool bStart, FloatingWindow* pFloatWindow ) void ToolBox::ShowLine( bool bNext ) { - mbFormat = true; - if ( mpData->mbPageScroll ) - { - ImplToolItems::size_type delta = mnVisLines; - if ( bNext ) - { - mnCurLine = mnCurLine + delta; - if ( mnCurLine+mnVisLines-1 > mnCurLines ) - mnCurLine = mnCurLines - mnVisLines+1; - } - else - { - if( mnCurLine >= delta+1 ) - mnCurLine = mnCurLine - delta; - else - mnCurLine = 1; - } - } + if ( bNext ) + mnCurLine++; else - { - if ( bNext ) - mnCurLine++; - else - mnCurLine--; - } + mnCurLine--; ImplFormat(); } diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index 2fab40a8f120..3d7b0de98ea9 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -62,7 +62,6 @@ ImplToolBoxPrivateData::ImplToolBoxPrivateData() mbAssumeFloating = false; mbKeyInputDisabled = false; mbMenubuttonSelected = false; - mbPageScroll = false; mbWillUsePopupMode = false; mbDropDownByKeyboard = false; } |