[orca/570658] Move _generateCurrentLine text to generator.py for speech/braille sharing
- From: William Walker <wwalker src gnome org>
- To: svn-commits-list gnome org
- Subject: [orca/570658] Move _generateCurrentLine text to generator.py for speech/braille sharing
- Date: Tue, 30 Jun 2009 18:13:05 +0000 (UTC)
commit 2c06ad4756f4f863c1e3933ef2169119a92d0f2c
Author: Willie Walker <william walker sun com>
Date: Tue Jun 30 13:52:45 2009 -0400
Move _generateCurrentLine text to generator.py for speech/braille sharing
src/orca/generator.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/generator.py b/src/orca/generator.py
index a504a87..e502693 100644
--- a/src/orca/generator.py
+++ b/src/orca/generator.py
@@ -854,6 +854,15 @@ class Generator:
# #
#####################################################################
+ def _generateCurrentLineText(self, obj, **args ):
+ """Returns an array of strings for use by speech and braille
+ that represents the current line of text, if
+ this is a text object. [[[WDW - consider returning an empty
+ array if this is not a text object.]]]
+ """
+ [text, caretOffset, startOffset] = self._script.getTextLineAtCaret(obj)
+ return [text]
+
def _generateDisplayedText(self, obj, **args ):
"""Returns an array of strings for use by speech and braille that
represents all the text being displayed by the object. [[[WDW
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]