Kaydet (Commit) ec79ab63 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS sj20 (1.58.102); FILE MERGED

2005/05/10 16:29:19 sj 1.58.102.1: #i48589# fixed incorrect gluepoint mapping
üst 5bc78eaa
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: shapeimport.cxx,v $ * $RCSfile: shapeimport.cxx,v $
* *
* $Revision: 1.58 $ * $Revision: 1.59 $
* *
* last change: $Author: rt $ $Date: 2005-01-27 11:26:28 $ * last change: $Author: rt $ $Date: 2005-05-13 07:56:59 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -1368,6 +1368,26 @@ void XMLShapeImportHelper::addGluePointMapping( com::sun::star::uno::Reference< ...@@ -1368,6 +1368,26 @@ void XMLShapeImportHelper::addGluePointMapping( com::sun::star::uno::Reference<
mpPageContext->maShapeGluePointsMap[xShape][nSourceId] = nDestinnationId; mpPageContext->maShapeGluePointsMap[xShape][nSourceId] = nDestinnationId;
} }
/** moves all current DestinationId's by n */
void XMLShapeImportHelper::moveGluePointMapping( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, const sal_Int32 n )
{
if( mpPageContext )
{
ShapeGluePointsMap::iterator aShapeIter( mpPageContext->maShapeGluePointsMap.find( xShape ) );
if( aShapeIter != mpPageContext->maShapeGluePointsMap.end() )
{
GluePointIdMap::iterator aShapeIdIter = (*aShapeIter).second.begin();
GluePointIdMap::iterator aShapeIdEnd = (*aShapeIter).second.end();
while ( aShapeIdIter != aShapeIdEnd )
{
if ( (*aShapeIdIter).second != -1 )
(*aShapeIdIter).second += n;
aShapeIdIter++;
}
}
}
}
/** retrieves a mapping for a glue point identifier from the current xml file to the identifier created after /** retrieves a mapping for a glue point identifier from the current xml file to the identifier created after
inserting the new glue point into the core. The mapping must be initialized first with addGluePointMapping() */ inserting the new glue point into the core. The mapping must be initialized first with addGluePointMapping() */
sal_Int32 XMLShapeImportHelper::getGluePointId( com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, sal_Int32 nSourceId ) sal_Int32 XMLShapeImportHelper::getGluePointId( com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, sal_Int32 nSourceId )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment