Tom Schindl schrieb:
A question I've always asked myself why the hell are those standard
formats not provided by the UNO-API as constants? Something like
IExportFormats#MS_WORD_97, if defined in some an IDL I could simply use
them without thinking too much about spelling because my favorite IDE
would provide auto-expansion for it.
It's not designed as an IDL-const because the list of filters is
dynamicly. New filters will be designed and implemented, old filters
might be can be removed, external filters can be installed using the
extension mechanism, filters can be selected/deselected by the user
during setup ...
An IDL const must be stable after it was designed. So it cant be used
here. The list of filters will be provided by the configuration only.
Further there exists a special service named
com.sun.star.document.FilterFactory where you can ask/search for special
filters matching some criteria. Using a const does not solve your
problem to know which filters are provided and how it's const value must
be coded. Using the configuration can help you to find a suitable filter
e.g. for pdf export of a calc document by quering the filter factory.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Regards
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]