KMPDFEditAppendWindow.h 965 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // KMPDFEditAppendWindow.h
  3. // PDF Reader
  4. //
  5. // Created by 丁林圭 on 2017/5/11.
  6. // Copyright © 2017年 zhangjie. All rights reserved.
  7. //
  8. #import <Cocoa/Cocoa.h>
  9. #import <Quartz/Quartz.h>
  10. #import <ComPDFKit/ComPDFKit.h>
  11. @interface KMPDFEditAppendTabelViewCell :NSTableCellView
  12. @end
  13. #define moniker(x) ((x) >= 1024 ? ((x) < 1048576 ? 'M':'G'):'K')
  14. #define truesize(x) ( (x) >= 1024 ?( (x) < 1048576 ? (x)/1024.0 : (x)/1048576.0) : (x))
  15. typedef NS_OPTIONS(NSUInteger, KMPDFPageEditType) {
  16. KMPDFPageEditAppend = 1 ,
  17. KMPDFPageEditMerge ,
  18. };
  19. @interface KMPDFEditAppendWindow : NSWindowController
  20. @property (nonatomic,copy) void (^saveAsPDFFilePath) (NSString *filePath);
  21. - (id)initWithFilePaths:(NSArray *)files;
  22. - (id)initWithPDFDocument:(PDFDocument *)document password:(NSString *)password;
  23. - (void)beginSheetModalForWindow:(NSWindow *)window completionHandler:(void (^)(BOOL isSuccessfully ,NSIndexSet * selectedIndexSet))handler;
  24. @end