I have a custom toolbar defined in Addons.xcu that is not enabling properly.
The icons appear to be found properly but are disabled.  The same URL is
being used on custom menubar, so it appears as though it is registered
properly.  Here is a snippet of the Addons.xcu for the toolbar:

<node oor:name="OfficeToolBar">
  <node oor:name="vnd.appliedolap.essbase.EssbasePlugIn:tb1"
oor:op="replace">
    <node oor:name="vnd.appliedolap.essbase.EssbasePlugIn:tbi00"
oor:op="replace">
      <prop oor:name="URL" oor:type="xs:string">
        <value>vnd.appliedolap.essbase.EssbasePlugIn:Retrieve</value>
      </prop>
      <prop oor:name="ImageIdentifier" oor:type="xs:string">
        <value>%origin%/retrieve</value>
      </prop>
      <prop oor:name="Title" oor:type="xs:string">
        <value xml:lang="en-US">Retrieve</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.sheet.SpreadsheetDocument</value>
      </prop>
  </node>
  ...  etc ...

Here is a snippet of Addons.xcu for the menubar with the URL that works (it
is the same!):

<node oor:name="Submenu">
  <node oor:name="vnd.appliedolap.essbase.EssbasePlugIn:sm00"
oor:op="replace">
    <prop oor:name="URL" oor:type="xs:string">
      <value>vnd.appliedolap.essbase.EssbasePlugIn:Retrieve</value>
    </prop>
    <prop oor:name="ImageIdentifier" oor:type="xs:string">
      <value/>
    </prop>
    <prop oor:name="Title" oor:type="xs:string">
      <value xml:lang="en-US">~Retrieve</value>
    </prop>
    <prop oor:name="Target" oor:type="xs:string">
        <value>_self</value>
    </prop>
  </node>
  ... etc ...

Finally, the submenu doesn't have an icon specified, however, if the toolbar
has an ImageIdentifier properly specified, the icon appears on the menu as
well!

Two questions:

1. What could be causing the toolbar to be disabled (and what is the best
way to debug this issue?); and

2. Why does the submenu get the same icon as the toolbar when it isn't
specified to have an icon in Addons.xcu?

Tim

Tim Tow
Applied OLAP, Inc
256.990.0136


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

Reply via email to