pywizards: Add README explaining how to call a wizard remotely
Change-Id: I5686dfb9fcac1ccc3d04cb260c1a532d13e7c31e
This commit is contained in:
parent
f2655f92c1
commit
b617e84227
2 changed files with 21 additions and 2 deletions
19
wizards/com/sun/star/wizards/README
Normal file
19
wizards/com/sun/star/wizards/README
Normal file
|
@ -0,0 +1,19 @@
|
|||
To call a wizard remotely you need to:
|
||||
|
||||
-> For testing on core:
|
||||
export URE_BOOTSTRAP="file:///home/'USER'/git/libo/install/program/fundamentalrc"
|
||||
export PYTHONPATH=/home/'USER'/git/libo/install/program
|
||||
#and run LibreOffice in listening mode:
|
||||
./soffice --"accept=socket,host=localhost,port=2002;urp;"
|
||||
|
||||
-> For testing on installed LibreOffice:
|
||||
export URE_BOOTSTRAP="file:///usr/lib/libreoffice/program/fundamentalrc"
|
||||
export PYTHONPATH=/usr/lib/libreoffice/basis-link/program
|
||||
#and run LibreOffice in listening mode:
|
||||
soffice --"accept=socket,host=localhost,port=2002;urp;"
|
||||
|
||||
-> Launch the wizard from wizards parent folder:
|
||||
python
|
||||
#Fax wizard
|
||||
from wizards.fax.FaxWizardDialogImpl import FaxWizardDialogImpl
|
||||
FaxWizardDialogImpl.main()
|
|
@ -67,8 +67,8 @@ class FaxWizardDialogImpl(FaxWizardDialog):
|
|||
self.sTemplatePath = ""
|
||||
|
||||
@classmethod
|
||||
def main(self, args):
|
||||
#Call the wizard remotely
|
||||
def main(self):
|
||||
#Call the wizard remotely(see README)
|
||||
try:
|
||||
ConnectStr = \
|
||||
"uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"
|
||||
|
|
Loading…
Reference in a new issue