GNOME Bugzilla – Bug 480998
[to confirm]Insert-f to get text attribute information doesn't work in oocalc unless you are in text entry mode.
Last modified: 2008-07-22 18:09:20 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:
+ Trace 165956
start(registry) # waits until we stop the registry
registry.start()
bonobo.main()
self._processObjectEvent(event)
s.processObjectEvent(event)
self.listeners[key](event)
self.updateBraille(orca_state.locusOfFocus)
result = self.brailleGenerator.getBrailleRegions(obj)
result = generator(obj)
self._script.getDisplayedLabel(obj),
labels = self.findDisplayedLabel(object)
potentialLabel = parent.child(i)
debug.printStack(debug.LEVEL_WARNING)
traceback.print_stack(None, 100, debugFile)
Created attachment 96294 [details] fruit.ods
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.
I've opened OOo issue #82480 on this, and blocked this bug. http://www.openoffice.org/issues/show_bug.cgi?id=82480
*** Bug 517918 has been marked as a duplicate of this bug. ***
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.