summaryrefslogtreecommitdiff
path: root/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-11-14 12:14:19 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-11-14 12:14:19 +0000
commit51c7f7ed2682a490a2f225500163f2120700e851 (patch)
treefb766616118876b74d002d2469a8f9642f24c0e1 /svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
parenta7fa03899acae81b96056bdd94c4d35259a9563c (diff)
INTEGRATION: CWS aw024 (1.5.94); FILE MERGED
2006/11/10 03:01:25 aw 1.5.94.10: RESYNC: (1.13-1.14); FILE MERGED 2006/10/27 12:13:55 aw 1.5.94.9: #i39528# ::basegfx -> basegfx adaption 2006/09/21 18:11:07 aw 1.5.94.8: RESYNC: (1.12-1.13); FILE MERGED 2006/07/04 12:03:33 aw 1.5.94.7: RESYNC: (1.11-1.12); FILE MERGED 2005/11/18 16:29:32 aw 1.5.94.6: RESYNC: (1.8-1.11); FILE MERGED 2005/09/18 01:55:55 aw 1.5.94.5: RESYNC: (1.7-1.8); FILE MERGED 2005/05/25 09:50:46 aw 1.5.94.4: #i39529# 2005/04/26 15:04:04 aw 1.5.94.3: #i39528# 2005/03/23 23:48:28 aw 1.5.94.2: RESYNC: (1.5-1.7); FILE MERGED 2004/12/23 16:52:29 aw 1.5.94.1: #i39525
Diffstat (limited to 'svx/source/customshapes/EnhancedCustomShapeFontWork.cxx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeFontWork.cxx35
1 files changed, 9 insertions, 26 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
index effb3f769a68..0050a5adc575 100644
--- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: EnhancedCustomShapeFontWork.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: obo $ $Date: 2006-10-12 12:02:19 $
+ * last change: $Author: ihi $ $Date: 2006-11-14 13:14:19 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -612,11 +612,9 @@ void GetFontWorkOutline( FWData& rFWData, const SdrObject* pCustomShape )
}
}
-//BFS09PolyPolygon GetOutlinesFromShape2d( const SdrObject* pShape2d )
-::basegfx::B2DPolyPolygon GetOutlinesFromShape2d( const SdrObject* pShape2d )
+basegfx::B2DPolyPolygon GetOutlinesFromShape2d( const SdrObject* pShape2d )
{
-//BFS09 PolyPolygon aOutlines2d;
- ::basegfx::B2DPolyPolygon aOutlines2d;
+ basegfx::B2DPolyPolygon aOutlines2d;
SdrObjListIter aObjListIter( *pShape2d, IM_DEEPWITHGROUPS );
while( aObjListIter.IsMore() )
@@ -624,23 +622,12 @@ void GetFontWorkOutline( FWData& rFWData, const SdrObject* pCustomShape )
SdrObject* pPartObj = aObjListIter.Next();
if ( pPartObj->ISA( SdrPathObj ) )
{
- const XPolyPolygon& rXPolyPoly = ((SdrPathObj*)pPartObj)->GetPathPoly();
- ::basegfx::B2DPolyPolygon aCandidate(rXPolyPoly.getB2DPolyPolygon());
+ basegfx::B2DPolyPolygon aCandidate(((SdrPathObj*)pPartObj)->GetPathPoly());
if(aCandidate.areControlPointsUsed())
{
- aCandidate = ::basegfx::tools::adaptiveSubdivideByAngle(aCandidate);
+ aCandidate = basegfx::tools::adaptiveSubdivideByAngle(aCandidate);
}
aOutlines2d.append(aCandidate);
-
-//BFS09 sal_uInt16 i, nCount = rXPolyPoly.Count();
-//BFS09 for ( i = 0; i < nCount; i++ )
-//BFS09 {
-//BFS09//BFS09 Polygon aPoly( XOutCreatePolygonBezier( rXPolyPoly.GetObject( i ), NULL ) );
-//BFS09 Polygon aPoly( XOutCreatePolygonBezier( rXPolyPoly.GetObject( i )) );
-//BFS09 Polygon aSimplePoly;
-//BFS09 aPoly.GetSimple( aSimplePoly );
-//BFS09 aOutlines2d.Insert( aSimplePoly, POLYPOLY_APPEND );
-//BFS09 }
}
}
@@ -847,11 +834,11 @@ void FitTextOutlinesToShapeOutlines( const PolyPolygon& aOutlines2d, FWData& rFW
for ( i = 0; i < nPolyCount; i++ )
{
// #i35928#
- ::basegfx::B2DPolygon aCandidate(rPolyPoly[ i ].getB2DPolygon());
+ basegfx::B2DPolygon aCandidate(rPolyPoly[ i ].getB2DPolygon());
if(aCandidate.areControlVectorsUsed())
{
- aCandidate = ::basegfx::tools::adaptiveSubdivideByAngle(aCandidate);
+ aCandidate = basegfx::tools::adaptiveSubdivideByAngle(aCandidate);
}
// create local polygon copy to work on
@@ -860,10 +847,6 @@ void FitTextOutlinesToShapeOutlines( const PolyPolygon& aOutlines2d, FWData& rFW
InsertMissingOutlinePoints( rOutlinePoly, vDistances, rTextAreaBoundRect, aLocalPoly );
InsertMissingOutlinePoints( rOutlinePoly2, vDistances2, rTextAreaBoundRect, aLocalPoly );
-//BFS09 Polygon& rPoly = rPolyPoly[ i ];
-//BFS09 InsertMissingOutlinePoints( rOutlinePoly, vDistances, rTextAreaBoundRect, rPoly );
-//BFS09 InsertMissingOutlinePoints( rOutlinePoly2, vDistances2, rTextAreaBoundRect, rPoly );
-
sal_uInt16 j, _nPointCount = aLocalPoly.GetSize();
for ( j = 0; j < _nPointCount; j++ )
{
@@ -921,7 +904,7 @@ SdrObject* CreateSdrObjectFromParagraphOutlines( const FWData& rFWData, const Sd
std::vector< PolyPolygon >::const_iterator aOutlineIEnd = aCharacterIter->vOutlines.end();
while( aOutlineIter != aOutlineIEnd )
{
- SdrObject* pPathObj = new SdrPathObj( OBJ_POLY, *aOutlineIter );
+ SdrObject* pPathObj = new SdrPathObj( OBJ_POLY, aOutlineIter->getB2DPolyPolygon() );
// SJ: not setting model, so we save a lot of broadcasting and the model is not modified any longer
// pPathObj->SetModel( pCustomShape->GetModel() );
((SdrObjGroup*)pRet)->GetSubList()->NbcInsertObject( pPathObj );