PDFLayerControllerSPI.h [plain text]
#ifndef PDFLayerControllerSPI_h
#define PDFLayerControllerSPI_h
#include "PDFKitImports.h"
#if ENABLE(PDFKIT_PLUGIN)
#if USE(DEPRECATED_PDF_PLUGIN)
#include "DeprecatedPDFLayerControllerSPI.h"
#else // USE(DEPRECATED_PDF_PLUGIN)
#import <PDFKit/PDFKit.h>
@class CPReadingModel;
@class PDFViewLayout;
@protocol PDFLayerControllerDelegate <NSObject>
@optional
- (void)pdfLayerController:(PDFLayerController *)pdfLayerController scrollToPoint:(CGPoint)newPosition;
- (void)pdfLayerController:(PDFLayerController *)pdfLayerController invalidateRect:(CGRect)rect;
- (void)pdfLayerControllerInvalidateHUD:(PDFLayerController *)pdfLayerController;
- (void)pdfLayerControllerZoomIn:(PDFLayerController *)pdfLayerController;
- (void)pdfLayerControllerZoomOut:(PDFLayerController *)pdfLayerController;
- (void)pdfLayerController:(PDFLayerController *)pdfLayerController didChangeActiveAnnotation:(PDFAnnotation *)annotation;
- (void)pdfLayerController:(PDFLayerController *)pdfLayerController didClickLinkWithURL:(NSURL *)url;
- (void)pdfLayerController:(PDFLayerController *)pdfLayerController didChangeDisplayMode:(int)mode;
- (void)pdfLayerController:(PDFLayerController *)pdfLayerController didChangeSelection:(PDFSelection *)selection;
- (void)pdfLayerController:(PDFLayerController *)pdfLayerController copyItems:(NSArray *)items withTypes:(NSArray *)types;
- (void)pdfLayerController:(PDFLayerController *)pdfLayerController showDefinitionForAttributedString:(NSAttributedString *)string atPoint:(CGPoint)point;
- (void)pdfLayerController:(PDFLayerController *)pdfLayerController performWebSearchForString:(NSString *)string;
- (void)pdfLayerController:(PDFLayerController *)pdfLayerController performSpotlightSearchForString:(NSString *)string;
- (void)pdfLayerControllerSaveToPDF:(PDFLayerController *)pdfLayerController;
- (void)pdfLayerControllerOpenWithNativeApplication:(PDFLayerController *)pdfLayerController;
- (NSColorSpace*)pdfLayerControllerColorSpace:(PDFLayerController *)pdfLayerController;
@end
@interface PDFLayerController : NSObject
@end
@interface PDFLayerController ()
@property (retain) PDFDocument *document;
@property (assign) id<PDFLayerControllerDelegate> delegate;
@property (retain) NSArray *searchMatches;
- (void)setFrameSize:(CGSize)size;
- (void)setDisplayMode:(int)mode;
- (int)displayMode;
- (int)realDisplayMode;
- (CGSize)contentSize;
- (CGSize)contentSizeRespectingZoom;
- (CGFloat)contentScaleFactor;
- (void)setContentScaleFactor:(CGFloat)contentScaleFactor;
- (PDFViewLayout *)layout;
- (void)drawInContext:(CGContextRef)context;
- (void)drawHUDInContext:(CGContextRef)context;
- (void)mouseDown:(NSEvent *)event;
- (void)mouseUp:(NSEvent *)event;
- (void)mouseDragged:(NSEvent *)event;
- (BOOL)mouseDown:(NSEvent *)event inHUDWithBounds:(CGRect)bounds;
- (BOOL)mouseUp:(NSEvent *)event inHUDWithBounds:(CGRect)bounds;
- (BOOL)mouseDragged:(NSEvent *)event inHUDWithBounds:(CGRect)bounds;
- (NSMenu *)menuForEvent:(NSEvent *)event;
- (NSArray *)pageRects;
- (void)setVisibleRect:(CGRect)visibleRect;
- (void)gotoSelection:(PDFSelection *)selection;
- (void)gotoDestination:(PDFDestination *)destination;
- (void)gotoRect:(CGRect)rect onPage:(PDFPage *)page;
- (PDFSelection *)currentSelection;
- (void)setCurrentSelection:(PDFSelection *)selection;
- (void)searchInDictionaryWithSelection:(PDFSelection *)selection;
- (PDFSelection *)getSelectionForWordAtPoint:(CGPoint)point;
- (NSArray *)rectsForSelectionInLayoutSpace:(PDFSelection *)selection;
- (NSArray *)highlights;
- (void)setHighlights:(NSArray*)highlights;
- (PDFSelection *)searchSelection;
- (NSArray *)searchMatches;
- (void)setSearchSelection:(PDFSelection*)selection;
- (NSArray *)findString:(NSString *)string caseSensitive:(BOOL)isCaseSensitive highlightMatches:(BOOL)shouldHighlightMatches;
- (void)copySelection;
- (void)selectAll;
- (PDFPage *)currentPage;
- (NSUInteger)currentPageIndex;
- (BOOL)documentIsLocked;
- (void)attemptToUnlockWithPassword:(NSString *)password;
- (CGRect)boundsForAnnotation:(PDFAnnotation *)annotation;
- (void)activateNextAnnotation:(BOOL)previous;
- (NSRect)frame;
- (CPReadingModel *)readingModel;
- (id)accessibilityFocusedUIElement;
- (NSArray *)accessibilityAttributeNames;
- (BOOL)accessibilityIsAttributeSettable:(NSString *)attribute;
- (void)accessibilitySetValue:(id)value forAttribute:(NSString *)attribute;
- (NSArray *)accessibilityParameterizedAttributeNames;
- (NSString *)accessibilityRoleAttribute;
- (NSString *)accessibilityRoleDescriptionAttribute;
- (NSString *)accessibilityValueAttribute;
- (BOOL)accessibilityIsValueAttributeSettable;
- (NSString *)accessibilitySelectedTextAttribute;
- (BOOL)accessibilityIsSelectedTextAttributeSettable;
- (NSValue *)accessibilitySelectedTextRangeAttribute;
- (NSNumber *)accessibilityNumberOfCharactersAttribute;
- (BOOL)accessibilityIsNumberOfCharactersAttributeSettable;
- (NSValue *)accessibilityVisibleCharacterRangeAttribute;
- (BOOL)accessibilityIsVisibleCharacterRangeAttributeSettable;
- (NSNumber *)accessibilityLineForIndexAttributeForParameter:(id)parameter;
- (NSValue *)accessibilityRangeForLineAttributeForParameter:(id)parameter;
- (NSString *)accessibilityStringForRangeAttributeForParameter:(id)parameter;
- (NSValue *)accessibilityBoundsForRangeAttributeForParameter:(id)parameter;
@end
#endif // USE(DEPRECATED_PDF_PLUGIN)
#endif // ENABLE(PDFPLUGIN)
#endif // PDFLayerControllerSPI_h