KAMI wrote:
Hello!

Can you give me a hint how can I add an extra menu element to the help menu. I would like to insert an menu element that opens a document (read only mode) from all available OpenOffice.org application. This is because I want to show the OpenOffice.org Guide. Where can I read more infos about this? How can I do it? Has someone a workin code snippet?

Hi KAMI,

Just for your information this is an API question and you should better ask it there. There is an easy way to add a single menu item to the help menu. Just use an add-on and add a entry to the "OfficeHelp" set of the Addons.xcu. You can find more information and snippets about add-ons in the Developer's Guide, see chapter "4.7.3 Add-ons".

Just a short snippet from the Developer's Guide to add a menu item to the help menu.

<?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="OfficeHelp">
   <node oor:name="com.sun.star.comp.framework.addon" oor:op="replace">
    <prop oor:name="URL" oor:type="xs:string"
     <value>org.openoffice.Office.addon.example:Help</value>
    </prop>
    <prop oor:name="ImageIdentifier" oor:type="xs:string">
     <value/>
    </prop>
    <prop oor:name="Title" oor:type="xs:string">
     <value xml:lang="de">Über Add-On Beispiel</value>
     <value xml:lang="en-US">About Add-On Example</value>
    </prop>
    <prop oor:name="Target" oor:type="xs:string">
     <value>_self</value>
    </prop>
   </node>
  </node>
 </node>
</oor:component-data>

Regards,
Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to