KMGeneralAnnotationViewController.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // KMGeneralAnnotationViewController.h
  3. // SignFlow
  4. //
  5. // Created by wanjun on 2021/6/15.
  6. //
  7. #import <Cocoa/Cocoa.h>
  8. #import "CPDFListView.h"
  9. #import "CPDFAnnotationModel.h"
  10. typedef void(^KMAnnotationSelfSignViewControllerCallBack)(CAnnotationType newType);
  11. @interface KMGeneralAnnotationViewController : NSViewController
  12. @property (nonatomic,strong) CPDFListView *pdfView;
  13. @property (nonatomic,strong) CPDFAnnotationModel *annotationModel;
  14. @property (nonatomic, copy) KMAnnotationSelfSignViewControllerCallBack callBack;
  15. @end
  16. @interface KMGeneralAnnotationViewController (Font)
  17. - (void)updateAlignment:(NSTextAlignment)alignment;
  18. - (void)updateTextPresupposition:(NSString *)type needChangeListView:(BOOL) needChangeListView;
  19. - (void)updateTextPresupposition:(NSString *)fontName size:(CGFloat)size needChangeListView:(BOOL)needChangeListView;
  20. - (void)updateFontNameAndStyle:(NSString *)name style:(NSString *)style needChangeListView:(BOOL)needChangeListView needSave:(BOOL)needSave;
  21. - (void)updateFontSize:(CGFloat)size needChangeListView:(BOOL)needChangeListView needSave:(BOOL)needSave;
  22. - (void)updateTextTextPresuppositionState:(NSString *)name size:(CGFloat)size;
  23. - (void)resetTextPresuppositionData;
  24. - (void)reDefineTextPresuppositionData:(BOOL)redefine;
  25. @end