AFAIK, this is a feature that is not available in OpenOffice yet. I am
not an expert in the code parts that are involved in this, but the way I
would imagine one was to implement this is not very XML specific. So You
might want to take this to the dev list of the specific application or
maybe to the framework group...
Anyway, an application maintains a style pool, and there is currently no
way to disable anything from that pool. There is however an API that can
manipulate that style pool, so extending that to support
disabling/removing of styles would be a first step for you.
Furthermore, you would want to store the list of disabled (or enabled)
pool styles and the option of whether the user is allowed to create
custom styles along with your template. You need to write that out to
the file when it is saved and you need to interpret it when the file is
opened.
Finally, you need a userinterface through which styles can be
disabled/enabled and the allow-custom-styles options can be set
So you better make sure your build environment is working :)
--
Lars Oppermann <[EMAIL PROTECTED]> Sun Microsystems Inc.
Software Engineer - StarOffice http://www.sun.com/staroffice
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]