Re: change toolbar name

Oliver Brinzing <[email protected]>
Newsgroups gmane.comp.openoffice.devel.api
Message-ID <[email protected]>
Hi,

> Whats the <Module> for spreadsheets?

you need a "CalcWindowState.xcu"
and don't forget to change "oor:name="WriterWindowState" " to >oor:name="CalcWindowState"

see http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/AddOns/Toolbars

>An extension can define the toolbar title with <Module>WindowState.xcu  files. The title of the
toolbar must be set for >each module where the toolbar will appear. One such file is necessary for
each module. Continuing the example, the >toolbar title for Writer module will be specified in a
WriterWindowState.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_org.openoffice.Office.addon.example"
oor:op="replace">
>        <prop oor:name="UIName" oor:type="xs:string">
>          <value xml:lang="en-US">My pretty bar</value>
>        </prop>
>      </node>
>    </node>
>  </node>
></oor:component-data>

>The UIName property supports localization.
>Each <Module>WindowState.xcu file must be declared as a configuration data file in the manifest.xml
file.

regards

Oliver
-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
signature.asc (application/pgp-signature, 260 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkybic4ACgkQTiyrQM/QSkU8bwCgsEDFhg8heYzVYcf0eNdQeCEP
pJcAn0DC6WWDJ0qTADH9EOd6Oq3ReWej
=EpVr
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.