Tim Tow wrote On 04/21/06 15:08,:
Thanks Didier..


change when you install another add-on. So your add-on_1 can become
add-on_2!. We also hope to fix this for OOo 2.0.3 where we want to use the
"Node" name in the Addon.xcu to have unique entries in the WindowState
configuration.
<<

I will wait until 2.0.3..

Hi Tim,

The latest developer build SRC680m168 (pre OOo 2.0.3) now supports to set the add-on toolbar title (see also announcement on "openoffice.interface-announce"). I just copied the description from the announcement.

----
The title of an add-on toolbar couldn't be defined due to technical
limitations. To fix this problem the framework based layout manager now
uses a modified resource URL schema to address add-on toolbars:

"private:resource/toolbar/addon_<name of the toolbar set node>

As the new schema uses a unique name which is known at installation
time, the toolbar name can be associated to this resource URL.

An add-on can define the toolbar title with the Addons.xcu and <Module>WindowState.xcu files.

EXAMPLE:
(Addons.xcu)
<?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="com.sun.star.comp.framework.addon.
complextoolbarcontrols" oor:op="replace">
   <node oor:name="m1" oor:op="replace">
    <prop oor:name="URL" oor:type="xs:string">
     <value>vnd.demo.complextoolbarcontrols.demoaddon:Command1</
value>
    </prop>
...

The name of the toolbar set node is "com.sun.star.comp.framework.
addon.complextoolbarcontrols". Therefore the resource URL will be
"private:resource/toolbar/addon_com.sun.star.comp.framework.addon.
complextoolbarcontrols"
To set the title of the add-on toolbar for Writer the WriteWindowState.xcu
must be part of the add-on package.

(WriterWindowState.xcu)
<?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_com.sun.star.comp.
framework.addon.complextoolbarcontrols" oor:op="replace">
    <prop oor:name="UIName" oor:type="xs:string">
     <value xml:lang="en-US">Complex Toolbar Controls</value>
    </prop>
...

Regards,
Carsten

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

  • Re: [... Carsten Driesner - Sun Germany - ham02 - Hamburg - Software Engineer
    • ... Laurent Godard
    • ... Carsten Driesner - Sun Germany - ham02 - Hamburg - Software Engineer
      • ... Laurent Godard

Reply via email to