LibreOffice Module sw (master) 1
TableEditPanel.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 */
10
11#pragma once
12
13#include <com/sun/star/frame/XFrame.hpp>
16#include <sfx2/weldutils.hxx>
17#include <svx/relfld.hxx>
18
19namespace sw::sidebar
20{
23{
24public:
25 static std::unique_ptr<PanelLayout>
26 Create(weld::Widget* pParent, const css::uno::Reference<css::frame::XFrame>& rxFrame,
27 SfxBindings* pBindings);
28
29 TableEditPanel(weld::Widget* pParent, const css::uno::Reference<css::frame::XFrame>& rxFrame,
30 SfxBindings* pBindings);
31 virtual ~TableEditPanel() override;
32
33 virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState,
34 const SfxPoolItem* pState) override;
35
36 virtual void GetControlState(const sal_uInt16 /*nSId*/,
37 boost::property_tree::ptree& /*rState*/) override{};
38
39private:
42
44
47 std::unique_ptr<weld::Toolbar> m_xInsert;
48 std::unique_ptr<ToolbarUnoDispatcher> m_xInsertDispatch;
49 std::unique_ptr<weld::Toolbar> m_xSelect;
50 std::unique_ptr<ToolbarUnoDispatcher> m_xSelectDispatch;
51 std::unique_ptr<weld::Toolbar> m_xRowSizing;
52 std::unique_ptr<ToolbarUnoDispatcher> m_xRowSizingDispatch;
53 std::unique_ptr<weld::Toolbar> m_xColumnSizing;
54 std::unique_ptr<ToolbarUnoDispatcher> m_xColumnSizingDispatch;
55 std::unique_ptr<weld::Toolbar> m_xDelete;
56 std::unique_ptr<ToolbarUnoDispatcher> m_xDeleteDispatch;
57 std::unique_ptr<weld::Toolbar> m_xSplitMerge;
58 std::unique_ptr<ToolbarUnoDispatcher> m_xSplitMergeDispatch;
59 std::unique_ptr<weld::Toolbar> m_xMisc;
60 std::unique_ptr<ToolbarUnoDispatcher> m_xMiscDispatch;
61
78
79 DECL_LINK(RowHeightMofiyHdl, weld::MetricSpinButton&, void);
80 DECL_LINK(ColumnWidthMofiyHdl, weld::MetricSpinButton&, void);
81};
82
83} // end of namespace sw::sidebar
84
85/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Toolbar > m_xSplitMerge
std::unique_ptr< ToolbarUnoDispatcher > m_xMiscDispatch
::sfx2::sidebar::ControllerItem m_aInsertRowsAfterController
std::unique_ptr< ToolbarUnoDispatcher > m_xRowSizingDispatch
std::unique_ptr< weld::Toolbar > m_xInsert
::sfx2::sidebar::ControllerItem m_aInsertColumnsAfterController
std::unique_ptr< weld::Toolbar > m_xDelete
::sfx2::sidebar::ControllerItem m_aRowHeightController
::sfx2::sidebar::ControllerItem m_aMergeCellsController
::sfx2::sidebar::ControllerItem m_aSetOptimalRowHeightController
std::unique_ptr< ToolbarUnoDispatcher > m_xInsertDispatch
std::unique_ptr< ToolbarUnoDispatcher > m_xColumnSizingDispatch
::sfx2::sidebar::ControllerItem m_aDeleteColumnsController
::sfx2::sidebar::ControllerItem m_aColumnWidthController
std::unique_ptr< ToolbarUnoDispatcher > m_xDeleteDispatch
DECL_LINK(RowHeightMofiyHdl, weld::MetricSpinButton &, void)
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
std::unique_ptr< weld::Toolbar > m_xColumnSizing
::sfx2::sidebar::ControllerItem m_aDeleteTableController
::sfx2::sidebar::ControllerItem m_aInsertRowsBeforeController
std::unique_ptr< weld::Toolbar > m_xSelect
TableEditPanel(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, SfxBindings *pBindings)
::sfx2::sidebar::ControllerItem m_aSetMinimalColumnWidthController
::sfx2::sidebar::ControllerItem m_aInsertColumnsBeforeController
std::unique_ptr< ToolbarUnoDispatcher > m_xSelectDispatch
virtual ~TableEditPanel() override
DECL_LINK(ColumnWidthMofiyHdl, weld::MetricSpinButton &, void)
SvxRelativeField m_aColumnWidthEdit
std::unique_ptr< weld::Toolbar > m_xRowSizing
std::unique_ptr< weld::Toolbar > m_xMisc
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, SfxBindings *pBindings)
SvxRelativeField m_aRowHeightEdit
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
::sfx2::sidebar::ControllerItem m_aSetMinimalRowHeightController
::sfx2::sidebar::ControllerItem m_aDistributeRowsController
::sfx2::sidebar::ControllerItem m_aDeleteRowsController
::sfx2::sidebar::ControllerItem m_aSetOptimalColumnWidthController
::sfx2::sidebar::ControllerItem m_aDistributeColumnsController
std::unique_ptr< ToolbarUnoDispatcher > m_xSplitMergeDispatch
SfxItemState