textbreakuphelper.cxx (ddde725d) | textbreakuphelper.cxx (e2bf1e9d) |
---|---|
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 --- 80 unchanged lines hidden (view full) --- 89 if(mbNoDXArray) 90 { 91 // evaluate using TextLayouter 92 fOffset = maTextLayouter.getTextWidth(mpSource->getText(), mpSource->getTextPosition(), nIndex); 93 } 94 else 95 { 96 // get from DXArray | 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 --- 80 unchanged lines hidden (view full) --- 89 if(mbNoDXArray) 90 { 91 // evaluate using TextLayouter 92 fOffset = maTextLayouter.getTextWidth(mpSource->getText(), mpSource->getTextPosition(), nIndex); 93 } 94 else 95 { 96 // get from DXArray |
97 const sal_uInt32 nIndex(static_cast< sal_uInt32 >(nIndex - mpSource->getTextPosition())); 98 fOffset = mpSource->getDXArray()[nIndex - 1]; | 97 const sal_uInt32 nIndex2(static_cast< sal_uInt32 >(nIndex - mpSource->getTextPosition())); 98 fOffset = mpSource->getDXArray()[nIndex2 - 1]; |
99 } 100 101 // need offset without FontScale for building the new transformation. The 102 // new transformation will be multiplied with the current text transformation 103 // so FontScale would be double 104 double fOffsetNoScale(fOffset); 105 const double fFontScaleX(maDecTrans.getScale().getX()); 106 --- 71 unchanged lines hidden (view full) --- 178 mpSource->getFontAttribute(), 179 mpSource->getLocale(), 180 mpSource->getFontColor())); 181 } 182 } 183 } 184 } 185 | 99 } 100 101 // need offset without FontScale for building the new transformation. The 102 // new transformation will be multiplied with the current text transformation 103 // so FontScale would be double 104 double fOffsetNoScale(fOffset); 105 const double fFontScaleX(maDecTrans.getScale().getX()); 106 --- 71 unchanged lines hidden (view full) --- 178 mpSource->getFontAttribute(), 179 mpSource->getLocale(), 180 mpSource->getFontColor())); 181 } 182 } 183 } 184 } 185 |
186 bool TextBreakupHelper::allowChange(sal_uInt32 nCount, basegfx::B2DHomMatrix& rNewTransform, sal_uInt32 nIndex, sal_uInt32 nLength) | 186 bool TextBreakupHelper::allowChange(sal_uInt32 /*nCount*/, basegfx::B2DHomMatrix& /*rNewTransform*/, sal_uInt32 /*nIndex*/, sal_uInt32 /*nLength*/) |
187 { 188 return true; 189 } 190 191 void TextBreakupHelper::breakup(BreakupUnit aBreakupUnit) 192 { 193 if(mpSource && mpSource->getTextLength()) 194 { --- 100 unchanged lines hidden --- | 187 { 188 return true; 189 } 190 191 void TextBreakupHelper::breakup(BreakupUnit aBreakupUnit) 192 { 193 if(mpSource && mpSource->getTextLength()) 194 { --- 100 unchanged lines hidden --- |