diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-11 16:55:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-15 12:25:45 +0200 |
commit | d76dbfde0e56da6dc7cb1f574c6f90178d4285b2 (patch) | |
tree | 296ff3ff6a263b47aa91cce43688a68d123262ef /sw/source/ui/index/cntex.cxx | |
parent | fac5fe2c597b1d13dcee45121562041df860e2b2 (diff) |
convert sw/source/ui/index/*.cxx from String to OUString
Change-Id: If327c8104aed144863a6b86b08c783f5a43551cf
Diffstat (limited to 'sw/source/ui/index/cntex.cxx')
-rw-r--r-- | sw/source/ui/index/cntex.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/ui/index/cntex.cxx b/sw/source/ui/index/cntex.cxx index 791fc498f956..8ea3e4f7d772 100644 --- a/sw/source/ui/index/cntex.cxx +++ b/sw/source/ui/index/cntex.cxx @@ -70,7 +70,7 @@ using namespace com::sun::star::ui::dialogs; static void lcl_SetProp( uno::Reference< XPropertySetInfo > & xInfo, uno::Reference< XPropertySet > & xProps, - const char* pPropName, const String& rValue) + const char* pPropName, const OUString& rValue) { OUString uPropName(OUString::createFromAscii(pPropName)); if(xInfo->hasPropertyByName(uPropName)) @@ -83,7 +83,7 @@ static void lcl_SetProp( uno::Reference< XPropertySetInfo > & xInfo, static void lcl_SetProp( uno::Reference< XPropertySetInfo > & xInfo, uno::Reference< XPropertySet > & xProps, - sal_uInt16 nId, const String& rValue) + sal_uInt16 nId, const OUString& rValue) { lcl_SetProp( xInfo, xProps, SW_PROP_NAME_STR(nId), rValue); } @@ -137,7 +137,7 @@ IMPL_LINK_NOARG(SwMultiTOXTabDialog, CreateExample_Hdl) OUString sSectionName("IndexSection_"); for(int i = 0; i < 7; ++i ) { - String sTmp( sSectionName ); sTmp += OUString::number(i); + OUString sTmp( sSectionName ); sTmp += OUString::number(i); uno::Any aSection = xSections->getByName( sTmp ); aSection >>= pxIndexSectionsArr[i]->xContainerSection; } @@ -239,14 +239,14 @@ void SwMultiTOXTabDialog::CreateOrUpdateExample( for(sal_uInt16 i = 0; i < MAXLEVEL; i++) { - String sLevel; + OUString sLevel; if(bOn) sLevel = rDesc.GetStyleNames(i); sal_uInt16 nStyles = comphelper::string::getTokenCount(sLevel, TOX_STYLE_DELIMITER); uno::Sequence<OUString> aStyles(nStyles); OUString* pArr = aStyles.getArray(); for(sal_uInt16 nStyle = 0; nStyle < nStyles; nStyle++) - pArr[nStyle] = sLevel.GetToken(nStyle, TOX_STYLE_DELIMITER); + pArr[nStyle] = sLevel.getToken(nStyle, TOX_STYLE_DELIMITER); uno::Any aAny(&aStyles, ::getCppuType((uno::Sequence<OUString>*)0)); xAcc->replaceByIndex(i, aAny); } @@ -271,7 +271,7 @@ void SwMultiTOXTabDialog::CreateOrUpdateExample( lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_DASH, 0 != (nIdxOptions&nsSwTOIOptions::TOI_DASH )); lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_UPPER_CASE, 0 != (nIdxOptions&nsSwTOIOptions::TOI_INITIAL_CAPS )); - String aTmpName( SwStyleNameMapper::GetSpecialExtraProgName( rDesc.GetSequenceName() ) ); + OUString aTmpName( SwStyleNameMapper::GetSpecialExtraProgName( rDesc.GetSequenceName() ) ); lcl_SetProp(xInfo, xIdxProps, UNO_NAME_LABEL_CATEGORY, aTmpName ); lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_LABELS, !rDesc.IsCreateFromObjectNames()); @@ -427,7 +427,7 @@ void SwMultiTOXTabDialog::CreateOrUpdateExample( } for(sal_uInt16 i = 1; i < nEndLevel; i++) { - String sPropName(OUString("ParaStyleLevel")); + OUString sPropName("ParaStyleLevel"); sPropName += OUString::number( i ); lcl_SetProp(xInfo, xIdxProps, |