KMAnnotationPropertiesViewController.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. @property (nonatomic, assign) CAnnotationType measureMode;
  34. + (CGFloat)heightWithAnnotation:(CPDFAnnotation *)annotation;
  35. + (CGFloat)heightWithAnnotationMode:(CAnnotationType)annotationMode;
  36. @end