diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-03-13 10:32:14 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-03-14 07:57:18 +0200 |
commit | 8578aabbc45ce3601fc0cfca89d8914c2e2632d3 (patch) | |
tree | dfbf267bb369285c482277f04881520e8a0fd5fd /svx | |
parent | e7ea15aef2ac619c153de57cb2bd97ab8dbadf68 (diff) |
"prefix" and "postfix" are single words
Change-Id: I32824c614d070cd4649e18da4a0b91b03bccfaba
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sidebar/nbdtmg.cxx | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx index 1b6458c67f2e..6b1a9b869fd2 100644 --- a/svx/source/sidebar/nbdtmg.cxx +++ b/svx/source/sidebar/nbdtmg.cxx @@ -102,30 +102,23 @@ static const sal_Unicode aDefaultRTLBulletTypes[] = 0x2714 }; -static const sal_Char sNumberingType[] = "NumberingType"; -static const sal_Char sParentNumbering[] = "ParentNumbering"; -static const sal_Char sPrefix[] = "Prefix"; -static const sal_Char sSuffix[] = "Suffix"; -static const sal_Char sBulletChar[] = "BulletChar"; -static const sal_Char sBulletFontName[] = "BulletFontName"; - NumSettings_ImplPtr lcl_CreateNumberingSettingsPtr(const Sequence<PropertyValue>& rLevelProps) { const PropertyValue* pValues = rLevelProps.getConstArray(); NumSettings_ImplPtr pNew = new NumSettings_Impl; for(sal_Int32 j = 0; j < rLevelProps.getLength(); j++) { - if(pValues[j].Name == sNumberingType) + if(pValues[j].Name == "NumberingType") pValues[j].Value >>= pNew->nNumberType; - else if(pValues[j].Name == sPrefix) + else if(pValues[j].Name == "Prefix") pValues[j].Value >>= pNew->sPrefix; - else if(pValues[j].Name == sSuffix) + else if(pValues[j].Name == "Suffix") pValues[j].Value >>= pNew->sSuffix; - else if(pValues[j].Name == sParentNumbering) + else if(pValues[j].Name == "ParentNumbering") pValues[j].Value >>= pNew->nParentNumbering; - else if(pValues[j].Name == sBulletChar) + else if(pValues[j].Name == "BulletChar") pValues[j].Value >>= pNew->sBulletChar; - else if(pValues[j].Name == sBulletFontName) + else if(pValues[j].Name == "BulletFontName") pValues[j].Value >>= pNew->sBulletFont; } const sal_Unicode cLocalPrefix = pNew->sPrefix.getLength() ? pNew->sPrefix[0] : 0; @@ -1414,7 +1407,7 @@ sal_uInt16 NumberingTypeMgr::GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 m SvxNumberFormat aFmt(aNum.GetLevel(nActLv)); //sal_Unicode cPrefix = rtl::OUString(aFmt.GetPrefix())[0]; //sal_Unicode cSuffix = rtl::OUString(aFmt.GetSuffix())[0]; - OUString sPreFix = aFmt.GetPrefix(); + OUString sPrefix = aFmt.GetPrefix(); OUString sLclSuffix = aFmt.GetSuffix(); sal_Int16 eNumType = aFmt.GetNumberingType(); @@ -1423,9 +1416,9 @@ sal_uInt16 NumberingTypeMgr::GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 m { NumberSettings_ImplPtr _pSet = (*pNumberSettingsArr)[i].get(); sal_Int16 eNType = _pSet->pNumSetting->nNumberType; - OUString sLocalPreFix = _pSet->pNumSetting->sPrefix; + OUString sLocalPrefix = _pSet->pNumSetting->sPrefix; OUString sLocalSuffix = _pSet->pNumSetting->sSuffix; - if (sPreFix == sLocalPreFix && + if (sPrefix == sLocalPrefix && sLclSuffix == sLocalSuffix && eNumType == eNType ) { @@ -1641,7 +1634,7 @@ sal_uInt16 OutlineTypeMgr::GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 /*m sal_Int16 eNType = _pSet->nNumberType; SvxNumberFormat aFmt(aNum.GetLevel(iLevel)); - OUString sPreFix = aFmt.GetPrefix(); + OUString sPrefix = aFmt.GetPrefix(); OUString sLclSuffix = aFmt.GetSuffix(); sal_Int16 eNumType = aFmt.GetNumberingType(); if( eNumType == SVX_NUM_CHAR_SPECIAL) @@ -1681,7 +1674,7 @@ sal_uInt16 OutlineTypeMgr::GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 /*m } } else { - if (!(sPreFix == _pSet->sPrefix && + if (!(sPrefix == _pSet->sPrefix && sLclSuffix == _pSet->sSuffix && eNumType == eNType && _pSet->eLabelFollowedBy == aFmt.GetLabelFollowedBy() && |