31 sal_uInt16
nId = o3tl::narrowing<sal_uInt16>(m_xColNF->get_value()) - 1;
32 const SwTwips lWidth = m_rFnc.GetColWidth(
nId);
33 m_xWidthMF->set_max(m_xWidthMF->normalize(m_rFnc.GetMaxColWidth(
nId)), FieldUnit::TWIP);
34 m_xWidthMF->set_value(m_xWidthMF->normalize(lWidth), FieldUnit::TWIP);
38 : GenericDialogController(pParent,
"modules/swriter/ui/columnwidth.ui",
"ColumnWidthDialog")
40 , m_xColNF(m_xBuilder->weld_spin_button(
"column"))
41 , m_xWidthMF(m_xBuilder->weld_metric_spin_button(
"width",
FieldUnit::
CM))
69 short nRet = GenericDialogController::run();
sal_uInt16 GetColCount() const
SwWrtShell * GetShell() const
void SetColWidth(sal_uInt16 nNum, SwTwips nWidth)
SwTwips GetColWidth(sal_uInt16 nNum) const
sal_uInt16 GetCurColNum() const
std::unique_ptr< weld::MetricSpinButton > m_xWidthMF
std::unique_ptr< weld::SpinButton > m_xColNF
virtual short run() override
SwTableWidthDlg(weld::Window *pParent, SwTableFUNC &rFnc)
SwDocShell * GetDocShell()
const SwView & GetView() const
IMPL_LINK_NOARG(SwTableWidthDlg, LoseFocusHdl, weld::SpinButton &, void)
#define LINK(Instance, Class, Member)