summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-23 11:07:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-23 20:33:05 +0200
commit05773428c51c82a365e16589a1f8ca45823c6403 (patch)
treed590f65cca287b06482ce388a29826c5d25641b3 /sd
parent6362c905cf19f2f6cb67bf634091b14c2a8e90ec (diff)
use officecfg to retrieve GetIsForPagePreviews
Change-Id: I9c7666a4456821e3a2051c8d645183f4e1c5eb55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119412 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/sdview.cxx6
-rw-r--r--sd/source/ui/view/sdwindow.cxx5
2 files changed, 6 insertions, 5 deletions
diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx
index a4828a390300..c70107905b02 100644
--- a/sd/source/ui/view/sdview.cxx
+++ b/sd/source/ui/view/sdview.cxx
@@ -34,6 +34,7 @@
#include <vcl/settings.hxx>
+#include <officecfg/Office/Common.hxx>
#include <sfx2/dispatch.hxx>
#include <svx/svdpagv.hxx>
#include <svx/svdoutl.hxx>
@@ -1010,8 +1011,6 @@ void View::onAccessibilityOptionsChanged()
const StyleSettings& rStyleSettings = pWindow->GetSettings().GetStyleSettings();
- SvtAccessibilityOptions& aAccOptions = getAccessibilityOptions();
-
if( mpViewSh->GetViewFrame() && mpViewSh->GetViewFrame()->GetDispatcher() )
{
sal_uInt16 nOutputSlot, nPreviewSlot;
@@ -1025,7 +1024,8 @@ void View::onAccessibilityOptionsChanged()
nOutputSlot = SID_OUTPUT_QUALITY_COLOR;
}
- if( rStyleSettings.GetHighContrastMode() && aAccOptions.GetIsForPagePreviews() )
+ if( rStyleSettings.GetHighContrastMode()
+ && officecfg::Office::Common::Accessibility::IsForPagePreviews::get() )
{
nPreviewSlot = SID_PREVIEW_QUALITY_CONTRAST;
}
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx
index 765bf7bed661..c69b0cf3211b 100644
--- a/sd/source/ui/view/sdwindow.cxx
+++ b/sd/source/ui/view/sdwindow.cxx
@@ -42,6 +42,7 @@
#include <ViewShellBase.hxx>
#include <uiobject.hxx>
+#include <officecfg/Office/Common.hxx>
#include <sal/log.hxx>
#include <tools/debug.hxx>
#include <vcl/commandevent.hxx>
@@ -781,7 +782,6 @@ void Window::DataChanged( const DataChangedEvent& rDCEvt )
if( mpViewShell )
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- SvtAccessibilityOptions aAccOptions;
DrawModeFlags nOutputMode;
sal_uInt16 nPreviewSlot;
@@ -790,7 +790,8 @@ void Window::DataChanged( const DataChangedEvent& rDCEvt )
else
nOutputMode = sd::OUTPUT_DRAWMODE_COLOR;
- if( rStyleSettings.GetHighContrastMode() && aAccOptions.GetIsForPagePreviews() )
+ if( rStyleSettings.GetHighContrastMode()
+ && officecfg::Office::Common::Accessibility::IsForPagePreviews::get() )
nPreviewSlot = SID_PREVIEW_QUALITY_CONTRAST;
else
nPreviewSlot = SID_PREVIEW_QUALITY_COLOR;