Praveen Reddy wrote:
hello,
in my extension i am disabling certain open office commands to
prevent users from modifying or copying documents. However, after i disable them will i be able to
keep them disabled? if other extensions are going to invoke or enable those commands, how can i
prevent them from doing so? I have been exploring ways to disable other extensions, but the
interface XPackageManager does not provide us with methods to do so although it does allow us to
remove packages. any suggestions as to how i can go about achieving this?
Hi Praveen,
You can use the "Disable commands" feature to achieve your goal. The
"disabled command" feature is the first instance which is asked for a
dispatcher in the dispatch chain. Nobody is able to circumvent this
using an own dispatcher or dispatch interception. The only way to enable
a command again is to remove the entry from the "disable commands"
configuration. You can find more information in the Developer's Guide:
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Disable_Commands
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]