20
20
"""Provides support for a flat review find."""
22
__id__ = "$Id: find.py 1774 2006-12-02 23:45:12Z richb $"
23
__version__ = "$Revision: 1774 $"
24
__date__ = "$Date: 2006-12-02 18:45:12 -0500 (Sat, 02 Dec 2006) $"
22
__id__ = "$Id: find.py 2234 2007-04-02 18:36:08Z wwalker $"
23
__version__ = "$Revision: 2234 $"
24
__date__ = "$Date: 2007-04-02 14:36:08 -0400 (Mon, 02 Apr 2007) $"
25
25
__copyright__ = "Copyright (c) 2005-2006 Sun Microsystems Inc."
26
26
__license__ = "LGPL"
244
244
doneWithLine = False
245
245
wrappedYet = True
246
246
if self.searchBackwards:
247
# Translators: the Orca "Find" dialog
248
# allows a user to search for text in a
249
# window and then move focus to that text.
250
# For example, they may want to find the
251
# "OK" button. This message indicates
252
# that a find operation in the reverse
253
# direction is wrapping from the top of
254
# the window down to the bottom.
247
256
speech.speak(_("Wrapping to Bottom"))
248
257
moved = context.goPrevious( \
249
258
flat_review.Context.LINE, \
250
259
flat_review.Context.WRAP_ALL)
251
260
self.debugContext(context, "[3] go previous")
262
# Translators: the Orca "Find" dialog
263
# allows a user to search for text in a
264
# window and then move focus to that text.
265
# For example, they may want to find the
266
# "OK" button. This message indicates
267
# that a find operation in the forward
268
# direction is wrapping from the bottom of
269
# the window up to the top.
253
271
speech.speak(_("Wrapping to Top"))
254
272
moved = context.goNext( \
255
273
flat_review.Context.LINE, \