Oliver Brinzing wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i have some questions about the Addons.xcu:
Hi Oliver,
I will try to answer your questions.
- - Is it correct, that one can only define *one* "OfficeToolBar" inside an
Addons.xcu ?
So if one needs more OfficeToolbars, he has to deploy another extension ?
"OfficeToolBarMerging" can not help in this case ?
No. An extension can create as many toolbars as it wants. You have to
create a new node within the "OfficeToolBar" set to create a new
toolbar. See the next example:
...
<node oor:name="OfficeToolBar">
<node oor:name="org.openoffice.Office.addon.tb1" oor:op="replace">
<node oor:name="m1" oor:op="replace">
<prop oor:name="URL" oor:type="xs:string">
<value>macro:///MyLib.Module1.Function1</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value/>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value/>
<value xml:lang="en-US">Function 1</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="Context" oor:type="xs:string">
<value/>
</prop>
</node>
...
</node>
<node oor:name="org.openoffice.Office.addon.tb2" oor:op="replace">
...
</node>
</node>
- - I noticed, that user defined toolbars are stored in
"\user\config\soffice.cfg\modules\scalc\toolbar\custom_toolbar_1.xml".
All bitmaps are stored inside the
"\user\config\soffice.cfg\modules\scalc\images\bitmaps\sc_userimages.png" file
and
described (url -> image) in "sc_imagelist.xml".
My "OfficeMenuBar" items can take advantage from this behaviour. They use
these images ...
but the "OfficeToolBar" items do not :-( Is it a bug ?
I am not sure what "can take advantage" mean. The responsible framework
code uses the command URL to find an associated image. That's
independent from the user interface element (e.g. toolbar, menu). If
your menu or toolbar item uses a command that has an associated image,
the image should automatically be used by the framework code. Otherwise
this would be a bug. May be you can send me an example to see your problem.
- - Is there a posibility to deploy "sc_userimages.png" within extensions ?
I noticed only the "ImageIdentifier" and "Images" nodes within the
addons.xcu...
No, the "sc_userimages.png" is an internal image format. I am not sure
that using this special format would make life easier for extension
developers.
- - "private:image/3216" will address an internal oo icon
Where to find a list (image -> id) for all possibilities ?
I will create a list of these internal icons on the framework wiki.
Please stay tuned.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]