Hi Karthik,
Karthik Sudarshan escribió:
Hi Ariel,
Thanks for the pointer. But as in the mail thread I have the same
problem that the "Add-on 1" doesn't change even after adding the
WindowState.xcu file. I just tested it with WriterWindowState.xcu
example file that you had provided and still no change. I've ensured
that the node:name value in Addons.xcu and the name in the
WriterWindowState.xcu are the same and the entry has been added to the
manifest file as well. Is there anything else that I need to be looking
into?
your enumeration seems to be complete.
Just make sure that:
* if in Addons.xcu you have a toolbar
<node oor:name="AddonUI">
<node oor:name="OfficeToolBar">
<node oor:name="ar.com.arielconstenlahaile.demo"
oor:op="replace">
...
in *WindowState.xcu yo have
<node oor:name="UIElements">
<node oor:name="States">
<node
oor:name="private:resource/toolbar/addon_ar.com.arielconstenlahaile.demo"
oor:op="replace">
that is: the name for the "States" node has the following schema
private:resource/toolbar/addon_[the name of the toolbar in Addons.xcu]
* *WindowState.xcu has the correct package name:
for example, for OOo Calc's window state
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="CalcWindowState"
oor:package="org.openoffice.Office.UI">
* this is added to the manifest, and the entry really points to it:
<manifest:file-entry
manifest:media-type="application/vnd.sun.star.configuration-data"
manifest:full-path="WriterWindowState.xcu"/>
<manifest:file-entry
manifest:media-type="application/vnd.sun.star.configuration-data"
manifest:full-path="CalcWindowState.xcu"/>
means that WriterWindowState.xcu and CalcWindowState.xcu are in the
extension's root directory.
Beside these, the feature works OK in DEV300_m38, and I'm not aware of
any issue with it.
Also if I need this toolbar in all the OOo modules, should I add
one WindowState.xcu file for each module??
sorry :-( but yes, you have to make a *WindowState.xcu for *every* OOo
module (sounds like a non-sense, but that's how thing work now - you may
try submitting a RFE).
Regards
--
Ariel Constenla-Haile
La Plata, Argentina
"Aus der Kriegsschule des Lebens
- Was mich nicht umbringt,
macht mich härter."
Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org