LibreOffice Module sw (master) 1
pagenumberdlg.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <sfx2/basedlgs.hxx>
24
25class SwWrtShell;
26
29{
30 std::unique_ptr<weld::Button> m_xOk;
31 std::unique_ptr<weld::Button> m_xCancel;
32 std::unique_ptr<weld::ComboBox> m_xPageNumberPosition;
33 std::unique_ptr<weld::ComboBox> m_xPageNumberAlignment;
34 std::unique_ptr<weld::CheckButton> m_xMirrorOnEvenPages;
35 std::unique_ptr<weld::CheckButton> m_xIncludePageTotal;
36 std::unique_ptr<SvxPageNumberListBox> m_xPageNumberTypeLB;
37
38 std::unique_ptr<weld::Image> m_xPreviewImage;
39
43
44 DECL_LINK(OkHdl, weld::Button&, void);
45 DECL_LINK(IncludePageTotalChangeHdl, weld::Toggleable&, void);
46 DECL_LINK(PositionSelectHdl, weld::ComboBox&, void);
47 DECL_LINK(AlignmentSelectHdl, weld::ComboBox&, void);
48 DECL_LINK(NumberTypeSelectHdl, weld::ComboBox&, void);
49
50 void updateImage();
51
52public:
60};
61
62/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Page number wizard for easy header/footer page number insertion.
SvxNumType GetPageNumberType() const
DECL_LINK(IncludePageTotalChangeHdl, weld::Toggleable &, void)
int GetPageNumberAlignment() const
std::unique_ptr< weld::CheckButton > m_xIncludePageTotal
int GetPageNumberPosition() const
DECL_LINK(NumberTypeSelectHdl, weld::ComboBox &, void)
std::unique_ptr< weld::Button > m_xCancel
std::unique_ptr< weld::ComboBox > m_xPageNumberPosition
void SetPageNumberType(SvxNumType nSet)
bool GetIncludePageTotal()
DECL_LINK(OkHdl, weld::Button &, void)
std::unique_ptr< weld::Image > m_xPreviewImage
DECL_LINK(PositionSelectHdl, weld::ComboBox &, void)
bool GetMirrorOnEvenPages()
std::unique_ptr< SvxPageNumberListBox > m_xPageNumberTypeLB
SwPageNumberDlg(weld::Window *pParent)
std::unique_ptr< weld::CheckButton > m_xMirrorOnEvenPages
std::unique_ptr< weld::Button > m_xOk
SvxNumType m_nPageNumberType
std::unique_ptr< weld::ComboBox > m_xPageNumberAlignment
DECL_LINK(AlignmentSelectHdl, weld::ComboBox &, void)
Used by the UI to modify the document model.
Definition: wrtsh.hxx:97
SvxNumType