summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-07 10:39:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-02-07 13:29:55 +0100
commit43697b00a21a796c449348470564e525da861c51 (patch)
treee755f10e42586e8ed6a18d80c8abce08d629a850 /sc/source/ui/inc
parentd74487ec716378e2160ad3538a5fcc787ad9fd2f (diff)
weld ScNumberFormat ItemWindow
Change-Id: Ib019912e91be617edbbcdf2fafb92d6685487b98 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88174 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r--sc/source/ui/inc/cbnumberformat.hxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/sc/source/ui/inc/cbnumberformat.hxx b/sc/source/ui/inc/cbnumberformat.hxx
index 9773fd9b34cc..c2e2f40366bc 100644
--- a/sc/source/ui/inc/cbnumberformat.hxx
+++ b/sc/source/ui/inc/cbnumberformat.hxx
@@ -20,15 +20,22 @@
#ifndef INCLUDED_SC_SOURCE_UI_INC_CBNUMBERFORMAT_HXX
#define INCLUDED_SC_SOURCE_UI_INC_CBNUMBERFORMAT_HXX
-#include <vcl/lstbox.hxx>
+#include <sfx2/InterimItemWindow.hxx>
-class ScNumberFormat : public ListBox
+class ScNumberFormat final : public InterimItemWindow
{
public:
- explicit ScNumberFormat(vcl::Window* pParent, WinBits nStyle);
+ explicit ScNumberFormat(vcl::Window* pParent);
+ virtual void dispose() override;
+ virtual ~ScNumberFormat() override;
+
+ void set_active(int nPos) { m_xWidget->set_active(nPos); }
private:
- DECL_STATIC_LINK(ScNumberFormat, NumFormatSelectHdl, ListBox&, void);
+ std::unique_ptr<weld::ComboBox> m_xWidget;
+
+ DECL_STATIC_LINK(ScNumberFormat, NumFormatSelectHdl, weld::ComboBox&, void);
+ DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
};
#endif