Hi atlast i i was able to add a java addon (toolbar with buttons) to Writer
using protocolhandler_java. the addon gives the length of the selected text
onclick of button and onclick of another button reverses the selected text.
I am using the same as an example to get an ProtocolHandlerAddon in java
which is capable of doing the following.
1) When ever openoffice application is started, the filepath of the
currently opened document should be tracked.
2) Based on the filepath the one of the buttons in the Addon should be
disabled.
I had asked in the mailing list how to do them separately and i got the reply
saying that the first one(tracking the filepath) can be done using a Jobs
Addon. And i can disable the button using FeatureStateEvent and
statusChanged().
But I want to know if i can do it using ONLY the ProtocolHandlerAddon. can i
use the following four xcu files ProtocolhandlerAddon.
1)Addons.xcu
2)ProtocolHandler.xcu
3) Jobs.xcu to specify the onStartApp event
4) Commands.xcu to enable/disable button in Addon
With Regards,
Bharathy B
---------------------------------
Groups are talking. We´re listening. Check out the handy changes to
Yahoo! Groups.