summaryrefslogtreecommitdiff
path: root/sfx2/source/control
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-06-24 18:54:53 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-06-25 12:03:37 +0200
commitffa17012ef1757a964908b5cdc069d9125e98d43 (patch)
treee44561f6947d48dd204cc0488297459ff88ae613 /sfx2/source/control
parent2c2d84fefc5b3cc35c1db0d8244902362dc0531c (diff)
LOK: Do a ".uno:DocumentStatus" "state changed" callback
... along with proper state changed callbacks for .uno:SlideMasterPage, .uno:NormalMultiPaneGUI, .uno:NotesMode, and others. The ".uno:DocumentStatus" payload is a notification for the callback that it may need to collect the document status. This allows to avoid the bond between the mentioned true UNO command names, and the status collection: since we now send the status updates for all of them, the document status collection would be performed for each of them in the absence of a dedicated signal. This re-implements commit bbd32b39eae24e99d135ed5c48586db8c9b0fb23, without introducing a new callback enum value. Change-Id: I942e17298196ff39ef8817a4cd59ad0fb8fa0da1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169468 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2/source/control')
-rw-r--r--sfx2/source/control/unoctitm.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index a64f297aaf0c..2cc5bbb422b3 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1151,6 +1151,7 @@ constexpr auto handlers = frozen::make_unordered_map<std::u16string_view, Payloa
{ u"CellProtection", IsActivePayload },
{ u"NormalMultiPaneGUI", IsActivePayload },
{ u"NotesMode", IsActivePayload },
+ { u"SlideMasterPage", IsActivePayload },
{ u"CharFontName", FontNamePayload },