20#include <rptui_slotid.hrc>
36 uno::Reference< report::XReportDefinition > _xHoldAlive,
37 OReportController* _pController)
38 : GenericDialogController(pParent,
"modules/dbreport/ui/pagenumberdialog.ui",
"PageNumberDialog")
39 , m_pController(_pController)
40 , m_xHoldAlive(
std::move(_xHoldAlive))
41 , m_xPageNofM(m_xBuilder->weld_radio_button(
"pagenofm"))
42 , m_xTopPage(m_xBuilder->weld_radio_button(
"toppage"))
43 , m_xAlignmentLst(m_xBuilder->weld_combo_box(
"alignment"))
44 , m_xShowNumberOnFirstPage(m_xBuilder->weld_check_button(
"shownumberonfirstpage"))
46 m_xShowNumberOnFirstPage->hide();
49OPageNumberDialog::~OPageNumberDialog()
53short OPageNumberDialog::run()
55 short nRet = GenericDialogController::run();
60 sal_Int32 nControlMaxSize = 3000;
64 switch (m_xAlignmentLst->get_active())
73 nPosX = (aRptSize.Width - getStyleProperty<sal_Int32>(m_xHoldAlive,
PROPERTY_RIGHTMARGIN) - nControlMaxSize);
78 nPos2X = (aRptSize.Width - getStyleProperty<sal_Int32>(m_xHoldAlive,
PROPERTY_RIGHTMARGIN) - nControlMaxSize);
83 if (m_xAlignmentLst->get_active() > 2)
92 m_pController->executeChecked(SID_INSERT_FLD_PGNUMBER,aValues);
94 catch(uno::Exception&)
OPageNumberDialog(const OPageNumberDialog &)=delete
css::uno::Sequence< css::beans::PropertyValue > InitPropertySequence(::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
constexpr OUStringLiteral PROPERTY_POSITION
constexpr OUStringLiteral PROPERTY_PAGEHEADERON
constexpr OUStringLiteral PROPERTY_RIGHTMARGIN
constexpr OUStringLiteral PROPERTY_STATE
constexpr OUStringLiteral PROPERTY_LEFTMARGIN
constexpr OUStringLiteral PROPERTY_PAPERSIZE