Hex Artifact Content Вы: nobody
Вход

Artifact 557c691be966ac0ff2749048e77ff2683c71baea:


0000: 2f 2f 20 42 65 67 69 6e 20 66 6f 72 77 61 72 64  // Begin forward
0010: 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 0d 0a 63   declarations..c
0020: 6c 61 73 73 20 20 43 42 75 66 64 46 69 6c 65 3b  lass  CBufdFile;
0030: 0d 0a 63 6c 61 73 73 20 20 43 44 61 74 65 3b 0d  ..class  CDate;.
0040: 0a 63 6c 61 73 73 20 20 43 47 65 6e 65 72 69 63  .class  CGeneric
0050: 49 74 65 6d 3b 0d 0a 63 6c 61 73 73 20 20 43 49  Item;..class  CI
0060: 74 65 6d 3b 0d 0a 63 6c 61 73 73 20 20 43 49 74  tem;..class  CIt
0070: 65 6d 4c 69 73 74 3b 0d 0a 63 6c 61 73 73 20 20  emList;..class  
0080: 43 4e 75 6d 65 72 69 63 3b 0d 0a 63 6c 61 73 73  CNumeric;..class
0090: 20 20 43 50 72 6f 70 42 6f 78 3b 0d 0a 63 6c 61    CPropBox;..cla
00a0: 73 73 20 20 43 54 65 72 6d 3b 0d 0a 63 6c 61 73  ss  CTerm;..clas
00b0: 73 20 20 43 54 65 72 6d 73 42 6f 78 3b 0d 0a 2f  s  CTermsBox;../
00c0: 2f 20 45 6e 64 20 66 6f 72 77 61 72 64 20 64 65  / End forward de
00d0: 63 6c 61 72 61 74 69 6f 6e 73 0d 0a 0d 0a 2f 2f  clarations....//
00e0: 20 42 65 67 69 6e 20 63 6c 61 73 73 20 64 65 73   Begin class des
00f0: 63 72 69 70 74 69 6f 6e 73 0d 0a 63 6c 61 73 73  criptions..class
0100: 20 49 4d 50 4f 52 54 5f 31 43 20 43 42 75 66 64   IMPORT_1C CBufd
0110: 46 69 6c 65 0d 0a 7b 0d 0a 70 75 62 6c 69 63 3a  File..{..public:
0120: 0d 0a 09 20 43 42 75 66 64 46 69 6c 65 28 75 6e  ... CBufdFile(un
0130: 73 69 67 6e 65 64 20 69 6e 74 29 3b 09 2f 2f 31  signed int);.//1
0140: 0d 0a 09 76 69 72 74 75 61 6c 20 20 7e 43 42 75  ...virtual  ~CBu
0150: 66 64 46 69 6c 65 28 76 6f 69 64 29 3b 09 2f 2f  fdFile(void);.//
0160: 31 36 0d 0a 09 43 53 74 72 69 6e 67 20 20 20 47  16...CString   G
0170: 65 74 73 28 76 6f 69 64 29 3b 09 2f 2f 39 30 0d  ets(void);.//90.
0180: 0a 09 75 6e 73 69 67 6e 65 64 20 69 6e 74 20 20  ..unsigned int  
0190: 47 65 74 73 28 43 53 74 72 69 6e 67 20 26 29 3b  Gets(CString &);
01a0: 09 2f 2f 39 31 0d 0a 09 75 6e 73 69 67 6e 65 64  .//91...unsigned
01b0: 20 69 6e 74 20 20 47 65 74 73 28 63 68 61 72 20   int  Gets(char 
01c0: 2a 2c 75 6e 73 69 67 6e 65 64 20 69 6e 74 29 3b  *,unsigned int);
01d0: 09 2f 2f 39 32 0d 0a 09 76 69 72 74 75 61 6c 20  .//92...virtual 
01e0: 69 6e 74 20 20 4f 70 65 6e 28 63 68 61 72 20 63  int  Open(char c
01f0: 6f 6e 73 74 20 2a 2c 75 6e 73 69 67 6e 65 64 20  onst *,unsigned 
0200: 69 6e 74 2c 20 43 46 69 6c 65 45 78 63 65 70 74  int, CFileExcept
0210: 69 6f 6e 20 2a 29 3b 09 2f 2f 31 30 35 0d 0a 09  ion *);.//105...
0220: 76 6f 69 64 20 20 50 75 74 73 28 63 68 61 72 20  void  Puts(char 
0230: 63 6f 6e 73 74 20 2a 29 3b 09 2f 2f 31 31 32 0d  const *);.//112.
0240: 0a 09 76 69 72 74 75 61 6c 20 75 6e 73 69 67 6e  ..virtual unsign
0250: 65 64 20 69 6e 74 20 20 52 65 61 64 28 76 6f 69  ed int  Read(voi
0260: 64 20 2a 2c 75 6e 73 69 67 6e 65 64 20 69 6e 74  d *,unsigned int
0270: 29 3b 09 2f 2f 31 31 33 0d 0a 09 69 6e 74 20 20  );.//113...int  
0280: 53 65 74 42 75 66 53 69 7a 65 28 75 6e 73 69 67  SetBufSize(unsig
0290: 6e 65 64 20 69 6e 74 29 3b 09 2f 2f 31 32 31 0d  ned int);.//121.
02a0: 0a 09 76 69 72 74 75 61 6c 20 76 6f 69 64 20 20  ..virtual void  
02b0: 57 72 69 74 65 28 76 6f 69 64 20 2a 2c 75 6e 73  Write(void *,uns
02c0: 69 67 6e 65 64 20 69 6e 74 29 3b 09 2f 2f 31 33  igned int);.//13
02d0: 38 0d 0a 7d 3b 0d 0a 0d 0a 0d 0a 65 6e 75 6d 20  8..};......enum 
02e0: 43 44 61 74 65 46 6f 72 6d 61 74 0d 0a 7b 0d 0a  CDateFormat..{..
02f0: 09 64 66 5f 64 64 5f 4d 4d 5f 79 79 79 79 20 3d  .df_dd_MM_yyyy =
0300: 20 31 2c 0d 0a 09 64 66 5f 64 64 5f 4d 4d 5f 79   1,...df_dd_MM_y
0310: 79 2c 0d 0a 09 64 66 5f 64 5f 4d 4d 4d 4d 5f 79  y,...df_d_MMMM_y
0320: 79 79 79 2c 0d 0a 09 64 66 5f 64 5f 4d 4d 4d 4d  yyy,...df_d_MMMM
0330: 5f 79 79 79 79 5f 2c 0d 0a 09 64 66 5f 4d 4d 4d  _yyyy_,...df_MMM
0340: 4d 2c 0d 0a 09 64 66 5f 4d 4d 4d 4d 5f 79 79 79  M,...df_MMMM_yyy
0350: 79 2c 0d 0a 09 64 66 5f 4d 4d 4d 4d 5f 79 79 2c  y,...df_MMMM_yy,
0360: 0d 0a 09 64 66 5f 71 5f 51 75 61 72 74 65 72 5f  ...df_q_Quarter_
0370: 79 79 79 79 2c 0d 0a 09 64 66 5f 71 5f 51 75 61  yyyy,...df_q_Qua
0380: 72 74 65 72 5f 79 79 2c 0d 0a 09 64 66 5f 79 79  rter_yy,...df_yy
0390: 79 79 2c 0d 0a 09 64 66 5f 79 79 79 79 4d 4d 64  yy,...df_yyyyMMd
03a0: 64 2c 0d 0a 09 64 66 5f 79 79 79 79 71 2c 0d 0a  d,...df_yyyyq,..
03b0: 09 64 66 5f 71 5f 51 75 61 72 74 65 72 2c 0d 0a  .df_q_Quarter,..
03c0: 7d 3b 0d 0a 0d 0a 63 6c 61 73 73 20 49 4d 50 4f  };....class IMPO
03d0: 52 54 5f 31 43 20 43 44 61 74 65 0d 0a 7b 0d 0a  RT_1C CDate..{..
03e0: 70 75 62 6c 69 63 3a 0d 0a 09 44 57 4f 52 44 20  public:...DWORD 
03f0: 6d 5f 44 61 74 65 4e 75 6d 3b 20 20 2f 2f 30 30  m_DateNum;  //00
0400: 68 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20  h..             
0410: 20 20 20 20 20 20 20 20 20 2f 2f 73 69 7a 65 20           //size 
0420: 30 34 68 0d 0a 0d 0a 09 20 43 44 61 74 65 28 69  04h..... CDate(i
0430: 6e 74 2c 69 6e 74 2c 69 6e 74 29 3b 09 2f 2f 32  nt,int,int);.//2
0440: 0d 0a 09 43 44 61 74 65 20 20 20 41 64 64 4d 6f  ...CDate   AddMo
0450: 6e 74 68 28 69 6e 74 29 3b 09 2f 2f 33 37 0d 0a  nth(int);.//37..
0460: 09 43 44 61 74 65 20 20 20 42 65 67 4f 66 4d 6f  .CDate   BegOfMo
0470: 6e 74 68 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09  nth(void)const;.
0480: 2f 2f 33 39 0d 0a 09 43 44 61 74 65 20 20 20 42  //39...CDate   B
0490: 65 67 4f 66 51 75 61 72 74 28 76 6f 69 64 29 63  egOfQuart(void)c
04a0: 6f 6e 73 74 3b 09 2f 2f 34 30 0d 0a 09 43 44 61  onst;.//40...CDa
04b0: 74 65 20 20 20 42 65 67 4f 66 59 65 61 72 28 76  te   BegOfYear(v
04c0: 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 34 31 0d  oid)const;.//41.
04d0: 0a 09 43 44 61 74 65 20 20 20 45 6e 64 4f 66 4d  ..CDate   EndOfM
04e0: 6f 6e 74 68 28 76 6f 69 64 29 63 6f 6e 73 74 3b  onth(void)const;
04f0: 09 2f 2f 35 31 0d 0a 09 43 44 61 74 65 20 20 20  .//51...CDate   
0500: 45 6e 64 4f 66 51 75 61 72 74 28 76 6f 69 64 29  EndOfQuart(void)
0510: 63 6f 6e 73 74 3b 09 2f 2f 35 32 0d 0a 09 43 44  const;.//52...CD
0520: 61 74 65 20 20 20 45 6e 64 4f 66 59 65 61 72 28  ate   EndOfYear(
0530: 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 35 33  void)const;.//53
0540: 0d 0a 09 63 68 61 72 20 63 6f 6e 73 74 20 2a 20  ...char const * 
0550: 20 46 6f 72 6d 61 74 28 65 6e 75 6d 20 43 44 61   Format(enum CDa
0560: 74 65 46 6f 72 6d 61 74 2c 73 74 72 75 63 74 20  teFormat,struct 
0570: 53 44 61 74 65 46 6d 74 49 6e 66 6f 20 63 6f 6e  SDateFmtInfo con
0580: 73 74 20 2a 29 63 6f 6e 73 74 3b 09 2f 2f 35 39  st *)const;.//59
0590: 0d 0a 09 73 74 61 74 69 63 20 43 44 61 74 65 20  ...static CDate 
05a0: 20 20 47 65 74 43 75 72 72 65 6e 74 44 61 74 65    GetCurrentDate
05b0: 28 76 6f 69 64 29 3b 09 2f 2f 36 32 0d 0a 09 69  (void);.//62...i
05c0: 6e 74 20 20 47 65 74 46 6f 72 6d 61 74 74 65 64  nt  GetFormatted
05d0: 28 65 6e 75 6d 20 43 44 61 74 65 46 6f 72 6d 61  (enum CDateForma
05e0: 74 2c 63 68 61 72 20 63 6f 6e 73 74 20 2a 29 3b  t,char const *);
05f0: 09 2f 2f 36 36 0d 0a 09 69 6e 74 20 20 47 65 74  .//66...int  Get
0600: 46 6f 72 6d 61 74 74 65 64 28 65 6e 75 6d 20 43  Formatted(enum C
0610: 44 61 74 65 46 6f 72 6d 61 74 2c 63 68 61 72 20  DateFormat,char 
0620: 63 6f 6e 73 74 20 2a 2c 69 6e 74 2c 69 6e 74 29  const *,int,int)
0630: 3b 09 2f 2f 36 37 0d 0a 09 69 6e 74 20 20 47 65  ;.//67...int  Ge
0640: 74 4d 6f 6e 74 68 28 76 6f 69 64 29 63 6f 6e 73  tMonth(void)cons
0650: 74 3b 09 2f 2f 37 34 0d 0a 09 69 6e 74 20 20 47  t;.//74...int  G
0660: 65 74 4d 6f 6e 74 68 44 61 79 28 76 6f 69 64 29  etMonthDay(void)
0670: 63 6f 6e 73 74 3b 09 2f 2f 37 35 0d 0a 09 69 6e  const;.//75...in
0680: 74 20 20 47 65 74 57 65 65 6b 44 61 79 28 76 6f  t  GetWeekDay(vo
0690: 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 38 37 0d 0a  id)const;.//87..
06a0: 09 69 6e 74 20 20 47 65 74 59 65 61 72 28 76 6f  .int  GetYear(vo
06b0: 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 38 38 0d 0a  id)const;.//88..
06c0: 09 69 6e 74 20 20 47 65 74 59 65 61 72 44 61 79  .int  GetYearDay
06d0: 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 38  (void)const;.//8
06e0: 39 0d 0a 7d 3b 0d 0a 0d 0a 0d 0a 63 6c 61 73 73  9..};......class
06f0: 20 49 4d 50 4f 52 54 5f 31 43 20 43 47 65 6e 65   IMPORT_1C CGene
0700: 72 69 63 49 74 65 6d 0d 0a 7b 0d 0a 70 75 62 6c  ricItem..{..publ
0710: 69 63 3a 0d 0a 09 20 43 47 65 6e 65 72 69 63 49  ic:... CGenericI
0720: 74 65 6d 28 76 6f 69 64 29 3b 09 2f 2f 33 0d 0a  tem(void);.//3..
0730: 09 76 69 72 74 75 61 6c 20 20 7e 43 47 65 6e 65  .virtual  ~CGene
0740: 72 69 63 49 74 65 6d 28 76 6f 69 64 29 3b 09 2f  ricItem(void);./
0750: 2f 31 37 0d 0a 09 0d 0a 09 76 69 72 74 75 61 6c  /17......virtual
0760: 20 69 6e 74 20 20 57 68 61 74 49 73 49 74 28 76   int  WhatIsIt(v
0770: 6f 69 64 29 63 6f 6e 73 74 3b 0d 0a 09 76 69 72  oid)const;...vir
0780: 74 75 61 6c 20 63 68 61 72 20 63 6f 6e 73 74 20  tual char const 
0790: 2a 20 20 47 65 74 46 75 6e 63 74 6f 72 28 76 6f  *  GetFunctor(vo
07a0: 69 64 29 63 6f 6e 73 74 3b 0d 0a 09 76 69 72 74  id)const;...virt
07b0: 75 61 6c 20 69 6e 74 20 20 4c 6f 61 64 46 72 6f  ual int  LoadFro
07c0: 6d 53 74 72 69 6e 67 28 63 68 61 72 20 63 6f 6e  mString(char con
07d0: 73 74 20 2a 2c 69 6e 74 20 2a 29 3b 0d 0a 09 76  st *,int *);...v
07e0: 69 72 74 75 61 6c 20 76 6f 69 64 20 20 53 61 76  irtual void  Sav
07f0: 65 54 6f 53 74 72 69 6e 67 28 43 53 74 72 69 6e  eToString(CStrin
0800: 67 20 26 2c 69 6e 74 2c 63 68 61 72 20 63 6f 6e  g &,int,char con
0810: 73 74 20 2a 29 63 6f 6e 73 74 3b 0d 0a 09 76 69  st *)const;...vi
0820: 72 74 75 61 6c 20 43 47 65 6e 65 72 69 63 49 74  rtual CGenericIt
0830: 65 6d 20 2a 20 20 44 75 70 28 76 6f 69 64 29 63  em *  Dup(void)c
0840: 6f 6e 73 74 3b 0d 0a 0d 0a 09 73 74 61 74 69 63  onst;.....static
0850: 20 43 47 65 6e 65 72 69 63 49 74 65 6d 20 2a 20   CGenericItem * 
0860: 20 43 72 65 61 74 65 46 72 6f 6d 53 74 72 69 6e   CreateFromStrin
0870: 67 28 63 68 61 72 20 63 6f 6e 73 74 20 2a 2c 69  g(char const *,i
0880: 6e 74 20 2a 29 3b 09 2f 2f 34 35 0d 0a 7d 3b 0d  nt *);.//45..};.
0890: 0a 0d 0a 0d 0a 63 6c 61 73 73 20 49 4d 50 4f 52  .....class IMPOR
08a0: 54 5f 31 43 20 43 49 74 65 6d 20 3a 20 70 75 62  T_1C CItem : pub
08b0: 6c 69 63 20 43 47 65 6e 65 72 69 63 49 74 65 6d  lic CGenericItem
08c0: 0d 0a 7b 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 43  ..{..public:...C
08d0: 53 74 72 69 6e 67 20 6d 5f 73 74 72 4e 61 6d 65  String m_strName
08e0: 3b 0d 0a 09 0d 0a 09 43 49 74 65 6d 28 63 68 61  ;......CItem(cha
08f0: 72 20 63 6f 6e 73 74 20 2a 29 3b 09 2f 2f 34 0d  r const *);.//4.
0900: 0a 09 76 69 72 74 75 61 6c 20 7e 43 49 74 65 6d  ..virtual ~CItem
0910: 28 76 6f 69 64 29 3b 09 2f 2f 31 38 0d 0a 0d 0a  (void);.//18....
0920: 09 76 69 72 74 75 61 6c 20 69 6e 74 20 20 57 68  .virtual int  Wh
0930: 61 74 49 73 49 74 28 76 6f 69 64 29 63 6f 6e 73  atIsIt(void)cons
0940: 74 3b 09 2f 2f 31 33 36 0d 0a 09 76 69 72 74 75  t;.//136...virtu
0950: 61 6c 20 63 68 61 72 20 63 6f 6e 73 74 20 2a 20  al char const * 
0960: 20 47 65 74 46 75 6e 63 74 6f 72 28 76 6f 69 64   GetFunctor(void
0970: 29 63 6f 6e 73 74 3b 09 2f 2f 36 39 0d 0a 09 76  )const;.//69...v
0980: 69 72 74 75 61 6c 20 69 6e 74 20 20 4c 6f 61 64  irtual int  Load
0990: 46 72 6f 6d 53 74 72 69 6e 67 28 63 68 61 72 20  FromString(char 
09a0: 63 6f 6e 73 74 20 2a 2c 69 6e 74 20 2a 29 3b 09  const *,int *);.
09b0: 2f 2f 39 38 0d 0a 09 76 69 72 74 75 61 6c 20 76  //98...virtual v
09c0: 6f 69 64 20 20 53 61 76 65 54 6f 53 74 72 69 6e  oid  SaveToStrin
09d0: 67 28 43 53 74 72 69 6e 67 20 26 2c 69 6e 74 2c  g(CString &,int,
09e0: 63 68 61 72 20 63 6f 6e 73 74 20 2a 29 63 6f 6e  char const *)con
09f0: 73 74 3b 09 2f 2f 31 31 39 0d 0a 09 76 69 72 74  st;.//119...virt
0a00: 75 61 6c 20 43 47 65 6e 65 72 69 63 49 74 65 6d  ual CGenericItem
0a10: 20 2a 20 20 44 75 70 28 76 6f 69 64 29 63 6f 6e   *  Dup(void)con
0a20: 73 74 3b 09 2f 2f 34 39 0d 0a 7d 3b 0d 0a 0d 0a  st;.//49..};....
0a30: 2f 2f 73 69 7a 65 20 6f 66 20 43 49 74 65 6d 4c  //size of CItemL
0a40: 69 73 74 20 69 73 20 31 38 68 0d 0a 63 6c 61 73  ist is 18h..clas
0a50: 73 20 49 4d 50 4f 52 54 5f 31 43 20 43 49 74 65  s IMPORT_1C CIte
0a60: 6d 4c 69 73 74 20 3a 20 70 75 62 6c 69 63 20 43  mList : public C
0a70: 47 65 6e 65 72 69 63 49 74 65 6d 0d 0a 7b 0d 0a  GenericItem..{..
0a80: 70 75 62 6c 69 63 3a 0d 0a 09 43 50 74 72 41 72  public:...CPtrAr
0a90: 72 61 79 20 6d 5f 50 74 72 41 72 72 61 79 3b 0d  ray m_PtrArray;.
0aa0: 0a 0d 0a 09 43 49 74 65 6d 4c 69 73 74 28 76 6f  ....CItemList(vo
0ab0: 69 64 29 3b 09 2f 2f 35 0d 0a 09 76 69 72 74 75  id);.//5...virtu
0ac0: 61 6c 20 7e 43 49 74 65 6d 4c 69 73 74 28 76 6f  al ~CItemList(vo
0ad0: 69 64 29 3b 09 2f 2f 31 39 0d 0a 0d 0a 09 76 69  id);.//19.....vi
0ae0: 72 74 75 61 6c 20 69 6e 74 20 20 57 68 61 74 49  rtual int  WhatI
0af0: 73 49 74 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09  sIt(void)const;.
0b00: 2f 2f 31 33 37 0d 0a 09 76 69 72 74 75 61 6c 20  //137...virtual 
0b10: 63 68 61 72 20 63 6f 6e 73 74 20 2a 20 20 47 65  char const *  Ge
0b20: 74 46 75 6e 63 74 6f 72 28 76 6f 69 64 29 63 6f  tFunctor(void)co
0b30: 6e 73 74 3b 09 2f 2f 37 30 0d 0a 09 76 69 72 74  nst;.//70...virt
0b40: 75 61 6c 20 69 6e 74 20 20 4c 6f 61 64 46 72 6f  ual int  LoadFro
0b50: 6d 53 74 72 69 6e 67 28 63 68 61 72 20 63 6f 6e  mString(char con
0b60: 73 74 20 2a 2c 69 6e 74 20 2a 29 3b 09 2f 2f 39  st *,int *);.//9
0b70: 39 0d 0a 09 76 69 72 74 75 61 6c 20 76 6f 69 64  9...virtual void
0b80: 20 20 53 61 76 65 54 6f 53 74 72 69 6e 67 28 20    SaveToString( 
0b90: 43 53 74 72 69 6e 67 20 26 2c 69 6e 74 2c 63 68  CString &,int,ch
0ba0: 61 72 20 63 6f 6e 73 74 20 2a 29 63 6f 6e 73 74  ar const *)const
0bb0: 3b 09 2f 2f 31 32 30 0d 0a 09 76 69 72 74 75 61  ;.//120...virtua
0bc0: 6c 20 43 47 65 6e 65 72 69 63 49 74 65 6d 20 2a  l CGenericItem *
0bd0: 20 20 44 75 70 28 76 6f 69 64 29 63 6f 6e 73 74    Dup(void)const
0be0: 3b 09 2f 2f 35 30 0d 0a 0d 0a 09 69 6e 74 20 20  ;.//50.....int  
0bf0: 41 64 64 49 74 65 6d 28 43 47 65 6e 65 72 69 63  AddItem(CGeneric
0c00: 49 74 65 6d 20 2a 29 3b 09 2f 2f 33 36 0d 0a 09  Item *);.//36...
0c10: 69 6e 74 20 20 46 69 6e 64 47 65 6e 65 72 69 63  int  FindGeneric
0c20: 49 74 65 6d 28 63 68 61 72 20 63 6f 6e 73 74 20  Item(char const 
0c30: 2a 2c 69 6e 74 29 63 6f 6e 73 74 3b 09 2f 2f 35  *,int)const;.//5
0c40: 34 0d 0a 09 69 6e 74 20 20 46 69 6e 64 49 74 65  4...int  FindIte
0c50: 6d 28 63 68 61 72 20 63 6f 6e 73 74 20 2a 2c 69  m(char const *,i
0c60: 6e 74 29 63 6f 6e 73 74 3b 09 2f 2f 35 35 0d 0a  nt)const;.//55..
0c70: 09 69 6e 74 20 20 46 69 6e 64 4c 69 73 74 28 63  .int  FindList(c
0c80: 68 61 72 20 63 6f 6e 73 74 20 2a 2c 69 6e 74 29  har const *,int)
0c90: 63 6f 6e 73 74 3b 09 2f 2f 35 36 0d 0a 09 43 47  const;.//56...CG
0ca0: 65 6e 65 72 69 63 49 74 65 6d 20 2a 20 20 47 65  enericItem *  Ge
0cb0: 74 49 74 65 6d 41 74 28 69 6e 74 29 63 6f 6e 73  tItemAt(int)cons
0cc0: 74 3b 09 2f 2f 37 32 0d 0a 09 69 6e 74 20 20 47  t;.//72...int  G
0cd0: 65 74 4e 49 74 65 6d 73 28 76 6f 69 64 29 63 6f  etNItems(void)co
0ce0: 6e 73 74 3b 09 2f 2f 37 36 0d 0a 09 69 6e 74 20  nst;.//76...int 
0cf0: 20 49 6e 73 65 72 74 49 74 65 6d 28 69 6e 74 2c   InsertItem(int,
0d00: 20 43 47 65 6e 65 72 69 63 49 74 65 6d 20 2a 29   CGenericItem *)
0d10: 3b 09 2f 2f 39 34 0d 0a 09 76 6f 69 64 20 20 52  ;.//94...void  R
0d20: 65 6d 6f 76 65 41 6c 6c 28 69 6e 74 29 3b 09 2f  emoveAll(int);./
0d30: 2f 31 31 34 0d 0a 09 76 6f 69 64 20 20 52 65 6d  /114...void  Rem
0d40: 6f 76 65 49 74 65 6d 28 69 6e 74 2c 69 6e 74 29  oveItem(int,int)
0d50: 3b 09 2f 2f 31 31 35 0d 0a 7d 3b 0d 0a 0d 0a 0d  ;.//115..};.....
0d60: 0a 63 6c 61 73 73 20 49 4d 50 4f 52 54 5f 31 43  .class IMPORT_1C
0d70: 20 43 4e 75 6d 65 72 69 63 0d 0a 7b 0d 0a 70 75   CNumeric..{..pu
0d80: 62 6c 69 63 3a 0d 0a 09 69 6e 74 20 6d 5f 30 3b  blic:...int m_0;
0d90: 20 20 20 20 20 20 20 20 20 20 20 2f 2f 30 30 68             //00h
0da0: 0d 0a 09 69 6e 74 20 6d 5f 6e 42 75 66 66 65 72  ...int m_nBuffer
0db0: 4c 65 6e 3b 20 20 2f 2f 30 34 68 0d 0a 09 69 6e  Len;  //04h...in
0dc0: 74 20 6d 5f 6e 55 73 65 64 4c 65 6e 3b 20 20 20  t m_nUsedLen;   
0dd0: 20 2f 2f 30 38 68 0d 0a 09 69 6e 74 20 6d 5f 6e   //08h...int m_n
0de0: 53 63 61 6c 65 4c 65 6e 3b 20 20 20 2f 2f 30 43  ScaleLen;   //0C
0df0: 68 0d 0a 09 73 68 6f 72 74 20 6d 5f 53 69 67 6e  h...short m_Sign
0e00: 3b 20 20 20 20 20 20 2f 2f 31 30 68 0d 0a 09 69  ;      //10h...i
0e10: 6e 74 20 6d 5f 53 63 61 6c 65 46 61 63 74 6f 72  nt m_ScaleFactor
0e20: 3b 20 2f 2f 31 34 68 0d 0a 09 55 49 4e 54 20 2a  ; //14h...UINT *
0e30: 6d 5f 70 42 75 66 66 65 72 3b 20 20 20 2f 2f 31  m_pBuffer;   //1
0e40: 38 68 0d 0a 09 55 49 4e 54 20 6d 5f 42 75 66 66  8h...UINT m_Buff
0e50: 65 72 5b 34 5d 3b 20 20 2f 2f 31 43 68 0d 0a 09  er[4];  //1Ch...
0e60: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0e70: 20 20 20 2f 2f 73 69 7a 65 20 32 43 68 0d 0a 09     //size 2Ch...
0e80: 20 43 4e 75 6d 65 72 69 63 28 43 4e 75 6d 65 72   CNumeric(CNumer
0e90: 69 63 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 36  ic const &);.//6
0ea0: 0d 0a 09 20 43 4e 75 6d 65 72 69 63 28 69 6e 74  ... CNumeric(int
0eb0: 29 3b 09 2f 2f 37 0d 0a 09 20 43 4e 75 6d 65 72  );.//7... CNumer
0ec0: 69 63 28 6c 6f 6e 67 29 3b 09 2f 2f 38 0d 0a 09  ic(long);.//8...
0ed0: 20 43 4e 75 6d 65 72 69 63 28 64 6f 75 62 6c 65   CNumeric(double
0ee0: 29 3b 09 2f 2f 39 0d 0a 09 20 43 4e 75 6d 65 72  );.//9... CNumer
0ef0: 69 63 28 6c 6f 6e 67 20 64 6f 75 62 6c 65 29 3b  ic(long double);
0f00: 09 2f 2f 31 30 0d 0a 09 20 43 4e 75 6d 65 72 69  .//10... CNumeri
0f10: 63 28 76 6f 69 64 29 3b 09 2f 2f 31 31 0d 0a 09  c(void);.//11...
0f20: 20 7e 43 4e 75 6d 65 72 69 63 28 76 6f 69 64 29   ~CNumeric(void)
0f30: 3b 09 2f 2f 32 30 0d 0a 09 43 4e 75 6d 65 72 69  ;.//20...CNumeri
0f40: 63 20 26 20 20 6f 70 65 72 61 74 6f 72 3d 28 43  c &  operator=(C
0f50: 4e 75 6d 65 72 69 63 20 63 6f 6e 73 74 20 26 29  Numeric const &)
0f60: 3b 09 2f 2f 32 34 0d 0a 09 43 4e 75 6d 65 72 69  ;.//24...CNumeri
0f70: 63 20 26 20 20 6f 70 65 72 61 74 6f 72 3d 28 69  c &  operator=(i
0f80: 6e 74 29 3b 09 2f 2f 32 35 0d 0a 09 43 4e 75 6d  nt);.//25...CNum
0f90: 65 72 69 63 20 26 20 20 6f 70 65 72 61 74 6f 72  eric &  operator
0fa0: 3d 28 6c 6f 6e 67 29 3b 09 2f 2f 32 36 0d 0a 09  =(long);.//26...
0fb0: 43 4e 75 6d 65 72 69 63 20 26 20 20 6f 70 65 72  CNumeric &  oper
0fc0: 61 74 6f 72 3d 28 64 6f 75 62 6c 65 29 3b 09 2f  ator=(double);./
0fd0: 2f 32 37 0d 0a 09 43 4e 75 6d 65 72 69 63 20 26  /27...CNumeric &
0fe0: 20 20 6f 70 65 72 61 74 6f 72 3d 28 6c 6f 6e 67    operator=(long
0ff0: 20 64 6f 75 62 6c 65 29 3b 09 2f 2f 32 38 0d 0a   double);.//28..
1000: 09 20 6f 70 65 72 61 74 6f 72 20 6c 6f 6e 67 28  . operator long(
1010: 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 32 39  void)const;.//29
1020: 0d 0a 09 43 4e 75 6d 65 72 69 63 20 20 20 6f 70  ...CNumeric   op
1030: 65 72 61 74 6f 72 2a 28 43 4e 75 6d 65 72 69 63  erator*(CNumeric
1040: 20 63 6f 6e 73 74 20 26 29 63 6f 6e 73 74 3b 09   const &)const;.
1050: 2f 2f 33 30 0d 0a 09 43 4e 75 6d 65 72 69 63 20  //30...CNumeric 
1060: 20 20 6f 70 65 72 61 74 6f 72 2d 28 43 4e 75 6d    operator-(CNum
1070: 65 72 69 63 20 63 6f 6e 73 74 20 26 29 63 6f 6e  eric const &)con
1080: 73 74 3b 09 2f 2f 33 31 0d 0a 09 43 4e 75 6d 65  st;.//31...CNume
1090: 72 69 63 20 20 20 6f 70 65 72 61 74 6f 72 2b 28  ric   operator+(
10a0: 43 4e 75 6d 65 72 69 63 20 63 6f 6e 73 74 20 26  CNumeric const &
10b0: 29 63 6f 6e 73 74 3b 09 2f 2f 33 32 0d 0a 09 43  )const;.//32...C
10c0: 4e 75 6d 65 72 69 63 20 20 20 6f 70 65 72 61 74  Numeric   operat
10d0: 6f 72 2f 28 43 4e 75 6d 65 72 69 63 20 63 6f 6e  or/(CNumeric con
10e0: 73 74 20 26 29 63 6f 6e 73 74 3b 09 2f 2f 33 33  st &)const;.//33
10f0: 0d 0a 09 43 4e 75 6d 65 72 69 63 20 20 20 41 62  ...CNumeric   Ab
1100: 73 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f  s(void)const;.//
1110: 33 35 0d 0a 09 69 6e 74 20 20 43 6f 6d 70 61 72  35...int  Compar
1120: 65 28 43 4e 75 6d 65 72 69 63 20 63 6f 6e 73 74  e(CNumeric const
1130: 20 26 29 63 6f 6e 73 74 3b 09 2f 2f 34 32 0d 0a   &)const;.//42..
1140: 09 69 6e 74 20 20 43 6f 6d 70 61 72 65 4c 6f 6e  .int  CompareLon
1150: 67 28 6c 6f 6e 67 29 63 6f 6e 73 74 3b 09 2f 2f  g(long)const;.//
1160: 34 33 0d 0a 09 63 68 61 72 20 2a 20 20 43 6f 6e  43...char *  Con
1170: 76 65 72 74 28 63 68 61 72 20 2a 2c 69 6e 74 2c  vert(char *,int,
1180: 69 6e 74 29 63 6f 6e 73 74 3b 09 2f 2f 34 34 0d  int)const;.//44.
1190: 0a 09 43 4e 75 6d 65 72 69 63 20 20 20 46 6c 6f  ..CNumeric   Flo
11a0: 6f 72 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f  or(void)const;./
11b0: 2f 35 38 0d 0a 09 43 4e 75 6d 65 72 69 63 20 26  /58...CNumeric &
11c0: 20 20 46 72 6f 6d 53 74 72 69 6e 67 28 63 68 61    FromString(cha
11d0: 72 20 63 6f 6e 73 74 20 2a 2c 63 68 61 72 20 2a  r const *,char *
11e0: 20 2a 29 3b 09 2f 2f 36 30 0d 0a 09 6c 6f 6e 67   *);.//60...long
11f0: 20 64 6f 75 62 6c 65 20 20 47 65 74 44 6f 75 62   double  GetDoub
1200: 6c 65 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f  le(void)const;./
1210: 2f 36 34 0d 0a 09 73 74 61 74 69 63 20 69 6e 74  /64...static int
1220: 20 20 47 65 74 52 6f 75 6e 64 4d 6f 64 65 28 76    GetRoundMode(v
1230: 6f 69 64 29 3b 09 2f 2f 38 34 0d 0a 09 43 4e 75  oid);.//84...CNu
1240: 6d 65 72 69 63 20 20 20 4e 65 67 61 74 65 28 76  meric   Negate(v
1250: 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 31 30 34  oid)const;.//104
1260: 0d 0a 09 43 4e 75 6d 65 72 69 63 20 20 20 52 6f  ...CNumeric   Ro
1270: 75 6e 64 28 69 6e 74 29 63 6f 6e 73 74 3b 09 2f  und(int)const;./
1280: 2f 31 31 37 0d 0a 09 73 74 61 74 69 63 20 69 6e  /117...static in
1290: 74 20 20 53 65 74 52 6f 75 6e 64 4d 6f 64 65 28  t  SetRoundMode(
12a0: 69 6e 74 29 3b 09 2f 2f 31 32 38 0d 0a 09 69 6e  int);.//128...in
12b0: 74 20 20 53 69 67 6e 28 76 6f 69 64 29 63 6f 6e  t  Sign(void)con
12c0: 73 74 3b 09 2f 2f 31 33 31 0d 0a 7d 3b 0d 0a 0d  st;.//131..};...
12d0: 0a 0d 0a 63 6c 61 73 73 20 49 4d 50 4f 52 54 5f  ...class IMPORT_
12e0: 31 43 20 43 50 72 6f 70 42 6f 78 0d 0a 7b 0d 0a  1C CPropBox..{..
12f0: 70 75 62 6c 69 63 3a 0d 0a 09 20 43 50 72 6f 70  public:... CProp
1300: 42 6f 78 28 76 6f 69 64 29 3b 09 2f 2f 31 32 0d  Box(void);.//12.
1310: 0a 09 76 69 72 74 75 61 6c 20 20 7e 43 50 72 6f  ..virtual  ~CPro
1320: 70 42 6f 78 28 76 6f 69 64 29 3b 09 2f 2f 32 31  pBox(void);.//21
1330: 0d 0a 70 72 6f 74 65 63 74 65 64 3a 0d 0a 09 76  ..protected:...v
1340: 6f 69 64 20 20 44 65 73 74 72 6f 79 44 61 74 61  oid  DestroyData
1350: 28 76 6f 69 64 29 3b 09 2f 2f 34 38 0d 0a 70 75  (void);.//48..pu
1360: 62 6c 69 63 3a 0d 0a 09 43 4e 75 6d 65 72 69 63  blic:...CNumeric
1370: 20 63 6f 6e 73 74 20 26 20 20 47 65 74 43 4e 75   const &  GetCNu
1380: 6d 65 72 69 63 50 72 6f 70 28 69 6e 74 29 63 6f  mericProp(int)co
1390: 6e 73 74 3b 09 2f 2f 36 31 0d 0a 09 43 44 61 74  nst;.//61...CDat
13a0: 65 20 20 20 47 65 74 44 61 74 65 50 72 6f 70 28  e   GetDateProp(
13b0: 69 6e 74 29 63 6f 6e 73 74 3b 09 2f 2f 36 33 0d  int)const;.//63.
13c0: 0a 09 64 6f 75 62 6c 65 20 20 47 65 74 44 6f 75  ..double  GetDou
13d0: 62 6c 65 50 72 6f 70 28 69 6e 74 29 63 6f 6e 73  bleProp(int)cons
13e0: 74 3b 09 2f 2f 36 35 0d 0a 09 69 6e 74 20 20 47  t;.//65...int  G
13f0: 65 74 49 6e 74 50 72 6f 70 28 69 6e 74 29 63 6f  etIntProp(int)co
1400: 6e 73 74 3b 09 2f 2f 37 31 0d 0a 09 6c 6f 6e 67  nst;.//71...long
1410: 20 20 47 65 74 4c 6f 6e 67 50 72 6f 70 28 69 6e    GetLongProp(in
1420: 74 29 63 6f 6e 73 74 3b 09 2f 2f 37 33 0d 0a 09  t)const;.//73...
1430: 76 69 72 74 75 61 6c 20 69 6e 74 20 20 47 65 74  virtual int  Get
1440: 4e 50 72 6f 70 73 28 76 6f 69 64 29 63 6f 6e 73  NProps(void)cons
1450: 74 3b 09 2f 2f 37 37 0d 0a 09 76 6f 69 64 20 2a  t;.//77...void *
1460: 20 20 47 65 74 50 6f 69 6e 74 65 72 50 72 6f 70    GetPointerProp
1470: 28 69 6e 74 29 63 6f 6e 73 74 3b 09 2f 2f 37 38  (int)const;.//78
1480: 0d 0a 09 63 68 61 72 20 63 6f 6e 73 74 20 2a 20  ...char const * 
1490: 20 47 65 74 50 72 6f 70 4e 61 6d 65 28 69 6e 74   GetPropName(int
14a0: 29 63 6f 6e 73 74 3b 09 2f 2f 37 39 0d 0a 09 69  )const;.//79...i
14b0: 6e 74 20 20 47 65 74 50 72 6f 70 4e 75 6d 28 63  nt  GetPropNum(c
14c0: 68 61 72 20 63 6f 6e 73 74 20 2a 2c 63 68 61 72  har const *,char
14d0: 20 63 6f 6e 73 74 20 2a 29 63 6f 6e 73 74 3b 09   const *)const;.
14e0: 2f 2f 38 30 0d 0a 09 65 6e 75 6d 20 45 50 72 6f  //80...enum EPro
14f0: 70 54 79 70 65 20 20 20 47 65 74 50 72 6f 70 54  pType   GetPropT
1500: 79 70 65 28 69 6e 74 29 63 6f 6e 73 74 3b 09 2f  ype(int)const;./
1510: 2f 38 31 0d 0a 70 72 6f 74 65 63 74 65 64 3a 0d  /81..protected:.
1520: 0a 09 75 6e 73 69 67 6e 65 64 20 69 6e 74 20 20  ..unsigned int  
1530: 47 65 74 50 72 6f 70 56 61 6c 4c 65 6e 28 69 6e  GetPropValLen(in
1540: 74 29 63 6f 6e 73 74 3b 09 2f 2f 38 32 0d 0a 70  t)const;.//82..p
1550: 75 62 6c 69 63 3a 0d 0a 09 76 69 72 74 75 61 6c  ublic:...virtual
1560: 20 73 74 72 75 63 74 20 53 50 72 6f 70 65 72 74   struct SPropert
1570: 79 20 2a 20 20 47 65 74 50 72 6f 70 65 72 74 79  y *  GetProperty
1580: 28 69 6e 74 29 63 6f 6e 73 74 3b 09 2f 2f 38 33  (int)const;.//83
1590: 0d 0a 09 63 68 61 72 20 63 6f 6e 73 74 20 2a 20  ...char const * 
15a0: 20 47 65 74 53 65 63 74 4e 61 6d 65 28 69 6e 74   GetSectName(int
15b0: 29 63 6f 6e 73 74 3b 09 2f 2f 38 35 0d 0a 09 63  )const;.//85...c
15c0: 68 61 72 20 63 6f 6e 73 74 20 2a 20 20 47 65 74  har const *  Get
15d0: 53 74 72 69 6e 67 50 72 6f 70 28 69 6e 74 29 63  StringProp(int)c
15e0: 6f 6e 73 74 3b 09 2f 2f 38 36 0d 0a 70 72 6f 74  onst;.//86..prot
15f0: 65 63 74 65 64 3a 0d 0a 09 69 6e 74 20 20 49 6e  ected:...int  In
1600: 69 74 44 61 74 61 28 76 6f 69 64 29 3b 09 2f 2f  itData(void);.//
1610: 39 33 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 76 69  93..public:...vi
1620: 72 74 75 61 6c 20 69 6e 74 20 20 49 73 50 72 6f  rtual int  IsPro
1630: 70 57 72 69 74 61 62 6c 65 28 69 6e 74 29 63 6f  pWritable(int)co
1640: 6e 73 74 3b 09 2f 2f 39 37 0d 0a 09 69 6e 74 20  nst;.//97...int 
1650: 20 53 65 74 43 4e 75 6d 65 72 69 63 50 72 6f 70   SetCNumericProp
1660: 28 69 6e 74 2c 43 4e 75 6d 65 72 69 63 20 63 6f  (int,CNumeric co
1670: 6e 73 74 20 26 29 3b 09 2f 2f 31 32 32 0d 0a 09  nst &);.//122...
1680: 69 6e 74 20 20 53 65 74 44 61 74 65 50 72 6f 70  int  SetDateProp
1690: 28 69 6e 74 2c 43 44 61 74 65 29 3b 09 2f 2f 31  (int,CDate);.//1
16a0: 32 33 0d 0a 09 69 6e 74 20 20 53 65 74 44 6f 75  23...int  SetDou
16b0: 62 6c 65 50 72 6f 70 28 69 6e 74 2c 64 6f 75 62  bleProp(int,doub
16c0: 6c 65 29 3b 09 2f 2f 31 32 34 0d 0a 09 69 6e 74  le);.//124...int
16d0: 20 20 53 65 74 49 6e 74 50 72 6f 70 28 69 6e 74    SetIntProp(int
16e0: 2c 69 6e 74 29 3b 09 2f 2f 31 32 35 0d 0a 09 69  ,int);.//125...i
16f0: 6e 74 20 20 53 65 74 4c 6f 6e 67 50 72 6f 70 28  nt  SetLongProp(
1700: 69 6e 74 2c 6c 6f 6e 67 29 3b 09 2f 2f 31 32 36  int,long);.//126
1710: 0d 0a 09 69 6e 74 20 20 53 65 74 50 6f 69 6e 74  ...int  SetPoint
1720: 65 72 50 72 6f 70 28 69 6e 74 2c 76 6f 69 64 20  erProp(int,void 
1730: 2a 29 3b 09 2f 2f 31 32 37 0d 0a 09 69 6e 74 20  *);.//127...int 
1740: 20 53 65 74 53 74 72 69 6e 67 50 72 6f 70 28 69   SetStringProp(i
1750: 6e 74 2c 63 68 61 72 20 63 6f 6e 73 74 20 2a 29  nt,char const *)
1760: 3b 09 2f 2f 31 32 39 0d 0a 7d 3b 0d 0a 0d 0a 0d  ;.//129..};.....
1770: 0a 63 6c 61 73 73 20 49 4d 50 4f 52 54 5f 31 43  .class IMPORT_1C
1780: 20 43 54 65 72 6d 0d 0a 7b 0d 0a 70 75 62 6c 69   CTerm..{..publi
1790: 63 3a 0d 0a 09 20 43 54 65 72 6d 28 63 68 61 72  c:... CTerm(char
17a0: 20 63 6f 6e 73 74 20 2a 2c 63 68 61 72 20 63 6f   const *,char co
17b0: 6e 73 74 20 2a 29 3b 09 2f 2f 31 33 0d 0a 09 20  nst *);.//13... 
17c0: 7e 43 54 65 72 6d 28 76 6f 69 64 29 3b 09 2f 2f  ~CTerm(void);.//
17d0: 32 32 0d 0a 2f 2f 09 76 6f 69 64 20 20 60 64 65  22..//.void  `de
17e0: 66 61 75 6c 74 20 63 6f 6e 73 74 72 75 63 74 6f  fault constructo
17f0: 72 20 63 6c 6f 73 75 72 65 27 28 76 6f 69 64 29  r closure'(void)
1800: 3b 09 2f 2f 33 34 0d 0a 7d 3b 0d 0a 0d 0a 0d 0a  ;.//34..};......
1810: 63 6c 61 73 73 20 49 4d 50 4f 52 54 5f 31 43 20  class IMPORT_1C 
1820: 43 54 65 72 6d 73 42 6f 78 0d 0a 7b 0d 0a 70 75  CTermsBox..{..pu
1830: 62 6c 69 63 3a 0d 0a 09 63 68 61 72 20 62 75 66  blic:...char buf
1840: 20 5b 35 31 32 5d 3b 0d 0a 09 20 43 54 65 72 6d   [512];... CTerm
1850: 73 42 6f 78 28 69 6e 74 2c 69 6e 74 2c 75 6e 73  sBox(int,int,uns
1860: 69 67 6e 65 64 20 69 6e 74 29 3b 09 2f 2f 31 34  igned int);.//14
1870: 0d 0a 09 20 43 54 65 72 6d 73 42 6f 78 28 43 54  ... CTermsBox(CT
1880: 65 72 6d 20 2a 2c 69 6e 74 2c 69 6e 74 2c 75 6e  erm *,int,int,un
1890: 73 69 67 6e 65 64 20 69 6e 74 29 3b 09 2f 2f 31  signed int);.//1
18a0: 35 0d 0a 09 20 7e 43 54 65 72 6d 73 42 6f 78 28  5... ~CTermsBox(
18b0: 76 6f 69 64 29 3b 09 2f 2f 32 33 0d 0a 09 69 6e  void);.//23...in
18c0: 74 20 20 46 69 6e 64 54 65 72 6d 28 63 68 61 72  t  FindTerm(char
18d0: 20 63 6f 6e 73 74 20 2a 29 3b 09 2f 2f 35 37 0d   const *);.//57.
18e0: 0a 70 72 6f 74 65 63 74 65 64 3a 0d 0a 09 76 69  .protected:...vi
18f0: 72 74 75 61 6c 20 76 6f 69 64 20 20 4c 6f 61 64  rtual void  Load
1900: 54 65 72 6d 53 74 72 69 6e 67 28 69 6e 74 2c 69  TermString(int,i
1910: 6e 74 29 3b 09 2f 2f 31 30 30 0d 0a 70 75 62 6c  nt);.//100..publ
1920: 69 63 3a 0d 0a 09 76 6f 69 64 20 20 53 65 74 54  ic:...void  SetT
1930: 65 72 6d 53 74 72 69 6e 67 28 69 6e 74 2c 69 6e  ermString(int,in
1940: 74 2c 63 68 61 72 20 63 6f 6e 73 74 20 2a 29 3b  t,char const *);
1950: 09 2f 2f 31 33 30 0d 0a 09 63 68 61 72 20 63 6f  .//130...char co
1960: 6e 73 74 20 2a 20 20 54 65 72 6d 53 74 72 69 6e  nst *  TermStrin
1970: 67 28 69 6e 74 2c 69 6e 74 29 3b 09 2f 2f 31 33  g(int,int);.//13
1980: 33 0d 0a 7d 3b 0d 0a 2f 2f 20 45 6e 64 20 63 6c  3..};..// End cl
1990: 61 73 73 20 64 65 73 63 72 69 70 74 69 6f 6e 73  ass descriptions
19a0: 0d 0a 2f 2f 20 42 65 67 69 6e 20 66 72 65 65 20  ..// Begin free 
19b0: 66 75 6e 63 74 69 6f 6e 73 20 64 65 66 69 6e 69  functions defini
19c0: 74 69 6f 6e 73 0d 0a 43 53 74 72 69 6e 67 20 20  tions..CString  
19d0: 5f 5f 63 64 65 63 6c 20 41 6c 6c 54 72 69 6d 28  __cdecl AllTrim(
19e0: 43 53 74 72 69 6e 67 20 63 6f 6e 73 74 20 26 29  CString const &)
19f0: 3b 0d 0a 76 6f 69 64 20 5f 5f 63 64 65 63 6c 20  ;..void __cdecl 
1a00: 44 65 6c 65 74 65 4e 75 6d 53 65 70 61 72 61 74  DeleteNumSeparat
1a10: 6f 72 73 28 43 53 74 72 69 6e 67 20 26 29 3b 0d  ors(CString &);.
1a20: 0a 76 6f 69 64 20 5f 5f 63 64 65 63 6c 20 44 65  .void __cdecl De
1a30: 6c 65 74 65 4e 75 6d 53 65 70 61 72 61 74 6f 72  leteNumSeparator
1a40: 73 28 63 68 61 72 20 2a 29 3b 0d 0a 43 53 74 72  s(char *);..CStr
1a50: 69 6e 67 20 20 5f 5f 63 64 65 63 6c 20 47 65 74  ing  __cdecl Get
1a60: 46 75 6c 6c 50 61 74 68 28 63 68 61 72 20 63 6f  FullPath(char co
1a70: 6e 73 74 20 2a 2c 63 68 61 72 20 63 6f 6e 73 74  nst *,char const
1a80: 20 2a 2c 63 68 61 72 20 63 6f 6e 73 74 20 2a 29   *,char const *)
1a90: 3b 0d 0a 76 6f 69 64 20 5f 5f 63 64 65 63 6c 20  ;..void __cdecl 
1aa0: 49 6e 73 65 72 74 4e 75 6d 53 65 70 61 72 61 74  InsertNumSeparat
1ab0: 6f 72 73 28 43 53 74 72 69 6e 67 20 26 29 3b 0d  ors(CString &);.
1ac0: 0a 76 6f 69 64 20 5f 5f 63 64 65 63 6c 20 49 6e  .void __cdecl In
1ad0: 73 65 72 74 4e 75 6d 53 65 70 61 72 61 74 6f 72  sertNumSeparator
1ae0: 73 28 63 68 61 72 20 2a 2c 69 6e 74 29 3b 0d 0a  s(char *,int);..
1af0: 43 53 74 72 69 6e 67 20 20 5f 5f 63 64 65 63 6c  CString  __cdecl
1b00: 20 4c 74 72 69 6d 28 43 53 74 72 69 6e 67 20 63   Ltrim(CString c
1b10: 6f 6e 73 74 20 26 29 3b 0d 0a 43 53 74 72 69 6e  onst &);..CStrin
1b20: 67 20 26 20 5f 5f 63 64 65 63 6c 20 4d 61 6b 65  g & __cdecl Make
1b30: 4c 6f 77 65 72 28 43 53 74 72 69 6e 67 20 26 29  Lower(CString &)
1b40: 3b 0d 0a 43 53 74 72 69 6e 67 20 26 20 5f 5f 63  ;..CString & __c
1b50: 64 65 63 6c 20 4d 61 6b 65 55 70 70 65 72 28 43  decl MakeUpper(C
1b60: 53 74 72 69 6e 67 20 26 29 3b 0d 0a 43 53 74 72  String &);..CStr
1b70: 69 6e 67 20 20 5f 5f 63 64 65 63 6c 20 50 61 64  ing  __cdecl Pad
1b80: 28 43 4e 75 6d 65 72 69 63 20 63 6f 6e 73 74 20  (CNumeric const 
1b90: 26 2c 69 6e 74 2c 69 6e 74 2c 69 6e 74 29 3b 0d  &,int,int,int);.
1ba0: 0a 43 53 74 72 69 6e 67 20 20 5f 5f 63 64 65 63  .CString  __cdec
1bb0: 6c 20 50 61 64 28 69 6e 74 2c 69 6e 74 2c 69 6e  l Pad(int,int,in
1bc0: 74 29 3b 0d 0a 43 53 74 72 69 6e 67 20 20 5f 5f  t);..CString  __
1bd0: 63 64 65 63 6c 20 50 61 64 28 6c 6f 6e 67 2c 69  cdecl Pad(long,i
1be0: 6e 74 2c 69 6e 74 29 3b 0d 0a 43 53 74 72 69 6e  nt,int);..CStrin
1bf0: 67 20 20 5f 5f 63 64 65 63 6c 20 50 61 64 28 6c  g  __cdecl Pad(l
1c00: 6f 6e 67 20 64 6f 75 62 6c 65 2c 69 6e 74 2c 69  ong double,int,i
1c10: 6e 74 2c 69 6e 74 29 3b 0d 0a 43 53 74 72 69 6e  nt,int);..CStrin
1c20: 67 20 20 5f 5f 63 64 65 63 6c 20 50 61 64 28 63  g  __cdecl Pad(c
1c30: 68 61 72 20 63 6f 6e 73 74 20 2a 2c 69 6e 74 2c  har const *,int,
1c40: 69 6e 74 29 3b 0d 0a 43 53 74 72 69 6e 67 20 26  int);..CString &
1c50: 20 5f 5f 63 64 65 63 6c 20 50 61 64 28 43 53 74   __cdecl Pad(CSt
1c60: 72 69 6e 67 20 26 2c 69 6e 74 2c 69 6e 74 29 3b  ring &,int,int);
1c70: 0d 0a 43 53 74 72 69 6e 67 20 20 5f 5f 63 64 65  ..CString  __cde
1c80: 63 6c 20 52 65 73 53 74 72 69 6e 67 28 75 6e 73  cl ResString(uns
1c90: 69 67 6e 65 64 20 69 6e 74 29 3b 0d 0a 69 6e 74  igned int);..int
1ca0: 20 5f 5f 63 64 65 63 6c 20 53 45 6d 70 74 79 28   __cdecl SEmpty(
1cb0: 63 68 61 72 20 63 6f 6e 73 74 20 2a 29 3b 0d 0a  char const *);..
1cc0: 43 53 74 72 69 6e 67 20 20 5f 5f 63 64 65 63 6c  CString  __cdecl
1cd0: 20 53 74 72 65 74 63 68 28 43 53 74 72 69 6e 67   Stretch(CString
1ce0: 20 63 6f 6e 73 74 20 26 2c 69 6e 74 29 3b 0d 0a   const &,int);..
1cf0: 69 6e 74 20 5f 5f 63 64 65 63 6c 20 54 72 61 6e  int __cdecl Tran
1d00: 53 74 72 28 43 53 74 72 69 6e 67 20 26 2c 43 53  Str(CString &,CS
1d10: 74 72 69 6e 67 20 63 6f 6e 73 74 20 26 2c 43 53  tring const &,CS
1d20: 74 72 69 6e 67 20 63 6f 6e 73 74 20 26 29 3b 0d  tring const &);.
1d30: 0a 43 53 74 72 69 6e 67 20 20 5f 5f 63 64 65 63  .CString  __cdec
1d40: 6c 20 54 72 69 6d 28 43 53 74 72 69 6e 67 20 63  l Trim(CString c
1d50: 6f 6e 73 74 20 26 29 3b 0d 0a 43 53 74 72 69 6e  onst &);..CStrin
1d60: 67 20 20 5f 5f 63 64 65 63 6c 20 73 74 72 62 72  g  __cdecl strbr
1d70: 65 61 6b 28 63 68 61 72 20 63 6f 6e 73 74 20 2a  eak(char const *
1d80: 2c 69 6e 74 2c 69 6e 74 20 26 29 3b 0d 0a 63 68  ,int,int &);..ch
1d90: 61 72 20 2a 20 5f 5f 63 64 65 63 6c 20 73 74 72  ar * __cdecl str
1da0: 62 72 65 61 6b 28 63 68 61 72 20 2a 2c 69 6e 74  break(char *,int
1db0: 29 3b 0d 0a 2f 2f 20 45 6e 64 20 66 72 65 65 20  );..// End free 
1dc0: 66 75 6e 63 74 69 6f 6e 73 20 64 65 66 69 6e 69  functions defini
1dd0: 74 69 6f 6e 73 0d 0a 65 78 74 65 72 6e 20 22 43  tions..extern "C
1de0: 22 20 69 6e 74 20 47 65 74 44 65 66 43 43 59 42  " int GetDefCCYB
1df0: 65 66 6f 72 65 28 29 3b 0d 0a 65 78 74 65 72 6e  efore();..extern
1e00: 20 22 43 22 20 69 6e 74 20 47 65 74 44 65 66 43   "C" int GetDefC
1e10: 75 72 59 65 61 72 28 29 3b 0d 0a 65 78 74 65 72  urYear();..exter
1e20: 6e 20 22 43 22 20 69 6e 74 20 49 6e 69 74 44 61  n "C" int InitDa
1e30: 74 65 46 6f 72 6d 61 74 74 69 6e 67 28 29 3b 0d  teFormatting();.
1e40: 0a 65 78 74 65 72 6e 20 22 43 22 20 69 6e 74 20  .extern "C" int 
1e50: 4a 44 61 74 65 54 6f 4d 61 73 6b 65 64 28 29 3b  JDateToMasked();
1e60: 0d 0a 65 78 74 65 72 6e 20 22 43 22 20 69 6e 74  ..extern "C" int
1e70: 20 4a 44 61 74 65 54 6f 53 74 72 69 6e 67 28 29   JDateToString()
1e80: 3b 0d 0a 65 78 74 65 72 6e 20 22 43 22 20 69 6e  ;..extern "C" in
1e90: 74 20 4d 61 6b 65 4a 44 61 74 65 28 29 3b 0d 0a  t MakeJDate();..
1ea0: 65 78 74 65 72 6e 20 22 43 22 20 69 6e 74 20 4d  extern "C" int M
1eb0: 61 73 6b 65 64 54 6f 4a 44 61 74 65 28 29 3b 0d  askedToJDate();.
1ec0: 0a 65 78 74 65 72 6e 20 22 43 22 20 69 6e 74 20  .extern "C" int 
1ed0: 4d 61 73 6b 65 64 54 6f 4a 44 61 74 65 32 28 29  MaskedToJDate2()
1ee0: 3b 0d 0a 65 78 74 65 72 6e 20 22 43 22 20 69 6e  ;..extern "C" in
1ef0: 74 20 53 65 74 44 65 66 43 43 59 42 65 66 6f 72  t SetDefCCYBefor
1f00: 65 28 29 3b 0d 0a 65 78 74 65 72 6e 20 22 43 22  e();..extern "C"
1f10: 20 69 6e 74 20 53 65 74 44 65 66 43 75 72 59 65   int SetDefCurYe
1f20: 61 72 28 29 3b 0d 0a 65 78 74 65 72 6e 20 22 43  ar();..extern "C
1f30: 22 20 69 6e 74 20 53 74 72 69 6e 67 54 6f 4a 44  " int StringToJD
1f40: 61 74 65 28 29 3b 0d 0a 0d 0a                    ate();....