summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-06-06 11:20:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-06-06 19:32:38 +0200
commit1527fa8435ef415678b2e4a6972f5e378ee5cab1 (patch)
tree2d6a79258db4f4c71ac0c971d0958bf32b867ba5 /svx
parent6fc8a48691bfa011c8b09e560196c5d3b98fdb76 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/contact/objectcontactofpageview.cxx8
-rw-r--r--svx/source/svdraw/svdedxv.cxx3
2 files changed, 3 insertions, 8 deletions
diff --git a/svx/source/sdr/contact/objectcontactofpageview.cxx b/svx/source/sdr/contact/objectcontactofpageview.cxx
index 26c295472e0b..ce0ca6463370 100644
--- a/svx/source/sdr/contact/objectcontactofpageview.cxx
+++ b/svx/source/sdr/contact/objectcontactofpageview.cxx
@@ -343,9 +343,7 @@ namespace sdr::contact
{
if (utl::ConfigManager::IsFuzzing())
return true;
- SdrView& rView = GetPageWindow().GetPageView().GetView();
- const SvtAccessibilityOptions& rOpt = rView.getAccessibilityOptions();
- return rOpt.GetIsAllowAnimatedText();
+ return SvtAccessibilityOptions::GetIsAllowAnimatedText();
}
// check if graphic animation is allowed.
@@ -353,9 +351,7 @@ namespace sdr::contact
{
if (utl::ConfigManager::IsFuzzing())
return true;
- SdrView& rView = GetPageWindow().GetPageView().GetView();
- const SvtAccessibilityOptions& rOpt = rView.getAccessibilityOptions();
- return rOpt.GetIsAllowAnimatedGraphics();
+ return SvtAccessibilityOptions::GetIsAllowAnimatedGraphics();
}
// print?
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index 5a996b5721ed..ae19c26496f3 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -1311,8 +1311,7 @@ bool SdrObjEditView::SdrBeginTextEdit(SdrObject* pObj_, SdrPageView* pPV, vcl::W
= SdrMakeOutliner(OutlinerMode::TextObject, pObj->getSdrModelFromSdrObject());
{
- SvtAccessibilityOptions aOptions;
- mpTextEditOutliner->ForceAutoColor(aOptions.GetIsAutomaticFontColor());
+ mpTextEditOutliner->ForceAutoColor(SvtAccessibilityOptions::GetIsAutomaticFontColor());
}
aOldCalcFieldValueLink = mpTextEditOutliner->GetCalcFieldValueHdl();