Hi Andrea,

first of all the better mailing list would be [EMAIL PROTECTED] or [EMAIL PROTECTED]

I agree that the documentation is not up-to-date and i will try to fix this asap. Forgot the old mechanism.

The format of an oxt package is described in detail in the DevGuide and you can find examples in the SDK as well.

You don't have to implement the XAddin interface. Therefore you need (besides the DIL defintion) an appropriate CalcAddins.xcu where you define and document the new addin functions.

Under the node "AddInInfo" you insert a new node for your own addin, something like "org.openoffice.addin.MyNewAddin". The next node "AddInFunctions" is equal for all addins and opens the section where you define your new functions. Here in the example a new function with name "someValue". I am sure that the rest of the file is self explained ...
  ...
  <node oor:name="AddInInfo">
     <node oor:name="org.openoffice.addin.MyNewAddin" oor:op="replace">
        <node oor:name="AddInFunctions">
           <node oor:name="someValues" oor:op="replace">
              <prop oor:name="DisplayName">
                 <value xml:lang="en">SomeValues</value>
  ...

Your C++ component should be the same as before but you don't need the XAddin interface (see my posted Java example).

Pack the xcu, your C++ lib and the type library in an oxt file and that's it.

The oxt file can be quite easy deployed via the extension manager.


Juergen

Andrea wrote:
Hi,

I've been trying for a while to create a Calc addin.

First, I followed the instructions in
http://wiki.services.openoffice.org/wiki/Calc/Add-In/Simple_Calc_Add-In
http://wiki.services.openoffice.org/wiki/Calc/Add-In/CompleteAddIn

And it worked (with some minor changes), but the deployment is a bit obscure, 
requiring the user to
change some config files of OpenOffice.

Then, I've learnt on this mailing list that there is a new preferred way of 
doing that, using
extensions, xcu, oxt files.
Something can be found here
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Extensions/File_Format
http://wiki.services.openoffice.org/wiki/Calc/Add-In/Project_Type
but it does not seem to give any full example, and detailed specifications.

It seems NetBeans can create a project of type Calc addin, but I've never used 
it.

There is a project called QuantLibAddin http://quantlib.org/quantlibaddin/ that 
seems to follow the
old method.

Does anybody know if I can find some documentation?
Especially it is not clear to me

1) which interfaces I need to implement. The first method seems to indicate the 
XAddIn must be
there, while the second seems to say the opposite.
2) how I can deploy it.

I prefer to be in control of the whole process and not use NetBeans or any 
other IDE, and I am
writing code in C++.

A working example could be very useful as well.

Thanks

Andrea


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



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

Reply via email to