officecfg/registry/schema/org/openoffice/Office/Impress.xcs | 7 +++++++ sd/source/ui/view/frmview.cxx | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-)
New commits: commit 7c2ed9919d6d9d286d9062b91577d6bb2b7de8aa Author: Cor Nouws <cor.no...@documentfoundation.org> AuthorDate: Thu Apr 11 21:01:18 2024 +0200 Commit: Justin Luth <jl...@mail.com> CommitDate: Sat Apr 20 00:34:46 2024 +0200 tdf#160601 add expert option for default slides per row in slide sorter Change-Id: Ib122ad0fce8159c1ceb092bcc65a59ba1ad23bc9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166174 Reviewed-by: Justin Luth <jl...@mail.com> Tested-by: Jenkins diff --git a/officecfg/registry/schema/org/openoffice/Office/Impress.xcs b/officecfg/registry/schema/org/openoffice/Office/Impress.xcs index e6bda773491f..699cdc752a2f 100644 --- a/officecfg/registry/schema/org/openoffice/Office/Impress.xcs +++ b/officecfg/registry/schema/org/openoffice/Office/Impress.xcs @@ -423,6 +423,13 @@ </info> <value>true</value> </prop> + <prop oor:name="SorterSlidesPerRow" oor:type="xs:int" oor:nillable="false"> + <info> + <desc>Default number of slides per row in slide sorter.</desc> + <label>Sorter slides per row</label> + </info> + <value>4</value> + </prop> <prop oor:name="SlideshowRespectZOrder" oor:type="xs:boolean" oor:nillable="false"> <!-- UIHints: Slideshow Z order for animations --> <info> diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx index 61b7bfdf2ecf..50cf9d636396 100644 --- a/sd/source/ui/view/frmview.cxx +++ b/sd/source/ui/view/frmview.cxx @@ -41,6 +41,7 @@ #include <comphelper/processfactory.hxx> #include <sfx2/viewfrm.hxx> #include <officecfg/Office/Common.hxx> +#include <officecfg/Office/Impress.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -222,7 +223,7 @@ FrameView::FrameView(SdDrawDocument* pDrawDoc, FrameView* pFrameView /* = NULL * SetEliminatePolyPoints(false); mbDoubleClickTextEdit = false; mbClickChangeRotation = false; - mnSlidesPerRow = 4; + mnSlidesPerRow = officecfg::Office::Impress::Misc::SorterSlidesPerRow::get(); { bool bUseContrast = Application::GetSettings().GetStyleSettings().GetHighContrastMode();