28 :
SfxTabPage(pPage, pController,
"modules/swriter/ui/labeloptionspage.ui",
"LabelOptionsPage", &
rSet)
30 , m_xPageButton(m_xBuilder->weld_radio_button(
"entirepage"))
31 , m_xSingleButton(m_xBuilder->weld_radio_button(
"singlelabel"))
32 , m_xSingleGrid(m_xBuilder->weld_widget(
"singlegrid"))
33 , m_xPrinterFrame(m_xBuilder->weld_widget(
"printerframe"))
34 , m_xColField(m_xBuilder->weld_spin_button(
"cols"))
35 , m_xRowField(m_xBuilder->weld_spin_button(
"rows"))
36 , m_xSynchronCB(m_xBuilder->weld_check_button(
"synchronize"))
37 , m_xPrinterInfo(m_xBuilder->weld_label(
"printername"))
38 , m_xPrtSetup(m_xBuilder->weld_button(
"setup"))
70 m_xPrinterInfo->set_label(m_pPrinter->GetName());
75 if (!rButton.get_active())
78 const bool bEnable = m_xSingleButton->get_active();
79 m_xSingleGrid->set_sensitive(bEnable);
80 m_xSynchronCB->set_sensitive(!bEnable);
83 m_xColField->grab_focus();
88 return std::make_unique<SwLabPrtPage>(pPage, pController, *
rSet );
101 return DeactivateRC::LeavePage;
virtual short run() override
void SetPrinter(Printer *pNewPrinter)
static OUString GetDefaultPrinterName()
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void SetExchangeSupport()
bool LookupDisabled(const OUString &aCommandURL) const
void GetLabItem(SwLabItem &rItem)
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
std::unique_ptr< weld::SpinButton > m_xRowField
std::unique_ptr< weld::SpinButton > m_xColField
virtual void ActivatePage(const SfxItemSet &rSet) override
std::unique_ptr< weld::Button > m_xPrtSetup
std::unique_ptr< weld::Label > m_xPrinterInfo
virtual void Reset(const SfxItemSet *rSet) override
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
std::unique_ptr< weld::RadioButton > m_xSingleButton
void FillItem(SwLabItem &rItem)
std::unique_ptr< weld::Widget > m_xPrinterFrame
SwLabPrtPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
SwLabDlg * GetParentSwLabDlg()
virtual ~SwLabPrtPage() override
VclPtr< Printer > m_pPrinter
virtual bool FillItemSet(SfxItemSet *rSet) override
std::unique_ptr< weld::RadioButton > m_xPageButton
std::unique_ptr< weld::CheckButton > m_xSynchronCB
static VclPtr< reference_type > Create(Arg &&... arg)
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
IMPL_LINK(SwLabPrtPage, PrtSetupHdl, weld::Button &, rButton, void)
#define LINK(Instance, Class, Member)