Issue 112684 - cannot obtain high-contrast mode in a pure UNO extension
Summary: cannot obtain high-contrast mode in a pure UNO extension
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: b.osi.ooo
QA Contact: issues@api
URL:
Keywords:
: 81355 (view as issue list)
Depends on:
Blocks:
 
Reported: 2010-06-25 11:55 UTC by Frank Schönheit
Modified: 2013-02-24 21:10 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
document showing how to retrieve the HC setting (11.34 KB, application/vnd.oasis.opendocument.text)
2010-07-06 12:19 UTC, Frank Schönheit
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Frank Schönheit 2010-06-25 11:56:00 UTC
Recently, we switched to the paradigm that we use a (system-wide) flag for
determining whether the application needs to run in high-contrast mode
(previously, this was decided on a per-control basis, examining its background
color, and checking whether it is "dark").

This works fine inside the core native OOo code, but as a pure UNO extension,
there is no chance to ask for this global flag - there's simply no API for it.

Consequently, if you want to create an extension which fulfills Accessibility
requirements, you cannot do this - as you cannot find out about the high
contrast mode, you cannot provide HC-compliant images in your extension's UI,
which would be a requirement for A11Y-compliance.

So, we need a UNO API which allows to query this high-contrast flag.
Comment 1 Frank Schönheit 2010-07-02 09:34:26 UTC
fixed in CWS unoawt2, by introducing an XStyleSettingsSupplier (implemented by
control/peers), giving you access to an XStyleSettings instance.
Comment 2 Frank Schönheit 2010-07-06 12:19:12 UTC
Created attachment 70417 [details]
document showing how to retrieve the HC setting
Comment 3 Frank Schönheit 2010-07-06 12:19:27 UTC
fs->tbo: please verify in CWS unoawt2
Comment 4 b.osi.ooo 2010-07-09 15:52:44 UTC
verified;
Only system this works is win32? I did not find anyother system that has a hc mode;
See also:
http://wiki.services.openoffice.org/wiki/Accessibility_%28A11y%29_Quick_Test_Check_List#High_Contrast
Comment 5 b.osi.ooo 2010-09-07 12:50:04 UTC
.
Comment 6 Ariel Constenla-Haile 2012-12-25 14:04:26 UTC
*** Issue 81355 has been marked as a duplicate of this issue. ***