nss: upgrade to release 3.73
[LibreOffice.git] / sw / source / uibase / sidebar / TableEditPanel.hxx
blob11345506048472c60e6516bca11f93f299f750b5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 */
11 #pragma once
13 #include <com/sun/star/frame/XFrame.hpp>
14 #include <sfx2/sidebar/PanelLayout.hxx>
15 #include <sfx2/sidebar/ControllerItem.hxx>
16 #include <sfx2/weldutils.hxx>
17 #include <svx/relfld.hxx>
19 namespace sw::sidebar
21 class TableEditPanel : public PanelLayout,
22 public sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
24 friend class VclPtr<TableEditPanel>;
26 public:
27 static VclPtr<vcl::Window> Create(vcl::Window* pParent,
28 const css::uno::Reference<css::frame::XFrame>& rxFrame,
29 SfxBindings* pBindings);
31 virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState,
32 const SfxPoolItem* pState) override;
34 virtual void GetControlState(const sal_uInt16 /*nSId*/,
35 boost::property_tree::ptree& /*rState*/) override{};
37 private:
38 TableEditPanel(vcl::Window* pParent, const css::uno::Reference<css::frame::XFrame>& rxFrame,
39 SfxBindings* pBindings);
40 virtual ~TableEditPanel() override;
41 virtual void dispose() override;
43 void InitRowHeightToolitem();
44 void InitColumnWidthToolitem();
46 SfxBindings* m_pBindings;
48 std::unique_ptr<SvxRelativeField> m_xRowHeightEdit;
49 std::unique_ptr<SvxRelativeField> m_xColumnWidthEdit;
50 std::unique_ptr<weld::Toolbar> m_xInsert;
51 std::unique_ptr<ToolbarUnoDispatcher> m_xInsertDispatch;
52 std::unique_ptr<weld::Toolbar> m_xSelect;
53 std::unique_ptr<ToolbarUnoDispatcher> m_xSelectDispatch;
54 std::unique_ptr<weld::Toolbar> m_xRowSizing;
55 std::unique_ptr<ToolbarUnoDispatcher> m_xRowSizingDispatch;
56 std::unique_ptr<weld::Toolbar> m_xColumnSizing;
57 std::unique_ptr<ToolbarUnoDispatcher> m_xColumnSizingDispatch;
58 std::unique_ptr<weld::Toolbar> m_xDelete;
59 std::unique_ptr<ToolbarUnoDispatcher> m_xDeleteDispatch;
60 std::unique_ptr<weld::Toolbar> m_xSplitMerge;
61 std::unique_ptr<ToolbarUnoDispatcher> m_xSplitMergeDispatch;
62 std::unique_ptr<weld::Toolbar> m_xMisc;
63 std::unique_ptr<ToolbarUnoDispatcher> m_xMiscDispatch;
65 ::sfx2::sidebar::ControllerItem m_aRowHeightController;
66 ::sfx2::sidebar::ControllerItem m_aColumnWidthController;
67 ::sfx2::sidebar::ControllerItem m_aInsertRowsBeforeController;
68 ::sfx2::sidebar::ControllerItem m_aInsertRowsAfterController;
69 ::sfx2::sidebar::ControllerItem m_aInsertColumnsBeforeController;
70 ::sfx2::sidebar::ControllerItem m_aInsertColumnsAfterController;
71 ::sfx2::sidebar::ControllerItem m_aDeleteRowsController;
72 ::sfx2::sidebar::ControllerItem m_aDeleteColumnsController;
73 ::sfx2::sidebar::ControllerItem m_aDeleteTableController;
74 ::sfx2::sidebar::ControllerItem m_aSetMinimalRowHeightController;
75 ::sfx2::sidebar::ControllerItem m_aSetOptimalRowHeightController;
76 ::sfx2::sidebar::ControllerItem m_aDistributeRowsController;
77 ::sfx2::sidebar::ControllerItem m_aSetMinimalColumnWidthController;
78 ::sfx2::sidebar::ControllerItem m_aSetOptimalColumnWidthController;
79 ::sfx2::sidebar::ControllerItem m_aDistributeColumnsController;
80 ::sfx2::sidebar::ControllerItem m_aMergeCellsController;
82 DECL_LINK(RowHeightMofiyHdl, weld::MetricSpinButton&, void);
83 DECL_LINK(ColumnWidthMofiyHdl, weld::MetricSpinButton&, void);
86 } // end of namespace sw::sidebar
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */