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

Having trouble with API documentation

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


Joined: 31 Mar 2006
Posts: 1
Location: UK

PostPosted: Fri Mar 31, 2006 12:50 pm    Post subject: Having trouble with API documentation Reply with quote

Hello,

I'm trying to create an OpenOffice.org Writer documnet from c#. I've successfully used the example code that comes with the SDK documentation to create a writer document, add text and change fonts, but I'm totally lost on where to get one piece of information.

All the example code to set font style, size etc. use the XPropertySet interface of XTextCursor. An example is:
xPropertySetCursor.setPropertyValue("CharColor", New uno.Any(65536))

My question is how do I find out the names of the properties? I don't know where to look in the SDK docs - do I need to look at the OpenOffice source code instead?

I've worked out some from this forum, like CharFontName, CharHeight, CharWidth - how do I find all the others?

I particularly want to define a couple of paragraph styles programatically, but I can settle for opening an existing document with the styles pre-defined if necessary.

Thanks in advance for any help,
Darryl.
Back to top
View user's profile Send private message
Roswell_
General User
General User


Joined: 30 Mar 2006
Posts: 7

PostPosted: Sat Apr 01, 2006 3:36 am    Post subject: Reply with quote

I use xray in a vb macro first to get all propetries available for an object.
There is one version here: http://fr.openoffice.org/Documentation/How-to/Basic/XrayTool50_fr.sxw
Back to top
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Sat Apr 01, 2006 7:16 am    Post subject: Reply with quote

As mentioned in previous post (XRay is a OOoBasic tools) I think OOoBasic is a good way to start and learn UNO. It is good documented in my opinion :
tutorial StarBasic Staroffice 6.0
http://docs.sun.com/db/doc/817-1826-10?q=StarOffice
and some comments about it
http://www.oooforum.org/forum/viewtopic.phtml?t=1916
tutorial StarBasic StarOffice 7.O
http://docs.sun.com/db/doc/817-1826?q=StarOffice
Andrew Pitonyak's free document
http://www.pitonyak.org/AndrewMacro.sxw
All can be found in the link :
http://api.openoffice.org/TipsAndTricks/external.html
Documentation :
http://documentation.openoffice.org/HOW_TO/index.html

UNO is completely documented here :
UNO Index http://api.openoffice.org/docs/common/ref/index-files/index-1.html

but I think it is not easy to navigate in this documentation at first.
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
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