Writer section protection through password in JAVA?

asked 2018-12-31 06:33:17 +0100

munirusaf gravatar image

updated 2020-07-10 23:09:19 +0100

Alex Kemp gravatar image

Have anyone worked on protecting section(s) by applying password in libre writer through JAVA? I have recorded macro but macro doesn't capture password instead it gives me below line:

dispatcher.executeDispatch(document, ".uno:EditCurrentRegion", "", 0, Array())

I am unable to translate this Array() i.e. how can i provide password in macro for each section in libre writer document? P.S. if anyone has JAVA code for section protection via same/different password(s) for all section(s) of libre writer document that will be grateful.

edit retag flag offensive close merge delete