| View previous topic :: View next topic |
| Author |
Message |
rajeshsegu Power User

Joined: 20 Dec 2005 Posts: 53
|
Posted: Wed Jun 14, 2006 3:54 am Post subject: Where do I find these Service Classes??? |
|
|
Hello Friends,
I had been breaking my head for the past few days to get hold on OOCalc service classes 'NumberFormatter' and 'FunctionDescriptions'. Form the available sample code in the help document I found them to be residing in the XSpreadsheetDocument but when I iterated through its services using XMultiServiceFactory it listed many many services except some of those I require.
Could anyone please help me by pointing out which Interface is holding the key for NumberFormatter and FunctionDiscriptions services.
Thanks in advance,
Rajesh Segu |
|
| Back to top |
|
 |
ms777 Super User


Joined: 07 Feb 2004 Posts: 1355
|
Posted: Thu Jun 15, 2006 8:47 am Post subject: |
|
|
Hi,
you have to learn OOBasic to use this forum effectively ...
If you search this forum for 'numberformatter', you will find this post http://www.oooforum.org/forum/viewtopic.phtml?t=21747&highlight=numberformatter . There, you find the line | Code: | | oNumberFormatter = createUnoService("com.sun.star.util.NumberFormatter") |
This shows that NumberFormatter has to be created by the global service manager, and not by createInstance of a sheetdoc or any other object.
What is the java equivalent of createUnoService ? I do not know, but this has been discussed in this forum ...
hope that helps,
ms777 |
|
| Back to top |
|
 |
|