Document options of an extension

Katarina Behrens Katarina.Behrens at cib.de
Tue Aug 16 09:24:05 UTC 2016


Hi Jan, *

> what is the correct way to access document-specific options of an
> extension through the gui?

> The options are stored in an XNamedGraph.
> 
> But where would the user expect to find them in the GUI?
> 
>   * File -> Properties?

Here ^^^ given that the options are persistent i.e. they're stored in the 
document too.

>   * Extras -> Options -> Writer -> <some option page that is not global,
>     but document specific>

Rather not, Tools > Options should be really reserved for global, system-wide 
options. Not all pages therein comply to that rule though, and it's an awful, 
confusing user experience then.

Moreover, I'm not sure if it's possible at all to add a new options page via 
extension ( what this means is just that I'd have no idea whatsoever how to do 
it myself ;-) )

>   * New menu entry (the extension has its own menu in the menu bar anyway)

Or here, it should be [1] fairly easy to create simple dialogs with Basic 
dialog editor and then interface with them from whatever language your 
extension is written in (I've successfully tried and tested Java for this 
purpose). You can even define some help texts for your dialog that way.

HTH

[1] "should be", but dialog editor is plagued with many bugs
-- 

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