Lines 2330-2342
Link Here
|
2330 |
{ |
2330 |
{ |
2331 |
USHORT nWhichId = RES_CHRATR_LANGUAGE; |
2331 |
USHORT nWhichId = RES_CHRATR_LANGUAGE; |
2332 |
USHORT nRet = LANGUAGE_DONTKNOW; |
2332 |
USHORT nRet = LANGUAGE_DONTKNOW; |
2333 |
if( pSwpHints ) |
2333 |
if ( ! nScript ) |
2334 |
{ |
|
|
2335 |
if ( ! nScript ) |
2336 |
nScript = pBreakIt->GetRealScriptOfText( aText, nBegin ); |
2334 |
nScript = pBreakIt->GetRealScriptOfText( aText, nBegin ); |
2337 |
|
|
|
2338 |
nWhichId = GetWhichOfScript( nWhichId, nScript ); |
2335 |
nWhichId = GetWhichOfScript( nWhichId, nScript ); |
2339 |
|
2336 |
if( pSwpHints ) |
|
|
2337 |
{ |
2340 |
xub_StrLen nEnd = nBegin + nLen; |
2338 |
xub_StrLen nEnd = nBegin + nLen; |
2341 |
for( USHORT i = 0, nSize = pSwpHints->Count(); i < nSize; ++i ) |
2339 |
for( USHORT i = 0, nSize = pSwpHints->Count(); i < nSize; ++i ) |
2342 |
{ |
2340 |
{ |
Lines 2376-2385
Link Here
|
2376 |
} |
2374 |
} |
2377 |
if( LANGUAGE_DONTKNOW == nRet ) |
2375 |
if( LANGUAGE_DONTKNOW == nRet ) |
2378 |
{ |
2376 |
{ |
2379 |
if( !pSwpHints ) |
|
|
2380 |
nWhichId = GetWhichOfScript( RES_CHRATR_LANGUAGE, |
2381 |
pBreakIt->GetRealScriptOfText( aText, nBegin )); |
2382 |
|
2383 |
nRet = ((SvxLanguageItem&)GetSwAttrSet().Get( nWhichId )).GetLanguage(); |
2377 |
nRet = ((SvxLanguageItem&)GetSwAttrSet().Get( nWhichId )).GetLanguage(); |
2384 |
if( LANGUAGE_DONTKNOW == nRet ) |
2378 |
if( LANGUAGE_DONTKNOW == nRet ) |
2385 |
nRet = static_cast<USHORT>(GetAppLanguage()); |
2379 |
nRet = static_cast<USHORT>(GetAppLanguage()); |