22#include <vcl/bitmap.hxx>
30 , m_xOk(m_xBuilder->weld_button(
"ok"))
31 , m_xCancel(m_xBuilder->weld_button(
"cancel"))
32 , m_xPageNumberPosition(m_xBuilder->weld_combo_box(
"positionCombo"))
33 , m_xPageNumberAlignment(m_xBuilder->weld_combo_box(
"alignmentCombo"))
34 , m_xMirrorOnEvenPages(m_xBuilder->weld_check_button(
"mirrorCheckbox"))
35 , m_xIncludePageTotal(m_xBuilder->weld_check_button(
"pagetotalCheckbox"))
37 , m_xPreviewImage(m_xBuilder->weld_image(
"previewImage"))
38 , m_aPageNumberPosition(1)
39 , m_aPageNumberAlignment(1)
51 ::std::numeric_limits<sal_uInt16>::max());
61 m_aPageNumberPosition = m_xPageNumberPosition->get_active();
67 m_aPageNumberAlignment = m_xPageNumberAlignment->get_active();
70 if (m_aPageNumberAlignment == 1)
71 m_xMirrorOnEvenPages->set_sensitive(
false);
73 m_xMirrorOnEvenPages->set_sensitive(
true);
78 m_nPageNumberType = m_xPageNumberTypeLB->get_active_id();
105 int nBackgroundWidth = 75;
106 int nBackgroundHeight = 105;
111 Size aVDSize(nBackgroundWidth, nBackgroundHeight);
112 pVirtualDev->SetOutputSizePixel(aVDSize);
113 pVirtualDev->SetBackground(
Color(0xF0, 0xF0, 0xF0));
114 pVirtualDev->Erase();
116 OUString sText =
"#";
127 eFlags = DrawTextFlags::Center;
131 eFlags = DrawTextFlags::Right;
136 pVirtualDev->DrawText(
137 tools::Rectangle(nMargin, nMargin, nBackgroundWidth - nMargin, nBackgroundHeight - nMargin),
Reference< XExecutableDialog > m_xDialog
static void GetI18nNumbering(weld::ComboBox &rFmtLB, sal_uInt16 nDoNotRemove)
Page number wizard for easy header/footer page number insertion.
std::unique_ptr< weld::CheckButton > m_xIncludePageTotal
std::unique_ptr< weld::ComboBox > m_xPageNumberPosition
void SetPageNumberType(SvxNumType nSet)
bool GetIncludePageTotal()
std::unique_ptr< weld::Image > m_xPreviewImage
bool GetMirrorOnEvenPages()
std::unique_ptr< SvxPageNumberListBox > m_xPageNumberTypeLB
int m_aPageNumberAlignment
SwPageNumberDlg(weld::Window *pParent)
std::unique_ptr< weld::CheckButton > m_xMirrorOnEvenPages
std::unique_ptr< weld::Button > m_xOk
int m_aPageNumberPosition
SvxNumType m_nPageNumberType
std::unique_ptr< weld::ComboBox > m_xPageNumberAlignment
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(SwPageNumberDlg, OkHdl, weld::Button &, void)
SVX_NUM_CHARS_UPPER_LETTER