diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-08-11 15:08:01 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-08-11 17:28:51 +0200 |
commit | 0d9d0ca83fc072979ffda84d993055f44793d05d (patch) | |
tree | 57887d3f41b083e3a68bfcf469dcff3be94585b6 /include/sfx2 | |
parent | 10e81b3dd5e0712eb8298ee7b6ebf844440fc2d8 (diff) |
lok: Simplify context change notification
Change-Id: I3ead4deb5bdfe638bc49e05bfba0d8c630687958
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138141
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/lokhelper.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sfx2/lokhelper.hxx b/include/sfx2/lokhelper.hxx index 0b18c0fa7b5e..909b6335733d 100644 --- a/include/sfx2/lokhelper.hxx +++ b/include/sfx2/lokhelper.hxx @@ -44,6 +44,8 @@ struct SFX2_DLLPUBLIC LokMouseEventData #include <boost/property_tree/ptree_fwd.hpp> +namespace com::sun::star::ui { struct ContextChangeEventObject; }; + class SFX2_DLLPUBLIC SfxLokHelper { public: @@ -115,7 +117,7 @@ public: static void notifyAllViews(int nType, const OString& rPayload); /// Notify about the editing context change. - static void notifyContextChange(SfxViewShell const* pViewShell, const OUString& aApplication, const OUString& aContext); + static void notifyContextChange(const css::ui::ContextChangeEventObject& rEvent); // Notify about the given type needing an update. static void notifyUpdate(SfxViewShell const* pViewShell, int nType); |