pyletter: Make call the wizard remotely possible

Change-Id: I6cf58bb25cc44118b086fbe1339aae2c4069416b
This commit is contained in:
Xisco Fauli 2012-10-15 20:10:45 +02:00
parent b617e84227
commit 201788d305

View file

@ -66,19 +66,20 @@ class LetterWizardDialogImpl(LetterWizardDialog):
self.NormPaths = []
@classmethod
def main(self, args):
ConnectStr = \
"uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"
xLocMSF = None
def main(self):
#Call the wizard remotely(see README)
try:
ConnectStr = \
"uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"
xLocMSF = Desktop.connect(ConnectStr)
except Exception, e:
traceback.print_exc()
lw = LetterWizardDialogImpl(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())
lw = LetterWizardDialogImpl(xLocMSF)
lw.startWizard(xLocMSF, None)
def startWizard(self, xMSF, CurPropertyValue):
def startWizard(self, xMSF):
self.running = True
try:
#Number of steps on WizardDialog