Apache OpenOffice (AOO) Bugzilla – Issue 32838
incorrect coordinates for text exposed via text interface for push buttons
Last modified: 2005-02-08 07:25:42 UTC
If a button from toolbar is quered for coordinates for every character exposed via its text interface it will retur wrong coordinate. More, it will return same character for all positions. Ex: for (i = 0; i < getCharCount(text); i++) { gchar *ch = getText (text, i, i+1); long x, y, w, h; getCoord (text, i, &x, &y, &w, &h); fprintf (stderr, "\n%s (%d-%d)-(%d-%d)", ch, x, y, w, h); } will display (for "New" button) N (3-7)-(3,7) N (3-7)-(3,7) N (3-7)-(3,7)
This is cause of bug http://bugzilla.gnome.org/show_bug.cgi?id=149602.
Ralf -> Remus: Can you please provide us with a test case or a small test program so that we're able to reproduce it here? Thanks.
Created attachment 17089 [details] a simple tester
Created attachment 17090 [details] and its results
Ralf -> Remus: Ii's not possiblefor me to build it on my machine. Could you please provide a binary for JDS? Thanks.
Created attachment 17127 [details] binary for the tester
I think we have 3 different issues here: 1. AccessibleText should only be exposed if the toolbars items contain visible text. But even when switching to Tools - Configure - Toolbars - Contents - Text the returned results are not as expected, because 2. getCharacterBounds() always returns (0,0,0,0) regardsless of the display mode the toolbar items are in and finally 3. the getText() implementation of the gnome-java-bridge does not work well with StarOffice.
The 3rd issue is a gnome-java-bridge issue, and I have reopened http://bugzilla.gnome.org/show_bug.cgi?id=149602 for that. However we need to do something about #1 and #2. Target as suggested by MD for now, but the issue may become a JDS stopper and thus 1.1.x relevant.
#1: queryInterface() will consider the toolbox style (symbol, text or both) and will disable XAccessibleText for symbol style. #2: getCharacterBounds() works correctly if the toolbox style is "Text" or "Symbol and Text"
#1 is fixed in cws os36.
.
pb -> obr: please can you (or do you know someone who can) verify this. You will find an instset for linux on /cws/so-cwsserv06/os36/unxlngi5.pro/en-us/office/normal Thank you.
Eric, this should fix the "11 empty lines" problem in gnopernicus' flat review mode. Could you please verify this ? Thanks.
Restoring FIXED state.
Verified in cws os36 but issue 34747 and issue i34751 have been found which have been at first preventing from testing this fix.
closed