[Libreoffice-commits] .: bf_forms/source bf_svtools/source bf_sw/source bf_xmloff/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Nov 5 09:05:37 PST 2012


 bf_forms/source/component/forms_Filter.cxx    |    3 ++-
 bf_svtools/source/numbers/svt_zforlist.cxx    |    2 +-
 bf_svtools/source/syslocale/svt_syslocale.cxx |    2 +-
 bf_sw/source/core/bastyp/sw_calc.cxx          |    3 ++-
 bf_sw/source/core/bastyp/sw_init.cxx          |    4 ++--
 bf_xmloff/source/style/xmloff_xmlnumfe.cxx    |    9 +++++----
 6 files changed, 13 insertions(+), 10 deletions(-)

New commits:
commit 63f492b8333f5994294c8ea88fd8c5aa163ec6ff
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Nov 5 18:02:12 2012 +0100

    fdo#46808, use service constructor for i18n::CharacterClassification

diff --git a/bf_forms/source/component/forms_Filter.cxx b/bf_forms/source/component/forms_Filter.cxx
index cd589ed..87b7ddc 100644
--- a/bf_forms/source/component/forms_Filter.cxx
+++ b/bf_forms/source/component/forms_Filter.cxx
@@ -39,6 +39,7 @@
 
 #include <connectivity/dbtools.hxx>
 #include <connectivity/dbconversion.hxx>
+#include <comphelper/processfactory.hxx>
 #include <comphelper/property.hxx>
 #include <comphelper/numbers.hxx>
 #include <toolkit/helper/vclunohelper.hxx>
@@ -85,7 +86,7 @@ namespace frm
     OFilterControl::OFilterControl( const Reference< XMultiServiceFactory >& _rxORB )
         :m_aTextListeners( *this )
         ,m_xORB( _rxORB )
-        ,m_aParser( _rxORB )
+        ,m_aParser( comphelper::getComponentContext(_rxORB) )
         ,m_nControlClass( FormComponentType::TEXTFIELD )
         ,m_bFilterList( sal_False )
         ,m_bMultiLine( sal_False )
diff --git a/bf_svtools/source/numbers/svt_zforlist.cxx b/bf_svtools/source/numbers/svt_zforlist.cxx
index a769652..4205241 100644
--- a/bf_svtools/source/numbers/svt_zforlist.cxx
+++ b/bf_svtools/source/numbers/svt_zforlist.cxx
@@ -235,7 +235,7 @@ void SvNumberFormatter::ImpConstruct( LanguageType eLang )
     nDefaultSystemCurrencyFormat = NUMBERFORMAT_ENTRY_NOT_FOUND;
 
     aLocale = MsLangId::convertLanguageToLocale( eLang );
-    pCharClass = new CharClass( xServiceManager, aLocale );
+    pCharClass = new CharClass( comphelper::getComponentContext(xServiceManager), aLocale );
     xLocaleData.init( xServiceManager, aLocale, eLang );
     xCalendar.init( xServiceManager, aLocale );
     xTransliteration.init( xServiceManager, eLang,
diff --git a/bf_svtools/source/syslocale/svt_syslocale.cxx b/bf_svtools/source/syslocale/svt_syslocale.cxx
index c13ac54..4f10a44 100644
--- a/bf_svtools/source/syslocale/svt_syslocale.cxx
+++ b/bf_svtools/source/syslocale/svt_syslocale.cxx
@@ -65,7 +65,7 @@ SvtSysLocale_Impl::SvtSysLocale_Impl()
     pLocaleData = new LocaleDataWrapper(
         ::comphelper::getProcessServiceFactory(), rLocale );
     pCharClass = new CharClass(
-        ::comphelper::getProcessServiceFactory(), rLocale );
+        ::comphelper::getProcessComponentContext(), rLocale );
     aSysLocaleOptions.AddListener( *this );
 }
 
diff --git a/bf_sw/source/core/bastyp/sw_calc.cxx b/bf_sw/source/core/bastyp/sw_calc.cxx
index 9bc84ca..67e31cb 100644
--- a/bf_sw/source/core/bastyp/sw_calc.cxx
+++ b/bf_sw/source/core/bastyp/sw_calc.cxx
@@ -65,6 +65,7 @@
 #include <dbmgr.hxx>
 #include <docfld.hxx>
 #include <legacysmgr/legacy_binfilters_smgr.hxx>
+#include <comphelper/processfactory.hxx>
 
 namespace binfilter {
 // tippt sich schneller
@@ -266,7 +267,7 @@ static int
 /*N*/       ::com::sun::star::lang::Locale aLocale( SvxCreateLocale( eLang ));
 /*N*/       ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xMSF(
 /*N*/                             ::legacy_binfilters::getLegacyProcessServiceFactory() );
-/*N*/       pCharClass = new CharClass( xMSF, aLocale );
+/*N*/       pCharClass = new CharClass( comphelper::getComponentContext(xMSF), aLocale );
 /*N*/       pLclData = new LocaleDataWrapper( xMSF, aLocale );
 /*N*/   }
 /*N*/
diff --git a/bf_sw/source/core/bastyp/sw_init.cxx b/bf_sw/source/core/bastyp/sw_init.cxx
index e1eeb8b..f57c646 100644
--- a/bf_sw/source/core/bastyp/sw_init.cxx
+++ b/bf_sw/source/core/bastyp/sw_init.cxx
@@ -80,7 +80,7 @@
 #include <bf_svx/forbiddenruleitem.hxx>
 #include <bf_svx/paravertalignitem.hxx>
 #include <bf_svx/pgrditem.hxx>
-
+#include <comphelper/processfactory.hxx>
 
 #include <fmthbsh.hxx>
 #include <fmtanchr.hxx>
@@ -695,7 +695,7 @@ public:
 /*N*/   ::com::sun::star::uno::Reference<
 /*N*/           ::com::sun::star::lang::XMultiServiceFactory > xMSF =
 /*N*/                                   ::legacy_binfilters::getLegacyProcessServiceFactory();
-/*N*/   pAppCharClass = new CharClass( xMSF, rLcl );
+/*N*/   pAppCharClass = new CharClass( comphelper::getComponentContext(xMSF), rLcl );
 /*N*/
 /*N*/   _FrmInit();
 /*N*/   _TextInit();
diff --git a/bf_xmloff/source/style/xmloff_xmlnumfe.cxx b/bf_xmloff/source/style/xmloff_xmlnumfe.cxx
index d8e5ed5..bc5d9da 100644
--- a/bf_xmloff/source/style/xmloff_xmlnumfe.cxx
+++ b/bf_xmloff/source/style/xmloff_xmlnumfe.cxx
@@ -23,6 +23,7 @@
 #include <bf_svtools/zformat.hxx>
 #include <bf_svtools/numuno.hxx>
 #include <bf_svtools/nfsymbol.hxx>
+#include <comphelper/processfactory.hxx>
 #include <i18npool/mslangid.hxx>
 #include <tools/debug.hxx>
 #include <rtl/math.hxx>
@@ -233,7 +234,7 @@ SvXMLNumFmtExport::SvXMLNumFmtExport(
 
     if ( pFormatter )
     {
-        pCharClass = new CharClass( pFormatter->GetServiceManager(),
+        pCharClass = new CharClass( comphelper::getComponentContext(pFormatter->GetServiceManager()),
             pFormatter->GetLocale() );
         pLocaleData = new LocaleDataWrapper( pFormatter->GetServiceManager(),
             pFormatter->GetLocale() );
@@ -245,7 +246,7 @@ SvXMLNumFmtExport::SvXMLNumFmtExport(
         // #110680#
         // pCharClass = new CharClass( ::comphelper::getProcessServiceFactory(), aLocale );
         // pLocaleData = new LocaleDataWrapper( ::comphelper::getProcessServiceFactory(), aLocale );
-        pCharClass = new CharClass( rExport.getServiceFactory(), aLocale );
+        pCharClass = new CharClass( comphelper::getComponentContext(rExport.getServiceFactory()), aLocale );
         pLocaleData = new LocaleDataWrapper( rExport.getServiceFactory(), aLocale );
     }
 
@@ -271,7 +272,7 @@ SvXMLNumFmtExport::SvXMLNumFmtExport(
 
     if ( pFormatter )
     {
-        pCharClass = new CharClass( pFormatter->GetServiceManager(),
+        pCharClass = new CharClass( comphelper::getComponentContext(pFormatter->GetServiceManager()),
             pFormatter->GetLocale() );
         pLocaleData = new LocaleDataWrapper( pFormatter->GetServiceManager(),
             pFormatter->GetLocale() );
@@ -283,7 +284,7 @@ SvXMLNumFmtExport::SvXMLNumFmtExport(
         // #110680#
         // pCharClass = new CharClass( ::comphelper::getProcessServiceFactory(), aLocale );
         // pLocaleData = new LocaleDataWrapper( ::comphelper::getProcessServiceFactory(), aLocale );
-        pCharClass = new CharClass( rExport.getServiceFactory(), aLocale );
+        pCharClass = new CharClass( comphelper::getComponentContext(rExport.getServiceFactory()), aLocale );
         pLocaleData = new LocaleDataWrapper( rExport.getServiceFactory(), aLocale );
     }
 


More information about the Libreoffice-commits mailing list