Ask Your Question
0

sub writing out text paragraphs-sub, macro, libreoffice basic [closed]

asked 2014-06-13 16:10:51 +0200

altair gravatar image

updated 2014-06-13 17:30:21 +0200

karolus gravatar image

Hello! This here is ment to be a sub that differs paragraphs in text and writes each paragraph out.

Sub write_paragraph oParEnum = ThisComponent.getText.createEnumeration...

Please, can somonme help me with links about next specific words: ThisComponent getText createEnzmeration

Are all three of them specific words?

p.s. We have a text in writer. This sub (macro) is "reading" the text, and writes out each paragraph by paragraph,

using msgbox (obviously).

Many thansk in advance!!!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-25 09:57:41.707049

2 Answers

Sort by » oldest newest most voted
0

answered 2014-06-13 17:42:42 +0200

Lupp gravatar image

updated 2014-06-13 17:44:09 +0200

LibreOffice BASIC is the same as OpenOffice.org BASIC was and coming from the StarBASIC.

You will find information in:

https://wiki.openoffice.org/wiki/Docu... https://wiki.openoffice.org/w/images/... See also: http://en.libreofficeforum.org/forum/... (sticky topic)

And there is, of course, http://www.pitonyak.org/AndrewMacro.odt . (You may also find a pdf version.)

The main peculiarity seems to be: (From the API "Intro")

OpenOffice.org objects and methods, such as paragraphs, spreadsheets, and fonts, are accessible to OpenOffice.org Basic through the OpenOffice.org application programming interface, or API. Through the API, for example, documents can be created, opened, modified and printed. The API can be used not only by OpenOffice.org Basic, but also by other programming languages, such as Java and C++. The interface between the API and various programming languages is provided by something called Universal Network Objects (UNO).

I myself just write a function for use in Cal here and there. I don't need the API much.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-06-13 16:10:51 +0200

Seen: 512 times

Last updated: Jun 13 '14