This is SearchableText.h in view mode; [Download] [Up]
{\rtf0\ansi{\fonttbl\f0\fmodern Courier;} \paperw11640 \paperh8400 \margl120 \margr120 \pard\tx1152\tx2304\tx3456\tx4608\tx5760\tx6912\tx8064\tx9216\tx10368\tx11520\f0\b0\i0\ulnone\fs24\fc0\cf0 /*\ * Copyright (c) 1993 Christopher J. Kane. All rights reserved.\ *\ * This software is subject to the terms of the MiscKit license\ * agreement. Refer to the license document included with the\ * MiscKit distribution for these terms.\ *\ * Version: 1.1 (22 October 1993)\ */\ \ typedef enum\ \{\ TextEdgeToSelStart,\ TextEdgeToSelEnd,\ TextEdgeToTextEdge,\ SelStartToSelEnd,\ SelStartToTextEdge,\ SelStartToSelStart,\ SelEndToTextEdge,\ SelEndToSelStart,\ SelEndToSelEnd\ \} SearchMode;\ \ typedef enum\ \{\ SEARCH_INVALID_OPERATION = -1,\ SEARCH_INVALID_ARGUMENT = -2,\ SEARCH_INVALID_REGEXPR = -3,\ SEARCH_NO_SELECTION = -4,\ SEARCH_CANNOT_WRITE = -5,\ SEARCH_UNIMPLEMENTED = -6,\ SEARCH_ABORTED = -7,\ SEARCH_INTERNAL_ERROR = -8\ \} SearchErr;\ \ @protocol SearchableText\ \ - (oneway void)makeSelectionVisible;\ - (int)replaceAll:(const char *)pattern with:(const char *)replacement mode:(SearchMode)mode regexpr:(BOOL)regexpr cases:(BOOL)cases;\ - (oneway void)replaceSelection:(const char *)replacement;\ - (int)searchFor:(const char *)pattern mode:(SearchMode)mode reverse:(BOOL)rev regexpr:(BOOL)regexpr cases:(BOOL)cases position:(out int *)pos size:(out int *)size;\ - (oneway void)selectTextFrom:(int)start to:(int)end;\ \ ///////////////////////////////////////////////////////////////////////////\ \b // RK, 10/22/94 Changed protocol name to use writeSearchableSelection....//\ \b0 ///////////////////////////////////////////////////////////////////////////\ - (void) \b writeSearchableSelectionToPasteboard \b0 :(in Pasteboard *)pboard asType:(in NXAtom)type;\ \ @end\ }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.