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
This commit is contained in:
committed by
Stephan Bergmann
parent
bc00717bb7
commit
3a36408b73
@@ -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() )
|
||||
|
Reference in New Issue
Block a user