1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- //
- // CPDFListView.h
- // compdfkit-tools
- //
- // Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
- //
- // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
- // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
- // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
- // This notice may not be removed from this file.
- //
- #import <ComPDFKit/ComPDFKit.h>
- NS_ASSUME_NONNULL_BEGIN
- typedef NS_ENUM(NSUInteger, CToolModel) {
- CToolModelViewer,
- CToolModelAnnotation,
- CToolModelForm,
- CToolModelEdit,
- };
- typedef NS_ENUM(NSInteger, CPDFViewAnnotationMode) {
- CPDFViewAnnotationModeNone = 0,
- CPDFViewAnnotationModeNote,
- CPDFViewAnnotationModeHighlight,
- CPDFViewAnnotationModeUnderline,
- CPDFViewAnnotationModeStrikeout,
- CPDFViewAnnotationModeSquiggly,
- CPDFViewAnnotationModeCircle,
- CPDFViewAnnotationModeSquare,
- CPDFViewAnnotationModeArrow,
- CPDFViewAnnotationModeLine,
- CPDFViewAnnotationModeInk,
- CPDFViewAnnotationModeFreeText,
- CPDFViewAnnotationModeSignature,
- CPDFViewAnnotationModeStamp,
- CPDFViewAnnotationModeImage,
- CPDFViewAnnotationModeLink,
- CPDFViewAnnotationModeSound
- };
- extern NSNotificationName const CPDFListViewToolModeChangeNotification;
- extern NSNotificationName const CPDFListViewAnnotationModeChangeNotification;
- extern NSNotificationName const CPDFListViewActiveAnnotationsChangeNotification;
- #pragma mark - CPDFListViewDelegate
- @class CPDFListView;
- @class CPDFSlider;
- @protocol CPDFListViewDelegate <NSObject>
- @optional
- - (NSArray<UIMenuItem *> *)PDFListView:(CPDFListView *)pdfListView customizeMenuForPage:(CPDFPage *)page forPagePoint:(CGPoint)pagePoint;
- - (void)PDFListViewEditNote:(CPDFListView *)pdfListView forAnnotation:(CPDFAnnotation *)annotation;
- - (void)PDFListViewPerformTouchEnded:(CPDFListView *)pdfListView;
- - (void)PDFListViewCustomMenuClick:(CPDFListView *)pdfListView identifier:(NSString *)menuIdentifier;
- - (void)PDFListViewChangedToolMode:(CPDFListView *)pdfListView forToolMode:(CToolModel)toolMode;
- - (void)PDFListViewChangedAnnotationType:(CPDFListView *)pdfListView forAnnotationMode:(CPDFViewAnnotationMode)annotationMode;
- - (void)PDFListViewChangeatioActiveAnnotations:(CPDFListView *)pdfListView forActiveAnnotations:(NSArray<CPDFAnnotation *> *)annotations;
- @end
- #pragma mark - CPDFListView
- @interface CPDFListView : CPDFView
- @property (nonatomic, weak) id<CPDFListViewDelegate> performDelegate;
- @property (nonatomic, strong) CPDFSlider *pageSliderView;
- @property (nonatomic, assign) CToolModel toolModel;
- @property (nonatomic, assign) CPDFViewAnnotationMode annotationMode;
- @property (nonatomic, readonly) NSMutableArray <CPDFAnnotation *>*activeAnnotations;
- @end
- NS_ASSUME_NONNULL_END
|