From 1527fa8435ef415678b2e4a6972f5e378ee5cab1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 6 Jun 2023 11:20:17 +0200 Subject: convert SvtAccessibilityOptions to officecfg where possible Change-Id: Ia530086fe35e64379e55135d392020304b466325 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152649 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/annotations/annotationwindow.cxx | 5 +---- sd/source/ui/view/outlview.cxx | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx index bc6304529e43..a5ab1eb0b784 100644 --- a/sd/source/ui/annotations/annotationwindow.cxx +++ b/sd/source/ui/annotations/annotationwindow.cxx @@ -550,10 +550,7 @@ void AnnotationWindow::SetColor() maColorLight = AnnotationManagerImpl::GetColorLight( nAuthorIdx ); } - { - SvtAccessibilityOptions aOptions; - mpOutliner->ForceAutoColor( bHighContrast || aOptions.GetIsAutomaticFontColor() ); - } + mpOutliner->ForceAutoColor( bHighContrast || SvtAccessibilityOptions::GetIsAutomaticFontColor() ); mxPopover->set_background(maColor); mxMenuButton->set_background(maColor); diff --git a/sd/source/ui/view/outlview.cxx b/sd/source/ui/view/outlview.cxx index 4ddc3be230bd..8ce0a5dcb874 100644 --- a/sd/source/ui/view/outlview.cxx +++ b/sd/source/ui/view/outlview.cxx @@ -154,8 +154,7 @@ OutlineView::~OutlineView() EEControlBits nCntrl = mrOutliner.GetControlWord(); mrOutliner.SetUpdateLayout(false); // otherwise there will be drawn on SetControlWord mrOutliner.SetControlWord(nCntrl & ~EEControlBits::NOCOLORS); - SvtAccessibilityOptions aOptions; - mrOutliner.ForceAutoColor( aOptions.GetIsAutomaticFontColor() ); + mrOutliner.ForceAutoColor( SvtAccessibilityOptions::GetIsAutomaticFontColor() ); mrOutliner.Clear(); } } -- cgit