home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscShell / MiscShell.subproj / EmacsText.h < prev    next >
Encoding:
Text File  |  1995-04-12  |  820 b   |  40 lines

  1. /* EmacsText.h
  2.  *
  3.  * You may freely copy, distribute, and reuse the code in this example.
  4.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  5.  * fitness for any particular use.
  6.  *
  7.  * Written by:  Julie Zelenski
  8.  * Copyright (c) 1995 Julie Zelenski
  9.  * Created:  Sept/91
  10.  */
  11.  
  12. #import <appkit/appkit.h>
  13.  
  14.  
  15. @interface EmacsText:Text
  16. {
  17. }
  18.  
  19. - initFrame:(NXRect *)fRect;
  20.  
  21. - (int)perform:(SEL)selector withSel:(SEL)helper;
  22.  
  23. - (int)positionForLineBegin;
  24. - (int)positionForLineEnd;
  25. - (int)positionForWordBegin;
  26. - (int)positionForWordEnd;
  27. - (int)positionForDocumentBegin;
  28. - (int)positionForDocumentEnd;
  29. - (int)nextPositionIfEmpty;
  30.  
  31. - moveToPosition:(SEL)command;
  32. - deleteToPosition:(SEL)command;
  33. - delete:(int)start :(int)end;
  34. - yank;
  35.  
  36. - (BOOL) emacsEvent:(NXEvent *)event;
  37. - keyDown:(NXEvent *)event;
  38.  
  39. @end
  40.