32#include <com/sun/star/lang/IllegalArgumentException.hpp>
40 if( pParent ==
nullptr )
41 throw ::com::sun::star::lang::IllegalArgumentException(
"no parent window given to PageFooterPanel::Create",
nullptr, 0);
42 return std::make_unique<PageFooterPanel>(pParent, pBindings);
54 PanelLayout(pParent,
"PageFooterPanel",
"modules/swriter/ui/pagefooterpanel.ui"),
55 mpBindings( pBindings ),
57 maMetricController(SID_ATTR_METRIC, *pBindings,*this),
66 mxFooterToggle(m_xBuilder->weld_check_button(
"footertoggle")),
67 mxFooterSpacingLB(m_xBuilder->weld_combo_box(
"spacingpreset")),
68 mxFooterMarginPresetLB(m_xBuilder->weld_combo_box(
"footermarginpreset")),
69 mxFooterLayoutLB(m_xBuilder->weld_combo_box(
"samecontentLB")),
70 mxCustomEntry(m_xBuilder->weld_label(
"customlabel"))
89 if (pState && eState >= SfxItemState::DEFAULT)
145 if (nCustomEntry != -1)
165 if (nCustomEntry != -1)
181 const sal_uInt16 nSid,
192 if(eState >= SfxItemState::DEFAULT &&
203 if(eState >= SfxItemState::DEFAULT &&
213 if(eState >= SfxItemState::DEFAULT &&
223 if(eState >= SfxItemState::DEFAULT &&
231 case SID_ATTR_METRIC:
250 bool IsChecked = mxFooterToggle->get_active();
251 mpFooterItem->SetValue(IsChecked);
258 sal_uInt16 nVal = mxFooterMarginPresetLB->get_active_id().toUInt32();
259 mpFooterLRMarginItem->SetLeft(nVal);
260 mpFooterLRMarginItem->SetRight(nVal);
262 SfxCallMode::RECORD, { mpFooterLRMarginItem.get() } );
267 sal_uInt16 nVal = mxFooterSpacingLB->get_active_id().toUInt32();
268 mpFooterSpacingItem->SetUpper(nVal);
270 SfxCallMode::RECORD, { mpFooterSpacingItem.get() } );
275 sal_uInt16 nVal = mxFooterLayoutLB->get_active();
276 mpFooterLayoutItem->SetValue(nVal);
278 SfxCallMode::RECORD, { mpFooterLayoutItem.get() } );
SfxDispatcher * GetDispatcher() const
void Invalidate(sal_uInt16 nId)
const SfxPoolItem * ExecuteList(sal_uInt16 nSlot, SfxCallMode nCall, std::initializer_list< SfxPoolItem const * > args, std::initializer_list< SfxPoolItem const * > internalargs=std::initializer_list< SfxPoolItem const * >())
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
#define SID_ATTR_PAGE_FOOTER_SPACING
#define SID_ATTR_PAGE_FOOTER_LAYOUT
#define SID_ATTR_PAGE_FOOTER
#define SID_ATTR_PAGE_FOOTER_LRMARGIN
virtual SfxBindings & GetBindings() override
SVXCORE_DLLPUBLIC FieldUnit GetModuleFieldUnit(const SfxItemSet &)
#define LINK(Instance, Class, Member)
void Fill(weld::ComboBox &rComboBox)
void Fill(SpacingType eType, weld::ComboBox &rComboBox)