47 if (m_xMaxHeightPageBtn->get_active())
48 m_xMaxHeightEdit->set_sensitive(
false);
53 if (m_xMaxHeightBtn->get_active())
55 m_xMaxHeightEdit->set_sensitive(
true);
56 m_xMaxHeightEdit->grab_focus();
63 m_xMaxHeightEdit->set_max(m_xMaxHeightEdit->normalize(m_lMaxHeight -
64 (m_xDistEdit->denormalize(m_xDistEdit->get_value(FieldUnit::TWIP)) +
65 m_xLineDistEdit->denormalize(m_xLineDistEdit->get_value(FieldUnit::TWIP)))),
67 if (m_xMaxHeightEdit->get_value(FieldUnit::NONE) < 0)
68 m_xMaxHeightEdit->set_value(0, FieldUnit::NONE);
69 m_xDistEdit->set_max(m_xDistEdit->normalize(m_lMaxHeight -
70 (m_xMaxHeightEdit->denormalize(m_xMaxHeightEdit->get_value(FieldUnit::TWIP)) +
71 m_xLineDistEdit->denormalize(m_xLineDistEdit->get_value(FieldUnit::TWIP)))),
73 if (m_xDistEdit->get_value(FieldUnit::NONE) < 0)
74 m_xDistEdit->set_value(0, FieldUnit::NONE);
75 m_xLineDistEdit->set_max(m_xLineDistEdit->normalize(m_lMaxHeight -
76 (m_xMaxHeightEdit->denormalize(m_xMaxHeightEdit->get_value(FieldUnit::TWIP)) +
77 m_xDistEdit->denormalize(m_xDistEdit->get_value(FieldUnit::TWIP)))),
83 sal_Int64 nVal = m_xLineWidthEdit->get_value(FieldUnit::NONE);
86 m_xLineWidthEdit->get_digits(),
87 m_xLineWidthEdit->get_unit(), MapUnit::MapTwip ));
88 m_xLineTypeBox->SetWidth(nVal);
93 m_xLineTypeBox->SetColor(rColorBox.GetSelectEntryColor());
97 :
SfxTabPage(pPage, pController,
"modules/swriter/ui/footnoteareapage.ui",
"FootnoteAreaPage", &
rSet)
99 , m_xMaxHeightPageBtn(m_xBuilder->weld_radio_button(
"maxheightpage"))
100 , m_xMaxHeightBtn(m_xBuilder->weld_radio_button(
"maxheight"))
101 , m_xMaxHeightEdit(m_xBuilder->weld_metric_spin_button(
"maxheightsb",
FieldUnit::
CM))
102 , m_xDistEdit(m_xBuilder->weld_metric_spin_button(
"spacetotext",
FieldUnit::
CM))
103 , m_xLinePosBox(m_xBuilder->weld_combo_box(
"position"))
104 , m_xLineTypeBox(new
SvtLineListBox(m_xBuilder->weld_menu_button(
"style")))
105 , m_xLineWidthEdit(m_xBuilder->weld_metric_spin_button(
"thickness",
FieldUnit::
POINT))
106 , m_xLineColorBox(new
ColorListBox(m_xBuilder->weld_menu_button(
"color"),
108 , m_xLineLengthEdit(m_xBuilder->weld_metric_spin_button(
"length", FieldUnit::PERCENT))
109 , m_xLineDistEdit(m_xBuilder->weld_metric_spin_button(
"spacingtocontents", FieldUnit::CM))
111 SetExchangeSupport();
113 ::SetFieldUnit(*m_xMaxHeightEdit, aMetric);
114 ::SetFieldUnit(*m_xDistEdit, aMetric);
115 ::SetFieldUnit(*m_xLineDistEdit, aMetric);
117 tools::Long nHeightValue = MeasurementSystem::Metric != eSys ? 1440 : 1134;
118 m_xMaxHeightEdit->set_value(m_xMaxHeightEdit->normalize(nHeightValue),FieldUnit::TWIP);
129 return std::make_unique<SwFootNotePage>(pPage, pController, *
rSet);
135 std::optional<SwPageFootnoteInfo> pDefFootnoteInfo;
146 pDefFootnoteInfo.emplace();
147 pFootnoteInfo = &*pDefFootnoteInfo;
181 SvxBorderLineStyle::SOLID );
184 SvxBorderLineStyle::DOTTED );
187 SvxBorderLineStyle::DASHED );
247 rFootnoteInfo.
SetAdj(
static_cast<css::text::HorizontalAdjust
>(
m_xLinePosBox->get_active()));
267 const SfxItemSet& rHeaderSet = pHeaderSetItem->GetItemSet();
282 const SfxItemSet& rFooterSet = pFooterSetItem->GetItemSet();
283 const SfxBoolItem& rFooterOn = rFooterSet.
Get( SID_ATTR_PAGE_ON );
295 m_lMaxHeight -= pSpaceItem->GetUpper() + pSpaceItem->GetLower();
310 return DeactivateRC::LeavePage;
MeasurementSystem getMeasurementSystemEnum() const
sal_uInt16 GetWhich(sal_uInt16 nSlot, bool bDeep=true) const
SfxItemPool * GetPool() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
const SfxItemSet & GetItemSet() const
SfxOkDialogController * GetDialogController() const
static const SfxPoolItem * GetItem(const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
const SfxPoolItem * GetOldItem(const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
constexpr tools::Long Height() const
const LocaleDataWrapper & GetLocaleData() const
const Size & GetSize() const
static BorderWidthImpl getWidthImpl(SvxBorderLineStyle nStyle)
#define FN_PARAM_FTN_INFO
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(98)
#define LINK(Instance, Class, Member)
SVXCORE_DLLPUBLIC MSO_SPT Get(const OUString &)
double ConvertDoubleValue(double nValue, sal_Int64 mnBaseValue, sal_uInt16 nDecDigits, FieldUnit eInUnit, FieldUnit eOutUnit)
IMPL_LINK(SwFootNotePage, LineColorSelected_Impl, ColorListBox &, rColorBox, void)
IMPL_LINK_NOARG(SwFootNotePage, HeightPage, weld::Toggleable &, void)