Am 06.07.2010 15:03, schrieb Niklas Nebel:
On 07/06/10 14:06, Peter Eberlein wrote:
XNumberFormatPreviewer seems only to work, if the XNumberFormatsSupplier
is attached to an (unused) XNumberFormatter, otherwise a
RuntimeException is thrown. Is this the intended behavior?
Yes, it's intended that way. It's not an unused XNumberFormatter, it's
the XNumberFormatter interface of the NumberFormatter instance of which
you want to use the XNumberFormatPreviewer interface.
Thanks, Niklas,
so, for the records, the following approach is correct:
- obtain the NumberFormatter service from the ServiceManager
- query for the XNumberFormatter interface
- attach the XNumberFormatSupplier, which you can obtain from the
SpreadSheetDocument, to the XNumberFormatter instance
- query the XNumberFormatter for the XNumberFormatPreviewer interface.
Regards
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org