sdrgrafprimitive2d.cxx (ddde725d) | sdrgrafprimitive2d.cxx (025b0597) |
---|---|
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 --- 41 unchanged lines hidden (view full) --- 50 appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, 51 createPolyPolygonFillPrimitive( 52 basegfx::B2DPolyPolygon(aUnitOutline), 53 getTransform(), 54 getSdrLFSTAttribute().getFill(), 55 getSdrLFSTAttribute().getFillFloatTransGradient())); 56 } 57 | 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 --- 41 unchanged lines hidden (view full) --- 50 appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, 51 createPolyPolygonFillPrimitive( 52 basegfx::B2DPolyPolygon(aUnitOutline), 53 getTransform(), 54 getSdrLFSTAttribute().getFill(), 55 getSdrLFSTAttribute().getFillFloatTransGradient())); 56 } 57 |
58 // add graphic content 59 if(255L != getGraphicAttr().GetTransparency()) 60 { 61 // standard graphic fill 62 const Primitive2DReference xGraphicContentPrimitive( 63 new GraphicPrimitive2D( 64 getTransform(), 65 getGraphicObject(), 66 getGraphicAttr())); 67 68 appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, xGraphicContentPrimitive); 69 } 70 |
|
58 // add line 59 if(!getSdrLFSTAttribute().getLine().isDefault()) 60 { 61 // if line width is given, polygon needs to be grown by half of it to make the 62 // outline to be outside of the bitmap 63 if(0.0 != getSdrLFSTAttribute().getLine().getWidth()) 64 { 65 // decompose to get scale --- 20 unchanged lines hidden (view full) --- 86 appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, 87 createPolygonLinePrimitive( 88 aUnitOutline, getTransform(), 89 getSdrLFSTAttribute().getLine(), 90 attribute::SdrLineStartEndAttribute())); 91 } 92 } 93 | 71 // add line 72 if(!getSdrLFSTAttribute().getLine().isDefault()) 73 { 74 // if line width is given, polygon needs to be grown by half of it to make the 75 // outline to be outside of the bitmap 76 if(0.0 != getSdrLFSTAttribute().getLine().getWidth()) 77 { 78 // decompose to get scale --- 20 unchanged lines hidden (view full) --- 99 appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, 100 createPolygonLinePrimitive( 101 aUnitOutline, getTransform(), 102 getSdrLFSTAttribute().getLine(), 103 attribute::SdrLineStartEndAttribute())); 104 } 105 } 106 |
94 // add graphic content 95 if(255L != getGraphicAttr().GetTransparency()) 96 { 97 // standard graphic fill 98 const Primitive2DReference xGraphicContentPrimitive( 99 new GraphicPrimitive2D( 100 getTransform(), 101 getGraphicObject(), 102 getGraphicAttr())); 103 104 appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, xGraphicContentPrimitive); 105 } 106 | |
107 // add text 108 if(!getSdrLFSTAttribute().getText().isDefault()) 109 { 110 appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, 111 createTextPrimitive( 112 basegfx::B2DPolyPolygon(aUnitOutline), 113 getTransform(), 114 getSdrLFSTAttribute().getText(), --- 61 unchanged lines hidden --- | 107 // add text 108 if(!getSdrLFSTAttribute().getText().isDefault()) 109 { 110 appendPrimitive2DReferenceToPrimitive2DSequence(aRetval, 111 createTextPrimitive( 112 basegfx::B2DPolyPolygon(aUnitOutline), 113 getTransform(), 114 getSdrLFSTAttribute().getText(), --- 61 unchanged lines hidden --- |