19#ifndef INCLUDED_SVX_TBCONTRL_HXX
20#define INCLUDED_SVX_TBCONTRL_HXX
132#include <config_options.h>
135#include <com/sun/star/frame/XSubToolbarController.hpp>
151 class ToolboxButtonColorUpdaterBase;
155 css::lang::XServiceInfo>
165 virtual void SAL_CALL
statusChanged(
const css::frame::FeatureStateEvent& rEvent )
override;
168 virtual css::uno::Reference<css::awt::XWindow> SAL_CALL
createItemWindow(
const css::uno::Reference<css::awt::XWindow>& rParent)
override;
171 virtual void SAL_CALL
initialize(
const css::uno::Sequence<css::uno::Any>& aArguments)
override;
174 virtual void SAL_CALL
update()
override;
177 virtual void SAL_CALL
dispose()
override;
185#define MAX_FAMILIES 5
205 css::frame::XSubToolbarController >
221 virtual void SAL_CALL initialize(
const css::uno::Sequence<css::uno::Any>& rArguments )
override;
224 virtual void SAL_CALL
update()
override;
227 virtual void SAL_CALL statusChanged(
const css::frame::FeatureStateEvent& rEvent )
override;
230 virtual void SAL_CALL execute( sal_Int16 nSelectModifier )
override;
233 virtual std::unique_ptr<WeldToolbarPopup> weldPopupWindow()
override;
236 virtual sal_Bool SAL_CALL opensSubToolbar()
override;
237 virtual OUString SAL_CALL getSubToolbarName()
override;
238 virtual void SAL_CALL functionSelected(
const OUString& rCommand )
override;
239 virtual void SAL_CALL updateImage()
override;
246 void EnsurePaletteManager();
257 struct SvxCurrencyData {
259 sal_uInt16 m_currencyIdx;
269 static const sal_uInt16 InvalidCurrency;
279 sal_uInt16 currencyIdx = InvalidCurrency,
280 bool onlyIsoCode =
false
284 bool operator == (
const SvxCurrencyData& other)
const;
288 typedef std::vector<SvxCurrencyData> SvxCurrencyVect_t;
291 OUString m_aFormatString;
293 sal_uInt32 m_nFormatKey;
296 SvxCurrencyVect_t m_currencies;
300 SvxCurrencyVect_t m_mru_currencies;
303 void addMruCurrency(sal_Int16 currencyPosition);
316 static void inner_GetCurrencySymbols(
bool bFlag, SvxCurrencyVect_t &p_mru_currencies,
317 SvxCurrencyVect_t &pCurrencies);
328 static void GetCurrencySymbols( std::vector<OUString>& rList,
bool bFlag,
329 std::vector<sal_uInt16>& rCurrencyList );
332 const SvxCurrencyVect_t& GetCurrencySymbols();
334 explicit SvxCurrencyToolBoxControl(
const css::uno::Reference<css::uno::XComponentContext>& rContext );
335 virtual ~SvxCurrencyToolBoxControl()
override;
338 virtual void SAL_CALL execute( sal_Int16 nSelectModifier )
override;
348 virtual void SAL_CALL initialize(
const css::uno::Sequence< css::uno::Any >& rArguments )
override;
std::function< void(const OUString &, const NamedColor &)> ColorSelectFunction
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
#define SVXCORE_DLLPUBLIC
std::function< void(const OUString &, const NamedColor &)> ColorSelectFunction