summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/fax/FaxDocument.py
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2012-09-27 22:12:21 +0200
committerXisco Fauli <anistenis@gmail.com>2012-09-27 22:14:06 +0200
commit74e4137cf89d3e1e8b73853702636e3ff70a3b4e (patch)
tree116a0ad9efd8a975740049d32f4904705834eec1 /wizards/com/sun/star/wizards/fax/FaxDocument.py
parent0e66cce3a146023fe3509217d32223ba162150b7 (diff)
pyfax: Translate the template at run-time
Change-Id: Ied94eaeb33dcfab582ac1d4702b736cf81c5d7ca
Diffstat (limited to 'wizards/com/sun/star/wizards/fax/FaxDocument.py')
-rw-r--r--wizards/com/sun/star/wizards/fax/FaxDocument.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/fax/FaxDocument.py b/wizards/com/sun/star/wizards/fax/FaxDocument.py
index 95072de8266f..f86a3f5ba981 100644
--- a/wizards/com/sun/star/wizards/fax/FaxDocument.py
+++ b/wizards/com/sun/star/wizards/fax/FaxDocument.py
@@ -15,9 +15,9 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-
-from ..text.TextDocument import TextDocument, traceback, Helper,\
- TextFieldHandler, Configuration
+from ..text.TextDocument import *
+ #TextDocument, traceback, Helper,\
+ #TextFieldHandler, Configuration
from ..text.TextSectionHandler import TextSectionHandler
from ..common.PropertyNames import PropertyNames
@@ -51,8 +51,8 @@ class FaxDocument(TextDocument):
def switchFooter(self, sPageStyle, bState, bPageNumber, sText):
if TextDocument.xTextDocument is not None:
- TextDocument.xTextDocument.lockControllers()
try:
+ TextDocument.xTextDocument.lockControllers()
xPageStyleCollection = \
TextDocument.xTextDocument.StyleFamilies.getByName("PageStyles")
xPageStyle = xPageStyleCollection.getByName(sPageStyle)
@@ -84,6 +84,7 @@ class FaxDocument(TextDocument):
TextDocument.xTextDocument.unlockControllers()
except Exception:
+ TextDocument.xTextDocument.lockControllers()
traceback.print_exc()
def hasElement(self, sElement):