diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2023-11-23 16:49:43 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2023-11-27 10:39:58 +0100 |
commit | 45217ca5ba0d4e78b462a10072a4334342cc402c (patch) | |
tree | 2168edaebd52ba5c25ad549208d02ff5bf7a7e42 /include | |
parent | 272c3548c4d2362eb737947c8cbb017e2d55aae1 (diff) |
tdf#157438 Make int/double lists editable in expert config
Change-Id: I4334917e8ac6ae4deb5b15de326b083a4a1c1a0f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159863
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/cui/dlgname.hxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/cui/dlgname.hxx b/include/cui/dlgname.hxx index eb3ac6b3ec17..e06c56c0f010 100644 --- a/include/cui/dlgname.hxx +++ b/include/cui/dlgname.hxx @@ -146,10 +146,21 @@ public: bool IsDecorative() const { return m_xDecorativeCB->get_active(); } }; +enum class ListMode +{ + String, + Int64, + Int32, + Int16, + Double +}; + /** Generic dialog to edit lists */ class SvxListDialog : public weld::GenericDialogController { private: + ListMode m_aMode; + Link<SvxListDialog&, OUString> m_aEditHdl; std::unique_ptr<weld::TreeView> m_xList; std::unique_ptr<weld::Button> m_xAddBtn; std::unique_ptr<weld::Button> m_xRemoveBtn; @@ -167,9 +178,10 @@ public: explicit SvxListDialog(weld::Window* pParent); virtual ~SvxListDialog() override; - std::vector<OUString> GetEntries() const; + std::vector<OUString> GetEntries(); void SetEntries(std::vector<OUString> const& rParams); void EditEntry(); + void SetMode(ListMode aMode); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |