// // KMPDFEditAppendWindow.h // PDF Reader // // Created by 丁林圭 on 2017/5/11. // Copyright © 2017年 zhangjie. All rights reserved. // #import #import #import @interface KMPDFEditAppendTabelViewCell :NSTableCellView @end #define moniker(x) ((x) >= 1024 ? ((x) < 1048576 ? 'M':'G'):'K') #define truesize(x) ( (x) >= 1024 ?( (x) < 1048576 ? (x)/1024.0 : (x)/1048576.0) : (x)) typedef NS_OPTIONS(NSUInteger, KMPDFPageEditType) { KMPDFPageEditAppend = 1 , KMPDFPageEditMerge , }; @interface KMPDFEditAppendWindow : NSWindowController @property (nonatomic, strong) NSURL *oriDucumentUrl; @property (nonatomic,copy) void (^saveAsPDFFilePath) (NSString *filePath); - (id)initWithFilePaths:(NSArray *)files; - (id)initWithPDFDocument:(PDFDocument *)document password:(NSString *)password; - (void)beginSheetModalForWindow:(NSWindow *)window completionHandler:(void (^)(BOOL isSuccessfully ,NSIndexSet * selectedIndexSet))handler; @end @interface KMPDFEditAppendWindow(KMExtension) - (BOOL)mergeCountIsReach; - (void)recordMergeCount; - (void)clearMergeCount; - (NSInteger)getMergeCount; @end