diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-03-22 08:06:25 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-03-22 11:41:23 +0100 |
commit | 2a41c31a0627bf752a625f23a64eaf4d3fe82fb9 (patch) | |
tree | 717d81dc537c784025b6c31f37ff94f1ea0f7aa4 /sfx2 | |
parent | ad7e2af4ed0c11f8571374fbb40d38b38c27959c (diff) |
tdf#124255 Make maximum sidebar width configurable
Also change the default max width to 500px (instead of 400px).
Change-Id: Idece5aadaf4c4165cc873b4605d2c0f026c89c6e
Reviewed-on: https://gerrit.libreoffice.org/69545
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index 9aa8fc0859ca..82ccd7ca58ef 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -45,6 +45,7 @@ #include <comphelper/processfactory.hxx> #include <comphelper/namedvaluecollection.hxx> #include <sal/log.hxx> +#include <officecfg/Office/UI/Sidebar.hxx> #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/ui/ContextChangeEventMultiplexer.hpp> @@ -100,6 +101,7 @@ SidebarController::SidebarController ( maCurrentContext(OUString(), OUString()), maRequestedContext(), mnRequestedForceFlags(SwitchFlag_NoForce), + mnMaximumSidebarWidth(officecfg::Office::UI::Sidebar::General::MaximumWidth::get()), msCurrentDeckId(gsDefaultDeckId), maPropertyChangeForwarder([this](){ return this->BroadcastPropertyChange(); }), maContextChangeUpdate([this](){ return this->UpdateConfigurations(); }), @@ -1216,7 +1218,7 @@ void SidebarController::RestrictWidth (sal_Int32 nWidth) pSplitWindow->SetItemSizeRange( nSetId, Range(TabBar::GetDefaultWidth() * mpTabBar->GetDPIScaleFactor() + nWidth, - gnMaximumSidebarWidth * mpTabBar->GetDPIScaleFactor())); + getMaximumWidth() * mpTabBar->GetDPIScaleFactor())); } } |