use custom shapes for curved connector shapes

- they looks correctly visually, we can make then connector shapes
   once we have new implementation
This commit is contained in:
Radek Doulik 2011-12-14 15:05:15 +01:00
parent 3091d423cd
commit 748a636b51
2 changed files with 1 additions and 16 deletions

View File

@ -126,22 +126,6 @@ static OUString GetConnectorShapeType( sal_Int32 nType )
static const OUString sBentConnector5 = CREATE_OUSTRING( "mso-spt36" );
sType = sBentConnector5;
} break;
case XML_curvedConnector2: {
static const OUString sCurvedConnector2 = CREATE_OUSTRING( "mso-spt37" );
sType = sCurvedConnector2;
} break;
case XML_curvedConnector3: {
static const OUString sCurvedConnector3 = CREATE_OUSTRING( "mso-spt38" );
sType = sCurvedConnector3;
} break;
case XML_curvedConnector4: {
static const OUString sCurvedConnector4 = CREATE_OUSTRING( "mso-spt39" );
sType = sCurvedConnector4;
} break;
case XML_curvedConnector5: {
static const OUString sCurvedConnector5 = CREATE_OUSTRING( "mso-spt40" );
sType = sCurvedConnector5;
} break;
default:
break;
}

View File

@ -88,6 +88,7 @@ Reference< XFastContextHandler > ShapePropertiesContext::createFastChildContext(
mrShape.getServiceName() = sLineShape;
}
if( ( nToken >= XML_bentConnector2 && nToken <= XML_bentConnector5 ) ||
( nToken >= XML_curvedConnector2 && nToken <= XML_curvedConnector5 ) ||
nToken == XML_straightConnector1 )
{
static const OUString sCustomShape( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.drawing.CustomShape" ) );