From 90018d327e9a41085585519a704f9fa07953cbf3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 14 Jun 2016 21:31:21 +0100 Subject: Related: tdf#90480 explain in the font color dialog why colors aren't used... if the a11y option "Use automatic font color for screen display" is active. I guess we could go to town and have a button to zoom to that option or to directly disable it, but I've never encountered this problem before so surely it isn't that common that we need to immediately do that. Change-Id: Id19cac56591829f5644a8ac66c3d873c77e152f8 --- cui/source/inc/chardlg.hxx | 2 ++ cui/source/tabpages/chardlg.cxx | 5 +++++ cui/uiconfig/ui/effectspage.ui | 39 ++++++++++++++++++++++++++++----------- 3 files changed, 35 insertions(+), 11 deletions(-) (limited to 'cui') diff --git a/cui/source/inc/chardlg.hxx b/cui/source/inc/chardlg.hxx index 5b115c1d28c2..0f94ede6a940 100644 --- a/cui/source/inc/chardlg.hxx +++ b/cui/source/inc/chardlg.hxx @@ -207,6 +207,8 @@ private: VclPtr m_pPositionFT; VclPtr m_pPositionLB; + VclPtr m_pA11yWarningFT; + sal_uInt16 m_nHtmlMode; OUString m_aTransparentColorName; diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx index 1edfee5c5d9d..3ee76c571dae 100644 --- a/cui/source/tabpages/chardlg.cxx +++ b/cui/source/tabpages/chardlg.cxx @@ -66,6 +66,7 @@ #include #include #include +#include #include #include #include @@ -1371,6 +1372,7 @@ SvxCharEffectsPage::SvxCharEffectsPage( vcl::Window* pParent, const SfxItemSet& get(m_pEmphasisLB, "emphasislb"); get(m_pPositionFT, "positionft"); get(m_pPositionLB, "positionlb"); + get(m_pA11yWarningFT, "a11ywarning"); get(m_pPreviewWin, "preview"); Initialize(); @@ -1405,6 +1407,7 @@ void SvxCharEffectsPage::dispose() m_pEmphasisLB.clear(); m_pPositionFT.clear(); m_pPositionLB.clear(); + m_pA11yWarningFT.clear(); SvxCharBasePage::dispose(); } @@ -1507,6 +1510,8 @@ void SvxCharEffectsPage::Initialize() m_pPositionFT->Hide(); m_pPositionLB->Hide(); } + + m_pA11yWarningFT->Show(officecfg::Office::Common::Accessibility::IsAutomaticFontColor::get()); } void SvxCharEffectsPage::UpdatePreview_Impl() diff --git a/cui/uiconfig/ui/effectspage.ui b/cui/uiconfig/ui/effectspage.ui index 62fd90f887e4..ae64cf04228f 100644 --- a/cui/uiconfig/ui/effectspage.ui +++ b/cui/uiconfig/ui/effectspage.ui @@ -1,5 +1,5 @@ - + @@ -215,8 +215,8 @@ True False - 0 Font color: + 0 0 @@ -227,8 +227,8 @@ True False - 0 Effects: + 0 0 @@ -239,8 +239,8 @@ True False - 0 Relief: + 0 0 @@ -251,8 +251,8 @@ True False - 0 Overlining: + 0 2 @@ -263,8 +263,8 @@ True False - 0 Strikethrough: + 0 2 @@ -275,8 +275,8 @@ True False - 0 Underlining: + 0 2 @@ -287,8 +287,8 @@ True False - 0 Overline color: + 0 3 @@ -299,8 +299,8 @@ True False - 0 Underline color: + 0 3 @@ -477,8 +477,8 @@ True False - 0 Position: + 0 3 @@ -489,8 +489,8 @@ True False - 0 Emphasis mark: + 0 2 @@ -536,6 +536,23 @@ 10 + + + False + Accessibility option "Use automatic font color for screen display" is active. Font color attributes are not currently used to display text. + True + 50 + 0 + + + + + + 0 + 10 + 5 + + -- cgit v1.2.3