home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / texted / vedcnv.h < prev    next >
C/C++ Source or Header  |  1998-07-07  |  1KB  |  46 lines

  1. //    vedcnv.h:    Header for vedCanvasPane class
  2. //=======================================================================
  3.  
  4. #ifndef vedCNV_H
  5. #define vedCNV_H
  6. #ifdef VIDE
  7. #define VCmdWindow videCmdWindow
  8. #else
  9. #define VCmdWindow vedCmdWindow
  10. #endif
  11.  
  12. #include <v/vtexted.h>
  13.  
  14. #include <fstream.h>
  15.  
  16.     class VCmdWindow;
  17.  
  18.     class vedTextEditor : public vTextEditor
  19.       {
  20.       public:        //---------------------------------------- public
  21.     vedTextEditor(VCmdWindow* parent);
  22.     virtual ~vedTextEditor();
  23.  
  24.     int ReadFile(char* name, int paintIt = 1);
  25.     int SaveFile(char* name);
  26.  
  27.     virtual void ChangeLoc(long line, int col);
  28.     virtual void ChangeInsMode(int IsInsMode, char* = 0);
  29.     virtual void StatusMessage(char *msg);
  30.     virtual void ErrorMsg(char *str);
  31.  
  32.       protected:    //--------------------------------------- protected
  33.           void paintLine(char* linout, int lineStart,
  34.               int hiStart, int hiLast, long lineNum);
  35. #ifdef VIDE
  36.           virtual void TextMouseDown(int row, int col, int button);
  37.           virtual void TextMouseUp(int row, int col, int button);
  38. #endif
  39.  
  40.  
  41.       private:        //--------------------------------------- private
  42.           int parseC(char* linout, ChrAttr* attrs, long lineNum);
  43.           int isKeyWord(char* token);
  44.       };
  45. #endif
  46.