diff options
author | Noel Grandin <noel@peralex.com> | 2012-08-29 09:32:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-03 15:55:06 +0200 |
commit | 3a36408b73d8a9be43cd9f4570537ff1d80c0114 (patch) | |
tree | f46fe36878b77836f9ef3606e162e87ab84bdcb2 /forms | |
parent | bc00717bb7a2b48885ca356fb0a966acbe72dca9 (diff) |
fdo#46808, Adapt util::NumberFormatter UNO service to new style
Create a merged XNumberFormatter2 interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.
Change-Id: I57f35cde0a9dbbe91c1d2c3d068cb3a97c7245e3
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/Filter.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/forms/source/component/Filter.cxx b/forms/source/component/Filter.cxx index cb2ac2a50249..298bf90cae4c 100644 --- a/forms/source/component/Filter.cxx +++ b/forms/source/component/Filter.cxx @@ -53,6 +53,7 @@ #include <com/sun/star/sdbcx/XColumnsSupplier.hpp> #include <com/sun/star/sdbcx/XTablesSupplier.hpp> #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp> +#include <com/sun/star/util/NumberFormatter.hpp> #include <com/sun/star/awt/XItemList.hpp> #include <comphelper/numbers.hxx> @@ -131,9 +132,8 @@ namespace frm if ( xFormatSupplier.is() ) { - maContext.createComponent( "com.sun.star.util.NumberFormatter", m_xFormatter ); - if ( m_xFormatter.is() ) - m_xFormatter->attachNumberFormatsSupplier( xFormatSupplier ); + m_xFormatter.set(NumberFormatter::create(maContext.getUNOContext()), UNO_QUERY_THROW ); + m_xFormatter->attachNumberFormatsSupplier( xFormatSupplier ); } } if ( !m_xFormatter.is() ) |