home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Text / Digest-Browser-1.6 Folder / Views / CSelectLine.h < prev   
Encoding:
C/C++ Source or Header  |  1992-08-29  |  705 b   |  30 lines  |  [TEXT/KAHL]

  1. /****
  2.  * CSelectLine.h
  3.  *
  4.  *    A text edit pane for a tiny editor.
  5.  *
  6.  ****/
  7.  
  8.  
  9. #define _H_CSelectLine
  10.  
  11. // JRB change from CEditText to CBrowserEditText
  12. #include "CStyleText.h"
  13.  
  14. struct CSelectLine : CStyleText {
  15. protected:
  16.     long        selLine;
  17. public:
  18.                                 /** Contruction/Destruction **/
  19.     void    ISelectLine(CView *anEnclosure, CBureaucrat *aSupervisor,
  20.                 short vLoc, short vHeight);
  21.  
  22.     void    FindEnds(long line, long *lineStart, long *lineEnd);
  23.     void    DoClick(Point hitPt, short modifierKeys, long when);
  24.     void    DoKeyDown(char theChar, Byte keyCode, EventRecord *macEvent);
  25.     void    SetSelectedLine( long line, Boolean fRedraw);
  26.     long    GetSelectedLine(void);
  27.  
  28.     void    AdjustCursor(Point where, RgnHandle mouseRgn);
  29. };
  30.