OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Where do I find these Service Classes???

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
rajeshsegu
Power User
Power User


Joined: 20 Dec 2005
Posts: 53

PostPosted: Wed Jun 14, 2006 3:54 am    Post subject: Where do I find these Service Classes??? Reply with quote

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
View user's profile Send private message
ms777
Super User
Super User


Joined: 07 Feb 2004
Posts: 1355

PostPosted: Thu Jun 15, 2006 8:47 am    Post subject: Reply with quote

Hi,

you have to learn OOBasic to use this forum effectively Smile ...

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group