30 : GenericDialogController(pParent,
"modules/swriter/ui/gotopagedialog.ui",
"GotoPageDialog")
31 , m_pCreateView(nullptr)
32 , m_rBindings(rBindings)
34 , mxMtrPageCtrl(m_xBuilder->weld_spin_button(
"page"))
35 , mxPageNumberLbl(m_xBuilder->weld_label(
"page_count"))
42 mxPageNumberLbl->set_label(sStr.replaceFirst(
"$1", OUString::number(nTotalPage)));
52 if (mxMtrPageCtrl->get_text().isEmpty())
55 int page_value = mxMtrPageCtrl->get_text().toInt32();
58 mxMtrPageCtrl->set_value(1);
59 else if (page_value > mnMaxPageCnt)
60 mxMtrPageCtrl->set_value(mnMaxPageCnt);
62 mxMtrPageCtrl->set_value(page_value);
64 mxMtrPageCtrl->set_position(-1);
96 sal_uInt16 nPhyPage, nVirPage;
SfxBindings & GetBindings()
SfxViewFrame & GetViewFrame() const
void GetPageNum(sal_uInt16 &rnPhyNum, sal_uInt16 &rnVirtNum, bool bAtCursorPos=true, const bool bCalcFrame=true)
SfxBindings & m_rBindings
SwGotoPageDlg(weld::Window *parent, SfxBindings &rBindings)
SwView * GetCreateView() const
std::unique_ptr< weld::SpinButton > mxMtrPageCtrl
std::unique_ptr< weld::Label > mxPageNumberLbl
static SwView * GetNextView(SwView const *)
static SwView * GetFirstView()
SwWrtShell & GetWrtShell() const
Used by the UI to modify the document model.
IMPL_LINK_NOARG(SwGotoPageDlg, PageModifiedHdl, weld::Entry &, void)
#define LINK(Instance, Class, Member)