diff options
author | Gabor Kelemen <gabor.kelemen.extern@allotropia.de> | 2023-11-02 11:47:07 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2023-12-16 01:22:24 +0100 |
commit | 9a71ac689a7d5929f66df23f9fcc707bdb146e3f (patch) | |
tree | aaba8efb30a2d3490dddb831af7b853a30e654fe /svx | |
parent | d799ba397e42d7a4ba62135e49b0c216c1d6a915 (diff) |
Drop some wrapper methods from SvtOptionsDrawinglayer
just use the wrapped officecfg methods instead of:
GetStripeLength
Change-Id: Id29c0b1ecbc513b5d778140b6e59139a507035d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160652
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/sdrpaintwindow.cxx | 3 | ||||
-rw-r--r-- | svx/source/svdraw/svddrgmt.cxx | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/svx/source/svdraw/sdrpaintwindow.cxx b/svx/source/svdraw/sdrpaintwindow.cxx index ebed55326a57..bf66375f41e6 100644 --- a/svx/source/svdraw/sdrpaintwindow.cxx +++ b/svx/source/svdraw/sdrpaintwindow.cxx @@ -27,6 +27,7 @@ #include <vcl/settings.hxx> #include <vcl/window.hxx> #include <svtools/optionsdrawinglayer.hxx> +#include <officecfg/Office/Common.hxx> #include <set> #include <vector> @@ -187,7 +188,7 @@ void SdrPaintView::InitOverlayManager(rtl::Reference<sdr::overlay::OverlayManage xOverlayManager->setStripeColorA(aColA); xOverlayManager->setStripeColorB(aColB); - xOverlayManager->setStripeLengthPixel(SvtOptionsDrawinglayer::GetStripeLength()); + xOverlayManager->setStripeLengthPixel(officecfg::Office::Common::Drawinglayer::StripeLength::get()); } rtl::Reference<sdr::overlay::OverlayManager> SdrPaintView::CreateOverlayManager(OutputDevice& rOutputDevice) const diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index 1d6d379fce85..b80014718257 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -67,6 +67,7 @@ #include <drawinglayer/attribute/sdrlinestartendattribute.hxx> #include <svl/itempool.hxx> #include <svtools/optionsdrawinglayer.hxx> +#include <officecfg/Office/Common.hxx> #include <comphelper/lok.hxx> #include <map> #include <vector> @@ -102,7 +103,7 @@ drawinglayer::primitive2d::Primitive2DContainer SdrDragEntryPolyPolygon::createP rDragMethod.applyCurrentTransformationToPolyPolygon(aCopy); basegfx::BColor aColA(SvtOptionsDrawinglayer::GetStripeColorA().getBColor()); basegfx::BColor aColB(SvtOptionsDrawinglayer::GetStripeColorB().getBColor()); - const double fStripeLength(SvtOptionsDrawinglayer::GetStripeLength()); + const double fStripeLength(officecfg::Office::Common::Drawinglayer::StripeLength::get()); if(Application::GetSettings().GetStyleSettings().GetHighContrastMode()) { @@ -922,7 +923,7 @@ drawinglayer::primitive2d::Primitive2DContainer SdrDragMethod::AddConnectorOverl { basegfx::BColor aColA(SvtOptionsDrawinglayer::GetStripeColorA().getBColor()); basegfx::BColor aColB(SvtOptionsDrawinglayer::GetStripeColorB().getBColor()); - const double fStripeLength(SvtOptionsDrawinglayer::GetStripeLength()); + const double fStripeLength(officecfg::Office::Common::Drawinglayer::StripeLength::get()); if(Application::GetSettings().GetStyleSettings().GetHighContrastMode()) { |