ddc
Domen.h
Go to the documentation of this file.
1 //
2 // This file is part of DDC.
3 //
4 // DDC is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // DDC is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with DDC. If not, see <http://www.gnu.org/licenses/>.
16 //
17 // ========== Dialing Structural Dictionary (www.aot.ru)
18 // ========== Copyright by Alexey Sokirko (1998-2002), Bryan Jurish (2011)
19 
20 
21 #ifndef __DOMEN_H_
22 #define __DOMEN_H_
23 
24 #include "../CommonLib/utilit.h"
25 
26 #include "StructDictConsts.h"
27 
28 
29 
30 class TItemContainer;
31 const int DomStrSize = 100;
32 
33 struct CDomen {
34  int DomId;
36  char Format[255];
37  char Source;
38  bool IsDelim;
39  bool IsFree;
45  char* m_Items;
51  bool m_bFreed;
52 
53 
54  CDomen ();
55  ~CDomen ();
56  int AddItem (const char* s, int Length);
57  void DelItem (int Offset, int Length);
58  bool IsEmpty () const;
59 };
60 
61 #endif //__DOMEN_H_
62 
63 /*--- emacs style variables ---
64  * Local Variables:
65  * mode: C++
66  * c-file-style: "ellemtel"
67  * c-basic-offset: 4
68  * tab-width: 8
69  * indent-tabs-mode: nil
70  * End:
71  */
WORD ItemsCount
Definition: Domen.h:40
int m_StartDomItem
Definition: Domen.h:48
bool m_bFreed
Definition: Domen.h:51
int m_EndDomItem
Definition: Domen.h:49
Definition: ItemsContainer.h:76
bool IsEmpty() const
Definition: ItemsContainer.cpp:70
char * m_Items
Definition: Domen.h:45
DWORD Color
Definition: Domen.h:44
char Source
Definition: Domen.h:37
Definition: Domen.h:33
BYTE Parts[MaxDomensUnionSize]
Definition: Domen.h:41
BYTE PartsSize
Definition: Domen.h:42
uint16_t WORD
Definition: utilit.h:106
int AddItem(const char *s, int Length)
Definition: ItemsContainer.cpp:43
bool IsDelim
Definition: Domen.h:38
int DropDownCount
Definition: Domen.h:43
bool IsFree
Definition: Domen.h:39
char DomStr[DomStrSize]
Definition: Domen.h:35
void DelItem(int Offset, int Length)
Definition: ItemsContainer.cpp:51
char Format[255]
Definition: Domen.h:36
const DWORD MaxDomensUnionSize
Definition: StructDictConsts.h:23
int m_ItemsLength
Definition: Domen.h:46
BYTE m_DomNo
Definition: Domen.h:50
const int DomStrSize
Definition: Domen.h:31
unsigned char BYTE
Definition: utilit.h:94
CDomen()
Definition: ItemsContainer.cpp:35
uint32_t DWORD
Definition: utilit.h:105
~CDomen()
Definition: ItemsContainer.cpp:64
TItemContainer * m_pParent
Definition: Domen.h:47
int DomId
Definition: Domen.h:34