tdf#151185 Make Table Design button toggle-able

Change-Id: I86dfc7a6567b24cc6e9a20203625eeb09c17536c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143574
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
diff --git a/sd/source/ui/table/tablefunction.cxx b/sd/source/ui/table/tablefunction.cxx
index 352ffb3..d3a26e4 100644
--- a/sd/source/ui/table/tablefunction.cxx
+++ b/sd/source/ui/table/tablefunction.cxx
@@ -235,7 +235,7 @@ void DrawViewShell::FuTable(SfxRequest& rReq)
    {
        // First make sure that the sidebar is visible
        GetViewFrame()->ShowChildWindow(SID_SIDEBAR);
        ::sfx2::sidebar::Sidebar::ShowPanel(
        ::sfx2::sidebar::Sidebar::TogglePanel(
            u"SdTableDesignPanel",
            GetViewFrame()->GetFrame().GetFrameInterface());

diff --git a/sd/uiconfig/sdraw/toolbar/tableobjectbar.xml b/sd/uiconfig/sdraw/toolbar/tableobjectbar.xml
index 87655aa..f2f8212 100644
--- a/sd/uiconfig/sdraw/toolbar/tableobjectbar.xml
+++ b/sd/uiconfig/sdraw/toolbar/tableobjectbar.xml
@@ -46,6 +46,5 @@
 <toolbar:toolbaritem xlink:href=".uno:EntireColumn" toolbar:visible="false"/>
 <toolbar:toolbaritem xlink:href=".uno:EntireRow" toolbar:visible="false"/>
 <toolbar:toolbarseparator/>
 <toolbar:toolbaritem xlink:href=".uno:TableDesign"/>
 <toolbar:toolbaritem xlink:href=".uno:TableDialog"/>
</toolbar:toolbar>
diff --git a/sd/uiconfig/simpress/toolbar/tableobjectbar.xml b/sd/uiconfig/simpress/toolbar/tableobjectbar.xml
index 87655aa..f2f8212 100644
--- a/sd/uiconfig/simpress/toolbar/tableobjectbar.xml
+++ b/sd/uiconfig/simpress/toolbar/tableobjectbar.xml
@@ -46,6 +46,5 @@
 <toolbar:toolbaritem xlink:href=".uno:EntireColumn" toolbar:visible="false"/>
 <toolbar:toolbaritem xlink:href=".uno:EntireRow" toolbar:visible="false"/>
 <toolbar:toolbarseparator/>
 <toolbar:toolbaritem xlink:href=".uno:TableDesign"/>
 <toolbar:toolbaritem xlink:href=".uno:TableDialog"/>
</toolbar:toolbar>