[Solved] OpenOffice.org BASIC manual

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
User avatar
Ponny
Posts: 172
Joined: Sun Jun 21, 2009 7:34 pm
Location: Mystical Kingdom of Krakovo

[Solved] OpenOffice.org BASIC manual

Post by Ponny »

Kokodak

I'm searching for book - manual - user guide for openoffice basic. I found just one in Amazon, but I can't see it inside and I can't see if is this book good for me. I need something for begginers. With simply explanation for sintax and all comands used in it.

Nice rainy day.


Ponny
Last edited by Ponny on Tue Jun 08, 2010 1:39 pm, edited 1 time in total.
MS Windows 10: OpenOffice 4.1.13; LibreOffice 7.3.5.2
User avatar
TheGurkha
Volunteer
Posts: 6482
Joined: Thu Mar 13, 2008 12:13 pm
Location: North Wales, UK.

Re: Openoofice basic manual

Post by TheGurkha »

Hi and Welcome to the forum.

Have you reviewed the free stuff first? OpenOffice.org 3 User Guides.
 Edit: Doh - just realised you mean the BASIC language and not 'basic usage of OOo'. 
Ubuntu 14.10 Utopic Unicorn, LibreOffice Version: 4.3.3.2
Gurkha Welfare Trust
User avatar
r4zoli
Volunteer
Posts: 2882
Joined: Mon Nov 19, 2007 8:23 pm
Location: Budapest, Hungary

Re: Openoofice basic manual

Post by r4zoli »

AOO 4.0 and LibO 4 on Win 8
Hungarian forum co-admin
User avatar
TheGurkha
Volunteer
Posts: 6482
Joined: Thu Mar 13, 2008 12:13 pm
Location: North Wales, UK.

Re: OpenOffice basic manual

Post by TheGurkha »

And r4zoli beat me to it...
Ubuntu 14.10 Utopic Unicorn, LibreOffice Version: 4.3.3.2
Gurkha Welfare Trust
User avatar
Ponny
Posts: 172
Joined: Sun Jun 21, 2009 7:34 pm
Location: Mystical Kingdom of Krakovo

Re: OpenOffice BASIC manual

Post by Ponny »

Yes, I need manual for Basic language for macros in openoffice.
Yes I have reviewed "OpenOffice.org 3 User Guides".
But I want something in real book - in material form.

In net user guides I can't find this: Function for storing selection into a variable. In microsoft word 6 wordbasic, this function is "Selection$()". Whole line is then: "a$ = Selection$()".

mijav


Ponny
MS Windows 10: OpenOffice 4.1.13; LibreOffice 7.3.5.2
User avatar
r4zoli
Volunteer
Posts: 2882
Joined: Mon Nov 19, 2007 8:23 pm
Location: Budapest, Hungary

Re: OpenOffice BASIC manual

Post by r4zoli »

But I want something in real book - in material form.
If you carefully check Basic Guide wiki page you can find a link to PDF version and if you print it out, book is ready.

Another source what yuo can use for programing OOo the OpenOffice.org Developer's Guide
AOO 4.0 and LibO 4 on Win 8
Hungarian forum co-admin
FJCC
Moderator
Posts: 9549
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: OpenOffice BASIC manual

Post by FJCC »

I think that Andrew Pitonyak's book might be what you are looking for. He has a web site with a long PDF document (PDF English Macro Document) that will give you a good idea of his style. The OOoBasic language is pretty simple and well explained in the guide you already have. The API used to interact with documents is far more difficult and I think it is that you want to understand. For example, to get the text of a single selected region in a Writer document, you can use this code:

Code: Select all

Doc = ThisComponent
Selections = Doc.CurrentSelection
FirstRegion = Selections.getByIndex(0)
TextString = FirstRegion.String
That doesn't really use any Basic function other than assigning objects to variables, except the use of the ThisComponent variable that is peculiar to Basic. The code would look much the same in Python.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Post Reply