diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2023-07-07 18:13:18 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2023-07-13 07:57:52 +0200 |
commit | 642a628355f2bcfc45b829e7763b69351324634f (patch) | |
tree | 073f099ac510fd8c3c5ea72b8a5ce275d7d3edbc /vcl/inc/jsdialog | |
parent | 3cc198a0706b25c42cc8dae7e25635cbd911ac02 (diff) |
jsdialog: formatted spin field
Change-Id: I5830dd523e0ccc736a686f38319a6c509e5650be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154193
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154363
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl/inc/jsdialog')
-rw-r--r-- | vcl/inc/jsdialog/jsdialogbuilder.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vcl/inc/jsdialog/jsdialogbuilder.hxx b/vcl/inc/jsdialog/jsdialogbuilder.hxx index 06e2c6135171..527278e886bd 100644 --- a/vcl/inc/jsdialog/jsdialogbuilder.hxx +++ b/vcl/inc/jsdialog/jsdialogbuilder.hxx @@ -295,6 +295,8 @@ public: virtual std::unique_ptr<weld::ComboBox> weld_combo_box(const OUString& id) override; virtual std::unique_ptr<weld::Notebook> weld_notebook(const OUString& id) override; virtual std::unique_ptr<weld::SpinButton> weld_spin_button(const OUString& id) override; + virtual std::unique_ptr<weld::FormattedSpinButton> + weld_formatted_spin_button(const OUString& id) override; virtual std::unique_ptr<weld::CheckButton> weld_check_button(const OUString& id) override; virtual std::unique_ptr<weld::DrawingArea> weld_drawing_area(const OUString& id, const a11yref& rA11yImpl = nullptr, @@ -643,6 +645,17 @@ public: virtual void set_value(sal_Int64 value) override; }; +class JSFormattedSpinButton final + : public JSWidget<SalInstanceFormattedSpinButton, ::FormattedField> +{ +public: + JSFormattedSpinButton(JSDialogSender* pSender, ::FormattedField* pSpin, + SalInstanceBuilder* pBuilder, bool bTakeOwnership); + + virtual void set_text(const OUString& rText) override; + void set_text_without_notify(const OUString& rText); +}; + class JSMessageDialog final : public JSWidget<SalInstanceMessageDialog, ::MessageDialog> { std::unique_ptr<JSDialogSender> m_pOwnedSender; |