After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 364407 - Shift+Ctrl+T in OOCalc results in very verbose output
Shift+Ctrl+T in OOCalc results in very verbose output
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.17.x
Other All
: Normal normal
: ---
Assigned To: Rich Burridge
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-10-23 12:32 UTC by Willie Walker
Modified: 2006-11-16 15:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Orca debug output whilst recreating this problem. (104.42 KB, text/plain)
2006-10-23 20:31 UTC, Rich Burridge
  Details
Patch to hopefully work around the problem. (5.88 KB, patch)
2006-11-15 22:25 UTC, Rich Burridge
none Details | Review

Description Willie Walker 2006-10-23 12:32:18 UTC
In OOCalc, Shift+Ctrl+T takes you to the cell locator (for lack of a better name -- it's the thing that tells you what cell you are in or what cell range is selected) in the upper left corner of the window.  When you do this, Orca speaks loads and loads of information about this widget.  I'll leave it to Mike to spec this one out, but I'd surmise it should only say the contents.
Comment 1 Rich Burridge 2006-10-23 20:31:05 UTC
Created attachment 75263 [details]
Orca debug output whilst recreating this problem.

Speech output for me (as scalc first comes up):

SPEECH OUTPUT: 'text A1'
SPEECH OUTPUT: ''
SPEECH OUTPUT: 'text A1'
SPEECH OUTPUT: 'A1 combo box'
SPEECH OUTPUT: ''
SPEECH OUTPUT: 'Displays the reference for the current cell, the range of the selected cells, or the name of the area. You can also select a range of cells, and then type a name for that range into the Name Box. list'
SPEECH OUTPUT: 'A1 combo box'
SPEECH OUTPUT: 'Displays the reference for the current cell, the range of the selected cells, or the name of the area. You can also select a range of cells, and then type a name for that range into the Name Box. list'
Comment 2 Rich Burridge 2006-10-27 17:19:28 UTC
From the attached debug.out, there are two events that are causing
this verbose output:

1/ At line 1772:

vvvvv PROCESS OBJECT EVENT object:state-changed:focused vvvvv
OBJECT EVENT: object:state-changed:focused             detail=(1,0)
    app.name='soffice.bin'        name=None role='list' state='ENABLED FOCUSABLE SENSITIVE MANAGES_DESCENDANTS' relations=''

2/ At line 1879:

vvvvv PROCESS OBJECT EVENT focus: vvvvv
OBJECT EVENT: focus:                                   detail=(0,0)
    app.name='soffice.bin'        name=None role='list' state='ENABLED FOCUSABLE FOCUSED SENSITIVE MANAGES_DESCENDANTS' relations=''

The reason why this is so verbose is that the *name* of this widget is:

"Displays the reference for the current cell, the range of the selected
 cells, or the name of the area. You can also select a range of cells,
 and then type a name for that range into the Name Box."

That's not a name. It's a description. I'll file another bug against
scalc and block this one.

At for speaking it twice.

We can script around this in the StarOffice.py script. There are other
similar problems because of these "object:state-changed:focused" which we
now handle in onStateChanged() (see bug #365329 for example).

Perhaps we need to ignore all "object:state-changed:focused" events in
StarOffice.py...

Thoughts?
Comment 3 Rich Burridge 2006-10-27 17:27:49 UTC
I've filed OOo issue #70955
http://www.openoffice.org/issues/show_bug.cgi?id=70955
against this problem, and adjusted the summary of this bug 
to indicate that it's blocked.

(Although we can still do something about the speaking of the
"object:state-changed:focused" event).
Comment 4 Rich Burridge 2006-11-15 02:19:12 UTC
We should be able to script around this.

The component hierarchy when the focus is in the Name Box in scalc is:

+-name='soffice.bin' role='application' state='' relations=''
  +-name='Untitled1 - OpenOffice.org Calc' role='frame' state='ACTIVE ENABLED RESIZABLE SENSITIVE SHOWING VISIBLE' relations=''
    +-name='Untitled1 - OpenOffice.org Calc' role='root pane' state='ENABLED SENSITIVE SHOWING VISIBLE' relations=''
      +-name=None role='panel' state='ENABLED SENSITIVE SHOWING VISIBLE' relations=''
        +-name=None role='tool bar' state='ENABLED FOCUSABLE HORIZONTAL SENSITIVE SHOWING VISIBLE' relations=''
          +-name=None role='combo box' state='ENABLED SENSITIVE SHOWING VISIBLE' relations=''
            +-name=None role='list' state='ENABLED FOCUSABLE FOCUSED SENSITIVE MANAGES_DESCENDANTS' relations=''

There is another check we are going to have to make for uniqueness:

* That the name of the list item is None. There is one other list/combo box
  in scalc, but that has a name. There are three list/combo boxes in swriter,
  but they all have names.

More tomorrow.

Comment 5 Rich Burridge 2006-11-15 17:42:36 UTC
Upon further investigation, this is starting to get really ugly. 

When focus is given to the Calc Name box, we are getting all
of the following events (with five different component hierarchies):

--------------------------------------------------------------------------
OBJECT EVENT: object:state-changed:focused             detail=(1,0)
             app.name='soffice.bin'        name=None role='text' state='EDITABLE ENABLED FOCUSABLE FOCUSED SENSITIVE SHOWING SINGLE_LINE VISIBLE' relations=''

[text, combo box, panel, tool bar, panel, root pane, frame, application]
Hierarchy #1.

--------------------------------------------------------------------------
OBJECT EVENT: object:state-changed:focused             detail=(1,0)
             app.name='soffice.bin'        name=None role='text' state='EDITABLE ENABLED FOCUSABLE FOCUSED SENSITIVE SHOWING SINGLE_LINE VISIBLE' relations=''

[text, combo box, panel, tool bar, panel, root pane, frame, application]
Hierarchy #1.

--------------------------------------------------------------------------
OBJECT EVENT: object:state-changed:focused             detail=(1,0)
             app.name='soffice.bin'        name=None role='combo box' state='ENABLED SENSITIVE SHOWING VISIBLE' relations=''

[combo box, panel, tool bar, panel, root pane, frame, application]
Hierarchy #2.

--------------------------------------------------------------------------
OBJECT EVENT: object:state-changed:focused             detail=(1,0)
             app.name='soffice.bin'        name=None role='combo box' state='ENABLED SENSITIVE SHOWING VISIBLE' relations=''

[combo box, tool bar, panel, root pane, frame, application]
Hierarchy #3.

--------------------------------------------------------------------------
OBJECT EVENT: object:state-changed:focused             detail=(1,0)
             app.name='soffice.bin'        name=None role='combo box' state='ENABLED SENSITIVE SHOWING VISIBLE' relations=''

[combo box, tool bar, panel, root pane, frame, application]
Hierarchy #3.

--------------------------------------------------------------------------
OBJECT EVENT: object:state-changed:focused             detail=(1,0)
             app.name='soffice.bin'        name=None role='list' state='ENABLED
FOCUSABLE SENSITIVE MANAGES_DESCENDANTS' relations=''

[list, combo box, panel, tool bar, panel, root pane, frame, application]
Hierarchy #4.

--------------------------------------------------------------------------
OBJECT EVENT: object:state-changed:focused             detail=(1,0)
             app.name='soffice.bin'        name=None role='list' state='ENABLED
FOCUSABLE FOCUSED SENSITIVE MANAGES_DESCENDANTS' relations=''

[list, combo box, tool bar, panel, root pane, frame, application]
Hierarchy #5.

--------------------------------------------------------------------------
OBJECT EVENT: object:state-changed:focused             detail=(1,0)
             app.name='soffice.bin'        name=None role='list' state='ENABLED
FOCUSABLE SENSITIVE MANAGES_DESCENDANTS' relations=''

[list, combo box, tool bar, panel, root pane, frame, application]
Hierarchy #5.

--------------------------------------------------------------------------
OBJECT EVENT: focus:                                   detail=(0,0)
             app.name='soffice.bin'        name=None role='list' state='ENABLED
FOCUSABLE FOCUSED SENSITIVE MANAGES_DESCENDANTS' relations=''

[list, combo box, tool bar, panel, root pane, frame, application]
Hierarchy #5.

--------------------------------------------------------------------------

In this case, what we probably want to do is ignore the various
"object:state-changed:focused" events and just present the "focus:"
event.

Comment 6 Rich Burridge 2006-11-15 22:25:45 UTC
Created attachment 76686 [details] [review]
Patch to hopefully work around the problem.
Comment 7 Rich Burridge 2006-11-15 22:28:38 UTC
Changes checked into CVS HEAD. Removing "[blocked]" from the Summary.
Please let me know if this works for you. If so, I'll close it as FIXED. 
Thanks.
Comment 8 Willie Walker 2006-11-16 14:30:41 UTC
Looks like it solves the problem.  Thanks!  :-)
Comment 9 Rich Burridge 2006-11-16 15:56:34 UTC
Thanks Will. Closing as FIXED. We are monitoring the OOo issue in
our bugs.html so that hopefully won't be lost.