summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/fax/CallWizard.py
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/fax/CallWizard.py')
-rw-r--r--wizards/com/sun/star/wizards/fax/CallWizard.py18
1 files changed, 16 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/fax/CallWizard.py b/wizards/com/sun/star/wizards/fax/CallWizard.py
index b779885622a7..f9f07ff21ac8 100644
--- a/wizards/com/sun/star/wizards/fax/CallWizard.py
+++ b/wizards/com/sun/star/wizards/fax/CallWizard.py
@@ -18,7 +18,7 @@
import unohelper
import traceback
-from .FaxWizardDialogImpl import FaxWizardDialogImpl
+from .FaxWizardDialogImpl import FaxWizardDialogImpl, Desktop
from com.sun.star.task import XJobExecutor
@@ -36,8 +36,22 @@ class CallWizard(unohelper.Base, XJobExecutor):
except Exception as e:
print ("Wizard failure exception " + str(type(e)) +
" message " + str(e) + " args " + str(e.args) +
- traceback.format_exc())
+ traceback.format_exc())
+ @classmethod
+ def callRemote(self):
+ #Call the wizard remotely(see README)
+ try:
+ ConnectStr = \
+ "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"
+ xLocMSF = Desktop.connect(ConnectStr)
+ lw = FaxWizardDialogImpl(xLocMSF)
+ lw.startWizard(xLocMSF)
+ except Exception as e:
+ print ("Wizard failure exception " + str(type(e)) +
+ " message " + str(e) + " args " + str(e.args) +
+ traceback.format_exc())
+
# pythonloader looks for a static g_ImplementationHelper variable
g_ImplementationHelper = unohelper.ImplementationHelper()