diff options
author | Armin Weiss <aw@openoffice.org> | 2007-07-06 12:38:52 +0000 |
---|---|---|
committer | Armin Weiss <aw@openoffice.org> | 2007-07-06 12:38:52 +0000 |
commit | 6a505e3e31b4054809287dcb11d30e20bfe73fa2 (patch) | |
tree | 97d035a53fbeb321c88d5dc477d7ef71f79d64ad /drawinglayer/inc | |
parent | dae599c82cdff551cb991073d4bd5c2ae93f599f (diff) |
#i39532# moved from Primitive2DReference to Primitive2DSequence where possible to avoid extra-group primitive creations and deeper hierarchies as necessary
Diffstat (limited to 'drawinglayer/inc')
3 files changed, 18 insertions, 17 deletions
diff --git a/drawinglayer/inc/drawinglayer/attribute/sdrallattribute3d.hxx b/drawinglayer/inc/drawinglayer/attribute/sdrallattribute3d.hxx index d5e4dbdf0e38..d15fef450931 100644 --- a/drawinglayer/inc/drawinglayer/attribute/sdrallattribute3d.hxx +++ b/drawinglayer/inc/drawinglayer/attribute/sdrallattribute3d.hxx @@ -4,9 +4,9 @@ * * $RCSfile: sdrallattribute3d.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: aw $ $Date: 2006-10-19 10:30:35 $ + * last change: $Author: aw $ $Date: 2007-07-06 13:38:51 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -89,7 +89,7 @@ namespace drawinglayer const FillGradientAttribute* getFillFloatTransGradient() const { return mpFillFloatTransGradient; } }; } // end of namespace overlay -} // end of namespace sdr +} // end of namespace drawinglayer ////////////////////////////////////////////////////////////////////////////// diff --git a/drawinglayer/inc/drawinglayer/processor2d/baseprocessor2d.hxx b/drawinglayer/inc/drawinglayer/processor2d/baseprocessor2d.hxx index 834b13f9b38b..760455023c98 100644 --- a/drawinglayer/inc/drawinglayer/processor2d/baseprocessor2d.hxx +++ b/drawinglayer/inc/drawinglayer/processor2d/baseprocessor2d.hxx @@ -4,9 +4,9 @@ * * $RCSfile: baseprocessor2d.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: aw $ $Date: 2007-01-25 12:56:41 $ + * last change: $Author: aw $ $Date: 2007-07-06 13:38:51 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -77,7 +77,7 @@ namespace drawinglayer class CollectingProcessor2D : public BaseProcessor2D { private: - primitive2d::Primitive2DSequence maPrimitiveSequence; + primitive2d::Primitive2DSequence maPrimitive2DSequence; public: CollectingProcessor2D(const geometry::ViewInformation2D& rViewInformation); @@ -88,17 +88,17 @@ namespace drawinglayer // helpers for adding to local sequence void appendPrimitive2DSequence(const primitive2d::Primitive2DSequence& rSource) { - primitive2d::appendPrimitive2DSequenceToPrimitive2DSequence(maPrimitiveSequence, rSource); + primitive2d::appendPrimitive2DSequenceToPrimitive2DSequence(maPrimitive2DSequence, rSource); } void appendPrimitive2DReference(const primitive2d::Primitive2DReference& rSource) { - primitive2d::appendPrimitive2DReferenceToPrimitive2DSequence(maPrimitiveSequence, rSource); + primitive2d::appendPrimitive2DReferenceToPrimitive2DSequence(maPrimitive2DSequence, rSource); } // data access and reset - const primitive2d::Primitive2DSequence& getPrimitive2DSequence() const { return maPrimitiveSequence; } - void reset() { maPrimitiveSequence = primitive2d::Primitive2DSequence(); } + const primitive2d::Primitive2DSequence& getPrimitive2DSequence() const { return maPrimitive2DSequence; } + void reset() { maPrimitive2DSequence = primitive2d::Primitive2DSequence(); } }; } // end of namespace processor2d } // end of namespace drawinglayer diff --git a/drawinglayer/inc/drawinglayer/processor3d/baseprocessor3d.hxx b/drawinglayer/inc/drawinglayer/processor3d/baseprocessor3d.hxx index 3dc0ef43eff8..e89066074357 100644 --- a/drawinglayer/inc/drawinglayer/processor3d/baseprocessor3d.hxx +++ b/drawinglayer/inc/drawinglayer/processor3d/baseprocessor3d.hxx @@ -4,9 +4,9 @@ * * $RCSfile: baseprocessor3d.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: aw $ $Date: 2006-10-19 10:33:20 $ + * last change: $Author: aw $ $Date: 2007-07-06 13:38:51 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -73,7 +73,7 @@ namespace drawinglayer class CollectingProcessor3D : public BaseProcessor3D { private: - primitive3d::Primitive3DSequence maPrimitiveSequence; + primitive3d::Primitive3DSequence maPrimitive3DSequence; public: CollectingProcessor3D(double fTime); @@ -84,16 +84,17 @@ namespace drawinglayer // helpers for adding to local sequence void appendPrimitive3DSequence(const primitive3d::Primitive3DSequence& rSource) { - primitive3d::appendPrimitive3DSequenceToPrimitive3DSequence(maPrimitiveSequence, rSource); + primitive3d::appendPrimitive3DSequenceToPrimitive3DSequence(maPrimitive3DSequence, rSource); } void appendPrimitive3DReference(const primitive3d::Primitive3DReference& rSource) { - primitive3d::appendPrimitive3DReferenceToPrimitive3DSequence(maPrimitiveSequence, rSource); + primitive3d::appendPrimitive3DReferenceToPrimitive3DSequence(maPrimitive3DSequence, rSource); } - // data access - const primitive3d::Primitive3DSequence& getPrimitive3DSequence() const { return maPrimitiveSequence; } + // data access and reset + const primitive3d::Primitive3DSequence& getPrimitive3DSequence() const { return maPrimitive3DSequence; } + void reset() { maPrimitive3DSequence = primitive3d::Primitive3DSequence(); } }; } // end of namespace processor3d } // end of namespace drawinglayer |