summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2020-09-07 09:40:29 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2020-09-07 10:33:09 +0200
commit17d06055d213e907b966081690d5977a91ae69f7 (patch)
tree6cdb0a6228b26802a727d2fc6edc2f484b1385c9 /sw
parente1cfc9cd1b42d17db92e820d4c4c21cb4e8533e5 (diff)
Hide InsertFormula in Writer online
Change-Id: I5875559b46d242434b8e47f214e7f7f7a4a3db6d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102146 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/sidebar/TableEditPanel.cxx6
-rw-r--r--sw/source/uibase/sidebar/TableEditPanel.hxx2
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/uibase/sidebar/TableEditPanel.cxx b/sw/source/uibase/sidebar/TableEditPanel.cxx
index a657feb8718c..a57311c5cf40 100644
--- a/sw/source/uibase/sidebar/TableEditPanel.cxx
+++ b/sw/source/uibase/sidebar/TableEditPanel.cxx
@@ -19,6 +19,7 @@
#include <swmodule.hxx>
#include <usrpref.hxx>
#include <svx/svxids.hrc>
+#include <comphelper/lok.hxx>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
@@ -116,6 +117,10 @@ TableEditPanel::TableEditPanel(vcl::Window* pParent,
{
get(m_pRowHeightEdit, "rowheight");
get(m_pColumnWidthEdit, "columnwidth");
+ get(m_pMiscToolbar, "misc");
+
+ if (comphelper::LibreOfficeKit::isActive())
+ m_pMiscToolbar->HideItem(m_pMiscToolbar->GetItemId(".uno:InsertFormula"));
InitRowHeightToolitem();
InitColumnWidthToolitem();
@@ -151,6 +156,7 @@ void TableEditPanel::dispose()
{
m_pRowHeightEdit.clear();
m_pColumnWidthEdit.clear();
+ m_pMiscToolbar.clear();
m_aRowHeightController.dispose();
m_aColumnWidthController.dispose();
m_aInsertRowsBeforeController.dispose();
diff --git a/sw/source/uibase/sidebar/TableEditPanel.hxx b/sw/source/uibase/sidebar/TableEditPanel.hxx
index 13ae11b5dd99..4088d0a7a433 100644
--- a/sw/source/uibase/sidebar/TableEditPanel.hxx
+++ b/sw/source/uibase/sidebar/TableEditPanel.hxx
@@ -15,6 +15,7 @@
#include <svx/sidebar/PanelLayout.hxx>
#include <sfx2/sidebar/ControllerItem.hxx>
#include <svx/relfld.hxx>
+#include <sfx2/sidebar/SidebarToolBox.hxx>
namespace sw
{
@@ -49,6 +50,7 @@ private:
VclPtr<SvxRelativeField> m_pRowHeightEdit;
VclPtr<SvxRelativeField> m_pColumnWidthEdit;
+ VclPtr<::sfx2::sidebar::SidebarToolBox> m_pMiscToolbar;
::sfx2::sidebar::ControllerItem m_aRowHeightController;
::sfx2::sidebar::ControllerItem m_aColumnWidthController;
::sfx2::sidebar::ControllerItem m_aInsertRowsBeforeController;