diff options
author | Gabor Kelemen <gabor.kelemen.extern@allotropia.de> | 2023-11-13 02:36:26 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2023-12-19 20:52:37 +0100 |
commit | dc8632a8b5c5dc4f58a4677d90f2f05133aa713d (patch) | |
tree | 7400ce510b5d04d6356e51f021314fbec8fa9363 /svx | |
parent | cbc8cbeb17753296b7dc45bd146bc80a7275866a (diff) |
Drop some wrapper methods from SvtOptionsDrawinglayer
just use the wrapped officecfg methods instead of:
IsSolidDragCreate
IsRenderDecoratedTextDirect
IsRenderSimpleTextDirect
GetQuadratic3DRenderLimit
GetQuadraticFormControlRenderLimit
IsTransparentSelection
Change-Id: Ie0f3ec0f8fdbbf08facfff1a372c666c8a0c8979
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160654
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/overlay/overlayselection.cxx | 3 | ||||
-rw-r--r-- | svx/source/svdraw/svddrgv.cxx | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/svx/source/sdr/overlay/overlayselection.cxx b/svx/source/sdr/overlay/overlayselection.cxx index 6eb3d912fd42..8c082ab639d0 100644 --- a/svx/source/sdr/overlay/overlayselection.cxx +++ b/svx/source/sdr/overlay/overlayselection.cxx @@ -30,6 +30,7 @@ #include <drawinglayer/primitive2d/unifiedtransparenceprimitive2d.hxx> #include <basegfx/polygon/b2dpolypolygoncutter.hxx> #include <svx/sdr/overlay/overlaymanager.hxx> +#include <officecfg/Office/Common.hxx> namespace sdr::overlay @@ -63,7 +64,7 @@ namespace sdr::overlay { if(OverlayType::Invert != aOverlayType) { - if(!SvtOptionsDrawinglayer::IsTransparentSelection()) + if(!officecfg::Office::Common::Drawinglayer::TransparentSelection::get()) { // not possible when switched off by user return OverlayType::Invert; diff --git a/svx/source/svdraw/svddrgv.cxx b/svx/source/svdraw/svddrgv.cxx index 8b9567c20be0..c0cd0988d8ad 100644 --- a/svx/source/svdraw/svddrgv.cxx +++ b/svx/source/svdraw/svddrgv.cxx @@ -34,11 +34,11 @@ #include <svx/svdoashp.hxx> #include <svx/sdrpaintwindow.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> -#include <svtools/optionsdrawinglayer.hxx> #include <svx/sdr/overlay/overlaymanager.hxx> #include <svx/sdrpagewindow.hxx> #include <unotools/configmgr.hxx> #include <comphelper/lok.hxx> +#include <officecfg/Office/Common.hxx> using namespace sdr; @@ -53,7 +53,7 @@ SdrDragView::SdrDragView(SdrModel& rSdrModel, OutputDevice* pOut) , mbDragLimit(false) , mbDragHdl(false) , mbDragStripes(false) - , mbSolidDragging(utl::ConfigManager::IsFuzzing() || SvtOptionsDrawinglayer::IsSolidDragCreate()) + , mbSolidDragging(utl::ConfigManager::IsFuzzing() || officecfg::Office::Common::Drawinglayer::SolidDragCreate::get()) , mbResizeAtCenter(false) , mbCrookAtCenter(false) , mbDragWithCopy(false) @@ -914,7 +914,7 @@ bool SdrDragView::IsSolidDragging() const { // allow each user to disable by having a local setting, but using AND for // checking allowance - return mbSolidDragging && SvtOptionsDrawinglayer::IsSolidDragCreate(); + return mbSolidDragging && officecfg::Office::Common::Drawinglayer::SolidDragCreate::get(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |