diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-06-30 06:09:23 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-07-28 07:37:31 +0200 |
commit | 30e08c83e502562966351f4236e9dd9230ffa435 (patch) | |
tree | c30f96ce2290e404f10e186f0229334b287544a7 /include | |
parent | 2fc16dc84d0b1b1bd7978a30e1b79ff3100fefdf (diff) |
lok: Enable sidebar in Math
Change-Id: I1554a924eef0bfcaffa893057a37ef45321a0cf7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137246
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/lokcomponenthelpers.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/sidebar/SidebarController.hxx | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/sfx2/lokcomponenthelpers.hxx b/include/sfx2/lokcomponenthelpers.hxx index 6a3d964689b4..02e8750ca381 100644 --- a/include/sfx2/lokcomponenthelpers.hxx +++ b/include/sfx2/lokcomponenthelpers.hxx @@ -15,8 +15,10 @@ #include <vcl/vclptr.hxx> #include <vcl/window.hxx> +namespace com::sun::star::beans { struct PropertyValue; } namespace com::sun::star::frame { class XController; } namespace com::sun::star::frame { class XDispatch; } +namespace com::sun::star::uno { template<class E> class Sequence; } class SfxViewShell; class VirtualDevice; @@ -72,6 +74,8 @@ public: vcl::Window* GetGraphicWindow(); vcl::Window* GetWidgetWindow(); + void Dispatch(const OUString& cmd, const css::uno::Sequence<css::beans::PropertyValue>& rArguments); + bool postMouseEvent(int nType, int nX, int nY, int nCount, int nButtons, int nModifier, double fScaleX = 1.0, double fScaleY = 1.0); diff --git a/include/sfx2/sidebar/SidebarController.hxx b/include/sfx2/sidebar/SidebarController.hxx index 8d8dcf215527..e996c853c5b0 100644 --- a/include/sfx2/sidebar/SidebarController.hxx +++ b/include/sfx2/sidebar/SidebarController.hxx @@ -170,7 +170,7 @@ public: void SyncUpdate(); - bool hasChartContextCurrently() const; + bool hasChartOrMathContextCurrently() const; static SidebarController* GetSidebarControllerForView(const SfxViewShell* pViewShell); |