We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question
0

What's the configuration location of "Use LibreOffice dialogues" user preference?

asked 2020-05-15 10:36:25 +0200

updated 2020-05-15 18:15:33 +0200

Hi

I did not manage to identify which configuration parameter holds "Tools - Options - LibreOffice - General - Open/Save dialogs - Use LO dialogs" user preference.

I went through "Tools - Options - LibreOffice - Advanced - Open Expert Configuration" without success

edit retag flag offensive close merge delete

Comments

@LibreOfficiant:

you did a wrong thing here. You had asked a question ("Use LibreOffice dialogs" configuration location), and got an answer. Okay, but then you suddenly provided your own answer, and changed the question's title "Update "Use LibreOffice dialogues" user preference with script", so now my answer is no more relevant to what is asked here.

Please don't do such things. You needed to let this question be as it was, and create another question about scripted update, and add your answer there. Then it would be logical and not confusing.

Mike Kaganski gravatar imageMike Kaganski ( 2020-05-15 17:37:43 +0200 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2020-05-15 10:44:24 +0200

I went through "Tools - Options - LibreOffice - Advanced - Open Expert Configuration" without success

Search for UseSystemFileDialog there.

edit flag offensive delete link more

Comments

So simple ;-)

Thanks

LibreOfficiant gravatar imageLibreOfficiant ( 2020-05-15 11:06:52 +0200 )edit

Please, if the answer solves the question click ✔.

m.a.riosv gravatar imagem.a.riosv ( 2020-05-15 13:10:08 +0200 )edit
1

answered 2020-05-15 16:41:15 +0200

updated 2020-05-15 18:25:23 +0200

* I intended to tweak user preferences with a script* - Here's my take on this particular one:

Option Compatible

Sub Main
    Const USER_PREFERENCE = "Tools - Options - LibreOffice - General - Open/Save Dialogue Boxes - Use LibreOffice dialogue boxes = "
    With GlobalScope.Basiclibraries
        If Not .IsLibraryLoaded("Tools") Then .LoadLibrary("Tools")
    End With
    ' Get user preference, swap it, re-show it and set it back '
    Print USER_PREFERENCE; useProductDialogs : useProductDialogs = Not useProductDialogs
    Print USER_PREFERENCE; useProductDialogs : useProductDialogs = Not useProductDialogs
End Sub

Public Property Get useProductDialogs As Boolean
    ''' Tools - Options - LibreOffice - General - Open/Save Dialogue Boxes - Use LibreOffice dialogue boxes '''
    Dim keyNode As Object ' com.sun.star.configuration.ConfigurationAccess '
    keyNode = Tools.Misc.GetRegistryKeyContent("org.openoffice.Office.Common/Misc")
    UseProductDialogs = Not keyNode.GetByName("UseSystemFileDialog")
End Property ' <library>.<module>.useProductDialogs '

Public Property Let useProductDialogs(value As Boolean)
    ''' Tools - Options - LibreOffice - General - Open/Save Dialogue Boxes - Use LibreOffice dialogue boxes '''
    Dim keyNode As Object ' com.sun.star.configuration.Configuration(Update)Access '
    keyNode = Tools.Misc.GetRegistryKeyContent("org.openoffice.Office.Common/Misc", True)
    keyNode.setPropertyValue("UseSystemFileDialog", Not value)
    keyNode.commitChanges()
End Property ' <library>.<module>.useProductDialogs '

Use it and abuse it …

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-05-15 10:36:25 +0200

Seen: 124 times

Last updated: May 15 '20