// // CPDFDigtalView.h // PDF Reader Pro Edition // // Created by Niehaoyu on 2023/10/10. // #import #import "NSEvent+PDFListView.h" #import "CPDFSelection+PDFListView.h" #import "CPDFListView.h" //#import //typedef NS_ENUM(NSInteger, CAnnotationType) { // CAnnotationTypeUnkown = 0, // CAnnotationTypeAnchored, // CAnnotationTypeLink, // CAnnotationTypeFreeText, // CAnnotationTypeLine, // CAnnotationTypeArrow, // CAnnotationTypeSquare, // CAnnotationTypeCircle, // /*CAnnotationTypePolyGon,*/ // /*CAnnotationTypePolyLine,*/ // CAnnotationTypeHighlight, // CAnnotationTypeUnderline, //// CAnnotationTypeSquiggly, // CAnnotationTypeStrikeOut, // CAnnotationTypeStamp, // CAnnotationTypeSignSignature, // /*CAnnotationTypeCaret,*/ // CAnnotationTypeInk, // /*CAnnotationTypePopUp,*/ // /*CAnnotationTypeFileattachment,*/ // /*CAnnotationTypeSound,*/ // /*CAnnotationTypeMovie,*/ // CAnnotationTypeRedact, // CAnnotationTypeEraser, // CAnnotationTypeAddText, // CAnnotationTypeAddImage, // // CAnnotationTypeRadioButton = 100, // CAnnotationTypeCheckBox, // CAnnotationTypeTextField, // CAnnotationTypeComboBox, // CAnnotationTypeListMenu, // CAnnotationTypeActionButton, // CAnnotationTypeSignature, // // CAnnotationTypeSignText = 200, // CAnnotationTypeSignFalse, // CAnnotationTypeSignTure, // CAnnotationTypeSignCircle, // CAnnotationTypeSignLine, // CAnnotationTypeSignDot, // CAnnotationTypeSignConfig, // CAnnotationTypeSignDate, //}; //typedef NS_OPTIONS(NSUInteger, CRectEdges) { // CNoEdgeMask = 0, // CMinXEdgeMask = (1UL << 0), // CMinYEdgeMask = (1UL << 1), // CMaxXEdgeMask = (1UL << 2), // CMaxYEdgeMask = (1UL << 3), // CEditInEdgeMask = (1UL << 4), //}; //enum { // CDragArea = 1 << 16, // CResizeUpDownArea = 1 << 17, // CReadingBarArea = 1 << 18, // CSpecialToolArea = 1 << 19, // CResizeMinXMinY = 1 << 20, // CResizeMidXMinY = 1 << 21, // CResizeMaxXMinY = 1 << 22, // CResizeMinXMidY = 1 << 23, // CResizeMaxXMaxY = 1 << 24, // CResizeMidXMaxY = 1 << 25, // CResizeMinXMaxY = 1 << 26, // CResizeMaxXMidY = 1 << 27, //}; @protocol CPDFDigtalViewDelegate; @interface CPDFDigtalView : CPDFView @property (nonatomic, assign) CAnnotationType annotationType; @property (nonatomic, readonly) CPDFAnnotation * activeAnnotation; @property (nonatomic, retain) NSMutableArray *activeAnnotations; @property (nonatomic, retain) NSMutableArray *selectAnnotations; @property (nonatomic, assign) idpdfListViewDelegate; @property (nonatomic, retain) NSArray *signatures; @end @protocol CPDFDigtalViewDelegate @optional - (void)PDFListViewAddAnnotation:(CPDFDigtalView *)pdfListView forAddAnnotation:(CPDFAnnotation *)annotation inPage:(CPDFPage *)pdfPage; - (void)PDFListViewEditAnnotation:(CPDFDigtalView *)pdfListView forAnnotation:(CPDFAnnotation *)anotation; - (void)PDFListViewDeleteAnnotation:(CPDFDigtalView *)pdfListView forAnnotation:(CPDFAnnotation *)anotation; @end