LibreOffice Module sw (master)
1
sw
source
uibase
sidebar
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>
14
#include <
sfx2/sidebar/PanelLayout.hxx
>
15
#include <
sfx2/sidebar/ControllerItem.hxx
>
16
#include <
sfx2/weldutils.hxx
>
17
#include <
svx/relfld.hxx
>
18
19
namespace
sw::sidebar
20
{
21
class
TableEditPanel
:
public
PanelLayout
,
22
public
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
23
{
24
public
:
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
39
private
:
40
void
InitRowHeightToolitem
();
41
void
InitColumnWidthToolitem
();
42
43
SfxBindings
*
m_pBindings
;
44
45
SvxRelativeField
m_aRowHeightEdit
;
46
SvxRelativeField
m_aColumnWidthEdit
;
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
62
::sfx2::sidebar::ControllerItem
m_aRowHeightController
;
63
::sfx2::sidebar::ControllerItem
m_aColumnWidthController
;
64
::sfx2::sidebar::ControllerItem
m_aInsertRowsBeforeController
;
65
::sfx2::sidebar::ControllerItem
m_aInsertRowsAfterController
;
66
::sfx2::sidebar::ControllerItem
m_aInsertColumnsBeforeController
;
67
::sfx2::sidebar::ControllerItem
m_aInsertColumnsAfterController
;
68
::sfx2::sidebar::ControllerItem
m_aDeleteRowsController
;
69
::sfx2::sidebar::ControllerItem
m_aDeleteColumnsController
;
70
::sfx2::sidebar::ControllerItem
m_aDeleteTableController
;
71
::sfx2::sidebar::ControllerItem
m_aSetMinimalRowHeightController
;
72
::sfx2::sidebar::ControllerItem
m_aSetOptimalRowHeightController
;
73
::sfx2::sidebar::ControllerItem
m_aDistributeRowsController
;
74
::sfx2::sidebar::ControllerItem
m_aSetMinimalColumnWidthController
;
75
::sfx2::sidebar::ControllerItem
m_aSetOptimalColumnWidthController
;
76
::sfx2::sidebar::ControllerItem
m_aDistributeColumnsController
;
77
::sfx2::sidebar::ControllerItem
m_aMergeCellsController
;
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: */
ControllerItem.hxx
PanelLayout.hxx
PanelLayout
SfxBindings
SfxPoolItem
SvxRelativeField
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
sfx2::sidebar::ControllerItem
sw::sidebar::TableEditPanel
Definition:
TableEditPanel.hxx:23
sw::sidebar::TableEditPanel::m_xSplitMerge
std::unique_ptr< weld::Toolbar > m_xSplitMerge
Definition:
TableEditPanel.hxx:57
sw::sidebar::TableEditPanel::m_xMiscDispatch
std::unique_ptr< ToolbarUnoDispatcher > m_xMiscDispatch
Definition:
TableEditPanel.hxx:60
sw::sidebar::TableEditPanel::m_aInsertRowsAfterController
::sfx2::sidebar::ControllerItem m_aInsertRowsAfterController
Definition:
TableEditPanel.hxx:65
sw::sidebar::TableEditPanel::m_xRowSizingDispatch
std::unique_ptr< ToolbarUnoDispatcher > m_xRowSizingDispatch
Definition:
TableEditPanel.hxx:52
sw::sidebar::TableEditPanel::m_xInsert
std::unique_ptr< weld::Toolbar > m_xInsert
Definition:
TableEditPanel.hxx:47
sw::sidebar::TableEditPanel::m_aInsertColumnsAfterController
::sfx2::sidebar::ControllerItem m_aInsertColumnsAfterController
Definition:
TableEditPanel.hxx:67
sw::sidebar::TableEditPanel::m_xDelete
std::unique_ptr< weld::Toolbar > m_xDelete
Definition:
TableEditPanel.hxx:55
sw::sidebar::TableEditPanel::m_aRowHeightController
::sfx2::sidebar::ControllerItem m_aRowHeightController
Definition:
TableEditPanel.hxx:62
sw::sidebar::TableEditPanel::m_aMergeCellsController
::sfx2::sidebar::ControllerItem m_aMergeCellsController
Definition:
TableEditPanel.hxx:77
sw::sidebar::TableEditPanel::m_aSetOptimalRowHeightController
::sfx2::sidebar::ControllerItem m_aSetOptimalRowHeightController
Definition:
TableEditPanel.hxx:72
sw::sidebar::TableEditPanel::m_xInsertDispatch
std::unique_ptr< ToolbarUnoDispatcher > m_xInsertDispatch
Definition:
TableEditPanel.hxx:48
sw::sidebar::TableEditPanel::m_xColumnSizingDispatch
std::unique_ptr< ToolbarUnoDispatcher > m_xColumnSizingDispatch
Definition:
TableEditPanel.hxx:54
sw::sidebar::TableEditPanel::m_aDeleteColumnsController
::sfx2::sidebar::ControllerItem m_aDeleteColumnsController
Definition:
TableEditPanel.hxx:69
sw::sidebar::TableEditPanel::m_aColumnWidthController
::sfx2::sidebar::ControllerItem m_aColumnWidthController
Definition:
TableEditPanel.hxx:63
sw::sidebar::TableEditPanel::m_xDeleteDispatch
std::unique_ptr< ToolbarUnoDispatcher > m_xDeleteDispatch
Definition:
TableEditPanel.hxx:56
sw::sidebar::TableEditPanel::DECL_LINK
DECL_LINK(RowHeightMofiyHdl, weld::MetricSpinButton &, void)
sw::sidebar::TableEditPanel::GetControlState
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
Definition:
TableEditPanel.hxx:36
sw::sidebar::TableEditPanel::m_xColumnSizing
std::unique_ptr< weld::Toolbar > m_xColumnSizing
Definition:
TableEditPanel.hxx:53
sw::sidebar::TableEditPanel::m_aDeleteTableController
::sfx2::sidebar::ControllerItem m_aDeleteTableController
Definition:
TableEditPanel.hxx:70
sw::sidebar::TableEditPanel::m_aInsertRowsBeforeController
::sfx2::sidebar::ControllerItem m_aInsertRowsBeforeController
Definition:
TableEditPanel.hxx:64
sw::sidebar::TableEditPanel::m_xSelect
std::unique_ptr< weld::Toolbar > m_xSelect
Definition:
TableEditPanel.hxx:49
sw::sidebar::TableEditPanel::m_pBindings
SfxBindings * m_pBindings
Definition:
TableEditPanel.hxx:43
sw::sidebar::TableEditPanel::TableEditPanel
TableEditPanel(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, SfxBindings *pBindings)
Definition:
TableEditPanel.cxx:90
sw::sidebar::TableEditPanel::m_aSetMinimalColumnWidthController
::sfx2::sidebar::ControllerItem m_aSetMinimalColumnWidthController
Definition:
TableEditPanel.hxx:74
sw::sidebar::TableEditPanel::m_aInsertColumnsBeforeController
::sfx2::sidebar::ControllerItem m_aInsertColumnsBeforeController
Definition:
TableEditPanel.hxx:66
sw::sidebar::TableEditPanel::m_xSelectDispatch
std::unique_ptr< ToolbarUnoDispatcher > m_xSelectDispatch
Definition:
TableEditPanel.hxx:50
sw::sidebar::TableEditPanel::~TableEditPanel
virtual ~TableEditPanel() override
Definition:
TableEditPanel.cxx:169
sw::sidebar::TableEditPanel::DECL_LINK
DECL_LINK(ColumnWidthMofiyHdl, weld::MetricSpinButton &, void)
sw::sidebar::TableEditPanel::InitRowHeightToolitem
void InitRowHeightToolitem()
Definition:
TableEditPanel.cxx:141
sw::sidebar::TableEditPanel::m_aColumnWidthEdit
SvxRelativeField m_aColumnWidthEdit
Definition:
TableEditPanel.hxx:46
sw::sidebar::TableEditPanel::InitColumnWidthToolitem
void InitColumnWidthToolitem()
Definition:
TableEditPanel.cxx:155
sw::sidebar::TableEditPanel::m_xRowSizing
std::unique_ptr< weld::Toolbar > m_xRowSizing
Definition:
TableEditPanel.hxx:51
sw::sidebar::TableEditPanel::m_xMisc
std::unique_ptr< weld::Toolbar > m_xMisc
Definition:
TableEditPanel.hxx:59
sw::sidebar::TableEditPanel::Create
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, SfxBindings *pBindings)
Definition:
TableEditPanel.cxx:28
sw::sidebar::TableEditPanel::m_aRowHeightEdit
SvxRelativeField m_aRowHeightEdit
Definition:
TableEditPanel.hxx:45
sw::sidebar::TableEditPanel::NotifyItemUpdate
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
Definition:
TableEditPanel.cxx:42
sw::sidebar::TableEditPanel::m_aSetMinimalRowHeightController
::sfx2::sidebar::ControllerItem m_aSetMinimalRowHeightController
Definition:
TableEditPanel.hxx:71
sw::sidebar::TableEditPanel::m_aDistributeRowsController
::sfx2::sidebar::ControllerItem m_aDistributeRowsController
Definition:
TableEditPanel.hxx:73
sw::sidebar::TableEditPanel::m_aDeleteRowsController
::sfx2::sidebar::ControllerItem m_aDeleteRowsController
Definition:
TableEditPanel.hxx:68
sw::sidebar::TableEditPanel::m_aSetOptimalColumnWidthController
::sfx2::sidebar::ControllerItem m_aSetOptimalColumnWidthController
Definition:
TableEditPanel.hxx:75
sw::sidebar::TableEditPanel::m_aDistributeColumnsController
::sfx2::sidebar::ControllerItem m_aDistributeColumnsController
Definition:
TableEditPanel.hxx:76
sw::sidebar::TableEditPanel::m_xSplitMergeDispatch
std::unique_ptr< ToolbarUnoDispatcher > m_xSplitMergeDispatch
Definition:
TableEditPanel.hxx:58
weld::MetricSpinButton
weld::Widget
sw::sidebar
Definition:
A11yCheckIssuesPanel.cxx:30
SfxItemState
SfxItemState
relfld.hxx
weldutils.hxx
Generated on Sun Jul 30 2023 04:30:03 for LibreOffice Module sw (master) by
1.9.3