From ba07ae10e765cb135097dceefd94346ff43bf472 Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Fri, 29 Sep 2023 11:01:28 -0400 Subject: pdf-dialog general-tab: set_sensitive if config not read-only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Disable (gray out) Export as PDF options that are enforced (unchangeable) in the settings, similar to how optsave does it for tools - options. It is possible for an config extension to set oor:finalized="true", which needs to prevent the user from changing the value. Noticed during the LibreOffice conference in Bucharest, RO. mxCbExportBookmarks == Export Outlines Change-Id: I27f28107d1c1dc5d46fc6e2b8a8a83933e30d6ca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157408 Tested-by: Jenkins Reviewed-by: Justin Luth Reviewed-by: Caolán McNamara --- include/vcl/FilterConfigItem.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/vcl/FilterConfigItem.hxx b/include/vcl/FilterConfigItem.hxx index 45692fedb01f..9a2bb1f51f04 100644 --- a/include/vcl/FilterConfigItem.hxx +++ b/include/vcl/FilterConfigItem.hxx @@ -69,6 +69,8 @@ public: /// Writes config and sets unmodified state again. void WriteModifiedConfig(); + bool IsReadOnly(const OUString& rPropName); + // all read methods are trying to return values in following order: // 1. FilterData PropertySequence // 2. configuration -- cgit