//	vedcnv.h:	Header for vedCanvasPane class
//=======================================================================

#ifndef vedCNV_H
#define vedCNV_H
#ifdef VIDE
#define VCmdWindow videCmdWindow
#else
#define VCmdWindow vedCmdWindow
#endif

#include <v/vtexted.h>

#include <fstream.h>

    class VCmdWindow;

    class vedTextEditor : public vTextEditor
      {
      public:		//---------------------------------------- public
	vedTextEditor(VCmdWindow* parent);
	virtual ~vedTextEditor();

	int ReadFile(char* name, int paintIt = 1);
	int SaveFile(char* name);

	virtual void ChangeLoc(long line, int col);
	virtual void ChangeInsMode(int IsInsMode, char* = 0);
	virtual void StatusMessage(char *msg);
	virtual void ErrorMsg(char *str);

      protected:	//--------------------------------------- protected
          void paintLine(char* linout, int lineStart,
              int hiStart, int hiLast, long lineNum);
#ifdef VIDE
          virtual void TextMouseDown(int row, int col, int button);
          virtual void TextMouseUp(int row, int col, int button);
#endif


      private:		//--------------------------------------- private
          int parseC(char* linout, ChrAttr* attrs, long lineNum);
          int isKeyWord(char* token);
      };
#endif
