https://bugs.freedesktop.org/show_bug.cgi?id=68219
Priority: medium
Bug ID: 68219
Assignee: [email protected]
Summary: Accessibility does not report text attributes from
parent style(s)
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: All
Status: UNCONFIRMED
Version: 4.2.0.0.alpha0+ Master
Component: UI
Product: LibreOffice
Created attachment 84174
--> https://bugs.freedesktop.org/attachment.cgi?id=84174&action=edit
Testing document for reproducing the bug
When using VoiceOver/Orca to speak text attributes, then attributes from the
parent style of current style have no effect.
Steps to reproduce:
1. Open the attached document, AXParentStyleAttributes.odt
2. Launch VoiceOver or Orca, let them read text attributes on each line of text
(VoiceOver - VO+T, Orca - Orca+F)
Actual results:
First and third paragraphs are reported correctly - first paragraph is reported
as fontname "Arial", third paragraph as being "italic".
Second and fourth paragraphs are reported wrongly in some attributes - second
paragraph is reported as having font "Times New Roman", fourth paragraph is not
reported as "italic"
Expected results:
Second paragraph is reported as having font "Arial" (the same as the first
paragraph).
Fourth paragraph is reported as being "italic" (same as the third paragraph).
Regression:
Issue reproduced with VoiceOver on OS X 10.8.4 and LibreOffice 4.2 master
(3a34474db59067073d8c8f91b0173cab3a60850e).
Issue reproduced with Orca (package version 3.8.0-0ubuntu1) on Ubuntu Linux
13.04 32-bit (default installation from CD with no upgrades) and LibreOffice
(package version 4.0.2-0ubuntu1)
I did not attempt to reproduce the issue on Windows at all.
Notes:
If one changes the "Default" font in LibreOffice Preferences/Options >
LibreOffice Writer > Basic Fonts (Western), then this font is reported instead
on paragraph 1 of this example.
If one changes the style of paragraph with the "Heading 1" style into style
"Heading", one gets the correct result of having "Arial" reported as font. So
the issue seems to only affect style attributes that do not originate from the
paragraph style itself, but from its parent paragraph styles (and its parents
recursively).
I have a fix in the works which I will submit for review. In short, SfxItemSet
with the paragraph style attributes should be used in such a way so that
attributes from its parent sets are recursively used.
Thanks to Niklas Johansson for testing this issue and his useful observations
(e.g. the default font).
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs