summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJustin Luth <jluth@mail.com>2023-09-29 11:01:28 -0400
committerJustin Luth <jluth@mail.com>2023-09-30 11:56:49 +0200
commitba07ae10e765cb135097dceefd94346ff43bf472 (patch)
tree31ce36b1eb9d2510e257eb39e824cb7641f5abac /include
parenta2b389d3a94e93cbddf5f1bbb1396ccc9031cdd1 (diff)
pdf-dialog general-tab: set_sensitive if config not read-only
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 <jluth@mail.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/FilterConfigItem.hxx2
1 files changed, 2 insertions, 0 deletions
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