25#define DEF_ROW_HEIGHT 45
26#define DEF_COL_WIDTH 227
29 : GenericDialogController(pParent, bRow ? OUString(
"dbaccess/ui/rowheightdialog.ui") : OUString(
"dbaccess/ui/colwidthdialog.ui"),
30 bRow ? OUString(
"RowHeightDialog") : OUString(
"ColWidthDialog"))
32 , m_xMF_VALUE(m_xBuilder->weld_metric_spin_button(
"value",
FieldUnit::
CM))
33 , m_xCB_STANDARD(m_xBuilder->weld_check_button(
"automatic"))
36 if ( _nAlternativeStandard > 0 )
37 nStandard = _nAlternativeStandard;
40 bool bDefault = -1 == nVal;
63 return static_cast<sal_Int32
>(
m_xMF_VALUE->get_value( FieldUnit::CM ));
68 m_xMF_VALUE->set_sensitive(!m_xCB_STANDARD->get_active());
69 if (m_xCB_STANDARD->get_active())
72 m_nPrevValue =
static_cast<sal_Int32
>(m_xMF_VALUE->get_value(FieldUnit::CM));
73 m_xMF_VALUE->set_text(
"");
DlgSize(weld::Window *pParent, sal_Int32 nVal, bool bRow, sal_Int32 _nAlternativeStandard=-1)
virtual ~DlgSize() override
sal_Int32 GetValue() const
std::unique_ptr< weld::CheckButton > m_xCB_STANDARD
void SetValue(sal_Int32 nVal)
std::unique_ptr< weld::MetricSpinButton > m_xMF_VALUE
virtual void SetValue(tools::Long nNew) override
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(OApplicationController, OnClipboardChanged, TransferableDataHelper *, void)