Lines Matching refs:eLang
371 LanguageType eLang = GetAppLang(); in GetDefaultFlags() local
372 switch( eLang ) in GetDefaultFlags()
432 void SvxAutoCorrect::_GetCharClass( LanguageType eLang ) in _GetCharClass() argument
435 pCharClass = new CharClass( SvxCreateLocale( eLang )); in _GetCharClass()
436 eCharClassLang = eLang; in _GetCharClass()
460 LanguageType eLang ) in FnCptlSttWrd() argument
463 CharClass& rCC = GetCharClass( eLang ); in FnCptlSttWrd()
485 if( !FindInWrdSttExceptList(eLang, sWord) ) in FnCptlSttWrd()
505 LanguageType eLang ) in FnChgOrdinalNumber() argument
510 CharClass& rCC = GetCharClass( eLang ); in FnChgOrdinalNumber()
573 LanguageType eLang ) in FnChgToEnEmDash() argument
576 CharClass& rCC = GetCharClass( eLang ); in FnChgToEnEmDash()
577 if (eLang == LANGUAGE_SYSTEM) in FnChgToEnEmDash()
578 eLang = GetAppLang(); in FnChgToEnEmDash()
579 bool bAlwaysUseEmDash = (cEmDash && (eLang == LANGUAGE_RUSSIAN || eLang == LANGUAGE_UKRAINIAN)); in FnChgToEnEmDash()
652 bool bEnDash = (eLang == LANGUAGE_HUNGARIAN || eLang == LANGUAGE_FINNISH); in FnChgToEnEmDash()
676 LanguageType eLang ) in FnAddNonBrkSpace() argument
680 CharClass& rCC = GetCharClass( eLang ); in FnAddNonBrkSpace()
753 LanguageType eLang ) in FnSetINetAttr() argument
756 GetCharClass( eLang ) )); in FnSetINetAttr()
766 LanguageType eLang ) in FnChgWeightUnderl() argument
781 CharClass& rCC = GetCharClass( eLang ); in FnChgWeightUnderl()
836 LanguageType eLang ) in FnCptlSttSntnc() argument
842 CharClass& rCC = GetCharClass( eLang ); in FnCptlSttSntnc()
1071 if( FindInCplSttExceptList(eLang, sWord) ) in FnCptlSttSntnc()
1090 FindInCplSttExceptList(eLang, sTmp)) in FnCptlSttSntnc()
1093 if(FindInCplSttExceptList(eLang, sWord, sal_True)) in FnCptlSttSntnc()
1112 LanguageType eLang ) const in GetQuote()
1123 if( LANGUAGE_NONE == eLang ) in GetQuote()
1127 LocaleDataWrapper& rLcl = GetLocaleDataWrapper( eLang ); in GetQuote()
1145 LanguageType eLang = rDoc.GetLanguage( nInsPos, sal_False ); in InsertQuote() local
1146 sal_Unicode cRet = GetQuote( cInsChar, bSttQuote, eLang ); in InsertQuote()
1163 if( LANGUAGE_SYSTEM == eLang ) in InsertQuote()
1164 eLang = GetAppLang(); in InsertQuote()
1165 switch( eLang ) in InsertQuote()
1193 LanguageType eLang = rDoc.GetLanguage( nInsPos, sal_False ); in GetQuote() local
1194 sal_Unicode cRet = GetQuote( cInsChar, bSttQuote, eLang ); in GetQuote()
1202 if( LANGUAGE_SYSTEM == eLang ) in GetQuote()
1203 eLang = GetAppLang(); in GetQuote()
1204 switch( eLang ) in GetQuote()
1328 LanguageType eLang = rDoc.GetLanguage( nCapLttrPos, sal_False ); in AutoCorrect() local
1329 if( LANGUAGE_SYSTEM == eLang ) in AutoCorrect()
1330 eLang = MsLangId::getSystemLanguage(); in AutoCorrect()
1331 CharClass& rCC = GetCharClass( eLang ); in AutoCorrect()
1382 nCapLttrPos, nEnd, eLang ) ) in AutoCorrect()
1386 FnChgToEnEmDash( rDoc, rTxt, nCapLttrPos, nEnd, eLang ) ) in AutoCorrect()
1394 FnChgOrdinalNumber( rDoc, rTxt, nCapLttrPos, nInsPos, eLang ) ) || in AutoCorrect()
1397 FnSetINetAttr( rDoc, rTxt, nCapLttrPos, nInsPos, eLang ) ) ) in AutoCorrect()
1406 FnCptlSttSntnc( rDoc, rTxt, sal_True, nCapLttrPos, nInsPos, eLang ) ) in AutoCorrect()
1412 FnCptlSttWrd( rDoc, rTxt, nCapLttrPos, nInsPos, eLang ) ) in AutoCorrect()
1416 FnChgToEnEmDash( rDoc, rTxt, nCapLttrPos, nInsPos, eLang ) ) in AutoCorrect()
1486 LanguageType eLang ) in _GetLanguageList() argument
1488 if( !pLangTable->IsKeyValid( sal_uLong( eLang ))) in _GetLanguageList()
1489 CreateLanguageFile( eLang, sal_True); in _GetLanguageList()
1490 return *pLangTable->Seek( sal_uLong( eLang ) ); in _GetLanguageList()
1493 void SvxAutoCorrect::SaveCplSttExceptList( LanguageType eLang ) in SaveCplSttExceptList() argument
1495 if( pLangTable->IsKeyValid( sal_uLong( eLang ))) in SaveCplSttExceptList()
1497 SvxAutoCorrectLanguageListsPtr pLists = pLangTable->Seek(sal_uLong(eLang)); in SaveCplSttExceptList()
1509 void SvxAutoCorrect::SaveWrdSttExceptList(LanguageType eLang) in SaveWrdSttExceptList() argument
1511 if(pLangTable->IsKeyValid(sal_uLong(eLang))) in SaveWrdSttExceptList()
1513 SvxAutoCorrectLanguageListsPtr pLists = pLangTable->Seek(sal_uLong(eLang)); in SaveWrdSttExceptList()
1529 LanguageType eLang ) in AddCplSttException() argument
1533 if( pLangTable->IsKeyValid(sal_uLong(eLang))) in AddCplSttException()
1534 pLists = pLangTable->Seek(sal_uLong(eLang)); in AddCplSttException()
1548 LanguageType eLang ) in AddWrtSttException() argument
1552 if(pLangTable->IsKeyValid(sal_uLong(eLang))) in AddWrtSttException()
1553 pLists = pLangTable->Seek(sal_uLong(eLang)); in AddWrtSttException()
1624 LanguageType eLang = rDoc.GetLanguage( nCapLttrPos, sal_False ); in GetPrevAutoCorrWord() local
1625 if( LANGUAGE_SYSTEM == eLang ) in GetPrevAutoCorrWord()
1626 eLang = MsLangId::getSystemLanguage(); in GetPrevAutoCorrWord()
1629 CharClass& rCC = pThis->GetCharClass( eLang ); in GetPrevAutoCorrWord()
1638 sal_Bool SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, sal_Bool bNewFile ) in CreateLanguageFile() argument
1640 DBG_ASSERT(!pLangTable->IsKeyValid(sal_uLong(eLang)), "Sprache ist bereits vorhanden"); in CreateLanguageFile()
1642 String sUserDirFile( GetAutoCorrFileName( eLang, sal_True, sal_False )), in CreateLanguageFile()
1649 pLastFileTable->SearchKey( sal_uLong( eLang ), &nFndPos ) && in CreateLanguageFile()
1660 sUserDirFile, eLang ); in CreateLanguageFile()
1661 pLangTable->Insert( sal_uLong(eLang), pLists ); in CreateLanguageFile()
1662 pLastFileTable->Remove( sal_uLong( eLang ) ); in CreateLanguageFile()
1667 GetAutoCorrFileName( eLang, sal_False, sal_False ) ) ) || in CreateLanguageFile()
1671 sUserDirFile, eLang ); in CreateLanguageFile()
1672 pLangTable->Insert( sal_uLong(eLang), pLists ); in CreateLanguageFile()
1673 pLastFileTable->Remove( sal_uLong( eLang ) ); in CreateLanguageFile()
1677 if( !pLastFileTable->Insert( sal_uLong( eLang ), nAktTime.GetTime() )) in CreateLanguageFile()
1678 pLastFileTable->Replace( sal_uLong( eLang ), nAktTime.GetTime() ); in CreateLanguageFile()
1684 LanguageType eLang ) in PutText() argument
1687 if( pLangTable->IsKeyValid( sal_uLong(eLang)) || CreateLanguageFile(eLang) ) in PutText()
1688 bRet = pLangTable->Seek( sal_uLong(eLang) )->PutText(rShort, rLong); in PutText()
1694 sal_Bool SvxAutoCorrect::DeleteText( const String& rShort, LanguageType eLang ) in DeleteText() argument
1697 if( pLangTable->IsKeyValid( sal_uLong( eLang )) ) in DeleteText()
1698 bRet = pLangTable->Seek( sal_uLong( eLang ))->DeleteText( rShort ); in DeleteText()
1802 LanguageType eLang = rLang; in SearchWordsInList() local
1804 if( LANGUAGE_SYSTEM == eLang ) in SearchWordsInList()
1805 eLang = MsLangId::getSystemLanguage(); in SearchWordsInList()
1810 if( pLangTable->IsKeyValid( sal_uLong( eLang ) ) || in SearchWordsInList()
1811 CreateLanguageFile( eLang, sal_False )) in SearchWordsInList()
1814 SvxAutoCorrectLanguageListsPtr pList = pLangTable->Seek(sal_uLong(eLang)); in SearchWordsInList()
1818 rLang = eLang; in SearchWordsInList()
1824 sal_uLong nTmpKey1 = eLang & 0x7ff, // die Hauptsprache in vielen Faellen u.B. DE in SearchWordsInList()
1825 nTmpKey2 = eLang & 0x3ff, // sonst z.B. EN in SearchWordsInList()
1828 if( ((nTmp = nTmpKey1) != (sal_uLong)eLang && in SearchWordsInList()
1831 (( nTmp = nTmpKey2) != (sal_uLong)eLang && in SearchWordsInList()
1861 sal_Bool SvxAutoCorrect::FindInWrdSttExceptList( LanguageType eLang, in FindInWrdSttExceptList() argument
1866 sal_uLong nTmpKey1 = eLang & 0x7ff; // die Hauptsprache in vielen Faellen u.B. DE in FindInWrdSttExceptList()
1867 sal_uLong nTmpKey2 = eLang & 0x3ff; // sonst z.B. EN in FindInWrdSttExceptList()
1869 if( pLangTable->IsKeyValid( sal_uLong( eLang )) || in FindInWrdSttExceptList()
1870 CreateLanguageFile( eLang, sal_False ) ) in FindInWrdSttExceptList()
1873 SvxAutoCorrectLanguageListsPtr pList = pLangTable->Seek(sal_uLong(eLang)); in FindInWrdSttExceptList()
1881 if( ((nTmp = nTmpKey1) != (sal_uLong)eLang && in FindInWrdSttExceptList()
1884 (( nTmp = nTmpKey2) != (sal_uLong)eLang && in FindInWrdSttExceptList()
1941 sal_Bool SvxAutoCorrect::FindInCplSttExceptList(LanguageType eLang, in FindInCplSttExceptList() argument
1946 sal_uLong nTmpKey1 = eLang & 0x7ff; // die Hauptsprache in vielen Faellen u.B. DE in FindInCplSttExceptList()
1947 sal_uLong nTmpKey2 = eLang & 0x3ff; // sonst z.B. EN in FindInCplSttExceptList()
1949 if( pLangTable->IsKeyValid( sal_uLong( eLang )) || in FindInCplSttExceptList()
1950 CreateLanguageFile( eLang, sal_False )) in FindInCplSttExceptList()
1953 SvxAutoCorrectLanguageListsPtr pLists = pLangTable->Seek(sal_uLong(eLang)); in FindInCplSttExceptList()
1962 if( ((nTmp = nTmpKey1) != (sal_uLong)eLang && in FindInCplSttExceptList()
1965 (( nTmp = nTmpKey2) != (sal_uLong)eLang && in FindInCplSttExceptList()
1992 String SvxAutoCorrect::GetAutoCorrFileName( LanguageType eLang, in GetAutoCorrFileName() argument
1995 String sRet, sExt( MsLangId::convertLanguageToIsoString( eLang ) ); in GetAutoCorrFileName()
2019 LanguageType eLang) in SvxAutoCorrectLanguageLists() argument
2022 eLanguage(eLang), in SvxAutoCorrectLanguageLists()