~ubuntu-branches/ubuntu/saucy/gnome-orca/saucy-proposed

« back to all changes in this revision

Viewing changes to src/orca/scripts/apps/soffice/script.py

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich
  • Date: 2013-02-08 10:32:41 UTC
  • mfrom: (0.12.7)
  • Revision ID: package-import@ubuntu.com-20130208103241-fs030z0wasvhfpc7
Tags: 3.7.5-0ubuntu1
* New upstream release
  - New Feature
    + Structural navigation objects are now navigable by "list of" dialogs
  - Bug Fixes
    + Much better handling of egg-list-box for the new panels in
      gnome-control-center
    + Fix for bug 693159 - Orca doesnt echo words in gnome-terminal
    + Do not attempt to store an AtspiTable in a dictionary (fixes the
      presentation of cells when navigating in LibreOffice Calc)
  - New and updated translations (THANKS EVERYONE!!!):
    + bg            Bulgarian             Alexander Shopov
    + eu            Basque                Inaki Larranaga Murgoitio
    + nb            Norwegian bokmål      Kjartan Maraas
    + ne            Nepali                Him Prasad Gautam
    + pl            Polish                Piotr Drąg
    + sr            Serbian               Мирослав Николић
    + sr@latin      Serbian               Miroslav Nikolić
    + ug            Uyghur                Sahran, Gheyret Kenji

Show diffs side-by-side

added added

removed removed

Lines of Context:
525
525
        isn't in a table.
526
526
        """
527
527
 
528
 
        table = None
529
528
        obj = self.adjustForWriterTable(obj)
530
529
        if obj.getRole() == pyatspi.ROLE_TABLE_CELL and obj.parent:
531
530
            try:
532
 
                table = obj.parent.queryTable()
 
531
                obj.parent.queryTable()
533
532
            except NotImplementedError:
534
 
                pass
 
533
                return None
535
534
 
536
 
        return table
 
535
        return obj.parent
537
536
 
538
537
    def getDynamicColumnHeaderCell(self, obj, column):
539
538
        """Given a table cell, return the dynamic column header cell
955
954
        table = self.getTable(orca_state.locusOfFocus)
956
955
        if table:
957
956
            row = self.getTableRow(orca_state.locusOfFocus)
958
 
            self.dynamicColumnHeaders[table] = row
 
957
            self.dynamicColumnHeaders[hash(table)] = row
959
958
            # Translators: Orca allows you to dynamically define which
960
959
            # row of a spreadsheet or table counts as column headers.
961
960
            #
977
976
        if table:
978
977
            row = self.getTableRow(orca_state.locusOfFocus)
979
978
            try:
980
 
                del self.dynamicColumnHeaders[table]
 
979
                del self.dynamicColumnHeaders[hash(table)]
981
980
                # Translators: Orca allows you to dynamically define which
982
981
                # row of a spreadsheet or table counts as column headers.
983
982
                #
1029
1028
        table = self.getTable(orca_state.locusOfFocus)
1030
1029
        if table:
1031
1030
            column = self.getTableColumn(orca_state.locusOfFocus)
1032
 
            self.dynamicRowHeaders[table] = column
 
1031
            self.dynamicRowHeaders[hash(table)] = column
1033
1032
            # Translators: Orca allows you to dynamically define which
1034
1033
            # column of a spreadsheet or table counts as row headers.
1035
1034
            #
1052
1051
        if table:
1053
1052
            column = self.getTableColumn(orca_state.locusOfFocus)
1054
1053
            try:
1055
 
                del self.dynamicRowHeaders[table]
 
1054
                del self.dynamicRowHeaders[hash(table)]
1056
1055
                # Translators: Orca allows you to dynamically define which
1057
1056
                # column of a spreadsheet or table counts as row headers.
1058
1057
                #