Kaydet (Commit) 9ac5f060 authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS impress14ea (1.2.132); FILE MERGED

2004/06/17 16:27:41 sj 1.2.132.1: #114297# added gluepoint support for customshapes
üst 0be4cba6
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: EnhancedCustomShapeGeometry.cxx,v $ * $RCSfile: EnhancedCustomShapeGeometry.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: rt $ $Date: 2004-04-02 14:04:29 $ * last change: $Author: kz $ $Date: 2004-06-28 16:19:17 $
* *
* 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
...@@ -62,6 +62,9 @@ ...@@ -62,6 +62,9 @@
#ifndef _ENHANCEDCUSTOMSHAPEGEOMETRY_HXX #ifndef _ENHANCEDCUSTOMSHAPEGEOMETRY_HXX
#include "EnhancedCustomShapeGeometry.hxx" #include "EnhancedCustomShapeGeometry.hxx"
#endif #endif
#ifndef _DRAFTS_COM_SUN_STAR_DRAWING_ENHANCEDCUSTOMSHAPEGLUEPOINTTYPE_HPP_
#include <drafts/com/sun/star/drawing/EnhancedCustomShapeGluePointType.hpp>
#endif
/* /*
static const SvxMSDffVertPair Vert[] = static const SvxMSDffVertPair Vert[] =
...@@ -5330,6 +5333,26 @@ const sal_Bool IsCustomShapeFilledByDefault( MSO_SPT eSpType ) ...@@ -5330,6 +5333,26 @@ const sal_Bool IsCustomShapeFilledByDefault( MSO_SPT eSpType )
bIsFilledByDefault = ( mso_DefaultFillingTable[ i >> 4 ] & ( 1 << ( i & 0xf ) ) ) == 0; bIsFilledByDefault = ( mso_DefaultFillingTable[ i >> 4 ] & ( 1 << ( i & 0xf ) ) ) == 0;
return bIsFilledByDefault; return bIsFilledByDefault;
} }
const sal_Int16 GetCustomShapeConnectionTypeDefault( MSO_SPT eSpType )
{
sal_Int16 nGluePointType = drafts::com::sun::star::drawing::EnhancedCustomShapeGluePointType::SEGMENTS;
const mso_CustomShape* pDefCustomShape = GetCustomShapeContent( eSpType );
if ( pDefCustomShape && pDefCustomShape->nGluePoints )
nGluePointType = drafts::com::sun::star::drawing::EnhancedCustomShapeGluePointType::CUSTOM;
else
{
switch( eSpType )
{
case mso_sptRectangle :
case mso_sptPictureFrame :
case mso_sptFlowChartProcess :
case mso_sptTextPlainText :
case mso_sptTextBox :
nGluePointType = drafts::com::sun::star::drawing::EnhancedCustomShapeGluePointType::RECT;
}
}
return nGluePointType;
}
static const sal_uInt16 msoSortFilledObjectsToBackTable[] = static const sal_uInt16 msoSortFilledObjectsToBackTable[] =
{ {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0400, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0400, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: EnhancedCustomShapeGeometry.hxx,v $ * $RCSfile: EnhancedCustomShapeGeometry.hxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: rt $ $Date: 2004-04-02 14:04:40 $ * last change: $Author: kz $ $Date: 2004-06-28 16:19:31 $
* *
* 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
...@@ -134,6 +134,7 @@ struct mso_CustomShape ...@@ -134,6 +134,7 @@ struct mso_CustomShape
const sal_Bool SortFilledObjectsToBackByDefault( MSO_SPT eSpType ); const sal_Bool SortFilledObjectsToBackByDefault( MSO_SPT eSpType );
const sal_Bool IsCustomShapeFilledByDefault( MSO_SPT eSpType ); const sal_Bool IsCustomShapeFilledByDefault( MSO_SPT eSpType );
const sal_Int16 GetCustomShapeConnectionTypeDefault( MSO_SPT eSpType );
const mso_CustomShape* GetCustomShapeContent( MSO_SPT eSpType ); const mso_CustomShape* GetCustomShapeContent( MSO_SPT eSpType );
#endif #endif
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