Re: change toolbar name

Fernand Vanrie <[email protected]>
Newsgroups gmane.comp.openoffice.devel.api
Message-ID <[email protected]>
   Martin ,

You must have a look at the exellent BasicAddonBuilder extention made by 
Paolo Mantovani.
In the code you can compare with your work

Hope it helps

Fernand
> hi
>
>> and don't forget to change "oor:name="WriterWindowState" " to
>>> oor:name="CalcWindowState"
> Thanks i haven't seen that
>
> But i'm still not able to get it running
>
> My Addons.xcu is now
> <?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="Addons"
> oor:package="org.openoffice.Office">
>        <node oor:name="AddonUI">
>            <node oor:name="OfficeToolBar">
>                <node oor:name="at.univie.MidiCSDext" oor:op="replace">
>                    <node oor:name="m01" oor:op="replace">
>                        <prop oor:name="URL" oor:type="xs:string">
>
> <value>at.univie.midicsd:addselectiontocurrentqueue</value>
>                        </prop>
>                        <prop oor:name="Title" oor:type="xs:string">
>                            <value/>
>                            <value xml:lang="en-US">Add Phrase</value>
>                            <value xml:lang="de">Funktion 1</value>
>                        </prop>
>                        <prop oor:name="Target" oor:type="xs:string">
>                            <value>_self</value>
>                        </prop>
>                        <prop oor:name="Context" oor:type="xs:string">
>
> <value>com.sun.star.text.TextDocument,com.sun.star.sheet.SpreadsheetDocument
> </value>
>                        </prop>
>                    </node>
>                </node>
>            </node>
>        </node>
>    </oor:component-data>
>
> And CalcWindowState.xcu is
> <?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="CalcWindowState"
> oor:package="org.openoffice.Office.UI">
>    <node oor:name="UIElements">
>      <node oor:name="States">
>        <node oor:name="private:resource/toolbar/addon_at.univie.MidiCSDext"
> oor:op="replace">
>          <prop oor:name="UIName" oor:type="xs:string">
>            <value xml:lang="en-US">MidiCSD</value>
>          </prop>
>        </node>
>      </node>
>    </node>
> </oor:component-data>
>
>
> Changing the windowstate for writer works fine.
>
> Thanks,
>    Martin
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
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.