Debian Codegraph @

src/libs/widgets/KoPageLayoutDialog.h

raw
1 /* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2007 Thomas Zander <[email protected]>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7 #ifndef KO_PAGE_LAYOUT_DIALOG
8 #define KO_PAGE_LAYOUT_DIALOG
9
10 #include "kowidgets_export.h"
11
12 //#include <KoText.h>
13 #include <KoUnit.h>
14
15 #include <KPageDialog>
16
17 struct KoPageLayout;
18
19 /// A dialog to show the settings for one page and apply them afterwards.
20 class KOWIDGETS_EXPORT KoPageLayoutDialog : public KPageDialog
21 {
22 Q_OBJECT
23 public:
24 explicit KoPageLayoutDialog(QWidget *parent, const KoPageLayout &layout);
25 ~KoPageLayoutDialog() override;
26
27 void showTextDirection(bool on);
28 // KoText::Direction textDirection() const;
29 // void setTextDirection(KoText::Direction direction);
30 void showPageSpread(bool on);
31 void setPageSpread(bool pageSpread);
32 KoPageLayout pageLayout() const;
33 bool applyToDocument() const;
34 void showApplyToDocument(bool on);
35
36 void showUnitchooser(bool on);
37 // void setUnit(const KoUnit &unit);
38
39 Q_SIGNALS:
40 void unitChanged(const KoUnit &unit);
41
42 public Q_SLOTS:
43 void setPageLayout(const KoPageLayout &layout);
44
45 protected Q_SLOTS:
46 void accept() override;
47 void reject() override;
48
49 private:
50 class Private;
51 Private * const d;
52 };
53
54 #endif