Hello all;
I hoping someone can point me in the right direction.
I am trying to convert a macro I wrote to an extension. I am learning as I go, but things are a little muddy.
The macro runs as a dialog, and the idea is put it into the sidebar. Using some prebuilt extensions (LibreOffice Sidebar Sample - Othello Game), and a little google-fu I have gotten as far as making a blank sidebar appear, naming it, and I have created a Glade XML file that looks like it should do what I want. That said, I will make it work after I get it to draw at all.
The next step, as I am learning by trial an error here, has me stumped. I am trying to get the glade UI file into the blank sidebar.
My preferred language is basic, but google tells me that invoking a glade XML via basic is impossible. It told me to use python and gave me some examples that did exactly nothing useful.
My Python is nascent at best, but I could follow the general idea. Basically, it is binding the XML to the panel using the built in mechanisms. I’m not looking at it right now, so my terminology here will be off.
What I am looking for is an example of the python code that tells UNO to load the a Glade XML file into a side bar defined in Sidebar.xcu. From there I can stitch it all together. Does anyone know if such a thing exists?
TIA;
Ken


