#i39532# removed hint value for animated again

This commit is contained in:
Armin Weiss 2007-01-25 11:57:55 +00:00
parent f77616e681
commit 1518fe8306
7 changed files with 14 additions and 66 deletions

View file

@ -4,9 +4,9 @@
*
* $RCSfile: baseprimitive2d.hxx,v $
*
* $Revision: 1.4 $
* $Revision: 1.5 $
*
* last change: $Author: aw $ $Date: 2006-12-13 16:57:07 $
* last change: $Author: aw $ $Date: 2007-01-25 12:56:40 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -142,11 +142,6 @@ namespace drawinglayer
// the buffered decomposition may be reused or not.
virtual Primitive2DSequence get2DDecomposition(const geometry::ViewInformation2D& rViewInformation) const;
// Method to get a hint if the decomposition may produce animated primitives. Default implementation
// returns false. This should be overloaded to give a processor which looks for animated primitives
// hints if he shall decompose or not
virtual bool mayDecompositionBeAnimated() const;
//
// Methods from XPrimitive2D
//

View file

@ -4,9 +4,9 @@
*
* $RCSfile: groupprimitive2d.hxx,v $
*
* $Revision: 1.3 $
* $Revision: 1.4 $
*
* last change: $Author: aw $ $Date: 2006-11-28 11:03:56 $
* last change: $Author: aw $ $Date: 2007-01-25 12:56:40 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -67,9 +67,6 @@ namespace drawinglayer
// compare operator
virtual bool operator==( const BasePrimitive2D& rPrimitive ) const;
// give hint that this primitive may be animated. Check the group content
virtual bool mayDecompositionBeAnimated() const;
// provide unique ID
DeclPrimitrive2DIDBlock()
};

View file

@ -4,9 +4,9 @@
*
* $RCSfile: baseprocessor2d.hxx,v $
*
* $Revision: 1.1 $
* $Revision: 1.2 $
*
* last change: $Author: aw $ $Date: 2006-10-19 10:28:25 $
* last change: $Author: aw $ $Date: 2007-01-25 12:56:41 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -96,8 +96,9 @@ namespace drawinglayer
primitive2d::appendPrimitive2DReferenceToPrimitive2DSequence(maPrimitiveSequence, rSource);
}
// data access
// data access and reset
const primitive2d::Primitive2DSequence& getPrimitive2DSequence() const { return maPrimitiveSequence; }
void reset() { maPrimitiveSequence = primitive2d::Primitive2DSequence(); }
};
} // end of namespace processor2d
} // end of namespace drawinglayer

View file

@ -61,7 +61,6 @@ mkdir: %_DEST%\inc%_EXT%\drawinglayer\geometry
..\inc\drawinglayer\geometry\viewinformation2d.hxx %_DEST%\inc%_EXT%\drawinglayer\geometry\viewinformation2d.hxx
mkdir: %_DEST%\inc%_EXT%\drawinglayer\processor2d
..\inc\drawinglayer\processor2d\animatedextractor2d.hxx %_DEST%\inc%_EXT%\drawinglayer\processor2d\animatedextractor2d.hxx
..\inc\drawinglayer\processor2d\baseprocessor2d.hxx %_DEST%\inc%_EXT%\drawinglayer\processor2d\baseprocessor2d.hxx
..\inc\drawinglayer\processor2d\vclprocessor2d.hxx %_DEST%\inc%_EXT%\drawinglayer\processor2d\vclprocessor2d.hxx

View file

@ -4,9 +4,9 @@
*
* $RCSfile: baseprimitive2d.cxx,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: aw $ $Date: 2006-11-28 11:03:57 $
* last change: $Author: aw $ $Date: 2007-01-25 12:57:55 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -89,11 +89,6 @@ namespace drawinglayer
return getLocalDecomposition();
}
bool BasePrimitive2D::mayDecompositionBeAnimated() const
{
return false;
}
Primitive2DSequence SAL_CALL BasePrimitive2D::getDecomposition( const graphic::Primitive2DParameters& aPrimitive2DParameters ) throw ( uno::RuntimeException )
{
const geometry::ViewInformation2D aViewInformation(aPrimitive2DParameters);

View file

@ -4,9 +4,9 @@
*
* $RCSfile: groupprimitive2d.cxx,v $
*
* $Revision: 1.3 $
* $Revision: 1.4 $
*
* last change: $Author: aw $ $Date: 2006-11-28 11:03:57 $
* last change: $Author: aw $ $Date: 2007-01-25 12:57:55 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -75,44 +75,6 @@ namespace drawinglayer
return false;
}
bool GroupPrimitive2D::mayDecompositionBeAnimated() const
{
// check children. If one returns true, return true
if(!maChildren.hasElements())
{
return false;
}
const sal_Int32 nCount(maChildren.getLength());
for(sal_Int32 a(0L); a < nCount; a++)
{
// get reference
const primitive2d::Primitive2DReference xReference(maChildren[a]);
if(xReference.is())
{
// try to cast to BasePrimitive2D implementation
const primitive2d::BasePrimitive2D* pBasePrimitive = dynamic_cast< const primitive2d::BasePrimitive2D* >(xReference.get());
if(pBasePrimitive)
{
if(pBasePrimitive->mayDecompositionBeAnimated())
{
return true;
}
}
else
{
// unknown implementation -> may contain animation
return true;
}
}
}
return false;
}
// provide unique ID
ImplPrimitrive2DIDBlock(GroupPrimitive2D, '2','G','r','o')

View file

@ -4,9 +4,9 @@
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.1 $
# $Revision: 1.2 $
#
# last change: $Author: aw $ $Date: 2006-10-19 10:35:37 $
# last change: $Author: aw $ $Date: 2007-01-25 12:57:14 $
#
# The Contents of this file are made available subject to
# the terms of GNU Lesser General Public License Version 2.1.
@ -45,7 +45,6 @@ ENABLE_EXCEPTIONS=TRUE
# --- Files -------------------------------------
SLOFILES= \
$(SLO)$/animatedextractor2d.obj \
$(SLO)$/baseprocessor2d.obj \
$(SLO)$/vclprocessor2d.obj