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

UNO's object reference document

Post new topic   Reply to topic Forum Index -> Macros and API
View previous topic :: View next topic  
Author Message
Ben Lau

PostPosted: Sat Feb 14, 2004 2:09 am    Post subject: UNO's object reference document Reply with quote

Hi all,

It may be a stupid question but really thanks for any replies.

I am completely new to the macro/UNO of openoffice(and even to Winword's macro). I want to insert a combo box object in my calc document. I have looked ComboBox_in_a_Sheet_En.sxc but don't know how to use it.

And then i tried to look inside the source , it is quite short and I am able to read basic language. However , i don't know where can i find the class/object reference document of oSheet/oDoc etc... and result that I really don't understand what is the code going on..

So I want to ask any website contained the list of all UNO's object and their method?

Back to top
Super User
Super User

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

PostPosted: Sat Feb 14, 2004 7:41 am    Post subject: Reply with quote

Any documentation can be found here (in a few languages) :
Linux & Windows OOo3.0
UNO & C++ : WIKI
In French
Back to top
View user's profile Send private message Visit poster's website

Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Sat Feb 14, 2004 7:49 am    Post subject: Reply with quote

In addition to sergeM's answer, here is how you find how the events are tied to the control.

On the far left side of the document window is a tall vertical toolbar called the Main Toolbar. (If it is not, then make sure View --> Toolbars --> Main Toolbar is checked.)

Right-click in the Main Toolbar. A context menu appears. One of the choices are "Visible Buttons", which leads to a submenu of the possible things that can appear on this toolbar. Make sure that Show Form Functions is checked.

From the Main Toolbar, pick the Show Form Functions icon, and tear off the submenu into a window called "Form Functions".

The Form Functions window has two rows of icons. On the bottom row, sixth button from the left is the "Design Mode On/Off" button. Click it to turn on design mode. (All of the other buttons on the Form Functions should now enable.) Now you can design forms and place form controls on the spreadsheet.

Now, when in design mode, click on the Combo Box. It gets little green handles around it to indicate it is selected. Right-click, context menu appears. Form the context menu pick Right-Click --> Control...

The Properties sheet appears for the control. It has three tabs, General, Data, and Events. On the Events tab, notice that two events are set to call Basic functions.

The "When receiving focus" event calls....

The "Text modified" event calls...

Here are other links which might help....

How do I get started?

Basic Programmer's Guide is here....

StarOffice 7 Basic Programmer's Guide, English

Available in other languages...

StarOffice 6 Basic Programmer's Guide, English

StarOffice 6 Product Documentation

OpenOffice Macro Document by Andrew Pitonyak

Lots of macros here...

StarBasic FAQ (German only)

How to navigate the OOo API Docs

XShapes, DrawPage, GenericDrawPage

Developer's Guide

(Developer's Guide TOC is here)

and the online API reference....

Useful links from Russ...
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
Ben Lau

PostPosted: Thu Feb 19, 2004 3:31 pm    Post subject: Reply with quote

Thanks sergeM and DannyB! I am digesting the links now..
Back to top
Display posts from previous:   
Post new topic   Reply to topic Forum Index -> 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