Mathias Bauer schreef:
Jo wrote:

The mind boggles. I read:

http://api.openoffice.org/docs/DevelopersGuide/Components/Components.xhtml#1_9_1_UNO_Package_Installation_Using_unopkg,
4.9.1

and

http://api.openoffice.org/docs/DevelopersGuide/Components/Components.xhtml,
4.7.3


several times. What I don't find in there is what names those files need to
have. OK, there is this:

example_addon.zip:
    Addons.xcu
    ProtocolHandler.xcu
    windows.plt/
        example_addon.dll


now what goes itno Addons.xcu and what goes into ProtocolHandler.xcu? There
is a lot of xml in the paragraphs preceding this example, from which I
distilled the following, since I only want to add a toolbar to my package:

The Addons.xcu file contains information about which buttons shall be in
the toolbar. The ProtocolHandler.xcu tells OOo which code it should load
to execute a certain command.

I'm starting to doubt that I'm smart enough for this stuff. It's great that
there is documentation, but I would be nice to find out what needs to be
saved in which files and it would be great to have an easy way to get from
what OOo generates to work with to what is expected for this uno.pkgstructure.

You are right, it would be nice to make things easier and we are working
on it. The plan is to have some tools that can generate the necessary
files and integrate these tools into NetBeans, Eclipse or our Basic IDE,
but this isn't done yet.

When these tools will be done all you will have to specify is which
commands shall be added to your toolbar or menu and which code shall be
bound to it. Until then you could study existing code to learn how the
things work together. Which programming language have you planned to use?

Best regards,
Mathias
Hi Mathias,

I'm working in OOo Basic. My personal preference goes to Python, since it's very clean and understandable, but since all the examples and available information exists in OOo Basic, I chose to use that. Where can I find examples of existing code? I'm sure that that would help a lot.

It's great to hear that you are working on an easier interface to accomplish the creation of .uno.pkgs. I'm afraid my customer won't be able until it's finished though. Is there any kind of ETA? Could it be that it might be finished in a month? Then I could ask for a delay. If it will most probably take more than a month, then I'll have to bite the sour apple and learn how to do it by hand. Any reference to an example will help tremendously in that case.

Kind regards,

Jo

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to