Handling the sidbar with API and macro's

Katarina Behrens Katarina.Behrens at cib.de
Mon May 2 09:19:39 UTC 2016


Hi,

> Any news on if and how we can handle the sidebar using the API and Macro's ?

Since Libreoffice 5.1 (or was it 5.0 already?) sidebar has UNO API, so it can be 
used in macros or applications/programs that talk to Libreoffice via UNO API in 
any language that has UNO bindings (Basic, Python, Java, C++, Haskell etc.)

Entry point is XSidebarProvider [1] (available via XController2 unpublished 
interface). More relevant interfaces: XDecks, XDeck, XPanel

The following git commit [2] has some nice Basic example on how to use sidebar 
UNO API (hm, the example should perhaps move to some other location, a git 
commit is pretty bad place for it to be)

HTH

[1] 
http://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1ui_1_1XSidebarProvider.html
[2] 
https://cgit.freedesktop.org/libreoffice/core/commit/?id=a64999511ae654131d997eec9a3d78478cfc1c75
-- 

Katarina Behrens

Softwareentwicklerin LibreOffice
–––
CIB software GmbH
Geschäftsstelle Hamburg
Flachsland 10
22083 Hamburg
–––
T +49 (40) / 28 48 42 -235
F +49 (40) / 28 48 42 -100

Katarina.Behrens at cib.de
www.cib.de
–––
Sitz: München
Registergericht München, HRB 123286
Geschäftsführer: Dipl.-Ing. Ulrich Brandner


More information about the LibreOffice mailing list