00001 // ========== This file is under LGPL, the GNU Lesser General Public Licence 00002 // ========== Dialing Structural Dictionary (www.aot.ru) 00003 // ========== Copyright by Alexey Sokirko (1998-2002) 00004 00005 00006 #ifndef __DOMEN_H_ 00007 #define __DOMEN_H_ 00008 00009 #include "../common/utilit.h" 00010 00011 #include "StructDictConsts.h" 00012 00013 00014 00015 class TItemContainer; 00016 const int DomStrSize = 100; 00017 00018 struct CDomen { 00019 int DomId; 00020 char DomStr[DomStrSize]; 00021 char Format[255]; 00022 char Source; 00023 bool IsDelim; 00024 bool IsFree; 00025 WORD ItemsCount; 00026 BYTE Parts[MaxDomensUnionSize]; 00027 BYTE PartsSize; 00028 int DropDownCount; 00029 DWORD Color; 00030 char* m_Items; 00031 int m_ItemsLength; 00032 TItemContainer* m_pParent; 00033 int m_StartDomItem; 00034 int m_EndDomItem; 00035 BYTE m_DomNo; 00036 bool m_bFreed; 00037 00038 00039 CDomen (); 00040 ~CDomen (); 00041 int AddItem (const char* s, int Length); 00042 void DelItem (int Offset, int Length); 00043 bool IsEmpty () const; 00044 }; 00045 00046 #endif //__DOMEN_H_