Hi Jan,

there is no perfect solution yet for your problem.
To ease your scenario you might split it into two:

a) to have always the same styles in the document after import/export without editing the document

b) allowance to use only a subset of styles



The first part a) should work, at least for the displayed style names

But b) is not supported from our Office yet, although it might be possible to arrange it using macros and components (you might ask in openoffice.dev). From the XML view I would classify the problem b) into the category of 'subset schema restrictions'. Instead of allowing the whole RELAX NG OD format, you provide further restrictions. In this case only certain style properties with certain names are allowed. Other problems of this category might be for instance the usage of a certain document structure (e.g. for business templates).
Problems of this kind are easy to explain, but hard to implement.

In case the export filter is aware of the earlier imported custom styles, I suggest that your export filter simply ignores the rest.

- Svante



Jan Metzner wrote:
hi all,
i'm writing an import export filter for an xml based file format. The import xslt adds custom styles to the document and the export xslt reads this styles to create my
own file format.
My question is, how to restrict the user to only use the custom styles supplied by
the import xslt and not the basic styles that comes with oo?
Is this possible by adding some "magic" to the generated oo document or do i need to create a plugin that disables the normal userinterface and adds a special gui that
only allows the custom styles?

thanks

Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to