From LibreOffice Help
LibreOffice can be controlled by using the LibreOffice API.
|LibreOffice provides an Application Programming Interface (API) that enables you to control LibreOffice components by using various programming languages. A LibreOffice Software Development Kit is available for the programming interface.|
|For more information about LibreOffice API reference, please visit http://api.libreoffice.org/|
|Macros created with LibreOffice Basic based on the old programming interface will no longer be supported by the current version.|
For more information on LibreOffice Basic, select "LibreOffice Basic" in the list box.