InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CGraphicFrameShape Class Reference
Inheritance diagram for CGraphicFrameShape:
CPathShapeCShapeIShapeIPMUnknownBscShpShapeCdlChartShape

Public Member Functions

 CGraphicFrameShape (IPMUnknown *boss)
 
- Public Member Functions inherited from CPathShape
 CPathShape (IPMUnknown *boss)
 
- Public Member Functions inherited from CShape
 CShape (IPMUnknown *boss)
 
virtual void ProcessDrawShape (GraphicsData *gd, int32 flags)
 
virtual void IterateShapeDrawOrder_ (const PMMatrix *xform, ICallback *callbackInfo, int32 flags)
 
virtual void Inval (GraphicsData *gd, ClassID reasonForInval, int32 flags)
 
- Public Member Functions inherited from IShape
void IterateShapeDrawOrder (ICallback *callbackInfo, int32 flags=0)
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Protected Member Functions

virtual void DrawShape (GraphicsData *gd, int32 flags)
 
virtual void DrawShape_Fill (GraphicsData *gd, int32 flags)
 
virtual void DrawShape_Hierarchy (GraphicsData *gd, int32 flags)
 
virtual void DrawShape_Stroke (GraphicsData *gd, int32 flags)
 
virtual bool16 IsGraphicFrame () const
 
virtual PMRect GetPaintedBBox (const PMMatrix &theMatrix, const Transform::CoordinateSpace &coordinateSpace)
 
virtual PMRect GetPrintedBBox (const PMMatrix &theMatrix, const Transform::CoordinateSpace &coordinateSpace, bool32 includeAdornments=kTrue)
 

Protected Attributes

IGraphicFrameDatafFrameData
 
- Protected Attributes inherited from CPathShape
IPathPageItemfPathPageItem
 
- Protected Attributes inherited from CShape
IDataBasefDB
 
IPageItemCachefPageItemCache
 
IHierarchyfHierarchy
 
IGeometryfGeometry
 
IHandleShapefHandleShape
 
IHandleShapefPathHandleShape
 
IPageItemAdornmentListfAdornmentList
 

Additional Inherited Members

- Public Types inherited from IShape
enum  { kDefaultIID = IID_ISHAPE }
 
enum  {
  kNoFlags = 0, kDrawingClippedOutImageData = 1, kUseXOR = 2, kDrawResizeDynamic = 4,
  kDrawRotateDynamic = 8, kDrawScaleDynamic = 16, kDrawMoveDynamic = 32, kDrawCreateDynamic = 64,
  kPatientUser = 128, kDynamicPause = 256, kPrinting = 512, kDoBroadcast = 1024,
  kDrawFrameEdge = 2048, kPreviewMode = 4096
}
 
enum  {
  kSelect = 1, kDirectSelect = 2, kGroupSelect = 4, kOverrideMasterPageItemNoSelect = 8,
  kOverrideMasterPageItem = kOverrideMasterPageItemNoSelect + kSelect, kHitTest = 16, kSolidSelect = 32, kOnlyPath = 64,
  kHitTestLockedLayers = 128, kHitTextOnPath = 256, kOverrideThreadedMasterPageItems = 512
}
 
enum  {
  kIsAMasterPageItem = 1, kSkipChildren = 2, kSkipHiddenLayers = 4, kSkipLockedLayers = 8,
  kSkipHiddenAndLockedLayers = kSkipHiddenLayers + kSkipLockedLayers, kSkipGuideLayers = 16, kSkipMasterPageItems = 32, kSkipNonGuideLayers = 64,
  kIncludeHiddenFormStates = 128, kSkipNonPrintingLayers = 256, kIteratePrinting = 512, kIncludeTOPPageItems = 1024,
  kSkipFormStates = 2048, kPDFExportMode = 4096
}
 
enum  { kPathSelection = 1 }
 

Member Function Documentation

virtual void CGraphicFrameShape::DrawShape_Fill (GraphicsDatagd,
int32 flags 
)
protectedvirtual

DrawShape is broken out into fill, children, and stroke. This method implements the fill. It issues the appropriate event dispatches, adornments, etc., and does the fill based on the path already in gstate.

The gstate will be symmetric across this call, ie the gstate on exit should be the same as the gstate on entry.

Parameters
gdIN The class that provides all the drawing context.
flagsIN Drawing flags (IShape::*)
virtual void CGraphicFrameShape::DrawShape_Hierarchy (GraphicsDatagd,
int32 flags 
)
protectedvirtual

DrawShape is broken out into fill, children, and stroke. This method implements the children. This takes into account any ghosting of content required and eventually calls DrawHierarchy.

The gstate will be symmetric across this call, ie the gstate on exit should be the same as the gstate on entry.

Parameters
gdIN The class that provides all the drawing context.
flagsIN Drawing flags (IShape::*)
virtual void CGraphicFrameShape::DrawShape_Stroke (GraphicsDatagd,
int32 flags 
)
protectedvirtual

DrawShape is broken out into fill, children, and stroke. This method implements the fill. It issues the appropriate event dispatches, adornments, etc., and does the stroke based on the path already in gstate.

The gstate depth will be symmetric across the call but since this is the last operation in the chain it does not attempt to maintain gstate otherwise.

Parameters
gdIN The class that provides all the drawing context.
flagsIN Drawing flags (IShape::*)
virtual PMRect CGraphicFrameShape::GetPaintedBBox (const PMMatrixtheMatrix,
const Transform::CoordinateSpacecoordinateSpace 
)
protectedvirtual

Get the painted bounds. The bounds must include all painted area but does not need to be pixel perfect. Compute the bounds in pasteboard coords and then transform by theMatrix.

Parameters
theMatrixthe matrix to transform the bounds based on pasteboard coordinates.
Returns
PMRect the bounds for painting(redrawing).

Reimplemented from CPathShape.

virtual PMRect CGraphicFrameShape::GetPrintedBBox (const PMMatrixtheMatrix,
const Transform::CoordinateSpacecoordinateSpace,
bool32 includeAdornments = kTrue 
)
protectedvirtual

Get the bounds around what will actually print. This includes the stroke bounds plus whatever adornments are set to print. Compute the bounds in pasteboard coords and then transform by theMatrix.

Parameters
theMatrixthe matrix to transform the bounds based on pasteboard coordinates.
includeAdornments[IN] Whether or not printing adornments are included in the resulting bounding box
Returns
PMRect the bounds for printing.

Reimplemented from CShape.