Viewing file: script.py (2.09 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# Orca # # Copyright 2005-2009 Sun Microsystems Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this library; if not, write to the # Free Software Foundation, Inc., Franklin Street, Fifth Floor, # Boston MA 02110-1301 USA.
"""Custom script for rhythmbox."""
__id__ = "$Id$" __version__ = "$Revision$" __date__ = "$Date$" __copyright__ = "Copyright (c) 2005-2009 Sun Microsystems Inc." __license__ = "LGPL"
import orca.default as default
from speech_generator import SpeechGenerator from braille_generator import BrailleGenerator from formatting import Formatting
class Script(default.Script):
def __init__(self, app): """Creates a new script for the given application.
Arguments: - app: the application to create a script for. """ default.Script.__init__(self, app)
def getBrailleGenerator(self): """Returns the braille generator for this script. """ return BrailleGenerator(self)
def getSpeechGenerator(self): """Returns the speech generator for this script. """ return SpeechGenerator(self)
def getFormatting(self): """Returns the formatting strings for this script.""" return Formatting(self)
def adjustTableCell(self, obj): # Check to see if this is a table cell from the Library table. # If so, it'll have five children and we are interested in the # penultimate one. See bug #512639 for more details. # if obj.childCount == 5: return obj[3] else: return obj
|