KMAnnotationPropertiesViewController.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // KMAnnotationPropertiesViewController.h
  3. // SignFlow
  4. //
  5. // Created by wanjun on 2021/6/15.
  6. //
  7. #import <Cocoa/Cocoa.h>
  8. #import "CPDFListView.h"
  9. typedef NS_ENUM(NSInteger, KMOpenPropertiesType) {
  10. KMOpenPropertiesType_None = 0,
  11. KMOpenPropertiesType_PageDisplay,
  12. KMOpenPropertiesType_Stamp,
  13. KMOpenPropertiesType_Link,
  14. KMOpenPropertiesType_ListBox,
  15. KMOpenPropertiesType_ComboBox,
  16. KMOpenPropertiesType_Button,
  17. KMOpenPropertiesType_FormSignatureClick
  18. };
  19. @class KMMainViewController;
  20. typedef void(^PageDisplayReaderMode)(BOOL isReaderMode);
  21. typedef void(^AnnotationTypeDidChange)(CPDFAnnotation *anno);
  22. @interface KMAnnotationPropertiesViewController : NSViewController
  23. @property (nonatomic, retain) NSArray *annotations;
  24. @property (nonatomic, assign) CAnnotationType annotationMode;
  25. @property (nonatomic, strong) CPDFListView *pdfView;
  26. @property (nonatomic, assign) BOOL isEmptyAnnotation;
  27. @property (nonatomic, assign) BOOL isContinuousAddStamp;
  28. @property (nonatomic, assign) KMOpenPropertiesType openPropertiesType;
  29. @property (nonatomic, copy) PageDisplayReaderMode pageDisplayReaderMode;
  30. @property (nonatomic, copy) AnnotationTypeDidChange annoTypeDidChange;
  31. @property (nonatomic, assign) IBOutlet KMMainViewController *mainController;
  32. @property (nonatomic, assign) BOOL isClickFormSignature;
  33. + (CGFloat)heightWithAnnotation:(CPDFAnnotation *)annotation;
  34. + (CGFloat)heightWithAnnotationMode:(CAnnotationType)annotationMode;
  35. @end