orca r3570 - in trunk: . src/orca/scripts



Author: richb
Date: Tue Feb 12 23:06:28 2008
New Revision: 3570
URL: http://svn.gnome.org/viewvc/orca?rev=3570&view=rev

Log:
        * src/orca/scripts/StarOffice.py:
          Further work on bug #515651 - Navigation of cells in oocalc now says
          "not selected". We now need to save the 'lastColumn' and 'lastRow'
          values in case #6 of locusOfFocusChanged() in StarOffice.py.


Modified:
   trunk/ChangeLog
   trunk/src/orca/scripts/StarOffice.py

Modified: trunk/src/orca/scripts/StarOffice.py
==============================================================================
--- trunk/src/orca/scripts/StarOffice.py	(original)
+++ trunk/src/orca/scripts/StarOffice.py	Tue Feb 12 23:06:28 2008
@@ -2109,6 +2109,21 @@
                 utterances = self.speechGenerator.getSpeech(newLocusOfFocus,
                                                             False)
                 speech.speakUtterances(utterances)
+
+                # Save the current row and column information in the table
+                # cell's table, so that we can use it the next time.
+                #
+                try:
+                    table = newLocusOfFocus.parent.queryTable()
+                except:
+                    pass
+                else:
+                    column = table.getColumnAtIndex( \
+                                    newLocusOfFocus.getIndexInParent())
+                    self.pointOfReference['lastColumn'] = column
+                    row = table.getRowAtIndex( \
+                                    newLocusOfFocus.getIndexInParent())
+                    self.pointOfReference['lastRow'] = row
                 return
 
         # Pass the event onto the parent class to be handled in the default way.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]