23#include <com/sun/star/i18n/NativeNumberSupplier2.hpp>
28NativeNumberWrapper::NativeNumberWrapper(
29 const uno::Reference< uno::XComponentContext > & rxContext
32 xNNS = i18n::NativeNumberSupplier2::create(rxContext);
35NativeNumberWrapper::~NativeNumberWrapper()
40NativeNumberWrapper::getNativeNumberString(
41 const OUString& rNumberString,
42 const css::lang::Locale& rLocale,
43 sal_Int16 nNativeNumberMode)
const
48 return xNNS->getNativeNumberString(rNumberString, rLocale, nNativeNumberMode);
50 catch (
const uno::Exception& )
58NativeNumberWrapper::getNativeNumberStringParams(
59 const OUString& rNumberString,
60 const css::lang::Locale& rLocale,
61 sal_Int16 nNativeNumberMode,
62 const OUString& rNativeNumberParams)
const
67 return xNNS->getNativeNumberStringParams(rNumberString, rLocale, nNativeNumberMode,
70 catch (
const uno::Exception& )
77i18n::NativeNumberXmlAttributes
78NativeNumberWrapper::convertToXmlAttributes(
79 const css::lang::Locale& rLocale,
80 sal_Int16 nNativeNumberMode )
const
85 return xNNS->convertToXmlAttributes( rLocale, nNativeNumberMode );
87 catch (
const uno::Exception& )
91 return i18n::NativeNumberXmlAttributes();
95NativeNumberWrapper::convertFromXmlAttributes(
96 const i18n::NativeNumberXmlAttributes& rAttr )
const
101 return xNNS->convertFromXmlAttributes( rAttr );
103 catch (
const uno::Exception& )
#define TOOLS_WARN_EXCEPTION(area, stream)