Ask Your Question

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

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 BASIC was and coming from the StarBASIC.

You will find information in: See also: (sticky topic)

And there is, of course, . (You may also find a pdf version.)

The main peculiarity seems to be: (From the API "Intro") objects and methods, such as paragraphs, spreadsheets, and fonts, are accessible to Basic through the 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 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


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

Seen: 578 times

Last updated: Jun 13 '14