30 :
SfxTabPage(pPage, pController,
"modules/swriter/ui/envprinterpage.ui",
"EnvPrinterPage", &
rSet)
31 , m_xUpper(m_xBuilder->weld_widget(
"upper"))
32 , m_xLower(m_xBuilder->weld_widget(
"lower"))
33 , m_xTopButton(m_xBuilder->weld_radio_button(
"top"))
34 , m_xBottomButton(m_xBuilder->weld_radio_button(
"bottom"))
35 , m_xRightField(m_xBuilder->weld_metric_spin_button(
"right",
FieldUnit::
CM))
36 , m_xDownField(m_xBuilder->weld_metric_spin_button(
"down",
FieldUnit::
CM))
37 , m_xPrinterInfo(m_xBuilder->weld_label(
"printername"))
38 , m_xPrtSetup(m_xBuilder->weld_button(
"setup"))
39 , m_aIdsL { m_xBuilder->weld_radio_button(
"horileftl"),
40 m_xBuilder->weld_radio_button(
"horicenterl"),
41 m_xBuilder->weld_radio_button(
"horirightl"),
42 m_xBuilder->weld_radio_button(
"vertleftl"),
43 m_xBuilder->weld_radio_button(
"vertcenterl"),
44 m_xBuilder->weld_radio_button(
"vertrightl") }
45 , m_aIdsU { m_xBuilder->weld_radio_button(
"horileftu"),
46 m_xBuilder->weld_radio_button(
"horicenteru"),
47 m_xBuilder->weld_radio_button(
"horirightu"),
48 m_xBuilder->weld_radio_button(
"vertleftu"),
49 m_xBuilder->weld_radio_button(
"vertcenteru"),
50 m_xBuilder->weld_radio_button(
"vertrightu") }
82 const bool bLowerActive = m_xBottomButton->get_active();
83 m_xUpper->set_visible(!bLowerActive);
84 m_xLower->set_visible(bLowerActive);
91 if (&rButton == m_aIdsL[
i].
get())
93 m_aIdsU[
i]->set_active(m_aIdsL[
i]->get_active());
103 if (&rButton == m_aIdsU[
i].
get())
105 m_aIdsL[
i]->set_active(m_aIdsU[
i]->get_active());
113 if (&rBtn == m_xPrtSetup.get())
122 m_xPrinterInfo->set_label(m_xPrt->GetName());
129 return std::make_unique<SwEnvPrtPage>(pPage, pController, *
rSet);
142 return DeactivateRC::LeavePage;
virtual short run() override
void SetPrinter(Printer *pNewPrinter)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
void SetExchangeSupport()
std::unique_ptr< weld::RadioButton > m_aIdsL[ENV_VER_RGHT - ENV_HOR_LEFT+1]
void FillItem(SwEnvItem &rItem)
virtual bool FillItemSet(SfxItemSet *rSet) override
std::unique_ptr< weld::MetricSpinButton > m_xRightField
std::unique_ptr< weld::Label > m_xPrinterInfo
SwEnvDlg * GetParentSwEnvDlg()
std::unique_ptr< weld::RadioButton > m_xTopButton
std::unique_ptr< weld::Button > m_xPrtSetup
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
std::unique_ptr< weld::RadioButton > m_xBottomButton
std::unique_ptr< weld::RadioButton > m_aIdsU[ENV_VER_RGHT - ENV_HOR_LEFT+1]
virtual void Reset(const SfxItemSet *rSet) override
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
SwEnvPrtPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
std::unique_ptr< weld::MetricSpinButton > m_xDownField
virtual ~SwEnvPrtPage() override
virtual void ActivatePage(const SfxItemSet &rSet) override
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
int getfieldval(const weld::MetricSpinButton &rField)
void setfieldval(weld::MetricSpinButton &rField, int lValue)
IMPL_LINK(SwEnvPrtPage, LowerHdl, weld::Toggleable &, rButton, void)
IMPL_LINK_NOARG(SwEnvPrtPage, ClickHdl, weld::Toggleable &, void)
#define LINK(Instance, Class, Member)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)