diff options
author | Gabor Kelemen <gabor.kelemen.extern@allotropia.de> | 2023-12-13 01:18:40 +0100 |
---|---|---|
committer | Gabor Kelemen <kelemeng@ubuntu.com> | 2023-12-24 12:14:58 +0100 |
commit | ba12e22f28150ec00d55e4fb99838710a3973e57 (patch) | |
tree | 4e8e0deccf3e8e20a82e53850db49b39a8cefff3 /sd | |
parent | 0b600862ae38c5405779f660226bee8e9cc6e3b6 (diff) |
Drop some wrapper methods from SvtAccessibilityOptions
just use the wrapped officecfg methods instead of:
GetIsAllowAnimatedGraphics
GetIsAllowAnimatedText
GetIsAutomaticFontColor
IsSelectionInReadonly
Change-Id: I74de75fc9ff2f9a36ef376255e937bb373055587
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161236
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <kelemeng@ubuntu.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/annotations/annotationwindow.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/view/outlview.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx index 02495794aefa..99a58a085376 100644 --- a/sd/source/ui/annotations/annotationwindow.cxx +++ b/sd/source/ui/annotations/annotationwindow.cxx @@ -29,6 +29,7 @@ #include <editeng/wghtitem.hxx> #include <editeng/crossedoutitem.hxx> #include <editeng/editund2.hxx> +#include <officecfg/Office/Common.hxx> #include <svx/svxids.hrc> #include <unotools/useroptions.hxx> @@ -551,7 +552,7 @@ void AnnotationWindow::SetColor() maColorLight = AnnotationManagerImpl::GetColorLight( nAuthorIdx ); } - mpOutliner->ForceAutoColor( bHighContrast || SvtAccessibilityOptions::GetIsAutomaticFontColor() ); + mpOutliner->ForceAutoColor( bHighContrast || officecfg::Office::Common::Accessibility::IsAutomaticFontColor::get() ); 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 d424f0117c27..087aa50ee86e 100644 --- a/sd/source/ui/view/outlview.cxx +++ b/sd/source/ui/view/outlview.cxx @@ -35,6 +35,7 @@ #include <editeng/editeng.hxx> #include <xmloff/autolayout.hxx> #include <tools/debug.hxx> +#include <officecfg/Office/Common.hxx> #include <editeng/editobj.hxx> #include <editeng/editund2.hxx> @@ -154,7 +155,7 @@ OutlineView::~OutlineView() EEControlBits nCntrl = mrOutliner.GetControlWord(); mrOutliner.SetUpdateLayout(false); // otherwise there will be drawn on SetControlWord mrOutliner.SetControlWord(nCntrl & ~EEControlBits::NOCOLORS); - mrOutliner.ForceAutoColor( SvtAccessibilityOptions::GetIsAutomaticFontColor() ); + mrOutliner.ForceAutoColor( officecfg::Office::Common::Accessibility::IsAutomaticFontColor::get() ); mrOutliner.Clear(); } } |