sdrole2primitive2d.cxx (cdf0e10c) | sdrole2primitive2d.cxx (a5258243) |
---|---|
1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * --- 69 unchanged lines hidden (view full) --- 78 } 79 80 Primitive2DSequence SdrOle2Primitive2D::get2DDecomposition(const geometry::ViewInformation2D& /*aViewInformation*/) const 81 { 82 // to take care of getSdrLFSTAttribute() later, the same as in SdrGrafPrimitive2D::create2DDecomposition 83 // should happen. For the moment we only need the OLE itself 84 // Added complete primitive preparation using getSdrLFSTAttribute() now. To not do stuff which is not needed now, it 85 // may be supressed by using a static bool. The paint version only supported text. | 1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * --- 69 unchanged lines hidden (view full) --- 78 } 79 80 Primitive2DSequence SdrOle2Primitive2D::get2DDecomposition(const geometry::ViewInformation2D& /*aViewInformation*/) const 81 { 82 // to take care of getSdrLFSTAttribute() later, the same as in SdrGrafPrimitive2D::create2DDecomposition 83 // should happen. For the moment we only need the OLE itself 84 // Added complete primitive preparation using getSdrLFSTAttribute() now. To not do stuff which is not needed now, it 85 // may be supressed by using a static bool. The paint version only supported text. |
86 static bool bBehaveCompatibleToPaintVersion(true); | 86 static bool bBehaveCompatibleToPaintVersion(false); |
87 Primitive2DSequence aRetval; 88 89 // create unit outline polygon 90 const basegfx::B2DPolygon aUnitOutline(basegfx::tools::createUnitPolygon()); 91 92 // add fill 93 if(!bBehaveCompatibleToPaintVersion 94 && !getSdrLFSTAttribute().getFill().isDefault()) --- 96 unchanged lines hidden --- | 87 Primitive2DSequence aRetval; 88 89 // create unit outline polygon 90 const basegfx::B2DPolygon aUnitOutline(basegfx::tools::createUnitPolygon()); 91 92 // add fill 93 if(!bBehaveCompatibleToPaintVersion 94 && !getSdrLFSTAttribute().getFill().isDefault()) --- 96 unchanged lines hidden --- |