Home | History | Annotate | Download | only in WebView

Lines Matching refs:Range

105 #import <WebCore/Range.h>
231 - (id)_initWithDOMRange:(DOMRange *)range;
232 - (DOMDocumentFragment *)_documentFromRange:(NSRange)range document:(DOMDocument *)document documentAttributes:(NSDictionary *)dict subresources:(NSArray **)subresources;
321 - (BOOL)_shouldInsertFragment:(DOMDocumentFragment *)fragment replacingDOMRange:(DOMRange *)range givenAction:(WebViewInsertAction)action;
322 - (BOOL)_shouldInsertText:(NSString *)text replacingDOMRange:(DOMRange *)range givenAction:(WebViewInsertAction)action;
326 - (BOOL)_shouldDeleteRange:(DOMRange *)range;
799 DOMRange *range = [self _selectedRange];
802 DOMDocumentFragment *fragment = [self _documentFragmentFromPasteboard:pasteboard inContext:range allowPlainText:allowPlainText];
803 if (fragment && [self _shouldInsertFragment:fragment replacingDOMRange:range givenAction:WebViewInsertActionPasted])
809 if ([self _shouldInsertFragment:nil replacingDOMRange:range givenAction:WebViewInsertActionPasted]) {
810 DOMDocumentFragment *fragment = [self _documentFragmentFromPasteboard:pasteboard inContext:range allowPlainText:allowPlainText];
815 DOMDocumentFragment *fragment = [self _documentFragmentFromPasteboard:pasteboard inContext:range allowPlainText:allowPlainText];
816 if (fragment && [self _shouldInsertFragment:fragment replacingDOMRange:range givenAction:WebViewInsertActionPasted])
879 - (BOOL)_shouldInsertFragment:(DOMDocumentFragment *)fragment replacingDOMRange:(DOMRange *)range givenAction:(WebViewInsertAction)action
884 return [[webView _editingDelegateForwarder] webView:webView shouldInsertText:[(DOMCharacterData *)child data] replacingDOMRange:range givenAction:action];
885 return [[webView _editingDelegateForwarder] webView:webView shouldInsertNode:fragment replacingDOMRange:range givenAction:action];
888 - (BOOL)_shouldInsertText:(NSString *)text replacingDOMRange:(DOMRange *)range givenAction:(WebViewInsertAction)action
891 return [[webView _editingDelegateForwarder] webView:webView shouldInsertText:text replacingDOMRange:range givenAction:action];
916 - (BOOL)_shouldDeleteRange:(DOMRange *)range
919 return coreFrame && coreFrame->editor()->shouldDeleteRange(core(range));
968 [s replaceOccurrencesOfString:NonBreakingSpaceString withString:@" " options:0 range:NSMakeRange(0, [s length])];
2032 NSRange range = [HTMLString rangeOfString:@"<html" options:NSCaseInsensitiveSearch];
2033 if (range.location != NSNotFound)
2034 HTMLString = [HTMLString substringFromIndex:range.location];
3847 - (BOOL)knowsPageRange:(NSRangePointer)range
3881 range->location = 1;
3912 range->length = [_private->pageRects count];
4163 // FIXME: Map to the entire range of CSS weight values.
4369 // FIXME: Map to the entire range of CSS weight values.
4525 - (void)_changeCSSColorUsingSelector:(SEL)selector inRange:(DOMRange *)range
4529 if ([[webView _editingDelegateForwarder] webView:webView shouldApplyStyle:style toElementsInDOMRange:range])
4540 // color on the selected range only. Note that this method is currently
4545 // FIXME: This won't actually apply the style to the entire range here, because it ends up calling
4547 // need to save off the selection, temporarily set it to the entire range, make the change, then
4682 DOMRange *range = [self _selectedRange];
4683 if (!range || [range collapsed])
4684 range = [self _documentRange];
4685 [NSApp speakString:[frame _stringForRange:range]];
5572 DOMRange *range = [frame _characterRangeAtPoint:thePoint];
5573 if (!range) {
5578 unsigned result = [frame _convertDOMRangeToNSRange:range].location;
5593 DOMRange *range = [frame _convertNSRangeToDOMRange:theRange];
5594 if (!range) {
5599 ASSERT([range startContainer]);
5600 ASSERT([range endContainer]);
5602 NSRect resultRect = [frame _firstRectForDOMRange:range];
5709 NSRange range;
5710 NSDictionary *attrs = [string attributesAtIndex:i longestEffectiveRange:&range inRange:NSMakeRange(i, length - i)];
5716 result.append(CompositionUnderline(range.location, NSMaxRange(range), color, [style intValue] > 1));
5719 i = range.location + range.length;
5752 // The AppKit adds a 'secret' property to the string that contains the replacement range.
5753 // The replacement range is the range of the the text that should be replaced with the new string.
6008 - (NSAttributedString *)_attributeStringFromDOMRange:(DOMRange *)range
6014 attributedString = [[[NSAttributedString alloc] _initWithDOMRange:range] autorelease];
6028 attributedString = [NSAttributedString _web_attributedStringFromRange:Range::create(coreDocument, coreDocument, 0, coreDocument, coreDocument->childNodeCount()).get()];
6044 RefPtr<Range> range = coreFrame->selection()->selection().toNormalizedRange();
6045 attributedString = [NSAttributedString _web_attributedStringFromRange:range.get()];