This repository contains some boilerplate code and config you need to get started to build your own LibreOffice Sidebar Extension.
You can use this project as a starting point to write your own Sidebar extension for LibreOffice.
This project was based on the LibreOffice Starter Extension
- Install LibreOffice & the LibreOffice SDK (5.0 or greater)
- Install Eclipse IDE for Java Developers & the LOEclipse plugin
- Download this project & unzip it
- Import the project in Eclipse (File->Import->Existing Projects into Workspace)
- Let Eclipse know the paths to LibreOffice & the SDK (Project->Properties->LibreOffice Properties)
- Setup Run Configuration
- Go to Run->Run Configurations
- Create a new run configuration of the type "LibreOffice Application"
- Select the project
- Run!
- Hint: Show the error log to view the output of the run configuration (Window->Show View->Error Log)
- The extension will be installed in LibreOffice (see Tools->Extension Manager)
- Select the new Sidebar Tab with the icon "A1"
- To debug the Java code, just stick a breakpoint anywhere in Eclipse and start your run configuration in debug mode.
- If you add non-code files (or an external .jar) to your extension, you need to mention them in package.properties, else they won't be included in the packaged extension.
- Now go on customizing the extension to your needs. Some helpful links: