diff options
author | offtkp <parisoplop@gmail.com> | 2022-12-21 14:29:59 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-01-06 07:42:32 +0000 |
commit | c010b5d2b2cdb22f48ef9d2b9d1fdc6125e1fec2 (patch) | |
tree | f71cb600aa83e1e82a65b5e9ef3514cd0a0d9bf3 /sw/inc/swabstdlg.hxx | |
parent | d7514d34b67626ba0b7d1dc0e9acbdfc635fe0ac (diff) |
tdf#86630 sw: Add one-step page number insertion wizard
Add a one-step wizard for easy insertion of the page number to the
header/footer.
Change-Id: Idb33c92d594e04d9256460fe414e4b10e5166af5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144683
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/inc/swabstdlg.hxx')
-rw-r--r-- | sw/inc/swabstdlg.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx index 02b38a71d5ee..534d422cb781 100644 --- a/sw/inc/swabstdlg.hxx +++ b/sw/inc/swabstdlg.hxx @@ -229,6 +229,16 @@ public: }; +/// Interface for the insert -> fields -> page number wizard dialog +class AbstractSwPageNumberDlg : public VclAbstractDialog +{ +protected: + virtual ~AbstractSwPageNumberDlg() override = default; +public: + virtual int GetPageNumberPosition() const = 0; + virtual int GetPageNumberAlignment() const = 0; +}; + /** * Interface for the insert -> more breaks -> manual break dialog. It's implemented by * AbstractSwBreakDlg_Impl, but SwTextShell only knows about this interface and the @@ -475,6 +485,7 @@ public: css::uno::Reference< css::container::XNamed > & xNamed, css::uno::Reference< css::container::XNameAccess > & xNameAccess) = 0; virtual VclPtr<AbstractSwModalRedlineAcceptDlg> CreateSwModalRedlineAcceptDlg(weld::Window *pParent) = 0; + virtual VclPtr<AbstractSwPageNumberDlg> CreateSwPageNumberDlg(weld::Window* pParent) = 0; virtual VclPtr<VclAbstractDialog> CreateTableMergeDialog(weld::Window* pParent, bool& rWithPrev) = 0; virtual VclPtr<SfxAbstractTabDialog> CreateFrameTabDialog(const OUString &rDialogType, |