Lines Matching refs:PDFSubview
183 [PDFSubview setDocument:doc];
190 return [PDFSubview document];
199 [PDFSubview setDelegate:nil];
200 [PDFSubview release];
211 [PDFSubview scrollSelectionToVisible:nil];
217 [PDFSubview keyDown:[self _fakeKeyEventWithFunctionKey:NSPageDownFunctionKey]];
223 [PDFSubview keyDown:[self _fakeKeyEventWithFunctionKey:NSPageUpFunctionKey]];
229 [PDFSubview keyDown:[self _fakeKeyEventWithFunctionKey:NSDownArrowFunctionKey]];
235 [PDFSubview keyDown:[self _fakeKeyEventWithFunctionKey:NSUpArrowFunctionKey]];
241 [PDFSubview keyDown:[self _fakeKeyEventWithFunctionKey:NSHomeFunctionKey]];
247 [PDFSubview keyDown:[self _fakeKeyEventWithFunctionKey:NSEndFunctionKey]];
268 // This works together with setNextKeyView to splice our PDFSubview into
275 if ((previousValidKeyView != self) && (previousValidKeyView != PDFSubview))
278 NSView *PDFDocumentView = [PDFSubview documentView];
322 // We'll retain the PDFSubview here so that it is equally retained in all
325 PDFSubview = [[previewView performSelector:@selector(pdfView)] retain];
328 PDFSubview = [[[[self class] _PDFViewClass] alloc] initWithFrame:frame];
329 topLevelPDFKitView = PDFSubview;
332 ASSERT(PDFSubview);
337 [PDFSubview setDelegate:self];
339 // Messaging this proxy is the same as messaging PDFSubview, with the side effect that the
404 // This works together with becomeFirstResponder to splice PDFSubview into
406 NSView *documentView = [PDFSubview documentView];
439 object:PDFSubview];
444 object:PDFSubview];
449 object:PDFSubview];
471 object:PDFSubview];
474 object:PDFSubview];
477 object:PDFSubview];
492 return [PDFSubview currentSelection] != nil;
495 return [PDFSubview document] != nil;
519 [PDFSubview copy:sender];
526 [NSPasteboard _web_setFindPasteboardString:[[PDFSubview currentSelection] string] withOwner:self];
540 return [[PDFSubview document] getPrintOperationForPrintInfo:printInfo autoRotate:YES];
606 PDFSelection *selection = [self _nextMatchFor:string direction:forward caseSensitive:caseFlag wrap:wrapFlag fromSelection:[PDFSubview currentSelection] startInSelection:startInSelection];
610 [PDFSubview setCurrentSelection:selection];
611 [PDFSubview scrollSelectionToVisible:nil];
691 NSRect selectionOnPageInPDFViewCoordinates = [PDFSubview convertRect:[match boundsForPage:page] fromPage:page];
708 return [[PDFSubview document] string];
716 PDFSelection *savedSelection = [[PDFSubview currentSelection] copy];
717 [PDFSubview selectAll:nil];
718 NSAttributedString *result = [[PDFSubview currentSelection] attributedString];
720 [PDFSubview setCurrentSelection:savedSelection];
725 [PDFSubview clearSelection];
735 return [[PDFSubview currentSelection] string];
740 return [self _scaledAttributedString:[[PDFSubview currentSelection] attributedString]];
745 [PDFSubview selectAll:nil];
750 [PDFSubview clearSelection];
762 NSView *realDocView = [PDFSubview documentView];
773 NSView *realDocView = [PDFSubview documentView];
781 PDFDisplayMode mode = [PDFSubview displayMode];
784 unsigned int pageIndex = [[PDFSubview document] indexForPage:[PDFSubview currentPage]];
787 BOOL autoScaleFlag = [PDFSubview autoScales];
790 [state addObject:[NSNumber numberWithFloat:[PDFSubview scaleFactor]]];
801 [PDFSubview setDisplayMode:mode];
804 [PDFSubview goToPage:[[PDFSubview document] pageAtIndex:pageIndex]];
807 [PDFSubview setAutoScales:autoScaleFlag];
809 [PDFSubview setScaleFactor:[[state objectAtIndex:i++] floatValue]];
831 return [PDFSubview canZoomOut];
836 return [PDFSubview canZoomIn];
841 return [PDFSubview scaleFactor] != 1.0;
849 PDFSelection *selection = [PDFSubview currentSelection];
853 NSRect selectionOnPageInPDFViewCoordinates = [PDFSubview convertRect:[selection boundsForPage:page] fromPage:page];
861 result = [PDFSubview convertRect:result toView:[PDFSubview documentView]];
874 return [PDFSubview documentView];
997 if (![PDFSubview document]) {
1066 [PDFSubview setAutoScales:YES];
1068 [PDFSubview setAutoScales:NO];
1069 [PDFSubview setScaleFactor:scaleFactor];
1071 [PDFSubview setDisplayMode:[prefs PDFDisplayMode]];
1076 return [PDFSubview respondsToSelector:@selector(_searchInDictionary:)];
1081 NSClipView *clipView = (NSClipView *)[[PDFSubview documentView] _web_superviewOfClass:[NSClipView class]];
1109 [PDFSubview performSelector:@selector(_searchInDictionary:) withObject:sender];
1139 NSEnumerator *e = [[[PDFSubview menuForEvent:theEvent] itemArray] objectEnumerator];
1172 if ([itemCopy target] == PDFSubview) {
1204 PDFDocument *document = [PDFSubview document];
1239 if (![PDFSubview document]) {
1321 return PDFSubview;
1326 PDFPage *page = [PDFSubview pageForPoint:point nearest:NO];
1330 NSRect selectionRect = [PDFSubview convertRect:[[PDFSubview currentSelection] boundsForPage:page] fromPage:page];
1337 ASSERT([notification object] == PDFSubview);
1352 float scaleFactor = [PDFSubview scaleFactor];
1415 BOOL newFirstResponderIsPDFDocumentView = [[self window] firstResponder] == [PDFSubview documentView];
1430 float scaleFactor = [PDFSubview autoScales] ? 0.0f : [PDFSubview scaleFactor];
1432 [prefs setPDFDisplayMode:[PDFSubview displayMode]];
1456 PDFDocument *pdfDocument = [PDFSubview document];
1460 NSRect pdfViewBounds = [PDFSubview bounds];
1461 PDFPage *topLeftPage = [PDFSubview pageForPoint:NSMakePoint(NSMinX(pdfViewBounds), NSMaxY(pdfViewBounds)) nearest:YES];
1462 PDFPage *bottomRightPage = [PDFSubview pageForPoint:NSMakePoint(NSMaxX(pdfViewBounds), NSMinY(pdfViewBounds)) nearest:YES];