
/***************************************************************************
**
**    $Header:   D:/ECB2S/SRC/LOG/SHLEDIT1.H__   1.2.1.4   17 Apr 1997 15:58:50   ZJRD  $
**
**    $Log:   D:/ECB2S/SRC/LOG/SHLEDIT1.H__  $
** 
**    Rev 1.2.1.4   17 Apr 1997 15:58:50   ZJRD
** No change.
** 
**    Rev 1.2.1.3   16 Apr 1997 10:30:34   ZJRD
** No change.
** 
**    Rev 1.2.1.2   10 Apr 1997 15:40:46   ZJRD
** No change.
** 
**    Rev 1.2.1.1   03 Apr 1997 15:19:32   ZJRD
** No change.
** 
**    Rev 1.2.1.0   28 Mar 1997 10:24:16   ZJRD
** easy pack sld 2.09d
** 
**    Rev 1.1   19 Mar 1997 11:34:18   ZJRD
** No change.
** 
**    Rev 1.0   12 Mar 1997 14:49:14   ZJRD
** Initial revision.
** 
**    Rev 1.7.1.0.1.2   09 Dec 1996 10:15:24   ZJRD
** EasyPack/SLD Version 2.0P
** 
**    Rev 1.7.1.0.1.0   11 Nov 1996 12:58:40   ZJRD
** EasyPack/SLD Version 2.01
** 
**    Rev 1.7.1.4   09 Sep 1996 13:16:22   ZJRD
** No change.
** 
**    Rev 1.7.1.3   05 Sep 1996 11:27:54   ZJRD
** No change.
** 
**    Rev 1.7.1.2   02 Sep 1996 09:55:00   ZJRD
** No change.
** 
**    Rev 1.7.1.1   28 Aug 1996 15:50:30   ZJRD
** No change.
** 
**    Rev 1.7.1.0   12 Aug 1996 10:54:28   ZJRD
** EasyPack/SLD Version 1.98
** 
**    Rev 1.7   11 Jun 1996 10:28:50   ZJRD
** EasyPack/SLD Version 1.97
** 
**    Rev 1.5   05 Jun 1996 14:57:28   ZJRD
** No change.
** 
**    Rev 1.4   29 May 1996 09:35:10   ZJRD
** No change.
** 
**    Rev 1.3   16 May 1996 09:08:12   ZJRD
** No change.
** 
**    Rev 1.2   10 May 1996 09:08:44   ZJRD
** No change.
** 
**    Rev 1.1   02 May 1996 10:24:40   ZJRD
** EasyPack/SLD Version 1.92
** 
**    Rev 1.14   18 Apr 1996 13:00:22   Shirley
** No change.
** 
**    Rev 1.13   12 Apr 1996 10:35:40   Shirley
** EasyPack/SLD Version 1.90
** 
**    Rev 1.11   15 Feb 1996 08:49:36   Shirley
** No change.
** 
**    Rev 1.10   12 Feb 1996 14:02:06   Shirley
** No change.
** 
**    Rev 1.9   06 Feb 1996 15:27:20   Shirley
** No change.
** 
**    Rev 1.8   06 Feb 1996 13:42:58   Shirley
** No change.
** 
**    Rev 1.7   01 Feb 1996 10:15:50   Shirley
** No change.
** 
**    Rev 1.6   26 Jan 1996 09:12:42   Shirley
** No change.
** 
**    Rev 1.5   25 Jan 1996 13:13:22   Shirley
** No change.
** 
**    Rev 1.4   24 Jan 1996 10:40:18   Shirley
** No change.
** 
**    Rev 1.3   23 Jan 1996 11:22:20   Shirley
** EasypPack/SLD Version 0.34c
** 
**    Rev 1.2   18 Jan 1996 10:13:14   Shirley
** No change.
** 
**    Rev 1.1   15 Jan 1996 16:14:40   Shirley
** No change.
** 
**    Rev 1.0   04 Jan 1996 11:13:30   Shirley
** Initial revision.
**
****************************************************************************/

/////////////////////////////////////////////////////////////////////////////
//
//  File name:  SHLEDIT1.H
//
//  Description:The header file of the class ShellEditor1
//
//  Author:     Roger Zhang
//
//  Date:       01/10/96
//
//  Modification:
//
//      1. 01/10/96, Initial version 
//
//
//  Copyright (C) 1996 Microtek International. All rights reserved.
//
/////////////////////////////////////////////////////////////////////////////

#ifndef _SHLEDIT1_
#define _SHLEDIT1_         

#include "shledit.h"                                  
#include "shlsynco.h"


class ShellEditor1 : public ShellEditor
{                
// Construction & Destruction.
public:
    ShellEditor1();
    ~ShellEditor1();

// attributes
private:              
	BOOL m_isIns;

	int m_nCmdID;

	int	m_nLeft; 	//	Token pos
	int	m_nRight;   //
	
	int m_nKeyLen;	// Keyword length	
         
    char* m_pszCommand ;

	char* m_pszEvent; // m_pszEvent = Event 1(2|3)
	             
// implementation             
private:              
	BOOL GetFirstToken(void);
	int GetToken(void);
	//int SearchCommand(void);
	//int SearchArgument(void);    
	
	//BOOL ExpandCommand(int nCmd);
	//BOOL ExpandArgument(int nArg);
	
	BOOL ExpandCommand(void);
	BOOL ExpandArgument(void);
	
	BOOL OnSpace(void);
	int TestEvent(void);
	
// operations	
public:             
	//CString GetHints(void);
    BOOL GetHints(int& nArgc, SynColor syncolor[]);

	BOOL InsChar(char ch);
	BOOL OvrChar(char ch);
	BOOL BackChar();
	BOOL DelChar();
};

#endif
                      
                      