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 480998 - [to confirm]Insert-f to get text attribute information doesn't work in oocalc unless you are in text entry mode.
[to confirm]Insert-f to get text attribute information doesn't work in oocalc...
Status: RESOLVED NOTGNOME
Product: orca
Classification: Applications
Component: general
unspecified
Other Linux
: Normal major
: ---
Assigned To: Orca Maintainers
Orca Maintainers
http://www.openoffice.org/issues/show...
: 517918 (view as bug list)
Depends on:
Blocks: 404411 523459
 
 
Reported: 2007-09-27 15:51 UTC by Rich Burridge
Modified: 2008-07-22 18:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fruit.ods (9.37 KB, application/vnd.oasis.opendocument.spreadsheet)
2007-09-27 15:52 UTC, Rich Burridge
Details
Orca debug generated whilst running the test case. (89.57 KB, text/plain)
2007-10-05 20:25 UTC, Rich Burridge
Details

Description Rich Burridge 2007-09-27 15:51:39 UTC
Steps to reproduce:

0. Start Orca
1. Start 'oocalc -norestore fruit.ods'    (fruit.ods to be attached).
2. Type Control-Home to position the text caret in cell A1.
3. Press the down arrow to move to cell A2.
4. Type Insert-f to get text attributes on the current cell (A2).
5. Press the right arrow to move to cell B2.
6. Type Insert-f to get text attributes on the current cell (B2).

What you should get at step 4 is:

SPEECH OUTPUT: 'size 16'
SPEECH OUTPUT: 'family-name Arial'
SPEECH OUTPUT: 'bold'
SPEECH OUTPUT: 'style italic'

What you should get at step 6 is:

SPEECH OUTPUT: 'size 10'
SPEECH OUTPUT: 'family-name Arial'

Currently nothing is heard unless you try to replace the current
contents of a spread sheet cell with new text. Then Insert-f works
as expected.

I also got the following printed out at one point after a "successful" 
Insert-f output:

  • File "<string>", line 1 in <module>
  • File "/usr/lib/python2.5/site-packages/orca/orca.py", line 1485 in main
    start(registry) # waits until we stop the registry
  • File "/usr/lib/python2.5/site-packages/orca/orca.py", line 1170 in start
    registry.start()
  • File "/usr/lib/python2.5/site-packages/orca/atspi.py", line 158 in start
    bonobo.main()
  • File "/usr/lib/python2.5/site-packages/orca/focus_tracking_presenter.py", line 838 in _dequeueEvent
    self._processObjectEvent(event)
  • File "/usr/lib/python2.5/site-packages/orca/focus_tracking_presenter.py", line 627 in _processObjectEvent
    s.processObjectEvent(event)
  • File "/usr/lib/python2.5/site-packages/orca/script.py", line 296 in processObjectEvent
    self.listeners[key](event)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 3175 in onMouseButton
    self.updateBraille(orca_state.locusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 2458 in updateBraille
    result = self.brailleGenerator.getBrailleRegions(obj)
  • File "/usr/lib/python2.5/site-packages/orca/braillegenerator.py", line 1518 in getBrailleRegions
    result = generator(obj)
  • File "/usr/lib/python2.5/site-packages/orca/braillegenerator.py", line 829 in _getBrailleRegionsForText
    self._script.getDisplayedLabel(obj),
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 4657 in getDisplayedLabel
    labels = self.findDisplayedLabel(object)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 4631 in findDisplayedLabel
    potentialLabel = parent.child(i)
  • File "/usr/lib/python2.5/site-packages/orca/atspi.py", line 1436 in child
    debug.printStack(debug.LEVEL_WARNING)
  • File "/usr/lib/python2.5/site-packages/orca/debug.py", line 136 in printStack
    traceback.print_stack(None, 100, debugFile)
Child at index 0 is not an Accessible

Comment 1 Rich Burridge 2007-09-27 15:52:21 UTC
Created attachment 96294 [details]
fruit.ods
Comment 2 Rich Burridge 2007-10-05 20:25:33 UTC
Created attachment 96723 [details]
Orca debug generated whilst running the test case.

From the attached debug, we can see that doing an Insert-f when
focus is in cell A2, results in the following debug message 
(at line 1310) in readCharAttributes:

readCharAttributes: default text attributes:

The role of orca_state.locusOfFocus is ROLE_TABLE_CELL

Trying to look at the spreadsheet with Accercizer resulted in it trying
to display at 16 million table cells which locked up my desktop. I had
to Control-Alt-F1, login and reboot.

Printing out orca_state.locusOfFocus.childCount gives a value of 0.

After adding extra debug to readCharAttributes of the form:

            objectText = self.getText(orca_state.locusOfFocus, 0, -1)
            print "objectText: ", objectText

we get:

objectText:  Good in Pies

But

    defAttributes = text.getDefaultAttributes()

is returning an empty string here.

Now I seem to recall some email recently about OOo and text 
attributes.  I know what you're thinking. "Did they change 
the way that text.getDefaultAttributes() works?" Well, to 
tell you the truth, in all this excitement I kind of lost 
track myself. 

Did something change here? The fact that Insert-f still works 
nicely in oowriter suggests that this isn't the problem.

One other thing to note here. If I do an Insert-F7 when the focus is
in table cell A2, I get:

+-name='soffice' role='application' state='' relations=''
  +-name='fruit - OpenOffice.org Calc' role='frame' state='ACTIVE ENABLED RESIZABLE SENSITIVE SHOWING VISIBLE' relations=''
    +-name='fruit - 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='scroll pane' state='ENABLED SENSITIVE SHOWING VISIBLE' relations=''
          +-name='Document view3' role='unknown' state='EDITABLE ENABLED OPAQUE SHOWING VISIBLE' relations=''
            +-name='Sheet Sheet1' role='table' state='EDITABLE ENABLED FOCUSABLE FOCUSED MULTISELECTABLE OPAQUE SELECTABLE SHOWING VISIBLE MANAGES_DESCENDANTS' relations=''
              +-name='Cell A2 ' role='table cell' state='EDITABLE ENABLED MULTI_LINE MULTISELECTABLE RESIZABLE SELECTABLE SHOWING TRANSIENT VISIBLE' relations=''
BRAILLE LINE:  'soffice Application fruit - OpenOffice.org Calc Frame fruit - OpenOffice.org Calc RootPane ScrollPane Document view3 Sheet Sheet1 Table Good in Pies Cell A2 '

If I double click the mouse to make the text editable and then do another
Insert-F7, I get:

+-name='soffice' role='application' state='' relations=''
  +-name='fruit - OpenOffice.org Calc' role='frame' state='ACTIVE ENABLED RESIZABLE SENSITIVE SHOWING VISIBLE' relations=''
    +-name='fruit - 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='scroll pane' state='ENABLED SENSITIVE SHOWING VISIBLE' relations=''
          +-name='Document view3' role='unknown' state='EDITABLE ENABLED OPAQUE SHOWING VISIBLE' relations=''
            +-name='Cell A2' role='panel' state='EDITABLE ENABLED MULTI_LINE MULTISELECTABLE SHOWING VISIBLE' relations=''
              +-name='Paragraph 0' role='paragraph' state='ACTIVE EDITABLE ENABLED FOCUSABLE FOCUSED MULTI_LINE SENSITIVE SHOWING VISIBLE' relations=''

The latter correctly speechs text attribute information.

Suggestions welcome on how best to pursue this one.
Comment 3 Rich Burridge 2007-10-10 15:47:24 UTC
I've opened OOo issue #82480 on this, and blocked this bug.
http://www.openoffice.org/issues/show_bug.cgi?id=82480
Comment 4 Rich Burridge 2008-02-21 18:36:01 UTC
*** Bug 517918 has been marked as a duplicate of this bug. ***
Comment 5 Willie Walker 2008-07-22 18:09:20 UTC
I just tested with OOo-dev 3.0.0 Beta DEV300m25 (Build:9330) on my Solaris box.  The test case works as expected.  Yeah!  Closing.