Search code examples
javascriptjavalibreofficelibreoffice-calcuno

Is it possible to build a LibreOffice sidebar addon with HTML,CSS and Javascript


Just wondering if its possible to build side bar add-ons for LibreOffice/OpenOffice with HTML, CSS and Javascript.

The other alternative idea would be to use the UNO api and an embedded browser to display a web app and allow interaction. We have a single base for Google Apps and Microsoft Office built as a web app. If we can use a browser and the UNO api then we can have LibreOffice as a deploy target too from the same codebase. Has this been done before?

Any ideas or help would be really appreciated. :)

This is an example of the app that Ill be porting over (all sample data):

Google Apps:

enter image description here

Excel for iPad

enter image description here

Excel for Mac

enter image description here

Excel Online (Office 365)

enter image description here


Solution

  • Follow the instructions on this page for building a panel via an extension (NOT via the C++ core).

    The primary file to create is called Sidebar.xcu. Several other files are needed as well. There is an example of all of these files further down on the page.

    The example is written in Java, and it may be easier to implement the whole sidebar in Java rather than Javascript/CSS/HTML. However it is possible to write extensions using Javascript.