summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/text
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2012-11-07 22:30:33 +0100
committerXisco Fauli <anistenis@gmail.com>2012-11-08 07:42:28 +0100
commita434b93b25c6aa652b925a8aaba1e3e0ec6986a9 (patch)
treef9557e809bbef71609cd223e1519ae68896289c1 /wizards/com/sun/star/wizards/text
parent1d615feed25842544a5ab3ae4265dc9c2de6f107 (diff)
pyagenda: better refactor it little by little
Change-Id: I002a8e27139243172deb2868fdf2fca32944be03
Diffstat (limited to 'wizards/com/sun/star/wizards/text')
-rw-r--r--wizards/com/sun/star/wizards/text/TextDocument.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/text/TextDocument.py b/wizards/com/sun/star/wizards/text/TextDocument.py
index 0198d6d13735..5889f2c76e94 100644
--- a/wizards/com/sun/star/wizards/text/TextDocument.py
+++ b/wizards/com/sun/star/wizards/text/TextDocument.py
@@ -250,4 +250,9 @@ class TextDocument(object):
sd.setPropertyValue("SearchRegularExpression", True)
sd.setPropertyValue("SearchWords", True)
- return self.xTextDocument.findAll(sd)
+ auxList = []
+ allItems = self.xTextDocument.findAll(sd)
+ for i in xrange(allItems.Count):
+ auxList.append(allItems.getByIndex(i))
+
+ return auxList