Tobias Krais escribió:
Hi Ariel,
thank you for your help. I tested a lot but had no success...
Hi Tobias,
I've done a demo extension using the values you give here, and it DOES
generate a toolbar with a custom name. I send it to your mail, check it
and let me know if it works.
Regards
Ariel.
First here the important part of the Addons.xcu:
-----%<-----
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data oor:name="Addons" oor:package="org.openoffice.Office"
xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<node oor:name="AddonUI">
<node oor:name="OfficeToolBar">
<node oor:name="de.twc.oocom.comp" oor:op="replace">
<node oor:name="m1" oor:op="replace">
<prop oor:name="URL" oor:type="xs:string">
<value>.Judas:Saveto</value>
</prop>
...
-----%<----
you have to create an <OOoModuleName>WindowState.xcu configuration file
and set the UIName property.
And here my complete WriterWindowsState.xcu file:
-----%<-----
<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
oor:name="WriterWindowState"
oor:package="org.openoffice.Office.UI">
<node oor:name="UIElements">
<node oor:name="States">
<node
oor:name="private:resource/toolbar/addon_de.twc.oocom.comp"
oor:op="replace">
<prop oor:name="UIName" oor:type="xs:string">
<value>Judas Toolbar</value>
<value xml:lang="de">Judas Toolbar</value>
</prop>
</node>
</node>
</node>
</oor:component-data>
-----%<-----
This file must have an entry in the extension manifest, for example
Here my manifest.xml:
-----%<----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest
1.0//EN" "Manifest.dtd">
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
<manifest:file-entry
manifest:media-type="application/vnd.sun.star.uno-typelibrary;type=RDB"
manifest:full-path="types.rdb"/>
<manifest:file-entry
manifest:media-type="application/vnd.sun.star.uno-component;type=Java"
manifest:full-path="JudasComponent.uno.jar"/>
<manifest:file-entry
manifest:media-type="application/vnd.sun.star.configuration-data"
manifest:full-path="Addons.xcu"/>
<manifest:file-entry
manifest:media-type="application/vnd.sun.star.configuration-data"
manifest:full-path="ProtocolHandler.xcu"/>
<manifest:file-entry
manifest:media-type="application/vnd.sun.star.configuration-data"
manifest:full-path="WriterWindowState.xcu"/>
</manifest:manifest>
-----%<-----
Adding the WriterWindowState.xcu as you snt me added an additional
toolbar with no contents. Thus it seems the WriterWindowState.xcu seems
to be detected correctly. Changing the value <node
oor:name="private:resource/toolbar/addon_de.twc.oocom.comp"
oor:op="replace"> removes the new toolbar. Thus it seems the value is
also detected, but my toolbar is still named "Addon 1".
Very helpful was also a link I found:
http://www.mail-archive.com/[email protected]/msg03055.html
It is the same as you wrote, but it did not help anyway.
Greetings, Tobias
--
Ariel Constenla-Haile
La Plata, Argentina
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.ArielConstenlaHaile.com.ar/ooo/
"Aus der Kriegsschule des Lebens
- Was mich nicht umbringt,
macht mich härter."
Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]