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: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to