23#include <com/sun/star/lang/IllegalArgumentException.hpp>
27std::unique_ptr<PanelLayout>
29 const css::uno::Reference<css::frame::XFrame>& rxFrame,
32 if (pParent ==
nullptr)
33 throw css::lang::IllegalArgumentException(
34 "no parent Window given to TableEditPanel::Create",
nullptr, 0);
36 throw css::lang::IllegalArgumentException(
"no XFrame given to TableEditPanel::Create",
39 return std::make_unique<TableEditPanel>(pParent, rxFrame, pBindings);
49 bool bDisabled = eState == SfxItemState::DISABLED;
52 if (pState && eState >= SfxItemState::DEFAULT)
62 else if (eState != SfxItemState::DISABLED)
69 bool bDisabled = eState == SfxItemState::DISABLED;
72 if (pState && eState >= SfxItemState::DEFAULT)
82 else if (eState != SfxItemState::DISABLED)
91 const css::uno::Reference<css::frame::XFrame>& rxFrame,
93 :
PanelLayout(pParent,
"TableEditPanel",
"modules/swriter/ui/sidebartableedit.ui")
94 , m_pBindings(pBindings)
95 , m_aRowHeightEdit(m_xBuilder->weld_metric_spin_button(
"rowheight",
FieldUnit::
CM))
96 , m_aColumnWidthEdit(m_xBuilder->weld_metric_spin_button(
"columnwidth",
FieldUnit::
CM))
97 , m_xInsert(m_xBuilder->weld_toolbar(
"insert"))
99 , m_xSelect(m_xBuilder->weld_toolbar(
"select"))
101 , m_xRowSizing(m_xBuilder->weld_toolbar(
"rowsizing"))
103 , m_xColumnSizing(m_xBuilder->weld_toolbar(
"columnsizing"))
105 , m_xDelete(m_xBuilder->weld_toolbar(
"delete"))
107 , m_xSplitMerge(m_xBuilder->weld_toolbar(
"split_merge"))
109 , m_xMisc(m_xBuilder->weld_toolbar(
"misc"))
120 , m_aSetMinimalRowHeightController(SID_TABLE_MINIMAL_ROW_HEIGHT, *pBindings, *this)
123 , m_aSetMinimalColumnWidthController(SID_TABLE_MINIMAL_COLUMN_WIDTH, *pBindings, *this)
138 m_xMisc->set_item_visible(
".uno:InsertFormula",
false);
213 m_aRowHeightEdit.denormalize(m_aRowHeightEdit.get_value(FieldUnit::TWIP)));
224 m_aColumnWidthEdit.denormalize(m_aColumnWidthEdit.get_value(FieldUnit::TWIP)));
void SetValue(sal_uInt32 nTheValue)
sal_uInt32 GetValue() const
void set_text(const OUString &rText)
int normalize(int nValue) const
void connect_value_changed(const Link< weld::MetricSpinButton &, void > &rLink)
void set_min(int min, FieldUnit eValueUnit)
void SetFieldUnit(FieldUnit eUnit, bool bAll=false)
void set_max(int max, FieldUnit eValueUnit)
void set_value(int nValue, FieldUnit eValueUnit)
void set_sensitive(bool sensitive)
#define SID_ATTR_TABLE_COLUMN_WIDTH
#define FN_TABLE_BALANCE_ROWS
#define FN_TABLE_ADJUST_CELLS
#define FN_TABLE_BALANCE_CELLS
#define FN_TABLE_INSERT_ROW_BEFORE
#define FN_TABLE_DELETE_ROW
#define SID_ATTR_TABLE_ROW_HEIGHT
#define FN_TABLE_INSERT_COL_BEFORE
#define FN_TABLE_DELETE_COL
#define FN_TABLE_MERGE_CELLS
#define FN_TABLE_INSERT_ROW_AFTER
#define FN_TABLE_OPTIMAL_HEIGHT
#define FN_TABLE_DELETE_TABLE
#define FN_TABLE_INSERT_COL_AFTER
void limitWidthForSidebar(weld::SpinButton &rSpinButton)
SVX_DLLPUBLIC void padWidthForSidebar(weld::Toolbar &rToolbar, const css::uno::Reference< css::frame::XFrame > &rFrame)
#define LINK(Instance, Class, Member)