123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // KMPDFEditAppendWindow.h
- // PDF Reader
- //
- // Created by 丁林圭 on 2017/5/11.
- // Copyright © 2017年 zhangjie. All rights reserved.
- //
- #import <Cocoa/Cocoa.h>
- #import <Quartz/Quartz.h>
- #import <ComPDFKit/ComPDFKit.h>
- @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
|