2

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

James Drew
  • 628
  • 6
  • 10

1 Answers1

1

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.

Jim K
  • 12,824
  • 2
  • 22
  • 51
  • Hi @Jim, Thanks for the documentation details. They were really helpful. Just wondering on the second option of embedding a browser into the sidebar if you've seen this done or if there are any docs/code samples/libs for doing this? – James Drew Jun 04 '16 at 13:32
  • I do not think LibreOffice has a [web browser control](https://forum.openoffice.org/en/forum/viewtopic.php?f=39&t=79406). Also, if you found the answer to be helpful, then please mark it as accepted. – Jim K Jun 04 '16 at 18:35