svgcharacternode.cxx (ddde725d) | svgcharacternode.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 --- 34 unchanged lines hidden (view full) --- 43 maDx(), 44 maDy(), 45 maRotate(), 46 maTextLength(), 47 mbLengthAdjust(true) 48 { 49 } 50 | 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 --- 34 unchanged lines hidden (view full) --- 43 maDx(), 44 maDy(), 45 maRotate(), 46 maTextLength(), 47 mbLengthAdjust(true) 48 { 49 } 50 |
51 void SvgTextPositions::parseTextPositionAttributes(const rtl::OUString& rTokenName, SVGToken aSVGToken, const rtl::OUString& aContent) | 51 void SvgTextPositions::parseTextPositionAttributes(const rtl::OUString& /*rTokenName*/, SVGToken aSVGToken, const rtl::OUString& aContent) |
52 { 53 // parse own 54 switch(aSVGToken) 55 { 56 case SVGTokenX: 57 { 58 if(aContent.getLength()) 59 { --- 84 unchanged lines hidden (view full) --- 144 } 145 else if(aContent.match(aStrSpacingAndGlyphs)) 146 { 147 setLengthAdjust(false); 148 } 149 } 150 break; 151 } | 52 { 53 // parse own 54 switch(aSVGToken) 55 { 56 case SVGTokenX: 57 { 58 if(aContent.getLength()) 59 { --- 84 unchanged lines hidden (view full) --- 144 } 145 else if(aContent.match(aStrSpacingAndGlyphs)) 146 { 147 setLengthAdjust(false); 148 } 149 } 150 break; 151 } |
152 default: 153 { 154 break; 155 } |
|
152 } 153 } 154 155 } // end of namespace svgreader 156} // end of namespace svgio 157 158////////////////////////////////////////////////////////////////////////////// 159 --- 16 unchanged lines hidden (view full) --- 176 const drawinglayer::primitive2d::Primitive2DReference& rxSource, 177 SvgTextPosition& rSvgTextPosition) 178 : drawinglayer::primitive2d::TextBreakupHelper(rxSource), 179 mrSvgTextPosition(rSvgTextPosition) 180 { 181 } 182 }; 183 | 156 } 157 } 158 159 } // end of namespace svgreader 160} // end of namespace svgio 161 162////////////////////////////////////////////////////////////////////////////// 163 --- 16 unchanged lines hidden (view full) --- 180 const drawinglayer::primitive2d::Primitive2DReference& rxSource, 181 SvgTextPosition& rSvgTextPosition) 182 : drawinglayer::primitive2d::TextBreakupHelper(rxSource), 183 mrSvgTextPosition(rSvgTextPosition) 184 { 185 } 186 }; 187 |
184 bool localTextBreakupHelper::allowChange(sal_uInt32 nCount, basegfx::B2DHomMatrix& rNewTransform, sal_uInt32 nIndex, sal_uInt32 nLength) | 188 bool localTextBreakupHelper::allowChange(sal_uInt32 /*nCount*/, basegfx::B2DHomMatrix& rNewTransform, sal_uInt32 /*nIndex*/, sal_uInt32 /*nLength*/) |
185 { 186 const double fRotation(mrSvgTextPosition.consumeRotation()); 187 188 if(0.0 != fRotation) 189 { 190 const basegfx::B2DPoint aBasePoint(rNewTransform * basegfx::B2DPoint(0.0, 0.0)); 191 192 rNewTransform.translate(-aBasePoint.getX(), -aBasePoint.getY()); --- 166 unchanged lines hidden (view full) --- 359 aTextAlign = TextAlign_center; 360 break; 361 } 362 case TextAnchor_end: 363 { 364 aTextAlign = TextAlign_right; 365 break; 366 } | 189 { 190 const double fRotation(mrSvgTextPosition.consumeRotation()); 191 192 if(0.0 != fRotation) 193 { 194 const basegfx::B2DPoint aBasePoint(rNewTransform * basegfx::B2DPoint(0.0, 0.0)); 195 196 rNewTransform.translate(-aBasePoint.getX(), -aBasePoint.getY()); --- 166 unchanged lines hidden (view full) --- 363 aTextAlign = TextAlign_center; 364 break; 365 } 366 case TextAnchor_end: 367 { 368 aTextAlign = TextAlign_right; 369 break; 370 } |
371 default: 372 { 373 break; 374 } |
|
367 } 368 } 369 370 // apply TextAlign 371 switch(aTextAlign) 372 { 373 case TextAlign_right: 374 { --- 351 unchanged lines hidden --- | 375 } 376 } 377 378 // apply TextAlign 379 switch(aTextAlign) 380 { 381 case TextAlign_right: 382 { --- 351 unchanged lines hidden --- |