diff options
author | Justin Luth <justin.luth@collabora.com> | 2023-04-25 16:45:52 -0400 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-04-26 09:35:31 +0200 |
commit | f6f14b98b8be8319c810708e73cffdb189c467ca (patch) | |
tree | 6e7014df6234f24dcc2bb836e3941c1edcf75609 /sw/source/uibase/inc | |
parent | 8d0acd88214180f93cd09730baa1ed9a8169e987 (diff) |
tdf#86630 sw page number wizard: set page style numbering type
Giving the user the opportunity to change the number type
is rather important. Well, maybe not too critical since I
assume that the default page number style is relatively accurate
for each locale, and at least for English we always just
use numbers for the page style.
However, a wizard is the perfect place to expose such a setting,
otherwise it is buried in page style settings - far from
where anyone would look when inserting a page number.
Change-Id: I9053504fa55d16ebf5424946b480cb044b79988c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151005
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source/uibase/inc')
-rw-r--r-- | sw/source/uibase/inc/pagenumberdlg.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/uibase/inc/pagenumberdlg.hxx b/sw/source/uibase/inc/pagenumberdlg.hxx index 3faa56421dab..5e093b5a924f 100644 --- a/sw/source/uibase/inc/pagenumberdlg.hxx +++ b/sw/source/uibase/inc/pagenumberdlg.hxx @@ -20,6 +20,7 @@ #pragma once #include <sfx2/basedlgs.hxx> +#include <svx/pagenumberlistbox.hxx> class SwWrtShell; @@ -30,14 +31,18 @@ class SwPageNumberDlg final : public SfxDialogController std::unique_ptr<weld::Button> m_xCancel; std::unique_ptr<weld::ComboBox> m_xPageNumberPosition; std::unique_ptr<weld::ComboBox> m_xPageNumberAlignment; + std::unique_ptr<SvxPageNumberListBox> m_xPageNumberTypeLB; + std::unique_ptr<weld::Image> m_xPreviewImage; int m_aPageNumberPosition; int m_aPageNumberAlignment; + SvxNumType m_nPageNumberType; DECL_LINK(OkHdl, weld::Button&, void); DECL_LINK(PositionSelectHdl, weld::ComboBox&, void); DECL_LINK(AlignmentSelectHdl, weld::ComboBox&, void); + DECL_LINK(NumberTypeSelectHdl, weld::ComboBox&, void); void updateImage(); @@ -45,6 +50,8 @@ public: SwPageNumberDlg(weld::Window* pParent); int GetPageNumberPosition() const { return m_aPageNumberPosition; } int GetPageNumberAlignment() const { return m_aPageNumberAlignment; } + SvxNumType GetPageNumberType() const { return m_nPageNumberType; } + void SetPageNumberType(SvxNumType nSet); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |