ftp.nice.ch/pub/next/text/etext/eText5-0.93.Source.NIHS.tar.gz#/eText5/eText.subproj/eText.XText.h

This is eText.XText.h in view mode; [Download] [Up]

{\rtf0\ansi{\fonttbl\f0\fmodern Courier;\f2\ftech Symbol;}
\paperw11640
\paperh8400
\margl120
\margr120
\pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f0\b0\i0\ulnone\fs24\fc0\cf0 //ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐ\
//
\i 	
\b FILENAME
\b0 :	
\b\i0 eText.XText.h \

\b0 //
\i 	
\b SUMMARY
\b0 :	
\b\i0 Interface for the XText keybinding subsystem of eText
\b0 \
//	
\b\i CATEGORY
\b0 :
\i0 	
\b XText
\b0 \
//	
\b\i PROTOCOLS
\b0 :
\i0 	
\b Uses XTActions
\b0 \
//	
\b\i INTERFACE
\b0 :
\i0 	
\b None
\b0 \
//	
\b\i AUTHOR
\b0 :		
\b\i0 Rohit Khare, portions by Mike Dixon
\b0 \
//	
\b\i COPYRIGHT
\b0 :	
\f2\i0 Ó
\f0\b 1993,94 California Institure of Technology, eText Project\

\b0 //ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐ\
//	
\b\i Description
\b0\i0 \
//		These methods deal with Mike Dixon's XText and XTActions.\
//ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐ\
//	
\b\i History
\b0\i0 \
//	10/18/94:	
\b Cleaned up for eText5.
\b0 \
//	08/05/94:	
\b Completely Rearchitected for 5.0. RK
\b0 \
//ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐ\
//	
\b Imported Interfaces
\b0 \
//\
	#import "
\b eText.Class.h
\b0 "\
	#import "
\b Kludges
\b0 .subproj/
\b ErrorStream.h
\b0 "\
	#import "
\b XTAction.h
\b0 "\
\
extern void 
\b initbase_emacs
\b0 (
\b actionTbl
\b0  actions, 
\b NXZone
\b0  *zone);\
\

\i @interface eText(XText)\

\i0 //ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐ\
//	
\b XText0 Management
\b0 \
//\

	- 
\b setErrorStream
\b0 :errs;\
	- 
\b errorStream
\b0 ;\
	\
	- 
\b setInitialAction
\b0 :action;\
	- 
\b initialAction
\b0 ;\
	- 
\b setNextAction
\b0 :action;\
	\
	- 
\b unboundKey
\b0 ;\
	- 
\b keyDown
\b0 :(
\b NXEvent
\b0  *) event;\
	\
//ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐ\
//	
\b XText Operations (emacs)
\b0 \
//\

	- 
\b goto
\b0 :(int)pos 
\b end
\b0 :(int)end 
\b mode
\b0 :(int)mode;\
	- 
\b moveWord
\b0 :(int)cnt 
\b mode
\b0 :(int)mode;\
	- 
\b moveChar
\b0 :(int)cnt 
\b mode
\b0 :(int)mode;\
	- 
\b moveLine
\b0 :(int)cnt 
\b mode
\b0 :(int)mode;\
	- 
\b lineBegin
\b0 :(int)mode;\
	- 
\b lineEnd
\b0 :(int)mode;\
	- 
\b docBegin
\b0 :(int)mode;\
	- 
\b docEnd
\b0 :(int)mode;\
	- 
\b collapseSel
\b0 :(int)dir;\
	- 
\b transChars
\b0 ;\
	- 
\b openLine
\b0 ;\
	- 
\b scroll
\b0 :(int)
\b pages
\b0  :(int)
\b lines
\b0 ;\
	- 
\b scrollIfRO
\b0 :(int)
\b pages
\b0  :(int)
\b lines
\b0 ;\
	- 
\b insertChar
\b0 :(
\b NXEvent
\b0  *)event;\
	- 
\b insertNextChar
\b0 ;\

\i \
@end\

\i0 \
//ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐ\

// 
\b Original Header Comments Follow
\b0 \
//\

\

\i /*	This file is part of the XText package (version 0.8)\
	Mike Dixon, April 1992\
	\
	Copyright (c) 1992 Xerox Corporation.  All rights reserved.\
\
	Use and copying of this software and preparation of derivative works based\
	upon this software are permitted.  This software is made available AS IS,\
	and Xerox Corporation makes no warranty about the software or its\
	performance.\
*/\
\
#import <appkit/Text.h>\
\
/*	XText0 is the 'bare' extensible Text class; it provides the support for\
	key bindings, but doesn't provide any of the useful methods you're likely\
	to want to bind them to.\
\
	The instance variables are\
		nextAction		the action that will interpret the next key\
		initialAction	the basic action used to interpret keys (generally\
						an XTDispatchAction)\
		errorStream		used to report errors\
\
	In normal operation nextAction == initialAction, but an action may\
	change nextAction to cause the next key to be interpreted specially.\
	For example, this is used to implement ctrl-q (quote next char), and\
	could also be used to implement emacs-style prefix maps.\
\
	Most of the methods are all self-explanatory;  the ones that might not\
	be are\
		newFieldEditorFor:initialAction:estream:\
								should be called from a window's delegate's\
								getFieldEditor:for: method; returns an XText\
								for editing the window's fields\
		unboundKey				just beeps\
		disableAutodisplay		like setAutodisplay:NO, except that it does\
								nothing if this is a field editor (to work\
								around a bug in text fields)\
\
	The default initialAction is nil, which just causes all key events to\
	be handled by the superclass (i.e. Text).\
*/
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.