Hi Tobias,
Tobias Krais escribió:
Hi together,
I am creating a toolbar Add-On for OOo. Everything works perfect. Now I
would like to name the Toolbar itself. Currently it is named by OOo
"Add-On 1". Can I rename it?
you have to create an <OOoModuleName>WindowState.xcu configuration file
and set the UIName property.
In
<OOo_INST_DIR>/share/registry/schema/org/openoffice/Office/UI/WindowState.xcs
et al. you will find schemata.
An example for Writer's window state:
<?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_ar.com.arielconstenlahaile.ooo.demo.toolbar"
oor:op="replace">
<prop oor:name="ContextSensitive" oor:type="xs:boolean">
<value>false</value>
</prop>
<prop oor:name="UIName" oor:type="xs:string">
<value xml:lang="en-US">Some extension toolbar</value>
<value xml:lang="es-AR">Barra de heramientas de mi
extension</value>
</prop>
<prop oor:name="Visible" oor:type="xs:boolean">
<value>true</value>
</prop>
<prop oor:name="Docked" oor:type="xs:boolean">
<value>true</value>
</prop>
<prop oor:name="DockPos" oor:type="xs:string">
<value>0,2</value>
</prop>
<prop oor:name="DockingArea" oor:type="xs:int">
<value>0</value>
</prop>
</node>
</node>
</node>
</oor:component-data>
This file must have an entry in the extension manifest, for example
<manifest:file-entry
manifest:media-type="application/vnd.sun.star.configuration-data"
manifest:full-path="WriterWindowState.xcu"/>
Regards
Ariel.
--
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]