I'm new to development with openoffice, and I try to find my way through all the different tutorials, discreptions and so on, related to OOo, pyuno and sidebars. I find it quite hard, to get an overview.
I want to develop an extension, which is placed in the sidebar and has a designed panel. I would prefer a freely dockable panel (like the navigator), but I couldn't find examples for that, except for the task panel, which seemes to be no part of the new OpenOffice anymore.
I try to work with python/pyuno and run into different problems.
First of all I would like to know, where you usually place your code to get debugging messages?
As far as I can see, it's as follows:
- when I write scripts and place them in the script folder, I receive debug-messages when I set the LogLevel.use = LogLevel.DEBUG in pythonscript.py in the program folder of OpenOffice. But this way I can't create uno-components. Am I correct? (I found SideBarHelperForMacros, but I couldn't figure out how it precisely works.
viewtopic.php?f=47&t=62176) - when I create an .oxt extension, I can create UIElements, but get no debug. (I read somewhere, someone linked the python debugger to visual studio. I also couldn't figure that out.)
- I can start the pythonscript via a console and connect OpenOffice to it. Like it's described here:https://wiki.openoffice.org/wiki/UNO_co ... nt_testing
But this seams to connect only the pythonfile to OpenOffice and doesn't implement the whole extension. Besides it only worked with LibreOffice, not OpenOffice.
About logging every call of pyuno I found this:
http://www.openoffice.org/udk/python/py ... ml#logging
Can someone explain how to use this?
Does someone have a good advice about debugging?
Regards,
ponc
Edit: I changed the topic of my post