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 /vcl/jsdialog | |
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 'vcl/jsdialog')
-rw-r--r-- | vcl/jsdialog/enabled.cxx | 1 | ||||
-rw-r--r-- | vcl/jsdialog/jsdialogbuilder.cxx | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/vcl/jsdialog/enabled.cxx b/vcl/jsdialog/enabled.cxx index 3f58aa100b94..d92d75e8210f 100644 --- a/vcl/jsdialog/enabled.cxx +++ b/vcl/jsdialog/enabled.cxx @@ -77,6 +77,7 @@ bool isBuilderEnabled(std::u16string_view rUIFile, bool bMobile) || rUIFile == u"modules/swriter/ui/insertcaption.ui" || rUIFile == u"modules/swriter/ui/splittable.ui" || rUIFile == u"modules/swriter/ui/translationdialog.ui" + || rUIFile == u"modules/swriter/ui/pagenumberdlg.ui" // sfx || rUIFile == u"sfx/ui/cmisinfopage.ui" || rUIFile == u"sfx/ui/custominfopage.ui" diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx index c7885c369249..69300b516698 100644 --- a/vcl/jsdialog/jsdialogbuilder.cxx +++ b/vcl/jsdialog/jsdialogbuilder.cxx @@ -1895,4 +1895,16 @@ JSImage::JSImage(JSDialogSender* pSender, FixedImage* pImage, SalInstanceBuilder { } +void JSImage::set_image(VirtualDevice* pDevice) +{ + SalInstanceImage::set_image(pDevice); + sendUpdate(); +} + +void JSImage::set_image(const css::uno::Reference<css::graphic::XGraphic>& rImage) +{ + SalInstanceImage::set_image(rImage); + sendUpdate(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |