Apache OpenOffice (AOO) Bugzilla – Issue 112684
cannot obtain high-contrast mode in a pure UNO extension
Last modified: 2013-02-24 21:10: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.
fixed in CWS unoawt2, by introducing an XStyleSettingsSupplier (implemented by control/peers), giving you access to an XStyleSettings instance.
Created attachment 70417 [details] document showing how to retrieve the HC setting
fs->tbo: please verify in CWS unoawt2
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
.
*** Issue 81355 has been marked as a duplicate of this issue. ***