diff options
author | Mohammed Abdul Azeem <azeemmysore@gmail.com> | 2016-03-07 01:35:57 +0530 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-03-19 14:18:56 +0000 |
commit | bf17a8dfbb9f966c90b5d6eb0a7b8e7838392d27 (patch) | |
tree | db3fc01c601f7f9088ca9b0cf225cfe4f6634b97 /include/svx/tbcontrl.hxx | |
parent | 90946203acbabcfa68fd0ba692e7cc9f67af7173 (diff) |
tdf#82641 Currency drop-down list
Currency drop-down list has been added. It retains
the position of selected entry. Clicking on button
toggles between the previously selected currency
and number formats.
Change-Id: I0dea8fc2773497bfaababa418f119d0a5e76cb03
Reviewed-on: https://gerrit.libreoffice.org/22958
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include/svx/tbcontrl.hxx')
-rw-r--r-- | include/svx/tbcontrl.hxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/svx/tbcontrl.hxx b/include/svx/tbcontrl.hxx index 179e8e7316d3..928f75f0fc3e 100644 --- a/include/svx/tbcontrl.hxx +++ b/include/svx/tbcontrl.hxx @@ -290,6 +290,24 @@ public: const SfxPoolItem* pState) override; }; +class SVX_DLLPUBLIC SvxCurrencyToolBoxControl : public SfxToolBoxControl +{ +private: + OUString m_aFormatString; + LanguageType m_eLanguage; + sal_uInt32 m_nFormatKey; +public: + SFX_DECL_TOOLBOX_CONTROL(); + SvxCurrencyToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rBox ); + virtual ~SvxCurrencyToolBoxControl(); + virtual void Select( sal_uInt16 nSelectModifier ) override; + virtual VclPtr<SfxPopupWindow> CreatePopupWindow() override; + virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, + const SfxPoolItem* pState) override; +}; + + + #endif // INCLUDED_SVX_TBCONTRL_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |