[Libreoffice-commits] .: sw/source
Tomáš Chvátal
tchvatal at kemper.freedesktop.org
Thu Sep 29 06:15:36 PDT 2011
sw/source/core/doc/docsort.cxx | 5 +++--
sw/source/ui/app/docshini.cxx | 4 ++--
sw/source/ui/dbui/dbinsdlg.cxx | 6 +++---
sw/source/ui/index/cnttab.cxx | 2 +-
sw/source/ui/misc/srtdlg.cxx | 3 ++-
5 files changed, 11 insertions(+), 9 deletions(-)
New commits:
commit db3a8faba14e89be39df5fb98f5535c1ca295f62
Author: Tomas Chvatal <tchvatal at suse.cz>
Date: Thu Sep 29 15:14:34 2011 +0200
Solve more ambiguous issues with Locale from sun::star.. and icu::.
diff --git a/sw/source/core/doc/docsort.cxx b/sw/source/core/doc/docsort.cxx
index d76dcec..518860f 100644
--- a/sw/source/core/doc/docsort.cxx
+++ b/sw/source/core/doc/docsort.cxx
@@ -59,12 +59,13 @@
#include <unochart.hxx>
using namespace ::com::sun::star::lang;
+using namespace ::com::sun::star;
SwSortOptions* SwSortElement::pOptions = 0;
SwDoc* SwSortElement::pDoc = 0;
const FlatFndBox* SwSortElement::pBox = 0;
CollatorWrapper* SwSortElement::pSortCollator = 0;
-com::sun::star::lang::Locale* SwSortElement::pLocale = 0;
+lang::Locale* SwSortElement::pLocale = 0;
String* SwSortElement::pLastAlgorithm = 0;
LocaleDataWrapper* SwSortElement::pLclData = 0;
@@ -89,7 +90,7 @@ void SwSortElement::Init( SwDoc* pD, const SwSortOptions& rOpt,
nLang = (LanguageType)GetAppLanguage();
break;
}
- pLocale = new Locale( SvxCreateLocale( nLang ) );
+ pLocale = new lang::Locale( SvxCreateLocale( nLang ) );
pSortCollator = new CollatorWrapper(
::comphelper::getProcessServiceFactory() );
diff --git a/sw/source/ui/app/docshini.cxx b/sw/source/ui/app/docshini.cxx
index 5c43206..350cf74 100644
--- a/sw/source/ui/app/docshini.cxx
+++ b/sw/source/ui/app/docshini.cxx
@@ -135,10 +135,10 @@ sal_Bool SwDocShell::InitNew( const uno::Reference < embed::XStorage >& xStor )
// set forbidden characters if necessary
SvxAsianConfig aAsian;
- Sequence<Locale> aLocales = aAsian.GetStartEndCharLocales();
+ Sequence<lang::Locale> aLocales = aAsian.GetStartEndCharLocales();
if(aLocales.getLength())
{
- const com::sun::star::lang::Locale* pLocales = aLocales.getConstArray();
+ const lang::Locale* pLocales = aLocales.getConstArray();
for(sal_Int32 i = 0; i < aLocales.getLength(); i++)
{
ForbiddenCharacters aForbidden;
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index 33a053b..e059ab1 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -275,7 +275,7 @@ SwInsertDBColAutoPilot::SwInsertDBColAutoPilot( SwView& rView,
if(xColSupp.is())
{
SwWrtShell& rSh = pView->GetWrtShell();
- Locale aDocLocale( SvxCreateLocale( rSh.GetCurLang() ));
+ lang::Locale aDocLocale( SvxCreateLocale( rSh.GetCurLang() ));
SvNumberFormatter* pNumFmtr = rSh.GetNumberFormatter();
SvNumberFormatsSupplierObj* pNumFmt = new SvNumberFormatsSupplierObj( pNumFmtr );
Reference< util::XNumberFormatsSupplier > xDocNumFmtsSupplier = pNumFmt;
@@ -1705,7 +1705,7 @@ void SwInsertDBColAutoPilot::Commit()
if( eLang != ePrevLang )
{
- Locale aLocale;
+ lang::Locale aLocale;
aLocale = SvxLanguageToLocale( aLocale, eLang );
(( sPrevLang = aLocale.Country ) += rtl::OUString( '-' )) += aLocale.Language;
ePrevLang = eLang;
@@ -1790,7 +1790,7 @@ void SwInsertDBColAutoPilot::Load()
rtl::OUString sNumberFormatLocale;
pSubProps[5] >>= sNumberFormatLocale;
- Locale aLocale;
+ lang::Locale aLocale;
aLocale.Language = sNumberFormatLocale.copy(0, 2);
aLocale.Country = sNumberFormatLocale.copy(3, 2);
pInsDBColumn->eUsrNumFmtLng = SvxLocaleToLanguage( aLocale );
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index d5c2838..9f0f60f 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -1516,7 +1516,7 @@ IMPL_LINK(SwTOXSelectTabPage, RadioButtonHdl, RadioButton*, EMPTYARG )
IMPL_LINK(SwTOXSelectTabPage, LanguageHdl, ListBox*, pBox)
{
- Locale aLcl( SvxCreateLocale( aLanguageLB.GetSelectLanguage() ) );
+ lang::Locale aLcl( SvxCreateLocale( aLanguageLB.GetSelectLanguage() ) );
Sequence< OUString > aSeq = pIndexEntryWrapper->GetAlgorithmList( aLcl );
if( !pIndexRes )
diff --git a/sw/source/ui/misc/srtdlg.cxx b/sw/source/ui/misc/srtdlg.cxx
index 8027638..06c15a5 100644
--- a/sw/source/ui/misc/srtdlg.cxx
+++ b/sw/source/ui/misc/srtdlg.cxx
@@ -83,6 +83,7 @@ static sal_Unicode cDeli = '\t';
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star;
using ::rtl::OUString;
void lcl_ClearLstBoxAndDelUserData( ListBox& rLstBox )
@@ -462,7 +463,7 @@ IMPL_LINK( SwSortDlg, CheckHdl, CheckBox *, pCheck )
IMPL_LINK( SwSortDlg, LanguageHdl, ListBox*, pLBox )
{
- Locale aLcl( SvxCreateLocale( aLangLB.GetSelectLanguage() ) );
+ lang::Locale aLcl( SvxCreateLocale( aLangLB.GetSelectLanguage() ) );
Sequence < OUString > aSeq(
GetAppCollator().listCollatorAlgorithms( aLcl ));
More information about the Libreoffice-commits
mailing list