In an effort to not duplicate information, you can refer to OpenOffice's documentation (they are still largely compatible).
- Extension development - this page in the Apache OpenOffice wiki
- Extension development starters and tutorials
Before you can start, you need to install the SDK.
To jump-start development, you can take a look at the source of existing extensions on GitHub and SourceForge, such as the LibreOffice Love Letter Writer (in Python). We also have a collection of SDK examples.
TDF offers the Eclipse Plugin "LOEclipse" which helps with developing LibreOffice extensions/components in Java.
The LibreOffice developers are conservative when it comes to changes to the public (UNO) API and thus, most extensions written for OpenOffice.org or Apache OpenOffice will still work with LibreOffice. If changes happen, they are noted in the ReleaseNotes (API changes in 4.2, 4.1 and 4.0).
OpenOffice.org-minimal-versiondependency states that an extension works in the specified OpenOffice.org versions as well as in LibreOffice versions that correspond to at least the specified OpenOffice.org reference version. All LibreOffice versions up to 4.2.3 report that they correspond to OpenOffice.org reference version 3.4, while LibreOffice versions since 4.2.4 report that they correspond to OpenOffice.org reference version 4.1. Using this dependency, the extension declares that it only uses features found in the specified OpenOffice.org reference version (and that it consequently works across all the products, not only for OpenOffice.org itself).
- If an extension makes use of features specific to LibreOffice, starting with LibreOffice 3.5 it can specify a new dependency
http://libreoffice.org/extensions/description/2011. Its required
valueattribute (without namespace) specifies the minimally supported LibreOffice version; it should not contain a micro version number, and it should not be less than
The generally required
nameattribute (with namespace http://openoffice.org/extensions/description/2006) should be “
LibreOffice version” (where
versionis the given version value).
Examples may be found in core/tree/desktop/test/deployment/dependencies: loversion35.oxt or loversion36.oxt.