23#include <officecfg/Office/Common.hxx>
27 :
SfxTabPage(pPage, pController,
"cui/ui/optaccessibilitypage.ui",
"OptAccessibilityPage", &
rSet)
28 , m_xAccessibilityTool(m_xBuilder->weld_check_button(
"acctool"))
29 , m_xTextSelectionInReadonly(m_xBuilder->weld_check_button(
"textselinreadonly"))
30 , m_xAnimatedGraphics(m_xBuilder->weld_check_button(
"animatedgraphics"))
31 , m_xAnimatedTexts(m_xBuilder->weld_check_button(
"animatedtext"))
32 , m_xHighContrast(m_xBuilder->weld_combo_box(
"highcontrast"))
33 , m_xAutomaticFontColor(m_xBuilder->weld_check_button(
"autofontcolor"))
34 , m_xPagePreviews(m_xBuilder->weld_check_button(
"systempagepreviewcolor"))
48 return std::make_unique<SvxAccessibilityOptionsTabPage>(pPage, pController, *rAttrSet);
54 if ( !officecfg::Office::Common::Accessibility::IsForPagePreviews::isReadOnly() )
55 officecfg::Office::Common::Accessibility::IsForPagePreviews::set(
m_xPagePreviews->get_active(), batch);
56 if ( !officecfg::Office::Common::Accessibility::IsAllowAnimatedGraphics::isReadOnly() )
57 officecfg::Office::Common::Accessibility::IsAllowAnimatedGraphics::set(
m_xAnimatedGraphics->get_active(), batch);
58 if ( !officecfg::Office::Common::Accessibility::IsAllowAnimatedText::isReadOnly() )
59 officecfg::Office::Common::Accessibility::IsAllowAnimatedText::set(
m_xAnimatedTexts->get_active(), batch);
60 if ( !officecfg::Office::Common::Accessibility::IsAutomaticFontColor::isReadOnly() )
61 officecfg::Office::Common::Accessibility::IsAutomaticFontColor::set(
m_xAutomaticFontColor->get_active(), batch);
62 if ( !officecfg::Office::Common::Accessibility::IsSelectionInReadonly::isReadOnly() )
64 if ( !officecfg::Office::Common::Accessibility::HighContrast::isReadOnly() )
65 officecfg::Office::Common::Accessibility::HighContrast::set(
m_xHighContrast->get_active(), batch);
82 m_xPagePreviews->set_active( officecfg::Office::Common::Accessibility::IsForPagePreviews::get() );
83 if( officecfg::Office::Common::Accessibility::IsForPagePreviews::isReadOnly() )
86 m_xAnimatedGraphics->set_active( officecfg::Office::Common::Accessibility::IsAllowAnimatedGraphics::get() );
87 if( officecfg::Office::Common::Accessibility::IsAllowAnimatedGraphics::isReadOnly() )
90 m_xAnimatedTexts->set_active( officecfg::Office::Common::Accessibility::IsAllowAnimatedText::get() );
91 if( officecfg::Office::Common::Accessibility::IsAllowAnimatedText::isReadOnly() )
94 m_xAutomaticFontColor->set_active( officecfg::Office::Common::Accessibility::IsAutomaticFontColor::get() );
95 if( officecfg::Office::Common::Accessibility::IsAutomaticFontColor::isReadOnly() )
99 if( officecfg::Office::Common::Accessibility::IsSelectionInReadonly::isReadOnly() )
102 m_xHighContrast->set_active( officecfg::Office::Common::Accessibility::HighContrast::get() );
103 if( officecfg::Office::Common::Accessibility::HighContrast::isReadOnly() )
void SetMiscSettings(const MiscSettings &rSet)
const MiscSettings & GetMiscSettings() const
static void MergeSystemSettings(AllSettings &rSettings)
static const AllSettings & GetSettings()
static void SetSettings(const AllSettings &rSettings)
bool GetEnableATToolSupport() const
std::unique_ptr< weld::CheckButton > m_xAnimatedTexts
virtual void Reset(const SfxItemSet *rSet) override
std::unique_ptr< weld::CheckButton > m_xPagePreviews
virtual ~SvxAccessibilityOptionsTabPage() override
std::unique_ptr< weld::ComboBox > m_xHighContrast
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
std::unique_ptr< weld::CheckButton > m_xAnimatedGraphics
virtual bool FillItemSet(SfxItemSet *rSet) override
SvxAccessibilityOptionsTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
std::unique_ptr< weld::CheckButton > m_xAccessibilityTool
std::unique_ptr< weld::CheckButton > m_xAutomaticFontColor
std::unique_ptr< weld::CheckButton > m_xTextSelectionInReadonly
static std::shared_ptr< ConfigurationChanges > create()