Hi Kohei, On Thursday, 2006-10-05 21:55:07 -0400, Kohei Yoshida wrote:
> menu items are controlled by the 'menubar.xml' file located in > sc/uiconfig/scalc. The question is, how do I conditionally exclude a > menu item from this xml file? I may be wrong on this, but I don't think items can be conditionally excluded during build time. You could dynamically enable/disable the menu entry depending on whether your component is installed and provides it's service. However, I think this would need the dispatch mechanisms and deeper integration with the Calc code. Maybe someone on the [EMAIL PROTECTED] list has an answer to this special problem, IMHO it's the first time a component is conditionally built but likes to have integration with an application menu-wise. A solution could be to use the general UNO package integration mechanisms provided for components instead, and add the menu entry in pre-registration during the install set creation by means of Addons.xcu, which again would place the menu entry into the AddOn submenu, which may not be desired. Though I'm not sure how that pre-registration works exactly.. you may want to ask on the [EMAIL PROTECTED] list. Eike -- OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer. Please don't send personal mail to this [EMAIL PROTECTED] account, which I use for mailing lists only and don't read from outside Sun, use the [EMAIL PROTECTED] account instead. Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]