KMAnnotationPropertiesViewController.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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_Stamp,
  12. KMOpenPropertiesType_Link,
  13. KMOpenPropertiesType_ListBox,
  14. KMOpenPropertiesType_ComboBox,
  15. KMOpenPropertiesType_Button,
  16. KMOpenPropertiesType_FormSignatureClick
  17. };
  18. @class KMMainViewController;
  19. typedef void(^PageDisplayReaderMode)(BOOL isReaderMode);
  20. typedef void(^AnnotationTypeDidChange)(CPDFAnnotation *anno);
  21. @interface KMAnnotationPropertiesViewController : NSViewController
  22. @property (nonatomic, retain) NSArray *annotations;
  23. @property (nonatomic, assign) CAnnotationType annotationMode;
  24. @property (nonatomic, strong) CPDFListView *pdfView;
  25. @property (nonatomic, assign) BOOL isEmptyAnnotation;
  26. @property (nonatomic, assign) BOOL isContinuousAddStamp;
  27. @property (nonatomic, assign) KMOpenPropertiesType openPropertiesType;
  28. @property (nonatomic, copy) PageDisplayReaderMode pageDisplayReaderMode;
  29. @property (nonatomic, copy) AnnotationTypeDidChange annoTypeDidChange;
  30. @property (nonatomic, assign) IBOutlet KMMainViewController *mainController;
  31. @property (nonatomic, assign) BOOL isClickFormSignature;
  32. @property (nonatomic, assign) CAnnotationType measureMode;
  33. + (CGFloat)heightWithAnnotation:(CPDFAnnotation *)annotation;
  34. + (CGFloat)heightWithAnnotationMode:(CAnnotationType)annotationMode;
  35. @end