123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- //
- // CPDFDigtalView.h
- // PDF Reader Pro Edition
- //
- // Created by Niehaoyu on 2023/10/10.
- //
- #import <ComPDFKit/ComPDFKit.h>
- #import "NSEvent+PDFListView.h"
- #import "CPDFSelection+PDFListView.h"
- #import "CPDFListView.h"
- //#import <PDF_Reader_Pro-Swift.h>
- //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) id<CPDFDigtalViewDelegate>pdfListViewDelegate;
- @property (nonatomic, retain) NSArray *signatures;
- @end
-
- @protocol CPDFDigtalViewDelegate <NSObject>
- @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
|