diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2015-05-20 13:05:49 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2015-05-20 13:05:49 +0200 |
commit | ab465b90f6c6da5595393a0ba73f33a1e71a2b65 (patch) | |
tree | 36b77192de2799a11b4bf0b269cb3f74d0a0bb1f /sw/source/uibase/lingu/olmenu.cxx | |
parent | 0db96caf0fcce09b87621c11b584a6d81cc7df86 (diff) |
bin/rename-sw-abbreviations.sh
libreoffice-5-0-branch-point
renames the most annoying abbreviations in Writer (and partially
in the shared code too).
Change-Id: I9a62759138126c1537cc5c985ba05cf54d6132d9
Diffstat (limited to 'sw/source/uibase/lingu/olmenu.cxx')
-rw-r--r-- | sw/source/uibase/lingu/olmenu.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx index 70ef25cffe4a..b74693bb501a 100644 --- a/sw/source/uibase/lingu/olmenu.cxx +++ b/sw/source/uibase/lingu/olmenu.cxx @@ -196,20 +196,20 @@ void SwSpellPopup::fillLangPopupMenu( std::set< OUString >::const_iterator it; for (it = aLangItems.begin(); it != aLangItems.end(); ++it) { - OUString aEntryTxt( *it ); - if (aEntryTxt != OUString( SvtLanguageTable::GetLanguageString( LANGUAGE_NONE ) )&& - aEntryTxt != "*" && // multiple languages in current selection - !aEntryTxt.isEmpty()) // 'no language found' from language guessing + OUString aEntryText( *it ); + if (aEntryText != OUString( SvtLanguageTable::GetLanguageString( LANGUAGE_NONE ) )&& + aEntryText != "*" && // multiple languages in current selection + !aEntryText.isEmpty()) // 'no language found' from language guessing { OSL_ENSURE( nLangItemIdStart <= nItemId && nItemId <= nLangItemIdStart + MN_MAX_NUM_LANG, "nItemId outside of expected range!" ); - pPopupMenu->InsertItem( nItemId, aEntryTxt, MenuItemBits::RADIOCHECK ); - if (aEntryTxt == aCurLang) + pPopupMenu->InsertItem( nItemId, aEntryText, MenuItemBits::RADIOCHECK ); + if (aEntryText == aCurLang) { //make a check mark for the current language pPopupMenu->CheckItem( nItemId, true ); } - rLangTable[ nItemId ] = aEntryTxt; + rLangTable[ nItemId ] = aEntryText; ++nItemId; } } @@ -824,13 +824,13 @@ void SwSpellPopup::Execute( sal_uInt16 nId ) RES_CHRATR_CJK_LANGUAGE, RES_CHRATR_CJK_LANGUAGE, RES_CHRATR_CTL_LANGUAGE, RES_CHRATR_CTL_LANGUAGE, 0 ); - OUString aNewLangTxt; + OUString aNewLangText; if (MN_SET_LANGUAGE_SELECTION_START <= nId && nId <= MN_SET_LANGUAGE_SELECTION_END) { //Set language for current selection - aNewLangTxt = m_aLangTable_Text[nId]; - SwLangHelper::SetLanguage( *m_pSh, aNewLangTxt, true, aCoreSet ); + aNewLangText = m_aLangTable_Text[nId]; + SwLangHelper::SetLanguage( *m_pSh, aNewLangText, true, aCoreSet ); } else if (nId == MN_SET_SELECTION_NONE) { @@ -850,10 +850,10 @@ void SwSpellPopup::Execute( sal_uInt16 nId ) else if (MN_SET_LANGUAGE_PARAGRAPH_START <= nId && nId <= MN_SET_LANGUAGE_PARAGRAPH_END) { //Set language for current paragraph - aNewLangTxt = m_aLangTable_Paragraph[nId]; + aNewLangText = m_aLangTable_Paragraph[nId]; m_pSh->Push(); // save cursor SwLangHelper::SelectCurrentPara( *m_pSh ); - SwLangHelper::SetLanguage( *m_pSh, aNewLangTxt, true, aCoreSet ); + SwLangHelper::SetLanguage( *m_pSh, aNewLangText, true, aCoreSet ); m_pSh->Pop( false ); // restore cursor } else if (nId == MN_SET_PARA_NONE) |