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 >
Wrap
C/C++ Source or Header
|
1998-07-07
|
1KB
|
46 lines
// 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