Lines Matching refs:theDoc

35  #define SETRAWCOLOR(X) [theDoc setTextColor: X range: [theDoc selectedRange]];
36 …#define SETCOLOR(X) [theDoc setTextColor: [gWorkBench colorForCode: X] range: [theDoc selectedRang…
37 …#define SETBASECOLOR [theDoc setTextColor: getColorForInt([gPrefBoss tagColorValue]) range: [theD…
120 [theDoc setTextColor: what range: [theDoc selectedRange]];
128 [theDoc setTextColor: [NSColor redColor] range: [theDoc selectedRange]];
131 [theDoc setTextColor: [NSColor yellowColor] range: [theDoc selectedRange]];
134 [theDoc setTextColor: [NSColor greenColor] range: [theDoc selectedRange]];
137 [theDoc setTextColor: [NSColor blueColor] range: [theDoc selectedRange]];
140 [theDoc setTextColor: [NSColor lightGrayColor] range: [theDoc selectedRange]];
143 [theDoc setTextColor: [NSColor grayColor] range: [theDoc selectedRange]];
146 [theDoc setTextColor: [NSColor darkGrayColor] range: [theDoc selectedRange]];
154 [theDoc setTextColor: [NSColor blackColor] range: [theDoc selectedRange]];
170 n = [theDoc selectedRange];
171 l = [[theDoc string] length];
188 [theDoc setSelectedRange: NSMakeRange(aloc, bloc - aloc)];
189 [theDoc scrollRangeToVisible: NSMakeRange(aloc, bloc - aloc)];
207 NSTextStorage *ts = [theDoc textStorage];
217 r = [theDoc selectedRange];
230 [theDoc setTextColor: [gWorkBench colorForCode: [q buff]] range: [q range]];
242 [theDoc setTextColor: [gPrefBoss metaColor] range: [q range]];
249 //[theDoc didChangeText];
250 [theDoc setAllowsUndo: YES];
251 //[theDoc setSelectedRange: r];
252 //[theDoc scrollRangeToVisible: r];
261 NSTextStorage *ts = [theDoc textStorage];
268 mff = [[MWFakeFile alloc] initWithString: [[theDoc string] substringWithRange: theRange]];
274 r = [theDoc selectedRange];
288 …[theDoc setTextColor: [gWorkBench colorForCode: [q buff]] range: NSMakeRange(s.location + theRange…
301 …[theDoc setTextColor: [gPrefBoss metaColor] range: NSMakeRange(s.location + theRange.location, s.l…
308 //[theDoc didChangeText];
309 [theDoc setAllowsUndo: YES];
310 //[theDoc setSelectedRange: r];
311 //[theDoc scrollRangeToVisible: r];
323 [theDoc setAllowsUndo: YES];
350 myts = [theDoc textStorage];
352 theTxt = [theDoc string];
370 [theDoc didChangeText];
377 NSTextStorage *ts = [theDoc textStorage];
380 r = [theDoc selectedRange];
381 [theDoc setSelectedRange: NSMakeRange(0,0)];
388 //[theDoc setSelectedRange: [qq range]];
395 [theDoc setAllowsUndo: YES];
396 [theDoc setSelectedRange: r];
397 [theDoc scrollRangeToVisible: r];
405 r = [theDoc selectedRange];
406 [theDoc setSelectedRange: NSMakeRange(0,0)];
412 t = [theDoc selectedRange];
417 [theDoc setAllowsUndo: YES];
418 [theDoc setSelectedRange: r];
419 [theDoc scrollRangeToVisible: r];
429 r = [theDoc selectedRange];
431 [theDoc setSelectedRange: NSMakeRange(0,0)];
437 t = [theDoc selectedRange];
440 s = [theDoc selectedRange];
443 [theDoc setTextColor: [NSColor blackColor]];
445 [theDoc setSelectedRange: r];
446 [theDoc scrollRangeToVisible: r];
462 printOp = [NSPrintOperation printOperationWithView: theDoc];
469 NSPrintOperation *op = [NSPrintOperation printOperationWithView:theDoc];
494 n = [theDoc selectedRange];
496 l = NSMakeRange([[theDoc string] length],0);
498 [theDoc setSelectedRange: l];
499 [theDoc insertText: what];
501 [theDoc setSelectedRange: n];
536 [theDoc setEditable: NO];
537 [theDoc setSelectable: YES];
538 if([[theDoc undoManager] isUndoRegistrationEnabled] == YES)
540 [[theDoc undoManager] removeAllActions];
541 [[theDoc undoManager] disableUndoRegistration];
546 [theDoc setEditable: YES];
547 if([[theDoc undoManager] isUndoRegistrationEnabled] == NO)
548 [[theDoc undoManager] enableUndoRegistration];
586 //[theDoc becomeFirstResponder];
587 [theDoc setImportsGraphics: YES];
603 [myWindow makeFirstResponder: theDoc];
641 [theDoc setString: myData];
646 [theDoc replaceCharactersInRange: NSMakeRange(0, [[theDoc string] length])
651 [theDoc replaceCharactersInRange: NSMakeRange(0, [[theDoc string] length])
661 …initWithSerializedRepresentation:[theDoc RTFDFromRange: NSMakeRange(0, [[theDoc string] length]…
673 return [NSMutableData dataWithBytes: [[theDoc string] cString] length:
674 [[theDoc string] cStringLength]];
678 return [theDoc RTFFromRange: NSMakeRange(0, [[theDoc string] length])];
682 return [theDoc RTFDFromRange: NSMakeRange(0, [[theDoc string] length])];
690 if(theDoc)
748 return [theDoc string];
753 //gTheData = [[theDoc string] copy];
933 r = [theDoc selectedRange];
935 [theDoc insertText: what];
945 r = [theDoc selectedRange];
949 [ss setString: [[theDoc string] substringWithRange: r]];
968 selRange = [theDoc selectedRange];
969 txtState = [NSMutableDictionary dictionaryWithDictionary: [theDoc typingAttributes]];
981 [theDoc insertText: ss];
985 [theDoc setSelectedRange: selRange];
987 [theDoc setSelectedRange: NSMakeRange(selRange.location + [ss length], 0)];
989 [theDoc setTypingAttributes: txtState];
991 [[theDoc textStorage] addAttribute: NSForegroundColorAttributeName
994 //[theDoc setInsertionPointColor: ipc];
999 [theDoc setSelectedRange: NSMakeRange(selRange.location + loc, 1)];
1035 currSel = [theDoc selectedRange];
1056 [theDoc setSelectedRange: NSMakeRange(bTerminus, eTerminus - bTerminus )];
1057 [theDoc insertText: @""];
1066 [theDoc setSelectedRange: currSel];
1068 [theDoc scrollRangeToVisible: currSel];
1078 int l = [[theDoc string] length];
1084 [ss setString: [[theDoc string] substringWithRange: NSMakeRange(b, e-b)]];
1124 currSel = [theDoc selectedRange];
1127 [theDoc setSelectedRange: NSMakeRange(ewhere, eTerminus - ewhere)];
1130 [theDoc insertText: ss];
1136 [theDoc setSelectedRange: NSMakeRange(bwhere, bTerminus - bwhere)];
1138 [theDoc insertText: ss];
1150 lll = [[theDoc string] length];
1153 [theDoc setSelectedRange: currSel];
1157 [theDoc didChangeText];
1205 currSel = [theDoc selectedRange];
1208 [theDoc setSelectedRange: NSMakeRange(ewhere, eTerminus - ewhere)];
1229 [theDoc insertText: ss];
1230 [theDoc setSelectedRange: NSMakeRange(ewhere, ll)];
1244 [theDoc setSelectedRange: NSMakeRange(bwhere, bTerminus - bwhere)];
1255 [theDoc insertText: ss];
1256 [theDoc setSelectedRange: NSMakeRange(bwhere, ll)];
1291 lll = [[theDoc string] length];
1294 [theDoc setSelectedRange: currSel];
1298 [theDoc didChangeText];
1313 [theDoc insertText: [[NSDate date] description]];
1320 [theDoc setSelectedRange: NSMakeRange(bwhere, ewhere - bwhere)];
1336 rr = [theDoc selectedRange];
1345 [theDoc didChangeText];
1353 [theDoc setSelectedRange: NSMakeRange(bwhere, ewhere - bwhere)];
1391 [theDoc toggleRuler: self];
1473 where = [theDoc selectedRange ];
1478 //[[theDoc textStorage] beginEditing];
1499 [theDoc setSelectedRange: loc1];
1500 [theDoc insertText: theans];
1503 [theDoc setSelectedRange: loc1];
1509 [theDoc setSelectedRange: loc2];
1510 [theDoc insertText: theans1];
1514 [theDoc setSelectedRange: loc2];
1519 [theDoc setSelectedRange: newWhere];
1520 //[[theDoc textStorage] endEditing];
1527 //[theDoc replaceCharactersInRange: where withString: theans];
1528 //[theDoc setSelectedRange: NSMakeRange(where.location, newLen)];
1543 myData = [theDoc string];
1544 where = [theDoc selectedRange ];
1563 [theDoc insertText: theans];
1564 //[theDoc replaceCharactersInRange: where withString: theans];
1565 [theDoc setSelectedRange: NSMakeRange(where.location, newLen)];
1833 where = [theDoc selectedRange ];
1834 //[[theDoc textStorage] beginEditing];
1850 [theDoc setSelectedRange: loc1];
1851 [theDoc insertText: theans];
1856 [theDoc setSelectedRange: loc1];
1862 [theDoc setSelectedRange: loc2];
1863 [theDoc insertText: theans1];
1867 [theDoc setSelectedRange: loc2];
1872 [theDoc setSelectedRange: newWhere];
1873 //[[theDoc textStorage] endEditing];
1876 //[theDoc replaceCharactersInRange: where withString: theans];
1877 //[theDoc setSelectedRange: NSMakeRange(where.location, newLen)];
1896 where = [theDoc selectedRange ];
1899 myTS = [theDoc textStorage];
1900 myUndo = [theDoc undoManager];
1904 initState = [theDoc typingAttributes];
1905 myat = [NSMutableDictionary dictionaryWithDictionary: [theDoc typingAttributes]];
1924 [theDoc setSelectedRange: loc1];
1925 [theDoc insertText: theans];
1929 [theDoc setSelectedRange: loc1];
1942 [theDoc setSelectedRange: loc2];
1943 [theDoc insertText: theans1];
1945 [theDoc setSelectedRange: loc2];
1962 [theDoc setTypingAttributes: myat];
1964 [theDoc didChangeText];
1966 [theDoc setSelectedRange: newWhere];
1985 where = [theDoc selectedRange ];
1986 myTS = [theDoc textStorage];
1987 myUndo = [theDoc undoManager];
1991 initState = [theDoc typingAttributes];
1992 myat = [NSMutableDictionary dictionaryWithDictionary: [theDoc typingAttributes]];
2011 //[theDoc setSelectedRange: loc1];
2012 //[theDoc insertText: theans];
2041 [theDoc setTypingAttributes: myat];
2043 [theDoc didChangeText];
2045 [theDoc setSelectedRange: newWhere];
2048 //[theDoc replaceCharactersInRange: where withString: theans];
2049 //[theDoc setSelectedRange: NSMakeRange(where.location, newLen)];
2059 selrange = [theDoc selectedRange];
2061 [theDoc setTextColor: [NSColor blackColor] range: [theDoc selectedRange]];
2064 myat = [NSMutableDictionary dictionaryWithDictionary: [theDoc typingAttributes]];
2066 [theDoc setTypingAttributes: myat];
2075 savedFormat = [NSMutableDictionary dictionaryWithDictionary: [theDoc typingAttributes]];
2083 selrange = [theDoc selectedRange];
2087 what = [theDoc textStorage];
2091 [theDoc didChangeText];
2095 [theDoc setTypingAttributes: savedFormat];
2115 where = [theDoc selectedRange];
2116 theEnd.location = [[theDoc string] length];
2121 [theDoc setSelectedRange: theEnd];
2138 [theDoc setSelectedRange: where];
2229 tempStr = [NSString stringWithString: [theDoc string]];
2276 [theDoc setSelectedRange: NSMakeRange(i+1+rcnt, 0)];
2277 [theDoc insertText: @"\n"];
2301 tempStr = [NSString stringWithString: [theDoc string]];
2305 [theDoc setSelectedRange: NSMakeRange( 0, 0)];
2307 [theDoc insertText: ttt];
2320 [theDoc setSelectedRange: NSMakeRange( i+1 + rcnt, 0)];
2322 [theDoc insertText: ttt];
2363 n = [[theDoc string] length];
2366 ch = [[theDoc string] characterAtIndex: i];
2387 [theDoc setSelectedRange: r];
2388 [theDoc insertText: @""];
2404 [theDoc scrollRangeToVisible: [theDoc selectedRange]];
2409 long ll = [[theDoc string] length];
2423 [theDoc setSelectedRange: rr];
2426 [theDoc scrollRangeToVisible: rr];
2851 n = [theDoc selectedRange];
2890 [theDoc setSelectedRange: rrr];
2891 [theDoc insertText: @""];
2894 [theDoc setSelectedRange: NSMakeRange(n.location, r1)];
2899 [theDoc setSelectedRange: NSMakeRange(n.location + n.length, 0)];
2908 ll = [theDoc selectedRange];
2914 [theDoc insertText: @""];
2918 [theDoc setSelectedRange: NSMakeRange(n.location, 0)];
2937 n = [theDoc selectedRange];
2938 l = [[theDoc string] length];
2956 [theDoc setSelectedRange: NSMakeRange(aloc, bloc - aloc)];
2957 [theDoc scrollRangeToVisible: NSMakeRange(aloc, bloc - aloc)];
2986 n = [theDoc selectedRange];
3024 [theDoc setSelectedRange: NSMakeRange(aloc, bloc - aloc)];
3025 [theDoc scrollRangeToVisible: NSMakeRange(aloc, bloc - aloc)];
3058 n = [theDoc selectedRange];
3096 [theDoc setSelectedRange: NSMakeRange(aloc, bloc - aloc)];
3097 [theDoc insertText: @""];
3100 [theDoc setSelectedRange: n];
3102 [theDoc insertText: @""];
3127 [theDoc setSelectedRange: n];
3128 [theDoc insertText: @""];
3129 [theDoc setSelectedRange: NSMakeRange(bloc, aloc - bloc)];
3130 [theDoc insertText: @""];
3178 n = [theDoc selectedRange];
3213 [theDoc setSelectedRange: NSMakeRange(aloc, bloc - aloc)];
3214 [theDoc scrollRangeToVisible: NSMakeRange(aloc, bloc - aloc)];
3236 [theDoc setSelectedRange: NSMakeRange(bloc, aloc - bloc)];
3237 [theDoc scrollRangeToVisible: NSMakeRange(bloc, aloc - bloc)];
3326 [theDoc setSelectedRange: NSMakeRange(myloc, [tc getCharLocation] - myloc)];
3329 [theDoc scrollRangeToVisible: NSMakeRange(myloc, [tc getCharLocation] - myloc)];
3343 [theDoc setSelectedRange: NSMakeRange([ti location]+1, [[ti name] length])];
3346 [theDoc scrollRangeToVisible: NSMakeRange([ti location]+1, [[ti name] length])];
3384 [theDoc setSelectedRange: NSMakeRange([q where]+1, [[q buff] length])];
3385 [theDoc scrollRangeToVisible: NSMakeRange([q where]+1, [[q buff] length])];
3632 return theDoc;
3637 NSString *ss = [theDoc string];
3643 r = [theDoc selectedRange];
3664 [theDoc setSelectedRange: NSMakeRange(i,0)];
3665 [theDoc insertText: @"\\"];
3671 [theDoc setSelectedRange: NSMakeRange(i,0)];
3672 [theDoc insertText: @"\\"];
3682 [theDoc setSelectedRange: NSMakeRange(i,0)];
3683 [theDoc insertText: @"\\"];
3689 [theDoc setSelectedRange: NSMakeRange(i,0)];
3690 [theDoc insertText: @"\\"];
3696 [theDoc setSelectedRange: NSMakeRange(r.location, r.length+cnt)];
3711 if(([name isEqualToString: [[theDoc undoManager] undoMenuItemTitle]]))
3759 [theDoc scrollRangeToVisible: NSMakeRange(0,0)];
3760 [theDoc setSelectedRange: NSMakeRange(0,0)];
3778 r= [theDoc selectedRange];
3780 ss = [theDoc string];
3806 n = [theDoc selectedRange];
3850 rr = [theDoc selectedRange];
3898 theDocString = [theDoc string];
3909 [theDoc setSelectedRange: [w range]];
3910 [theDoc insertText: newTime];
3914 [theDoc setSelectedRange: rr];
3944 rr = [theDoc selectedRange];
3984 [theDoc setSelectedRange: r];
3985 [theDoc scrollRangeToVisible: r];
4024 rr = [theDoc selectedRange];
4027 [theDoc insertText: ss];
4031 [theDoc insertText: [NSString stringWithFormat: @"%@", [self getMovieTimeString]]];
4092 rr = [theDoc selectedRange];
4104 [theDoc setSelectedRange: NSMakeRange(0,0)];
4106 [theDoc insertText: newTag ];
4107 [theDoc setSelectedRange: NSMakeRange(rr.location + [newTag length], rr.length)];
4237 [theDoc setSelectedRange: [temp range]];
4238 [theDoc insertText: @""];
4254 r = [theDoc selectedRange];
4257 ss = [[theDoc string] substringWithRange: r];
4329 r = [theDoc selectedRange];
4331 oText = [[theDoc string] substringWithRange: r];
4364 who = [theDoc selectedRange];
4368 theSel = [[theDoc string] substringWithRange: who];
4396 r = curr = [theDoc selectedRange];
4404 [theDoc setSelectedRange: NSMakeRange(curr.location+curr.length, 0)];
4406 [theDoc insertText: s];
4409 [theDoc setSelectedRange: NSMakeRange(curr.location, 0)];
4411 [theDoc insertText: s];
4417 [theDoc setSelectedRange: NSMakeRange(curr.location+curr.length, 0)];
4419 [theDoc insertText: s];
4422 [theDoc setSelectedRange: NSMakeRange(curr.location, 0)];
4425 [theDoc insertText: s];
4433 [theDoc setSelectedRange: r];