I answer again to myself. ;-)
I read
https://forum.openoffice.org/en/forum/viewtopic.php?f=47&t=63814&p=290135#p290135
again and again. But I can't find the answer if and how it is possible
to provide only one extension where toolbars will work with AOO and LO.
After thinking a long time about
https://wiki.openoffice.org/wiki/Extensions/Extensions_and_Apache_OpenOffice_4.0#addons.xcu_changes
especially about the solution with 2 different named Addons.xcu I tried
to merge them.
Now I have in the Addons.xcu:
<node oor:name="AddonUI">
<node oor:name="OfficeToolBar">
<node oor:name="foo.bar.hoge.addons.ToolbarTest.old"
oor:op="replace">
... Old Scheme ...
</node>
</node>
</node>
<node oor:name="OfficeToolBar">
<node oor:name="foo.bar.hoge.addons.ToolbarTest.new" oor:op="replace">
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">Toolbar Title</value>
</prop>
<node oor:name="ToolBarItems">
... New AOO 4.x Scheme ...
</node>
</node>
</node>
</node>
With the files and entries for all ...WindowsState.xcu it works for AOO
an LO. :-)
But nevertheless I want to know:
And if I have to provide two extensions: how can I declare which
software the extension is for?
I can't find any explanation for a difference for the <dependencies>
node in description.xml. It seems AOO and LO tests always against the
same entries.
Regards, Mathias
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org