summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/fax/FaxDocument.py
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2011-06-21 16:14:25 +0200
committerXisco Fauli <anistenis@gmail.com>2011-06-21 16:14:25 +0200
commitc4179c019dc94f3be5c5b356a3a5243783caf0ec (patch)
tree005f43e9ca9b7c9260d60b4daaf679fbeb55b32c /wizards/com/sun/star/wizards/fax/FaxDocument.py
parentc0640042562fb92681925e9dddc90fa51997cdc2 (diff)
Replace some uno.invoke(now it loads faster)
Diffstat (limited to 'wizards/com/sun/star/wizards/fax/FaxDocument.py')
-rw-r--r--wizards/com/sun/star/wizards/fax/FaxDocument.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/fax/FaxDocument.py b/wizards/com/sun/star/wizards/fax/FaxDocument.py
index 581b8e7ee80f..a744a7cd340b 100644
--- a/wizards/com/sun/star/wizards/fax/FaxDocument.py
+++ b/wizards/com/sun/star/wizards/fax/FaxDocument.py
@@ -1,4 +1,3 @@
-import uno
from text.TextDocument import *
from text.TextSectionHandler import TextSectionHandler
from text.TextFieldHandler import TextFieldHandler
@@ -24,7 +23,7 @@ class FaxDocument(TextDocument):
self.xTextDocument)
oSection = \
mySectionHandler.xTextDocument.TextSections.getByName(sElement)
- Helper.setUnoPropertyValue(oSection, "IsVisible", bState)
+ Helper.setUnoPropertyValue(oSection,"IsVisible",bState)
except Exception, exception:
traceback.print_exc()
@@ -57,8 +56,7 @@ class FaxDocument(TextDocument):
xPageNumberField = self.xTextDocument.createInstance(
"com.sun.star.text.TextField.PageNumber")
xPageNumberField.setPropertyValue("SubType", CURRENT)
- uno.invoke(xPageNumberField, "setPropertyValue",
- ("NumberingType", uno.Any("short",ARABIC)))
+ xPageNumberField.NumberingType = ARABIC
xFooterText.insertTextContent(xFooterText.End,
xPageNumberField, False)
else: