1 /************************************************************************/ 2 /* */ 3 /* A list of shapes. */ 4 /* */ 5 /************************************************************************/ 6 7 # ifndef DOC_DOCUMENT_SHAPE_LIST_H 8 # define DOC_DOCUMENT_SHAPE_LIST_H 9 10 # include <utilPagedList.h> 11 12 typedef struct DrawingShapeList 13 { 14 PagedList dslPagedList; 15 } DrawingShapeList; 16 17 extern struct DrawingShape * docGetShapeByNumber( 18 const DrawingShapeList * dsl, 19 int n ); 20 21 extern void docDeleteShapeFromList( DrawingShapeList * dsl, 22 struct DrawingShape * ds ); 23 24 extern void docCleanShapeList( DrawingShapeList * dsl ); 25 extern void docInitShapeList( DrawingShapeList * dsl ); 26 27 extern struct DrawingShape * docClaimDrawingShape( 28 DrawingShapeList * dsl ); 29 30 extern struct DrawingShape * docClaimShapeInParent( 31 DrawingShapeList * dsl, 32 struct DrawingShape * parent, 33 int n, 34 int kind ); 35 36 # endif /* DOC_DOCUMENT_SHAPE_LIST_H */ 37