xehelper.cxx (b77af630) | xehelper.cxx (c2eaa082) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 449 unchanged lines hidden (view full) --- 458 459 // script type handling 460 Reference< XBreakIterator > xBreakIt = rRoot.GetDoc().GetBreakIterator(); 461 namespace ApiScriptType = ::com::sun::star::i18n::ScriptType; 462 // #i63255# get script type for leading weak characters 463 sal_Int16 nLastScript = XclExpStringHelper::GetLeadingScriptType( rRoot, rEE.GetText() ); 464 465 // process all paragraphs | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 449 unchanged lines hidden (view full) --- 458 459 // script type handling 460 Reference< XBreakIterator > xBreakIt = rRoot.GetDoc().GetBreakIterator(); 461 namespace ApiScriptType = ::com::sun::star::i18n::ScriptType; 462 // #i63255# get script type for leading weak characters 463 sal_Int16 nLastScript = XclExpStringHelper::GetLeadingScriptType( rRoot, rEE.GetText() ); 464 465 // process all paragraphs |
466 sal_uInt16 nParaCount = rEE.GetParagraphCount(); 467 for( sal_uInt16 nPara = 0; nPara < nParaCount; ++nPara ) | 466 sal_uInt32 nParaCount = rEE.GetParagraphCount(); 467 for( sal_uInt32 nPara = 0; nPara < nParaCount; ++nPara ) |
468 { 469 ESelection aSel( nPara, 0 ); 470 String aParaText( rEE.GetText( nPara ) ); 471 472 SvUShorts aPosList; 473 rEE.GetPortions( nPara, aPosList ); 474 475 // process all portions in the paragraph --- 264 unchanged lines hidden (view full) --- 740 const FontList* pFontList = 0; 741 if( SfxObjectShell* pDocShell = GetDocShell() ) 742 { 743 if( const SvxFontListItem* pInfoItem = static_cast< const SvxFontListItem* >( 744 pDocShell->GetItem( SID_ATTR_CHAR_FONTLIST ) ) ) 745 pFontList = pInfoItem->GetFontList(); 746 } 747 | 468 { 469 ESelection aSel( nPara, 0 ); 470 String aParaText( rEE.GetText( nPara ) ); 471 472 SvUShorts aPosList; 473 rEE.GetPortions( nPara, aPosList ); 474 475 // process all portions in the paragraph --- 264 unchanged lines hidden (view full) --- 740 const FontList* pFontList = 0; 741 if( SfxObjectShell* pDocShell = GetDocShell() ) 742 { 743 if( const SvxFontListItem* pInfoItem = static_cast< const SvxFontListItem* >( 744 pDocShell->GetItem( SID_ATTR_CHAR_FONTLIST ) ) ) 745 pFontList = pInfoItem->GetFontList(); 746 } 747 |
748 sal_uInt16 nParaCount = mrEE.GetParagraphCount(); 749 for( sal_uInt16 nPara = 0; nPara < nParaCount; ++nPara ) | 748 sal_uInt32 nParaCount = mrEE.GetParagraphCount(); 749 for( sal_uInt32 nPara = 0; nPara < nParaCount; ++nPara ) |
750 { 751 ESelection aSel( nPara, 0 ); 752 String aParaText; 753 sal_Int32 nParaHeight = 0; 754 SvUShorts aPosList; 755 mrEE.GetPortions( nPara, aPosList ); 756 757 sal_uInt16 nPosCount = aPosList.Count(); --- 383 unchanged lines hidden --- | 750 { 751 ESelection aSel( nPara, 0 ); 752 String aParaText; 753 sal_Int32 nParaHeight = 0; 754 SvUShorts aPosList; 755 mrEE.GetPortions( nPara, aPosList ); 756 757 sal_uInt16 nPosCount = aPosList.Count(); --- 383 unchanged lines hidden --- |