summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/document
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2011-06-17 18:28:23 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-18 02:13:21 +0200
commit7a3171c6a89067917a3b051ef9cf25a7fd70cddc (patch)
treefa663ec28cbe9bff869eef620654ca455eb4273d /wizards/com/sun/star/wizards/document
parent8fa2b59f96951165fd26b98e3e1138122ffd331b (diff)
Let's delete it for now and see if we need it in the future
Diffstat (limited to 'wizards/com/sun/star/wizards/document')
-rw-r--r--wizards/com/sun/star/wizards/document/OfficeDocument.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.py b/wizards/com/sun/star/wizards/document/OfficeDocument.py
index fe6a81128dfb..f67c3795980c 100644
--- a/wizards/com/sun/star/wizards/document/OfficeDocument.py
+++ b/wizards/com/sun/star/wizards/document/OfficeDocument.py
@@ -1,6 +1,7 @@
from com.sun.star.awt.WindowClass import TOP
import traceback
import uno
+from ui.event.CommonListener import TerminateListenerProcAdapter
from common.Desktop import Desktop
from com.sun.star.awt import WindowDescriptor
from com.sun.star.awt import Rectangle
@@ -98,10 +99,10 @@ class OfficeDocument(object):
else:
xF = Desktop.getDesktop(xMSF)
xFrame = xF.findFrame(FrameName, 0)
- if listener != None:
+ if listener is not None:
xFF = xF.getFrames()
xFF.remove(xFrame)
- xF.addTerminateListener(listener)
+ xF.addTerminateListener(TerminateListenerProcAdapter(listener))
return xFrame
@@ -153,10 +154,9 @@ class OfficeDocument(object):
#from now this frame is useable ...
#and not part of the desktop tree.
#You are alone with him .-)
- if listener != None:
- pass
- #COMMENTED
- #Desktop.getDesktop(xMSF).addTerminateListener(listener)
+ if listener is not None:
+ Desktop.getDesktop(xMSF).addTerminateListener(
+ TerminateListenerProcAdapter(listener))
return xFrame