Page 1 of 1

[Python]: Project template for macros or custom scripts

Posted: Wed Feb 08, 2017 1:17 am
by sasa
Project template which integrates frequently used methods in office context and basic GUI boxes.
Unzip end copy my_project in .../Script/python directory. Read the instructions and adapt to your needs.

Frequently used methods:
createUnoService(service)
createUnoStruct(struct)
getDesktop()
getCurrentComponent()
getDocument()
getCurrentFrame()
getCurrentComponentWindow()
getCurrentContainerWindow()
getCurrentController()
callMRI(obj)
callXray(obj)

Slightly modified from: Forum

Basic GUI boxes for interaction with a user:
make choices (SelectBox, OptionBox)
enter new data (TextBox, NumberBox, DateBox)
get paths (FolderPathBox, FilePathBox)
show information (MessageBox)
make a decision (ActionBox)

Slightly modified from: GitHub
Disclaimer: I'm the author of Unodit.

Hope this could be useful to the community.
Please send me any comment, suggestion or correction you may have.