Referring to http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Disable_Commands the code example shows how to enable the commands and make them usable again.
Would this mean that if one of the extensions disables a set of commands, it would be possible for another extension to enable it again? In that case it would not help the purpose. Is there a hierarchy of permissions in extensions? -Raman On Fri, May 30, 2008 at 5:16 PM, Carsten Driesner <[EMAIL PROTECTED]> wrote: > 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: > > > > Regards, > Carsten > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
