How to access general settings from Java

Java, C++, C#, Delphi, ??? - Using the UNO bridges

How to access general settings from Java

Postby johnrdorazio » Wed Jul 08, 2020 11:19 pm

Can an add-on written in Java access Writer general settings?
In particular I need to access the current measurement unit set for the ruler, to know if for example it is in CM or Inches or MM...
This option can be set in the menu Tools -> Options -> OpenOffice Writer -> General -> Settings -> Measurement unit .
It can also be set by right clicking on the ruler itself. In this case, I have noticed that any change in the measurement unit by right-clicking on the ruler does not change the unit set in the above menu option, however any change in the menu option will be reflected on the ruler and it's context menu that pops up when right-clicking the ruler.
I wonder if these two paths should be better synchronized so that any change in one will be reflected in the other.
But in any case, how would this setting be accessed from a Java add-on?
OpenOffice 4.1.6, NetBeans 8.1, Windows 10 x64 Home
Posts: 32
Joined: Sun Aug 17, 2014 2:04 pm
Location: Italy

Return to External Programs

Who is online

Users browsing this forum: No registered users and 2 guests