KMAnnotationPropertiesViewController.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. @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, assign) IBOutlet KMMainViewController *mainController;
  30. @property (nonatomic, assign) BOOL isClickFormSignature;
  31. + (CGFloat)heightWithAnnotation:(CPDFAnnotation *)annotation;
  32. + (CGFloat)heightWithAnnotationMode:(CAnnotationType)annotationMode;
  33. @end