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 53 68 65 65 74 3b 0d 0a 63 lass CSheet;..c
0030: 6c 61 73 73 20 20 43 53 68 65 65 74 43 65 6c 6c lass CSheetCell
0040: 3b 0d 0a 63 6c 61 73 73 20 20 43 53 68 65 65 74 ;..class CSheet
0050: 44 6f 63 3b 0d 0a 63 6c 61 73 73 20 20 43 53 68 Doc;..class CSh
0060: 65 65 74 44 72 61 77 69 6e 67 3b 0d 0a 63 6c 61 eetDrawing;..cla
0070: 73 73 20 20 43 53 68 65 65 74 46 6f 72 6d 61 74 ss CSheetFormat
0080: 3b 0d 0a 63 6c 61 73 73 20 20 43 53 68 65 65 74 ;..class CSheet
0090: 47 44 49 3b 0d 0a 63 6c 61 73 73 20 20 43 53 68 GDI;..class CSh
00a0: 65 65 74 4e 61 6d 65 64 49 74 65 6d 3b 0d 0a 63 eetNamedItem;..c
00b0: 6c 61 73 73 20 20 43 53 68 65 65 74 4e 61 6d 65 lass CSheetName
00c0: 73 3b 0d 0a 63 6c 61 73 73 20 20 43 53 68 65 65 s;..class CShee
00d0: 74 4f 75 74 6c 69 6e 65 3b 0d 0a 63 6c 61 73 73 tOutline;..class
00e0: 20 20 43 53 68 65 65 74 50 6f 69 6e 74 3b 0d 0a CSheetPoint;..
00f0: 63 6c 61 73 73 20 20 43 53 68 65 65 74 52 65 63 class CSheetRec
0100: 74 3b 0d 0a 63 6c 61 73 73 20 20 43 53 68 65 65 t;..class CShee
0110: 74 52 6f 77 3b 0d 0a 63 6c 61 73 73 20 20 43 53 tRow;..class CS
0120: 68 65 65 74 53 65 6c 65 63 74 69 6f 6e 3b 0d 0a heetSelection;..
0130: 63 6c 61 73 73 20 20 43 53 68 65 65 74 56 69 65 class CSheetVie
0140: 77 3b 0d 0a 2f 2f 20 45 6e 64 20 66 6f 72 77 61 w;..// End forwa
0150: 72 64 20 64 65 63 6c 61 72 61 74 69 6f 6e 73 0d rd declarations.
0160: 0a 0d 0a 2f 2f 20 42 65 67 69 6e 20 63 6c 61 73 ...// Begin clas
0170: 73 20 64 65 73 63 72 69 70 74 69 6f 6e 73 0d 0a s descriptions..
0180: 63 6c 61 73 73 20 43 53 68 65 65 74 3a 70 75 62 class CSheet:pub
0190: 6c 69 63 20 43 4f 62 6a 65 63 74 0d 0a 7b 0d 0a lic CObject..{..
01a0: 44 45 43 4c 41 52 45 5f 44 59 4e 43 52 45 41 54 DECLARE_DYNCREAT
01b0: 45 28 43 53 68 65 65 74 29 0d 0a 0d 0a 70 75 62 E(CSheet)....pub
01c0: 6c 69 63 3a 0d 0a 09 20 43 53 68 65 65 74 28 63 lic:... CSheet(c
01d0: 6c 61 73 73 20 43 53 68 65 65 74 20 63 6f 6e 73 lass CSheet cons
01e0: 74 20 26 29 3b 09 2f 2f 31 0d 0a 09 20 43 53 68 t &);.//1... CSh
01f0: 65 65 74 28 76 6f 69 64 29 3b 09 2f 2f 32 0d 0a eet(void);.//2..
0200: 09 76 69 72 74 75 61 6c 20 20 7e 43 53 68 65 65 .virtual ~CShee
0210: 74 28 76 6f 69 64 29 3b 09 2f 2f 33 37 0d 0a 09 t(void);.//37...
0220: 76 6f 69 64 20 20 41 70 70 6c 79 46 6f 72 6d 61 void ApplyForma
0230: 74 74 69 6e 67 28 63 6c 61 73 73 20 43 53 68 65 tting(class CShe
0240: 65 74 53 65 6c 65 63 74 69 6f 6e 20 63 6f 6e 73 etSelection cons
0250: 74 20 26 2c 63 6c 61 73 73 20 43 53 68 65 65 74 t &,class CSheet
0260: 43 65 6c 6c 20 63 6f 6e 73 74 20 26 2c 75 6e 73 Cell const &,uns
0270: 69 67 6e 65 64 20 6c 6f 6e 67 29 3b 09 2f 2f 39 igned long);.//9
0280: 30 0d 0a 09 76 6f 69 64 20 20 43 6c 65 61 72 28 0...void Clear(
0290: 63 6c 61 73 73 20 43 53 68 65 65 74 53 65 6c 65 class CSheetSele
02a0: 63 74 69 6f 6e 20 63 6f 6e 73 74 20 26 2c 75 6e ction const &,un
02b0: 73 69 67 6e 65 64 20 6c 6f 6e 67 29 3b 09 2f 2f signed long);.//
02c0: 31 30 30 0d 0a 09 76 6f 69 64 20 20 43 6c 65 61 100...void Clea
02d0: 72 43 65 6c 6c 43 6f 6e 74 65 6e 74 73 28 63 6c rCellContents(cl
02e0: 61 73 73 20 43 53 68 65 65 74 53 65 6c 65 63 74 ass CSheetSelect
02f0: 69 6f 6e 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f ion const &);.//
0300: 31 30 31 0d 0a 09 76 6f 69 64 20 20 43 6c 65 61 101...void Clea
0310: 72 43 65 6c 6c 73 28 63 6c 61 73 73 20 43 53 68 rCells(class CSh
0320: 65 65 74 53 65 6c 65 63 74 69 6f 6e 20 63 6f 6e eetSelection con
0330: 73 74 20 26 2c 75 6e 73 69 67 6e 65 64 20 6c 6f st &,unsigned lo
0340: 6e 67 29 3b 09 2f 2f 31 30 32 0d 0a 09 63 6c 61 ng);.//102...cla
0350: 73 73 20 43 53 68 65 65 74 20 26 20 20 43 6f 70 ss CSheet & Cop
0360: 79 28 63 6c 61 73 73 20 43 53 68 65 65 74 20 63 y(class CSheet c
0370: 6f 6e 73 74 20 26 29 3b 09 2f 2f 31 30 38 0d 0a onst &);.//108..
0380: 09 76 6f 69 64 20 20 43 6f 70 79 43 65 6c 6c 28 .void CopyCell(
0390: 63 6c 61 73 73 20 43 53 68 65 65 74 43 65 6c 6c class CSheetCell
03a0: 20 26 2c 63 6c 61 73 73 20 43 53 68 65 65 74 20 &,class CSheet
03b0: 63 6f 6e 73 74 20 26 2c 63 6c 61 73 73 20 43 53 const &,class CS
03c0: 68 65 65 74 43 65 6c 6c 20 63 6f 6e 73 74 20 26 heetCell const &
03d0: 29 3b 09 2f 2f 31 30 39 0d 0a 09 76 6f 69 64 20 );.//109...void
03e0: 20 43 6f 70 79 43 65 6c 6c 73 28 63 6c 61 73 73 CopyCells(class
03f0: 20 43 53 68 65 65 74 20 26 2c 63 6c 61 73 73 20 CSheet &,class
0400: 43 53 68 65 65 74 53 65 6c 65 63 74 69 6f 6e 20 CSheetSelection
0410: 63 6f 6e 73 74 20 26 29 63 6f 6e 73 74 3b 09 2f const &)const;./
0420: 2f 31 31 30 0d 0a 09 76 6f 69 64 20 20 43 6f 70 /110...void Cop
0430: 79 53 68 65 65 74 28 63 6c 61 73 73 20 43 53 68 ySheet(class CSh
0440: 65 65 74 20 26 2c 63 6c 61 73 73 20 43 53 68 65 eet &,class CShe
0450: 65 74 53 65 6c 65 63 74 69 6f 6e 20 63 6f 6e 73 etSelection cons
0460: 74 20 26 29 63 6f 6e 73 74 3b 09 2f 2f 31 31 31 t &)const;.//111
0470: 0d 0a 09 76 6f 69 64 20 20 44 65 6c 65 74 65 28 ...void Delete(
0480: 63 6c 61 73 73 20 43 53 68 65 65 74 53 65 6c 65 class CSheetSele
0490: 63 74 69 6f 6e 20 63 6f 6e 73 74 20 26 2c 69 6e ction const &,in
04a0: 74 29 3b 09 2f 2f 31 32 31 0d 0a 09 76 6f 69 64 t);.//121...void
04b0: 20 20 44 65 6c 65 74 65 43 65 6c 6c 73 28 63 6c DeleteCells(cl
04c0: 61 73 73 20 43 53 68 65 65 74 53 65 6c 65 63 74 ass CSheetSelect
04d0: 69 6f 6e 20 63 6f 6e 73 74 20 26 2c 69 6e 74 29 ion const &,int)
04e0: 3b 09 2f 2f 31 32 33 0d 0a 09 76 6f 69 64 20 20 ;.//123...void
04f0: 44 65 6c 65 74 65 44 72 61 77 69 6e 67 28 63 6c DeleteDrawing(cl
0500: 61 73 73 20 43 53 68 65 65 74 44 72 61 77 69 6e ass CSheetDrawin
0510: 67 20 2a 29 3b 09 2f 2f 31 32 35 0d 0a 09 76 6f g *);.//125...vo
0520: 69 64 20 20 44 65 6c 65 74 65 44 72 61 77 69 6e id DeleteDrawin
0530: 67 73 28 63 6c 61 73 73 20 43 4c 69 73 74 3c 63 gs(class CList<c
0540: 6c 61 73 73 20 43 53 68 65 65 74 44 72 61 77 69 lass CSheetDrawi
0550: 6e 67 20 2a 2c 63 6c 61 73 73 20 43 53 68 65 65 ng *,class CShee
0560: 74 44 72 61 77 69 6e 67 20 2a 3e 20 2a 29 3b 09 tDrawing *> *);.
0570: 2f 2f 31 32 36 0d 0a 09 76 6f 69 64 20 20 44 65 //126...void De
0580: 6c 65 74 65 4e 61 6d 65 28 63 6c 61 73 73 20 43 leteName(class C
0590: 53 74 72 69 6e 67 20 63 6f 6e 73 74 20 26 29 3b String const &);
05a0: 09 2f 2f 31 32 37 0d 0a 09 69 6e 74 20 20 46 69 .//127...int Fi
05b0: 6e 64 43 65 6c 6c 28 63 68 61 72 20 63 6f 6e 73 ndCell(char cons
05c0: 74 20 2a 2c 75 6e 73 69 67 6e 65 64 20 6c 6f 6e t *,unsigned lon
05d0: 67 2c 73 74 72 75 63 74 20 74 61 67 50 4f 49 4e g,struct tagPOIN
05e0: 54 20 2a 2c 73 74 72 75 63 74 20 74 61 67 52 45 T *,struct tagRE
05f0: 43 54 20 63 6f 6e 73 74 20 2a 29 3b 09 2f 2f 31 CT const *);.//1
0600: 33 38 0d 0a 09 63 6c 61 73 73 20 43 53 68 65 65 38...class CShee
0610: 74 44 72 61 77 69 6e 67 20 2a 20 20 46 69 6e 64 tDrawing * Find
0620: 44 72 61 77 69 6e 67 42 79 49 44 28 75 6e 73 69 DrawingByID(unsi
0630: 67 6e 65 64 20 6c 6f 6e 67 29 3b 09 2f 2f 31 33 gned long);.//13
0640: 39 0d 0a 09 69 6e 74 20 20 46 69 6e 64 47 72 6f 9...int FindGro
0650: 75 70 28 65 6e 75 6d 20 43 53 68 65 65 74 44 69 up(enum CSheetDi
0660: 72 65 63 74 69 6f 6e 2c 69 6e 74 2c 69 6e 74 2c rection,int,int,
0670: 63 6c 61 73 73 20 43 53 68 65 65 74 53 65 6c 65 class CSheetSele
0680: 63 74 69 6f 6e 20 2a 29 3b 09 2f 2f 31 34 30 0d ction *);.//140.
0690: 0a 09 69 6e 74 20 20 46 69 6e 64 47 72 6f 75 70 ..int FindGroup
06a0: 28 65 6e 75 6d 20 43 53 68 65 65 74 44 69 72 65 (enum CSheetDire
06b0: 63 74 69 6f 6e 2c 63 68 61 72 20 63 6f 6e 73 74 ction,char const
06c0: 20 2a 2c 63 6c 61 73 73 20 43 53 68 65 65 74 53 *,class CSheetS
06d0: 65 6c 65 63 74 69 6f 6e 20 2a 29 3b 09 2f 2f 31 election *);.//1
06e0: 34 31 0d 0a 09 69 6e 74 20 20 46 69 6e 64 50 61 41...int FindPa
06f0: 67 65 42 72 65 61 6b 28 65 6e 75 6d 20 43 53 68 geBreak(enum CSh
0700: 65 65 74 44 69 72 65 63 74 69 6f 6e 2c 69 6e 74 eetDirection,int
0710: 2c 69 6e 74 20 2a 29 63 6f 6e 73 74 3b 09 2f 2f ,int *)const;.//
0720: 31 34 32 0d 0a 09 76 6f 69 64 20 20 46 69 72 65 142...void Fire
0730: 5f 4f 6e 43 6c 6f 73 65 28 76 6f 69 64 29 3b 09 _OnClose(void);.
0740: 2f 2f 31 34 33 0d 0a 09 63 6c 61 73 73 20 43 52 //143...class CR
0750: 65 63 74 20 20 20 47 65 74 41 63 72 6f 73 73 46 ect GetAcrossF
0760: 6f 72 6d 61 74 74 69 6e 67 52 65 63 74 28 69 6e ormattingRect(in
0770: 74 2c 69 6e 74 29 3b 09 2f 2f 31 34 34 0d 0a 09 t,int);.//144...
0780: 63 6c 61 73 73 20 43 53 68 65 65 74 43 65 6c 6c class CSheetCell
0790: 20 26 20 20 47 65 74 43 65 6c 6c 28 69 6e 74 2c & GetCell(int,
07a0: 69 6e 74 29 3b 09 2f 2f 31 35 34 0d 0a 09 76 6f int);.//154...vo
07b0: 69 64 20 20 47 65 74 43 65 6c 6c 41 74 74 72 69 id GetCellAttri
07c0: 62 75 74 65 73 28 69 6e 74 2c 69 6e 74 2c 63 6c butes(int,int,cl
07d0: 61 73 73 20 43 53 68 65 65 74 46 6f 72 6d 61 74 ass CSheetFormat
07e0: 20 26 29 63 6f 6e 73 74 3b 09 2f 2f 31 35 35 0d &)const;.//155.
07f0: 0a 09 76 6f 69 64 20 20 47 65 74 43 65 6c 6c 46 ..void GetCellF
0800: 6f 6e 74 41 74 74 72 69 62 75 74 65 73 28 69 6e ontAttributes(in
0810: 74 2c 69 6e 74 2c 73 74 72 75 63 74 20 74 61 67 t,int,struct tag
0820: 4c 4f 47 46 4f 4e 54 41 20 26 29 63 6f 6e 73 74 LOGFONTA &)const
0830: 3b 09 2f 2f 31 35 36 0d 0a 09 63 6c 61 73 73 20 ;.//156...class
0840: 43 53 68 65 65 74 46 6f 72 6d 61 74 20 26 20 20 CSheetFormat &
0850: 47 65 74 43 6f 6c 28 69 6e 74 29 3b 09 2f 2f 31 GetCol(int);.//1
0860: 35 39 0d 0a 09 63 6c 61 73 73 20 43 53 68 65 65 59...class CShee
0870: 74 46 6f 72 6d 61 74 20 26 20 20 47 65 74 43 6f tFormat & GetCo
0880: 6c 41 74 28 69 6e 74 2c 69 6e 74 20 2a 29 63 6f lAt(int,int *)co
0890: 6e 73 74 3b 09 2f 2f 31 36 30 0d 0a 09 69 6e 74 nst;.//160...int
08a0: 20 20 47 65 74 43 6f 6c 43 6f 75 6e 74 28 76 6f GetColCount(vo
08b0: 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 31 36 31 0d id)const;.//161.
08c0: 0a 09 76 6f 69 64 20 20 47 65 74 43 6f 6c 46 6f ..void GetColFo
08d0: 72 6d 61 74 28 69 6e 74 2c 63 6c 61 73 73 20 43 rmat(int,class C
08e0: 53 68 65 65 74 46 6f 72 6d 61 74 20 26 29 63 6f SheetFormat &)co
08f0: 6e 73 74 3b 09 2f 2f 31 36 32 0d 0a 09 69 6e 74 nst;.//162...int
0900: 20 20 47 65 74 43 6f 6c 4b 65 79 41 74 28 69 6e GetColKeyAt(in
0910: 74 29 63 6f 6e 73 74 3b 09 2f 2f 31 36 33 0d 0a t)const;.//163..
0920: 09 63 6c 61 73 73 20 43 41 72 72 61 79 3c 63 6c .class CArray<cl
0930: 61 73 73 20 43 53 68 65 65 74 4f 75 74 6c 69 6e ass CSheetOutlin
0940: 65 2c 63 6c 61 73 73 20 43 53 68 65 65 74 4f 75 e,class CSheetOu
0950: 74 6c 69 6e 65 20 63 6f 6e 73 74 20 26 3e 20 26 tline const &> &
0960: 20 20 47 65 74 43 6f 6c 4f 75 74 6c 69 6e 65 28 GetColOutline(
0970: 76 6f 69 64 29 3b 09 2f 2f 31 36 34 0d 0a 09 69 void);.//164...i
0980: 6e 74 20 20 47 65 74 43 6f 6c 57 69 64 74 68 28 nt GetColWidth(
0990: 69 6e 74 29 3b 09 2f 2f 31 36 35 0d 0a 09 63 6c int);.//165...cl
09a0: 61 73 73 20 43 53 6f 72 74 41 72 72 61 79 3c 69 ass CSortArray<i
09b0: 6e 74 2c 69 6e 74 2c 63 6c 61 73 73 20 43 53 68 nt,int,class CSh
09c0: 65 65 74 46 6f 72 6d 61 74 20 2a 2c 63 6c 61 73 eetFormat *,clas
09d0: 73 20 43 53 68 65 65 74 46 6f 72 6d 61 74 20 2a s CSheetFormat *
09e0: 3e 20 63 6f 6e 73 74 20 26 20 20 47 65 74 43 6f > const & GetCo
09f0: 6c 75 6d 6e 73 28 76 6f 69 64 29 63 6f 6e 73 74 lumns(void)const
0a00: 3b 09 2f 2f 31 36 39 0d 0a 09 76 6f 69 64 20 20 ;.//169...void
0a10: 47 65 74 44 65 66 46 6f 72 6d 61 74 28 63 6c 61 GetDefFormat(cla
0a20: 73 73 20 43 53 68 65 65 74 46 6f 72 6d 61 74 20 ss CSheetFormat
0a30: 26 29 63 6f 6e 73 74 3b 09 2f 2f 31 37 32 0d 0a &)const;.//172..
0a40: 09 63 6c 61 73 73 20 43 53 68 65 65 74 44 6f 63 .class CSheetDoc
0a50: 20 2a 20 20 47 65 74 44 6f 63 75 6d 65 6e 74 28 * GetDocument(
0a60: 76 6f 69 64 29 3b 09 2f 2f 31 37 34 0d 0a 09 63 void);.//174...c
0a70: 6c 61 73 73 20 43 4c 69 73 74 3c 63 6c 61 73 73 lass CList<class
0a80: 20 43 53 68 65 65 74 44 72 61 77 69 6e 67 20 2a CSheetDrawing *
0a90: 2c 63 6c 61 73 73 20 43 53 68 65 65 74 44 72 61 ,class CSheetDra
0aa0: 77 69 6e 67 20 2a 3e 20 63 6f 6e 73 74 20 26 20 wing *> const &
0ab0: 20 47 65 74 44 72 61 77 69 6e 67 73 28 76 6f 69 GetDrawings(voi
0ac0: 64 29 63 6f 6e 73 74 3b 09 2f 2f 31 37 37 0d 0a d)const;.//177..
0ad0: 09 76 6f 69 64 20 20 47 65 74 44 72 61 77 69 6e .void GetDrawin
0ae0: 67 73 49 6e 52 65 63 74 28 63 6c 61 73 73 20 43 gsInRect(class C
0af0: 52 65 63 74 20 63 6f 6e 73 74 20 26 2c 63 6c 61 Rect const &,cla
0b00: 73 73 20 43 4c 69 73 74 3c 63 6c 61 73 73 20 43 ss CList<class C
0b10: 53 68 65 65 74 44 72 61 77 69 6e 67 20 2a 2c 63 SheetDrawing *,c
0b20: 6c 61 73 73 20 43 53 68 65 65 74 44 72 61 77 69 lass CSheetDrawi
0b30: 6e 67 20 2a 3e 20 26 2c 69 6e 74 29 63 6f 6e 73 ng *> &,int)cons
0b40: 74 3b 09 2f 2f 31 37 38 0d 0a 09 76 6f 69 64 20 t;.//178...void
0b50: 20 47 65 74 46 6f 6e 74 41 74 74 72 69 62 75 74 GetFontAttribut
0b60: 65 73 28 63 6c 61 73 73 20 43 53 68 65 65 74 46 es(class CSheetF
0b70: 6f 72 6d 61 74 20 63 6f 6e 73 74 20 2a 2c 73 74 ormat const *,st
0b80: 72 75 63 74 20 74 61 67 4c 4f 47 46 4f 4e 54 41 ruct tagLOGFONTA
0b90: 20 26 29 63 6f 6e 73 74 3b 09 2f 2f 31 38 32 0d &)const;.//182.
0ba0: 0a 09 69 6e 74 20 20 47 65 74 46 6f 6e 74 4b 65 ..int GetFontKe
0bb0: 79 28 73 74 72 75 63 74 20 74 61 67 4c 4f 47 46 y(struct tagLOGF
0bc0: 4f 4e 54 41 20 63 6f 6e 73 74 20 26 29 3b 09 2f ONTA const &);./
0bd0: 2f 31 38 37 0d 0a 09 63 6c 61 73 73 20 43 53 6f /187...class CSo
0be0: 72 74 41 72 72 61 79 3c 69 6e 74 2c 69 6e 74 2c rtArray<int,int,
0bf0: 73 74 72 75 63 74 20 74 61 67 4c 4f 47 46 4f 4e struct tagLOGFON
0c00: 54 41 2c 73 74 72 75 63 74 20 74 61 67 4c 4f 47 TA,struct tagLOG
0c10: 46 4f 4e 54 41 20 26 3e 20 63 6f 6e 73 74 20 26 FONTA &> const &
0c20: 20 20 47 65 74 46 6f 6e 74 73 28 76 6f 69 64 29 GetFonts(void)
0c30: 63 6f 6e 73 74 3b 09 2f 2f 31 39 31 0d 0a 09 63 const;.//191...c
0c40: 6c 61 73 73 20 43 53 68 65 65 74 43 65 6c 6c 20 lass CSheetCell
0c50: 26 20 20 47 65 74 46 6f 6f 74 65 72 28 76 6f 69 & GetFooter(voi
0c60: 64 29 3b 09 2f 2f 31 39 32 0d 0a 09 75 6e 73 69 d);.//192...unsi
0c70: 67 6e 65 64 20 6c 6f 6e 67 20 20 47 65 74 46 6f gned long GetFo
0c80: 72 6d 61 74 28 63 6c 61 73 73 20 43 4c 69 73 74 rmat(class CList
0c90: 3c 63 6c 61 73 73 20 43 53 68 65 65 74 44 72 61 <class CSheetDra
0ca0: 77 69 6e 67 20 2a 2c 63 6c 61 73 73 20 43 53 68 wing *,class CSh
0cb0: 65 65 74 44 72 61 77 69 6e 67 20 2a 3e 20 63 6f eetDrawing *> co
0cc0: 6e 73 74 20 26 2c 63 6c 61 73 73 20 43 53 68 65 nst &,class CShe
0cd0: 65 74 43 65 6c 6c 20 26 29 3b 09 2f 2f 31 39 33 etCell &);.//193
0ce0: 0d 0a 09 75 6e 73 69 67 6e 65 64 20 6c 6f 6e 67 ...unsigned long
0cf0: 20 20 47 65 74 46 6f 72 6d 61 74 28 63 6c 61 73 GetFormat(clas
0d00: 73 20 43 53 68 65 65 74 53 65 6c 65 63 74 69 6f s CSheetSelectio
0d10: 6e 20 63 6f 6e 73 74 20 26 2c 63 6c 61 73 73 20 n const &,class
0d20: 43 53 68 65 65 74 43 65 6c 6c 20 26 29 3b 09 2f CSheetCell &);./
0d30: 2f 31 39 34 0d 0a 09 69 6e 74 20 20 47 65 74 47 /194...int GetG
0d40: 72 6f 75 70 50 61 72 74 28 63 68 61 72 20 63 6f roupPart(char co
0d50: 6e 73 74 20 2a 2c 63 6c 61 73 73 20 43 53 68 65 nst *,class CShe
0d60: 65 74 53 65 6c 65 63 74 69 6f 6e 20 26 2c 65 6e etSelection &,en
0d70: 75 6d 20 43 53 68 65 65 74 47 72 6f 75 70 50 61 um CSheetGroupPa
0d80: 72 74 29 3b 09 2f 2f 31 39 37 0d 0a 09 69 6e 74 rt);.//197...int
0d90: 20 20 47 65 74 47 72 6f 75 70 50 61 72 74 28 65 GetGroupPart(e
0da0: 6e 75 6d 20 43 53 68 65 65 74 44 69 72 65 63 74 num CSheetDirect
0db0: 69 6f 6e 2c 69 6e 74 2c 63 6c 61 73 73 20 43 53 ion,int,class CS
0dc0: 68 65 65 74 53 65 6c 65 63 74 69 6f 6e 20 26 2c heetSelection &,
0dd0: 65 6e 75 6d 20 43 53 68 65 65 74 47 72 6f 75 70 enum CSheetGroup
0de0: 50 61 72 74 29 3b 09 2f 2f 31 39 38 0d 0a 09 69 Part);.//198...i
0df0: 6e 74 20 20 47 65 74 47 72 6f 75 70 50 61 72 74 nt GetGroupPart
0e00: 28 65 6e 75 6d 20 43 53 68 65 65 74 44 69 72 65 (enum CSheetDire
0e10: 63 74 69 6f 6e 2c 63 68 61 72 20 63 6f 6e 73 74 ction,char const
0e20: 20 2a 2c 63 6c 61 73 73 20 43 53 68 65 65 74 53 *,class CSheetS
0e30: 65 6c 65 63 74 69 6f 6e 20 26 2c 65 6e 75 6d 20 election &,enum
0e40: 43 53 68 65 65 74 47 72 6f 75 70 50 61 72 74 29 CSheetGroupPart)
0e50: 3b 09 2f 2f 31 39 39 0d 0a 09 76 6f 69 64 20 20 ;.//199...void
0e60: 47 65 74 47 72 6f 75 70 53 65 6c 65 63 74 69 6f GetGroupSelectio
0e70: 6e 28 65 6e 75 6d 20 43 53 68 65 65 74 44 69 72 n(enum CSheetDir
0e80: 65 63 74 69 6f 6e 2c 69 6e 74 2c 63 6c 61 73 73 ection,int,class
0e90: 20 43 53 68 65 65 74 53 65 6c 65 63 74 69 6f 6e CSheetSelection
0ea0: 20 26 29 3b 09 2f 2f 32 30 30 0d 0a 09 63 6c 61 &);.//200...cla
0eb0: 73 73 20 43 53 68 65 65 74 43 65 6c 6c 20 26 20 ss CSheetCell &
0ec0: 20 47 65 74 48 65 61 64 65 72 28 76 6f 69 64 29 GetHeader(void)
0ed0: 3b 09 2f 2f 32 30 31 0d 0a 09 73 74 61 74 69 63 ;.//201...static
0ee0: 20 69 6e 74 20 20 47 65 74 4c 69 6e 65 43 6f 75 int GetLineCou
0ef0: 6e 74 4f 66 53 74 72 69 6e 67 28 63 68 61 72 20 ntOfString(char
0f00: 63 6f 6e 73 74 20 2a 29 3b 09 2f 2f 32 30 35 0d const *);.//205.
0f10: 0a 09 63 6c 61 73 73 20 43 53 6f 72 74 41 72 72 ..class CSortArr
0f20: 61 79 3c 69 6e 74 2c 69 6e 74 2c 63 6c 61 73 73 ay<int,int,class
0f30: 20 43 53 74 72 69 6e 67 2c 63 68 61 72 20 63 6f CString,char co
0f40: 6e 73 74 20 2a 3e 20 63 6f 6e 73 74 20 26 20 20 nst *> const &
0f50: 47 65 74 4d 61 73 6b 73 28 76 6f 69 64 29 63 6f GetMasks(void)co
0f60: 6e 73 74 3b 09 2f 2f 32 30 39 0d 0a 09 63 6c 61 nst;.//209...cla
0f70: 73 73 20 43 52 65 63 74 20 20 20 47 65 74 4d 65 ss CRect GetMe
0f80: 72 67 65 28 69 6e 74 2c 69 6e 74 29 63 6f 6e 73 rge(int,int)cons
0f90: 74 3b 09 2f 2f 32 31 30 0d 0a 09 63 6c 61 73 73 t;.//210...class
0fa0: 20 43 4c 69 73 74 3c 63 6c 61 73 73 20 43 52 65 CList<class CRe
0fb0: 63 74 2c 73 74 72 75 63 74 20 74 61 67 52 45 43 ct,struct tagREC
0fc0: 54 20 63 6f 6e 73 74 20 2a 3e 20 26 20 20 47 65 T const *> & Ge
0fd0: 74 4d 65 72 67 65 73 28 76 6f 69 64 29 3b 09 2f tMerges(void);./
0fe0: 2f 32 31 31 0d 0a 09 63 6c 61 73 73 20 43 53 68 /211...class CSh
0ff0: 65 65 74 4e 61 6d 65 73 20 63 6f 6e 73 74 20 26 eetNames const &
1000: 20 20 47 65 74 4e 61 6d 65 73 28 76 6f 69 64 29 GetNames(void)
1010: 63 6f 6e 73 74 3b 09 2f 2f 32 31 34 0d 0a 09 63 const;.//214...c
1020: 6c 61 73 73 20 43 41 72 72 61 79 3c 63 6c 61 73 lass CArray<clas
1030: 73 20 43 53 68 65 65 74 4f 75 74 6c 69 6e 65 2c s CSheetOutline,
1040: 63 6c 61 73 73 20 43 53 68 65 65 74 4f 75 74 6c class CSheetOutl
1050: 69 6e 65 20 63 6f 6e 73 74 20 26 3e 20 26 20 20 ine const &> &
1060: 47 65 74 4f 75 74 6c 69 6e 65 28 65 6e 75 6d 20 GetOutline(enum
1070: 43 53 68 65 65 74 44 69 72 65 63 74 69 6f 6e 29 CSheetDirection)
1080: 3b 09 2f 2f 32 32 30 0d 0a 09 69 6e 74 20 20 47 ;.//220...int G
1090: 65 74 50 61 67 65 42 72 65 61 6b 41 74 28 65 6e etPageBreakAt(en
10a0: 75 6d 20 43 53 68 65 65 74 44 69 72 65 63 74 69 um CSheetDirecti
10b0: 6f 6e 2c 69 6e 74 29 63 6f 6e 73 74 3b 09 2f 2f on,int)const;.//
10c0: 32 32 31 0d 0a 09 69 6e 74 20 20 47 65 74 50 61 221...int GetPa
10d0: 67 65 42 72 65 61 6b 43 6f 75 6e 74 28 65 6e 75 geBreakCount(enu
10e0: 6d 20 43 53 68 65 65 74 44 69 72 65 63 74 69 6f m CSheetDirectio
10f0: 6e 29 63 6f 6e 73 74 3b 09 2f 2f 32 32 32 0d 0a n)const;.//222..
1100: 09 63 6c 61 73 73 20 43 41 72 72 61 79 3c 69 6e .class CArray<in
1110: 74 2c 69 6e 74 3e 20 26 20 20 47 65 74 50 61 67 t,int> & GetPag
1120: 65 42 72 65 61 6b 73 28 65 6e 75 6d 20 43 53 68 eBreaks(enum CSh
1130: 65 65 74 44 69 72 65 63 74 69 6f 6e 29 3b 09 2f eetDirection);./
1140: 2f 32 32 33 0d 0a 09 63 6c 61 73 73 20 43 53 68 /223...class CSh
1150: 65 65 74 52 6f 77 20 26 20 20 47 65 74 52 6f 77 eetRow & GetRow
1160: 28 69 6e 74 29 3b 09 2f 2f 32 33 32 0d 0a 09 63 (int);.//232...c
1170: 6c 61 73 73 20 43 53 68 65 65 74 52 6f 77 20 26 lass CSheetRow &
1180: 20 20 47 65 74 52 6f 77 41 74 28 69 6e 74 2c 69 GetRowAt(int,i
1190: 6e 74 20 2a 29 63 6f 6e 73 74 3b 09 2f 2f 32 33 nt *)const;.//23
11a0: 33 0d 0a 09 69 6e 74 20 20 47 65 74 52 6f 77 43 3...int GetRowC
11b0: 6f 75 6e 74 28 76 6f 69 64 29 63 6f 6e 73 74 3b ount(void)const;
11c0: 09 2f 2f 32 33 34 0d 0a 09 76 6f 69 64 20 20 47 .//234...void G
11d0: 65 74 52 6f 77 46 6f 72 6d 61 74 28 69 6e 74 2c etRowFormat(int,
11e0: 63 6c 61 73 73 20 43 53 68 65 65 74 46 6f 72 6d class CSheetForm
11f0: 61 74 20 26 29 63 6f 6e 73 74 3b 09 2f 2f 32 33 at &)const;.//23
1200: 35 0d 0a 09 69 6e 74 20 20 47 65 74 52 6f 77 4b 5...int GetRowK
1210: 65 79 41 74 28 69 6e 74 29 63 6f 6e 73 74 3b 09 eyAt(int)const;.
1220: 2f 2f 32 33 38 0d 0a 09 63 6c 61 73 73 20 43 41 //238...class CA
1230: 72 72 61 79 3c 63 6c 61 73 73 20 43 53 68 65 65 rray<class CShee
1240: 74 4f 75 74 6c 69 6e 65 2c 63 6c 61 73 73 20 43 tOutline,class C
1250: 53 68 65 65 74 4f 75 74 6c 69 6e 65 20 63 6f 6e SheetOutline con
1260: 73 74 20 26 3e 20 26 20 20 47 65 74 52 6f 77 4f st &> & GetRowO
1270: 75 74 6c 69 6e 65 28 76 6f 69 64 29 3b 09 2f 2f utline(void);.//
1280: 32 33 39 0d 0a 09 63 6c 61 73 73 20 43 53 6f 72 239...class CSor
1290: 74 41 72 72 61 79 3c 69 6e 74 2c 69 6e 74 2c 63 tArray<int,int,c
12a0: 6c 61 73 73 20 43 53 68 65 65 74 52 6f 77 20 2a lass CSheetRow *
12b0: 2c 63 6c 61 73 73 20 43 53 68 65 65 74 52 6f 77 ,class CSheetRow
12c0: 20 2a 3e 20 63 6f 6e 73 74 20 26 20 20 47 65 74 *> const & Get
12d0: 52 6f 77 73 28 76 6f 69 64 29 63 6f 6e 73 74 3b Rows(void)const;
12e0: 09 2f 2f 32 34 31 0d 0a 09 76 6f 69 64 20 20 47 .//241...void G
12f0: 65 74 53 65 6c 65 63 74 69 6f 6e 52 65 63 74 73 etSelectionRects
1300: 28 63 6c 61 73 73 20 43 53 68 65 65 74 53 65 6c (class CSheetSel
1310: 65 63 74 69 6f 6e 20 63 6f 6e 73 74 20 26 2c 69 ection const &,i
1320: 6e 74 2c 63 6c 61 73 73 20 43 52 65 63 74 20 26 nt,class CRect &
1330: 2c 63 6c 61 73 73 20 43 52 65 63 74 20 26 2c 63 ,class CRect &,c
1340: 6c 61 73 73 20 43 52 65 63 74 20 26 29 63 6f 6e lass CRect &)con
1350: 73 74 3b 09 2f 2f 32 35 35 0d 0a 09 73 74 72 75 st;.//255...stru
1360: 63 74 20 49 53 68 65 65 74 48 6f 6f 6b 20 2a 20 ct ISheetHook *
1370: 20 47 65 74 53 68 65 65 74 48 6f 6f 6b 28 76 6f GetSheetHook(vo
1380: 69 64 29 3b 09 2f 2f 32 35 37 0d 0a 09 63 6c 61 id);.//257...cla
1390: 73 73 20 43 53 69 7a 65 20 20 20 47 65 74 53 69 ss CSize GetSi
13a0: 7a 65 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f ze(void)const;./
13b0: 2f 32 35 38 0d 0a 09 73 74 61 74 69 63 20 76 6f /258...static vo
13c0: 69 64 20 20 47 65 74 53 74 61 6e 64 61 72 64 46 id GetStandardF
13d0: 6f 6e 74 28 73 74 72 75 63 74 20 74 61 67 4c 4f ont(struct tagLO
13e0: 47 46 4f 4e 54 41 20 26 29 3b 09 2f 2f 32 35 39 GFONTA &);.//259
13f0: 0d 0a 09 69 6e 74 20 20 47 72 6f 75 70 28 63 6c ...int Group(cl
1400: 61 73 73 20 43 53 68 65 65 74 53 65 6c 65 63 74 ass CSheetSelect
1410: 69 6f 6e 20 63 6f 6e 73 74 20 26 2c 65 6e 75 6d ion const &,enum
1420: 20 43 53 68 65 65 74 44 69 72 65 63 74 69 6f 6e CSheetDirection
1430: 29 3b 09 2f 2f 32 37 36 0d 0a 09 76 6f 69 64 20 );.//276...void
1440: 20 49 6e 73 65 72 74 28 63 6c 61 73 73 20 43 53 Insert(class CS
1450: 68 65 65 74 53 65 6c 65 63 74 69 6f 6e 20 63 6f heetSelection co
1460: 6e 73 74 20 26 2c 69 6e 74 29 3b 09 2f 2f 32 37 nst &,int);.//27
1470: 39 0d 0a 09 76 6f 69 64 20 20 49 6e 73 65 72 74 9...void Insert
1480: 43 65 6c 6c 73 28 63 6c 61 73 73 20 43 53 68 65 Cells(class CShe
1490: 65 74 53 65 6c 65 63 74 69 6f 6e 20 63 6f 6e 73 etSelection cons
14a0: 74 20 26 2c 69 6e 74 29 3b 09 2f 2f 32 38 31 0d t &,int);.//281.
14b0: 0a 09 76 6f 69 64 20 20 49 6e 73 65 72 74 44 72 ..void InsertDr
14c0: 61 77 69 6e 67 28 63 6c 61 73 73 20 43 53 68 65 awing(class CShe
14d0: 65 74 44 72 61 77 69 6e 67 20 2a 2c 63 6c 61 73 etDrawing *,clas
14e0: 73 20 43 53 68 65 65 74 44 72 61 77 69 6e 67 20 s CSheetDrawing
14f0: 2a 29 3b 09 2f 2f 32 38 32 0d 0a 09 63 6c 61 73 *);.//282...clas
1500: 73 20 43 53 68 65 65 74 44 72 61 77 69 6e 67 20 s CSheetDrawing
1510: 2a 20 20 49 6e 73 65 72 74 4f 6c 65 4f 62 6a 65 * InsertOleObje
1520: 63 74 28 63 6c 61 73 73 20 43 53 68 65 65 74 52 ct(class CSheetR
1530: 65 63 74 20 63 6f 6e 73 74 20 26 2c 73 74 72 75 ect const &,stru
1540: 63 74 20 5f 47 55 49 44 20 63 6f 6e 73 74 20 26 ct _GUID const &
1550: 29 3b 09 2f 2f 32 38 33 0d 0a 09 73 74 61 74 69 );.//283...stati
1560: 63 20 69 6e 74 20 20 49 73 43 65 6c 6c 4d 61 74 c int IsCellMat
1570: 63 68 28 63 6c 61 73 73 20 43 53 68 65 65 74 43 ch(class CSheetC
1580: 65 6c 6c 20 2a 2c 63 68 61 72 20 63 6f 6e 73 74 ell *,char const
1590: 20 2a 2c 75 6e 73 69 67 6e 65 64 20 6c 6f 6e 67 *,unsigned long
15a0: 29 3b 09 2f 2f 32 38 37 0d 0a 09 73 74 61 74 69 );.//287...stati
15b0: 63 20 69 6e 74 20 20 49 73 53 74 72 69 6e 67 4d c int IsStringM
15c0: 61 74 63 68 28 63 68 61 72 20 63 6f 6e 73 74 20 atch(char const
15d0: 2a 2c 63 68 61 72 20 63 6f 6e 73 74 20 2a 2c 75 *,char const *,u
15e0: 6e 73 69 67 6e 65 64 20 6c 6f 6e 67 29 3b 09 2f nsigned long);./
15f0: 2f 33 30 30 0d 0a 09 76 6f 69 64 20 20 4c 6f 61 /300...void Loa
1600: 64 46 72 6f 6d 53 74 72 69 6e 67 28 63 68 61 72 dFromString(char
1610: 20 63 6f 6e 73 74 20 2a 29 3b 09 2f 2f 33 30 34 const *);.//304
1620: 0d 0a 09 69 6e 74 20 20 4c 6f 6f 6b 75 70 43 65 ...int LookupCe
1630: 6c 6c 28 69 6e 74 2c 69 6e 74 2c 63 6c 61 73 73 ll(int,int,class
1640: 20 43 53 68 65 65 74 43 65 6c 6c 20 2a 20 26 29 CSheetCell * &)
1650: 63 6f 6e 73 74 3b 09 2f 2f 33 30 38 0d 0a 09 69 const;.//308...i
1660: 6e 74 20 20 4c 6f 6f 6b 75 70 43 6f 6c 28 69 6e nt LookupCol(in
1670: 74 2c 63 6c 61 73 73 20 43 53 68 65 65 74 46 6f t,class CSheetFo
1680: 72 6d 61 74 20 2a 20 26 2c 69 6e 74 20 2a 29 63 rmat * &,int *)c
1690: 6f 6e 73 74 3b 09 2f 2f 33 30 39 0d 0a 09 69 6e onst;.//309...in
16a0: 74 20 20 4c 6f 6f 6b 75 70 43 6f 6c 4b 65 79 28 t LookupColKey(
16b0: 69 6e 74 2c 69 6e 74 20 2a 29 63 6f 6e 73 74 3b int,int *)const;
16c0: 09 2f 2f 33 31 30 0d 0a 09 69 6e 74 20 20 4c 6f .//310...int Lo
16d0: 6f 6b 75 70 4d 65 72 67 65 28 69 6e 74 2c 69 6e okupMerge(int,in
16e0: 74 2c 63 6c 61 73 73 20 43 52 65 63 74 20 26 29 t,class CRect &)
16f0: 63 6f 6e 73 74 3b 09 2f 2f 33 31 32 0d 0a 09 69 const;.//312...i
1700: 6e 74 20 20 4c 6f 6f 6b 75 70 4d 65 72 67 65 28 nt LookupMerge(
1710: 63 6c 61 73 73 20 43 52 65 63 74 2c 63 6c 61 73 class CRect,clas
1720: 73 20 43 52 65 63 74 20 26 29 63 6f 6e 73 74 3b s CRect &)const;
1730: 09 2f 2f 33 31 33 0d 0a 09 69 6e 74 20 20 4c 6f .//313...int Lo
1740: 6f 6b 75 70 4e 61 6d 65 28 63 6c 61 73 73 20 43 okupName(class C
1750: 53 74 72 69 6e 67 20 63 6f 6e 73 74 20 26 2c 63 String const &,c
1760: 6c 61 73 73 20 43 53 68 65 65 74 4e 61 6d 65 64 lass CSheetNamed
1770: 49 74 65 6d 20 26 29 63 6f 6e 73 74 3b 09 2f 2f Item &)const;.//
1780: 33 31 34 0d 0a 09 69 6e 74 20 20 4c 6f 6f 6b 75 314...int Looku
1790: 70 52 6f 77 28 69 6e 74 2c 63 6c 61 73 73 20 43 pRow(int,class C
17a0: 53 68 65 65 74 52 6f 77 20 2a 20 26 2c 69 6e 74 SheetRow * &,int
17b0: 20 2a 29 63 6f 6e 73 74 3b 09 2f 2f 33 31 38 0d *)const;.//318.
17c0: 0a 09 69 6e 74 20 20 4c 6f 6f 6b 75 70 52 6f 77 ..int LookupRow
17d0: 4b 65 79 28 69 6e 74 2c 69 6e 74 20 2a 29 63 6f Key(int,int *)co
17e0: 6e 73 74 3b 09 2f 2f 33 31 39 0d 0a 09 76 6f 69 nst;.//319...voi
17f0: 64 20 20 4d 65 72 67 65 28 73 74 72 75 63 74 20 d Merge(struct
1800: 74 61 67 52 45 43 54 20 63 6f 6e 73 74 20 2a 29 tagRECT const *)
1810: 3b 09 2f 2f 33 32 30 0d 0a 70 72 6f 74 65 63 74 ;.//320..protect
1820: 65 64 3a 0d 0a 09 76 6f 69 64 20 20 4d 65 72 67 ed:...void Merg
1830: 65 52 65 63 74 28 63 6c 61 73 73 20 43 52 65 63 eRect(class CRec
1840: 74 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 33 32 t const &);.//32
1850: 31 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 76 6f 69 1..public:...voi
1860: 64 20 20 4d 6f 64 69 66 79 43 6f 6c 4b 65 79 28 d ModifyColKey(
1870: 69 6e 74 2c 69 6e 74 29 3b 09 2f 2f 33 32 32 0d int,int);.//322.
1880: 0a 09 76 6f 69 64 20 20 4d 6f 64 69 66 79 52 6f ..void ModifyRo
1890: 77 4b 65 79 28 69 6e 74 2c 69 6e 74 29 3b 09 2f wKey(int,int);./
18a0: 2f 33 32 34 0d 0a 09 76 6f 69 64 20 20 4d 6f 76 /324...void Mov
18b0: 65 44 72 61 77 69 6e 67 28 63 6c 61 73 73 20 43 eDrawing(class C
18c0: 53 68 65 65 74 44 72 61 77 69 6e 67 20 2a 2c 63 SheetDrawing *,c
18d0: 6c 61 73 73 20 43 53 68 65 65 74 52 65 63 74 20 lass CSheetRect
18e0: 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 33 32 35 0d const &);.//325.
18f0: 0a 09 76 6f 69 64 20 20 4f 75 74 6c 69 6e 65 53 ..void OutlineS
1900: 65 6c 65 63 74 69 6f 6e 28 63 6c 61 73 73 20 43 election(class C
1910: 53 68 65 65 74 53 65 6c 65 63 74 69 6f 6e 20 63 SheetSelection c
1920: 6f 6e 73 74 20 26 2c 63 6c 61 73 73 20 43 53 68 onst &,class CSh
1930: 65 65 74 46 6f 72 6d 61 74 20 63 6f 6e 73 74 20 eetFormat const
1940: 26 29 3b 09 2f 2f 33 34 34 0d 0a 09 76 6f 69 64 &);.//344...void
1950: 20 20 50 61 73 74 65 43 65 6c 6c 73 28 63 6c 61 PasteCells(cla
1960: 73 73 20 43 53 68 65 65 74 20 63 6f 6e 73 74 20 ss CSheet const
1970: 26 2c 63 6c 61 73 73 20 43 53 68 65 65 74 53 65 &,class CSheetSe
1980: 6c 65 63 74 69 6f 6e 20 63 6f 6e 73 74 20 26 2c lection const &,
1990: 75 6e 73 69 67 6e 65 64 20 6c 6f 6e 67 29 3b 09 unsigned long);.
19a0: 2f 2f 33 34 37 0d 0a 09 76 6f 69 64 20 20 50 61 //347...void Pa
19b0: 73 74 65 43 65 6c 6c 73 28 63 6c 61 73 73 20 43 steCells(class C
19c0: 53 68 65 65 74 20 63 6f 6e 73 74 20 26 2c 69 6e Sheet const &,in
19d0: 74 2c 69 6e 74 2c 65 6e 75 6d 20 43 53 68 65 65 t,int,enum CShee
19e0: 74 53 65 6c 65 63 74 54 79 70 65 2c 75 6e 73 69 tSelectType,unsi
19f0: 67 6e 65 64 20 6c 6f 6e 67 29 3b 09 2f 2f 33 34 gned long);.//34
1a00: 38 0d 0a 09 76 6f 69 64 20 20 50 61 73 74 65 53 8...void PasteS
1a10: 68 65 65 74 28 63 6c 61 73 73 20 43 53 68 65 65 heet(class CShee
1a20: 74 20 63 6f 6e 73 74 20 26 2c 63 6c 61 73 73 20 t const &,class
1a30: 43 53 68 65 65 74 53 65 6c 65 63 74 69 6f 6e 20 CSheetSelection
1a40: 63 6f 6e 73 74 20 26 2c 75 6e 73 69 67 6e 65 64 const &,unsigned
1a50: 20 6c 6f 6e 67 29 3b 09 2f 2f 33 34 39 0d 0a 09 long);.//349...
1a60: 76 6f 69 64 20 20 50 61 73 74 65 53 68 65 65 74 void PasteSheet
1a70: 28 63 6c 61 73 73 20 43 53 68 65 65 74 20 63 6f (class CSheet co
1a80: 6e 73 74 20 26 2c 69 6e 74 2c 69 6e 74 2c 65 6e nst &,int,int,en
1a90: 75 6d 20 43 53 68 65 65 74 53 65 6c 65 63 74 54 um CSheetSelectT
1aa0: 79 70 65 2c 75 6e 73 69 67 6e 65 64 20 6c 6f 6e ype,unsigned lon
1ab0: 67 29 3b 09 2f 2f 33 35 30 0d 0a 09 73 74 61 74 g);.//350...stat
1ac0: 69 63 20 63 68 61 72 20 63 6f 6e 73 74 20 2a 20 ic char const *
1ad0: 20 52 65 61 64 43 6c 69 70 62 6f 61 72 64 53 74 ReadClipboardSt
1ae0: 72 69 6e 67 28 63 68 61 72 20 63 6f 6e 73 74 20 ring(char const
1af0: 2a 2c 63 6c 61 73 73 20 43 53 74 72 69 6e 67 20 *,class CString
1b00: 26 29 3b 09 2f 2f 33 35 35 0d 0a 09 76 6f 69 64 &);.//355...void
1b10: 20 20 52 65 6d 6f 76 65 41 6c 6c 28 76 6f 69 64 RemoveAll(void
1b20: 29 3b 09 2f 2f 33 35 37 0d 0a 09 76 6f 69 64 20 );.//357...void
1b30: 20 52 65 6d 6f 76 65 41 6c 6c 43 6f 6c 73 28 76 RemoveAllCols(v
1b40: 6f 69 64 29 3b 09 2f 2f 33 35 39 0d 0a 09 76 6f oid);.//359...vo
1b50: 69 64 20 20 52 65 6d 6f 76 65 41 6c 6c 44 72 61 id RemoveAllDra
1b60: 77 69 6e 67 73 28 76 6f 69 64 29 3b 09 2f 2f 33 wings(void);.//3
1b70: 36 30 0d 0a 09 76 6f 69 64 20 20 52 65 6d 6f 76 60...void Remov
1b80: 65 41 6c 6c 52 6f 77 73 28 76 6f 69 64 29 3b 09 eAllRows(void);.
1b90: 2f 2f 33 36 33 0d 0a 09 69 6e 74 20 20 52 65 6d //363...int Rem
1ba0: 6f 76 65 43 6f 6c 28 69 6e 74 29 3b 09 2f 2f 33 oveCol(int);.//3
1bb0: 36 35 0d 0a 09 76 6f 69 64 20 20 52 65 6d 6f 76 65...void Remov
1bc0: 65 50 61 67 65 42 72 65 61 6b 28 65 6e 75 6d 20 ePageBreak(enum
1bd0: 43 53 68 65 65 74 44 69 72 65 63 74 69 6f 6e 2c CSheetDirection,
1be0: 69 6e 74 29 3b 09 2f 2f 33 36 37 0d 0a 09 69 6e int);.//367...in
1bf0: 74 20 20 52 65 6d 6f 76 65 52 6f 77 28 69 6e 74 t RemoveRow(int
1c00: 29 3b 09 2f 2f 33 37 31 0d 0a 09 73 74 61 74 69 );.//371...stati
1c10: 63 20 76 6f 69 64 20 20 52 65 70 6c 61 63 65 43 c void ReplaceC
1c20: 65 6c 6c 54 65 78 74 28 63 6c 61 73 73 20 43 53 ellText(class CS
1c30: 68 65 65 74 43 65 6c 6c 20 2a 2c 63 68 61 72 20 heetCell *,char
1c40: 63 6f 6e 73 74 20 2a 2c 75 6e 73 69 67 6e 65 64 const *,unsigned
1c50: 20 6c 6f 6e 67 2c 63 68 61 72 20 63 6f 6e 73 74 long,char const
1c60: 20 2a 29 3b 09 2f 2f 33 37 32 0d 0a 09 73 74 61 *);.//372...sta
1c70: 74 69 63 20 63 6c 61 73 73 20 43 53 74 72 69 6e tic class CStrin
1c80: 67 20 20 20 52 65 70 6c 61 63 65 53 74 72 69 6e g ReplaceStrin
1c90: 67 28 63 68 61 72 20 63 6f 6e 73 74 20 2a 2c 63 g(char const *,c
1ca0: 68 61 72 20 63 6f 6e 73 74 20 2a 2c 75 6e 73 69 har const *,unsi
1cb0: 67 6e 65 64 20 6c 6f 6e 67 2c 63 68 61 72 20 63 gned long,char c
1cc0: 6f 6e 73 74 20 2a 29 3b 09 2f 2f 33 37 33 0d 0a onst *);.//373..
1cd0: 09 76 6f 69 64 20 20 53 61 76 65 41 73 53 74 72 .void SaveAsStr
1ce0: 69 6e 67 28 63 6c 61 73 73 20 43 41 72 63 68 69 ing(class CArchi
1cf0: 76 65 20 26 29 3b 09 2f 2f 33 37 35 0d 0a 09 76 ve &);.//375...v
1d00: 69 72 74 75 61 6c 20 76 6f 69 64 20 20 53 65 72 irtual void Ser
1d10: 69 61 6c 69 7a 65 28 63 6c 61 73 73 20 43 41 72 ialize(class CAr
1d20: 63 68 69 76 65 20 26 29 3b 09 2f 2f 33 38 38 0d chive &);.//388.
1d30: 0a 09 76 6f 69 64 20 20 53 65 74 43 6f 6c 46 6f ..void SetColFo
1d40: 72 6d 61 74 28 69 6e 74 2c 63 6c 61 73 73 20 43 rmat(int,class C
1d50: 53 68 65 65 74 46 6f 72 6d 61 74 20 63 6f 6e 73 SheetFormat cons
1d60: 74 20 26 29 3b 09 2f 2f 33 39 37 0d 0a 09 76 6f t &);.//397...vo
1d70: 69 64 20 20 53 65 74 44 65 66 46 6f 72 6d 61 74 id SetDefFormat
1d80: 28 63 6c 61 73 73 20 43 53 68 65 65 74 46 6f 72 (class CSheetFor
1d90: 6d 61 74 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f mat const &);.//
1da0: 33 39 38 0d 0a 09 76 6f 69 64 20 20 53 65 74 4e 398...void SetN
1db0: 61 6d 65 28 63 6c 61 73 73 20 43 53 74 72 69 6e ame(class CStrin
1dc0: 67 20 63 6f 6e 73 74 20 26 2c 63 6c 61 73 73 20 g const &,class
1dd0: 43 53 68 65 65 74 4e 61 6d 65 64 49 74 65 6d 20 CSheetNamedItem
1de0: 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 34 30 35 0d const &);.//405.
1df0: 0a 09 76 6f 69 64 20 20 53 65 74 50 61 67 65 42 ..void SetPageB
1e00: 72 65 61 6b 28 65 6e 75 6d 20 43 53 68 65 65 74 reak(enum CSheet
1e10: 44 69 72 65 63 74 69 6f 6e 2c 69 6e 74 29 3b 09 Direction,int);.
1e20: 2f 2f 34 30 38 0d 0a 09 76 6f 69 64 20 20 53 65 //408...void Se
1e30: 74 52 6f 77 46 6f 72 6d 61 74 28 69 6e 74 2c 63 tRowFormat(int,c
1e40: 6c 61 73 73 20 43 53 68 65 65 74 46 6f 72 6d 61 lass CSheetForma
1e50: 74 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 34 32 t const &);.//42
1e60: 35 0d 0a 09 6c 6f 6e 67 20 20 53 65 74 53 68 65 5...long SetShe
1e70: 65 74 48 6f 6f 6b 28 73 74 72 75 63 74 20 49 53 etHook(struct IS
1e80: 68 65 65 74 48 6f 6f 6b 20 2a 29 3b 09 2f 2f 34 heetHook *);.//4
1e90: 32 37 0d 0a 09 76 6f 69 64 20 20 53 65 74 53 69 27...void SetSi
1ea0: 7a 65 28 63 6c 61 73 73 20 43 53 69 7a 65 20 63 ze(class CSize c
1eb0: 6f 6e 73 74 20 26 29 3b 09 2f 2f 34 32 38 0d 0a onst &);.//428..
1ec0: 09 73 74 61 74 69 63 20 76 6f 69 64 20 20 53 65 .static void Se
1ed0: 74 53 74 61 6e 64 61 72 64 46 6f 6e 74 28 73 74 tStandardFont(st
1ee0: 72 75 63 74 20 74 61 67 4c 4f 47 46 4f 4e 54 41 ruct tagLOGFONTA
1ef0: 20 26 29 3b 09 2f 2f 34 32 39 0d 0a 09 76 6f 69 &);.//429...voi
1f00: 64 20 20 55 6e 47 72 6f 75 70 28 63 6c 61 73 73 d UnGroup(class
1f10: 20 43 53 68 65 65 74 53 65 6c 65 63 74 69 6f 6e CSheetSelection
1f20: 20 63 6f 6e 73 74 20 26 2c 65 6e 75 6d 20 43 53 const &,enum CS
1f30: 68 65 65 74 44 69 72 65 63 74 69 6f 6e 29 3b 09 heetDirection);.
1f40: 2f 2f 34 33 38 0d 0a 09 69 6e 74 20 20 55 6e 4d //438...int UnM
1f50: 65 72 67 65 28 69 6e 74 2c 69 6e 74 29 3b 09 2f erge(int,int);./
1f60: 2f 34 33 39 0d 0a 09 76 6f 69 64 20 20 55 6e 4d /439...void UnM
1f70: 65 72 67 65 28 63 6c 61 73 73 20 43 53 68 65 65 erge(class CShee
1f80: 74 53 65 6c 65 63 74 69 6f 6e 20 63 6f 6e 73 74 tSelection const
1f90: 20 26 2c 69 6e 74 29 3b 09 2f 2f 34 34 30 0d 0a &,int);.//440..
1fa0: 70 72 6f 74 65 63 74 65 64 3a 0d 0a 09 76 6f 69 protected:...voi
1fb0: 64 20 20 55 6e 4d 65 72 67 65 52 65 63 74 28 63 d UnMergeRect(c
1fc0: 6c 61 73 73 20 43 52 65 63 74 20 63 6f 6e 73 74 lass CRect const
1fd0: 20 26 29 3b 09 2f 2f 34 34 31 0d 0a 70 75 62 6c &);.//441..publ
1fe0: 69 63 3a 0d 0a 09 73 74 61 74 69 63 20 76 6f 69 ic:...static voi
1ff0: 64 20 20 57 72 69 74 65 43 6c 69 70 62 6f 61 72 d WriteClipboar
2000: 64 53 74 72 69 6e 67 28 63 6c 61 73 73 20 43 41 dString(class CA
2010: 72 63 68 69 76 65 20 26 2c 63 68 61 72 20 63 6f rchive &,char co
2020: 6e 73 74 20 2a 29 3b 09 2f 2f 34 34 35 0d 0a 09 nst *);.//445...
2030: 73 74 61 74 69 63 20 75 6e 73 69 67 6e 65 64 20 static unsigned
2040: 73 68 6f 72 74 20 63 6f 6e 73 74 20 20 6d 5f 63 short const m_c
2050: 66 44 72 61 77 69 6e 67 3b 09 2f 2f 34 38 35 0d fDrawing;.//485.
2060: 0a 09 73 74 61 74 69 63 20 75 6e 73 69 67 6e 65 ..static unsigne
2070: 64 20 73 68 6f 72 74 20 63 6f 6e 73 74 20 20 6d d short const m
2080: 5f 63 66 45 6d 62 65 64 64 65 64 4f 62 6a 65 63 _cfEmbeddedObjec
2090: 74 3b 09 2f 2f 34 38 36 0d 0a 09 73 74 61 74 69 t;.//486...stati
20a0: 63 20 75 6e 73 69 67 6e 65 64 20 73 68 6f 72 74 c unsigned short
20b0: 20 63 6f 6e 73 74 20 20 6d 5f 63 66 4f 62 6a 65 const m_cfObje
20c0: 63 74 44 65 73 63 72 69 70 74 6f 72 3b 09 2f 2f ctDescriptor;.//
20d0: 34 38 37 0d 0a 09 73 74 61 74 69 63 20 75 6e 73 487...static uns
20e0: 69 67 6e 65 64 20 73 68 6f 72 74 20 63 6f 6e 73 igned short cons
20f0: 74 20 20 6d 5f 63 66 53 68 65 65 74 3b 09 2f 2f t m_cfSheet;.//
2100: 34 38 38 0d 0a 09 73 74 61 74 69 63 20 75 6e 73 488...static uns
2110: 69 67 6e 65 64 20 73 68 6f 72 74 20 63 6f 6e 73 igned short cons
2120: 74 20 20 6d 5f 63 66 53 68 65 65 74 44 65 73 63 t m_cfSheetDesc
2130: 72 69 70 74 6f 72 3b 09 2f 2f 34 38 39 0d 0a 09 riptor;.//489...
2140: 73 74 61 74 69 63 20 75 6e 73 69 67 6e 65 64 20 static unsigned
2150: 73 68 6f 72 74 20 63 6f 6e 73 74 20 20 6d 5f 63 short const m_c
2160: 66 53 68 65 65 74 4f 6c 64 3b 09 2f 2f 34 39 30 fSheetOld;.//490
2170: 0d 0a 09 73 74 61 74 69 63 20 73 74 72 75 63 74 ...static struct
2180: 20 5f 47 55 49 44 20 63 6f 6e 73 74 20 20 6d 5f _GUID const m_
2190: 67 75 69 64 43 6f 6c 3b 09 2f 2f 34 39 31 0d 0a guidCol;.//491..
21a0: 09 73 74 61 74 69 63 20 73 74 72 75 63 74 20 5f .static struct _
21b0: 47 55 49 44 20 63 6f 6e 73 74 20 20 6d 5f 67 75 GUID const m_gu
21c0: 69 64 44 72 61 77 69 6e 67 3b 09 2f 2f 34 39 32 idDrawing;.//492
21d0: 0d 0a 09 73 74 61 74 69 63 20 73 74 72 75 63 74 ...static struct
21e0: 20 5f 47 55 49 44 20 63 6f 6e 73 74 20 20 6d 5f _GUID const m_
21f0: 67 75 69 64 52 65 63 74 3b 09 2f 2f 34 39 33 0d guidRect;.//493.
2200: 0a 09 73 74 61 74 69 63 20 73 74 72 75 63 74 20 ..static struct
2210: 5f 47 55 49 44 20 63 6f 6e 73 74 20 20 6d 5f 67 _GUID const m_g
2220: 75 69 64 52 6f 77 3b 09 2f 2f 34 39 34 0d 0a 09 uidRow;.//494...
2230: 73 74 61 74 69 63 20 73 74 72 75 63 74 20 5f 47 static struct _G
2240: 55 49 44 20 63 6f 6e 73 74 20 20 6d 5f 67 75 69 UID const m_gui
2250: 64 53 68 65 65 74 3b 09 2f 2f 34 39 35 0d 0a 09 dSheet;.//495...
2260: 73 74 61 74 69 63 20 73 74 72 75 63 74 20 74 61 static struct ta
2270: 67 4c 4f 47 46 4f 4e 54 41 20 20 6d 5f 6c 66 53 gLOGFONTA m_lfS
2280: 74 61 6e 64 61 72 64 46 6f 6e 74 3b 09 2f 2f 34 tandardFont;.//4
2290: 39 36 0d 0a 7d 3b 0d 0a 0d 0a 0d 0a 63 6c 61 73 96..};......clas
22a0: 73 20 43 53 68 65 65 74 43 65 6c 6c 3a 70 75 62 s CSheetCell:pub
22b0: 6c 69 63 20 43 4f 62 6a 65 63 74 0d 0a 7b 0d 0a lic CObject..{..
22c0: 44 45 43 4c 41 52 45 5f 44 59 4e 43 52 45 41 54 DECLARE_DYNCREAT
22d0: 45 28 43 53 68 65 65 74 43 65 6c 6c 29 0d 0a 0d E(CSheetCell)...
22e0: 0a 70 75 62 6c 69 63 3a 0d 0a 09 20 43 53 68 65 .public:... CShe
22f0: 65 74 43 65 6c 6c 28 63 6c 61 73 73 20 43 53 68 etCell(class CSh
2300: 65 65 74 43 65 6c 6c 20 63 6f 6e 73 74 20 26 29 eetCell const &)
2310: 3b 09 2f 2f 34 0d 0a 09 20 43 53 68 65 65 74 43 ;.//4... CSheetC
2320: 65 6c 6c 28 76 6f 69 64 29 3b 09 2f 2f 35 0d 0a ell(void);.//5..
2330: 09 76 69 72 74 75 61 6c 20 20 7e 43 53 68 65 65 .virtual ~CShee
2340: 74 43 65 6c 6c 28 76 6f 69 64 29 3b 09 2f 2f 33 tCell(void);.//3
2350: 38 0d 0a 09 63 6c 61 73 73 20 43 53 68 65 65 74 8...class CSheet
2360: 43 65 6c 6c 20 26 20 20 6f 70 65 72 61 74 6f 72 Cell & operator
2370: 3d 28 63 6c 61 73 73 20 43 53 68 65 65 74 43 65 =(class CSheetCe
2380: 6c 6c 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 34 ll const &);.//4
2390: 38 0d 0a 09 76 6f 69 64 20 20 41 70 70 6c 79 28 8...void Apply(
23a0: 63 6c 61 73 73 20 43 53 68 65 65 74 43 65 6c 6c class CSheetCell
23b0: 20 63 6f 6e 73 74 20 26 2c 75 6e 73 69 67 6e 65 const &,unsigne
23c0: 64 20 6c 6f 6e 67 29 3b 09 2f 2f 38 37 0d 0a 09 d long);.//87...
23d0: 76 6f 69 64 20 20 41 70 70 6c 79 28 63 6c 61 73 void Apply(clas
23e0: 73 20 43 53 68 65 65 74 46 6f 72 6d 61 74 20 63 s CSheetFormat c
23f0: 6f 6e 73 74 20 26 2c 75 6e 73 69 67 6e 65 64 20 onst &,unsigned
2400: 6c 6f 6e 67 29 3b 09 2f 2f 38 38 0d 0a 09 63 6c long);.//88...cl
2410: 61 73 73 20 43 53 68 65 65 74 43 65 6c 6c 20 26 ass CSheetCell &
2420: 20 20 41 73 73 69 67 6e 28 63 6c 61 73 73 20 43 Assign(class C
2430: 53 68 65 65 74 43 65 6c 6c 20 63 6f 6e 73 74 20 SheetCell const
2440: 26 29 3b 09 2f 2f 39 31 0d 0a 09 63 68 61 72 20 &);.//91...char
2450: 63 6f 6e 73 74 20 2a 20 20 47 65 74 46 6f 72 6d const * GetForm
2460: 75 6c 61 28 76 6f 69 64 29 3b 09 2f 2f 31 39 35 ula(void);.//195
2470: 0d 0a 09 69 6e 74 20 20 47 65 74 50 72 6f 70 65 ...int GetPrope
2480: 72 74 69 65 73 43 6f 75 6e 74 28 76 6f 69 64 29 rtiesCount(void)
2490: 63 6f 6e 73 74 3b 09 2f 2f 32 32 36 0d 0a 09 63 const;.//226...c
24a0: 68 61 72 20 63 6f 6e 73 74 20 2a 20 20 47 65 74 har const * Get
24b0: 54 65 78 74 28 76 6f 69 64 29 3b 09 2f 2f 32 36 Text(void);.//26
24c0: 34 0d 0a 70 72 6f 74 65 63 74 65 64 3a 0d 0a 09 4..protected:...
24d0: 76 6f 69 64 20 20 49 6e 69 74 28 76 6f 69 64 29 void Init(void)
24e0: 3b 09 2f 2f 32 37 38 0d 0a 70 75 62 6c 69 63 3a ;.//278..public:
24f0: 0d 0a 09 69 6e 74 20 20 49 73 50 72 6f 70 65 72 ...int IsProper
2500: 74 79 53 65 74 28 65 6e 75 6d 20 43 53 68 65 65 tySet(enum CShee
2510: 74 44 57 6f 72 64 29 63 6f 6e 73 74 3b 09 2f 2f tDWord)const;.//
2520: 32 39 35 0d 0a 09 69 6e 74 20 20 49 73 50 72 6f 295...int IsPro
2530: 70 65 72 74 79 53 65 74 28 65 6e 75 6d 20 43 53 pertySet(enum CS
2540: 68 65 65 74 53 74 72 69 6e 67 29 63 6f 6e 73 74 heetString)const
2550: 3b 09 2f 2f 32 39 36 0d 0a 09 6c 6f 6e 67 20 20 ;.//296...long
2560: 4c 6f 61 64 56 61 6c 75 65 28 73 74 72 75 63 74 LoadValue(struct
2570: 20 49 53 68 65 65 74 56 61 6c 75 65 20 2a 29 3b ISheetValue *);
2580: 09 2f 2f 33 30 36 0d 0a 09 69 6e 74 20 20 4c 6f .//306...int Lo
2590: 6f 6b 75 70 50 72 6f 70 65 72 74 79 28 65 6e 75 okupProperty(enu
25a0: 6d 20 43 53 68 65 65 74 44 57 6f 72 64 2c 75 6e m CSheetDWord,un
25b0: 73 69 67 6e 65 64 20 6c 6f 6e 67 20 26 29 63 6f signed long &)co
25c0: 6e 73 74 3b 09 2f 2f 33 31 35 0d 0a 09 69 6e 74 nst;.//315...int
25d0: 20 20 4c 6f 6f 6b 75 70 50 72 6f 70 65 72 74 79 LookupProperty
25e0: 28 65 6e 75 6d 20 43 53 68 65 65 74 53 74 72 69 (enum CSheetStri
25f0: 6e 67 2c 63 6c 61 73 73 20 43 53 74 72 69 6e 67 ng,class CString
2600: 20 26 29 63 6f 6e 73 74 3b 09 2f 2f 33 31 36 0d &)const;.//316.
2610: 0a 09 76 6f 69 64 20 20 52 65 6d 6f 76 65 41 6c ..void RemoveAl
2620: 6c 50 72 6f 70 65 72 74 69 65 73 28 76 6f 69 64 lProperties(void
2630: 29 3b 09 2f 2f 33 36 31 0d 0a 09 69 6e 74 20 20 );.//361...int
2640: 52 65 6d 6f 76 65 50 72 6f 70 65 72 74 79 28 65 RemoveProperty(e
2650: 6e 75 6d 20 43 53 68 65 65 74 44 57 6f 72 64 29 num CSheetDWord)
2660: 3b 09 2f 2f 33 36 38 0d 0a 09 69 6e 74 20 20 52 ;.//368...int R
2670: 65 6d 6f 76 65 50 72 6f 70 65 72 74 79 28 65 6e emoveProperty(en
2680: 75 6d 20 43 53 68 65 65 74 53 74 72 69 6e 67 29 um CSheetString)
2690: 3b 09 2f 2f 33 36 39 0d 0a 09 6c 6f 6e 67 20 20 ;.//369...long
26a0: 53 61 76 65 56 61 6c 75 65 28 73 74 72 75 63 74 SaveValue(struct
26b0: 20 49 53 68 65 65 74 56 61 6c 75 65 20 2a 29 3b ISheetValue *);
26c0: 09 2f 2f 33 37 38 0d 0a 09 76 69 72 74 75 61 6c .//378...virtual
26d0: 20 76 6f 69 64 20 20 53 65 72 69 61 6c 69 7a 65 void Serialize
26e0: 28 63 6c 61 73 73 20 43 41 72 63 68 69 76 65 20 (class CArchive
26f0: 26 29 3b 09 2f 2f 33 38 39 0d 0a 09 76 6f 69 64 &);.//389...void
2700: 20 20 53 65 74 50 72 6f 70 65 72 74 79 28 65 6e SetProperty(en
2710: 75 6d 20 43 53 68 65 65 74 44 57 6f 72 64 2c 75 um CSheetDWord,u
2720: 6e 73 69 67 6e 65 64 20 6c 6f 6e 67 29 3b 09 2f nsigned long);./
2730: 2f 34 31 36 0d 0a 09 76 6f 69 64 20 20 53 65 74 /416...void Set
2740: 50 72 6f 70 65 72 74 79 28 65 6e 75 6d 20 43 53 Property(enum CS
2750: 68 65 65 74 53 74 72 69 6e 67 2c 63 68 61 72 20 heetString,char
2760: 63 6f 6e 73 74 20 2a 29 3b 09 2f 2f 34 31 37 0d const *);.//417.
2770: 0a 7d 3b 0d 0a 0d 0a 0d 0a 63 6c 61 73 73 20 43 .};......class C
2780: 53 68 65 65 74 44 6f 63 3a 70 75 62 6c 69 63 20 SheetDoc:public
2790: 43 4f 62 6a 65 63 74 0d 0a 7b 0d 0a 44 45 43 4c CObject..{..DECL
27a0: 41 52 45 5f 44 59 4e 43 52 45 41 54 45 28 43 53 ARE_DYNCREATE(CS
27b0: 68 65 65 74 44 6f 63 29 0d 0a 0d 0a 70 75 62 6c heetDoc)....publ
27c0: 69 63 3a 0d 0a 09 20 43 53 68 65 65 74 44 6f 63 ic:... CSheetDoc
27d0: 28 76 6f 69 64 29 3b 09 2f 2f 36 0d 0a 09 76 69 (void);.//6...vi
27e0: 72 74 75 61 6c 20 20 7e 43 53 68 65 65 74 44 6f rtual ~CSheetDo
27f0: 63 28 76 6f 69 64 29 3b 09 2f 2f 33 39 0d 0a 09 c(void);.//39...
2800: 76 69 72 74 75 61 6c 20 76 6f 69 64 20 20 44 65 virtual void De
2810: 6c 65 74 65 43 6f 6e 74 65 6e 74 73 28 76 6f 69 leteContents(voi
2820: 64 29 3b 09 2f 2f 31 32 34 0d 0a 09 76 69 72 74 d);.//124...virt
2830: 75 61 6c 20 69 6e 74 20 20 44 6f 46 69 6c 65 53 ual int DoFileS
2840: 61 76 65 28 76 6f 69 64 29 3b 09 2f 2f 31 33 31 ave(void);.//131
2850: 0d 0a 70 72 6f 74 65 63 74 65 64 3a 0d 0a 09 76 ..protected:...v
2860: 69 72 74 75 61 6c 20 69 6e 74 20 20 44 6f 53 61 irtual int DoSa
2870: 76 65 28 63 68 61 72 20 63 6f 6e 73 74 20 2a 2c ve(char const *,
2880: 69 6e 74 29 3b 09 2f 2f 31 33 32 0d 0a 70 75 62 int);.//132..pub
2890: 6c 69 63 3a 0d 0a 09 73 74 61 74 69 63 20 75 6e lic:...static un
28a0: 73 69 67 6e 65 64 20 73 68 6f 72 74 20 20 47 65 signed short Ge
28b0: 74 41 72 63 68 69 76 65 56 65 72 73 69 6f 6e 46 tArchiveVersionF
28c0: 69 65 6c 64 28 63 6c 61 73 73 20 43 41 72 63 68 ield(class CArch
28d0: 69 76 65 20 26 2c 75 6e 73 69 67 6e 65 64 20 69 ive &,unsigned i
28e0: 6e 74 29 3b 09 2f 2f 31 34 35 0d 0a 70 72 6f 74 nt);.//145..prot
28f0: 65 63 74 65 64 3a 0d 0a 09 76 69 72 74 75 61 6c ected:...virtual
2900: 20 63 6c 61 73 73 20 43 46 69 6c 65 20 2a 20 20 class CFile *
2910: 47 65 74 46 69 6c 65 28 63 68 61 72 20 63 6f 6e GetFile(char con
2920: 73 74 20 2a 2c 75 6e 73 69 67 6e 65 64 20 69 6e st *,unsigned in
2930: 74 2c 63 6c 61 73 73 20 43 46 69 6c 65 45 78 63 t,class CFileExc
2940: 65 70 74 69 6f 6e 20 2a 29 3b 09 2f 2f 31 38 30 eption *);.//180
2950: 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 69 6e 74 20 ..public:...int
2960: 20 47 65 74 4e 6f 53 61 76 65 50 72 6f 6d 70 74 GetNoSavePrompt
2970: 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 32 (void)const;.//2
2980: 31 35 0d 0a 09 69 6e 74 20 20 47 65 74 52 65 61 15...int GetRea
2990: 64 4f 6e 6c 79 28 76 6f 69 64 29 63 6f 6e 73 74 dOnly(void)const
29a0: 3b 09 2f 2f 32 32 39 0d 0a 09 63 6c 61 73 73 20 ;.//229...class
29b0: 43 53 68 65 65 74 55 6e 64 6f 20 26 20 20 47 65 CSheetUndo & Ge
29c0: 74 55 6e 64 6f 28 76 6f 69 64 29 3b 09 2f 2f 32 tUndo(void);.//2
29d0: 36 39 0d 0a 09 69 6e 74 20 20 47 65 74 56 69 65 69...int GetVie
29e0: 77 43 6f 75 6e 74 28 76 6f 69 64 29 63 6f 6e 73 wCount(void)cons
29f0: 74 3b 09 2f 2f 32 37 32 0d 0a 09 63 6c 61 73 73 t;.//272...class
2a00: 20 43 53 74 72 69 6e 67 20 63 6f 6e 73 74 20 26 CString const &
2a10: 20 20 47 65 74 57 69 6e 64 6f 77 4b 65 79 28 76 GetWindowKey(v
2a20: 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 32 37 34 oid)const;.//274
2a30: 0d 0a 09 76 6f 69 64 20 20 4c 6f 61 64 50 72 6f ...void LoadPro
2a40: 66 69 6c 65 28 76 6f 69 64 29 3b 09 2f 2f 33 30 file(void);.//30
2a50: 35 0d 0a 70 72 6f 74 65 63 74 65 64 3a 0d 0a 09 5..protected:...
2a60: 76 6f 69 64 20 20 4f 6e 41 70 70 46 6f 6e 74 43 void OnAppFontC
2a70: 68 61 6e 67 65 28 63 6c 61 73 73 20 43 4d 65 73 hange(class CMes
2a80: 73 61 67 65 37 20 2a 2c 6c 6f 6e 67 20 2a 29 3b sage7 *,long *);
2a90: 09 2f 2f 33 33 31 0d 0a 09 76 6f 69 64 20 20 4f .//331...void O
2aa0: 6e 41 70 70 50 61 67 65 43 68 61 6e 67 65 28 63 nAppPageChange(c
2ab0: 6c 61 73 73 20 43 4d 65 73 73 61 67 65 37 20 2a lass CMessage7 *
2ac0: 2c 6c 6f 6e 67 20 2a 29 3b 09 2f 2f 33 33 32 0d ,long *);.//332.
2ad0: 0a 70 75 62 6c 69 63 3a 0d 0a 09 76 69 72 74 75 .public:...virtu
2ae0: 61 6c 20 76 6f 69 64 20 20 4f 6e 43 6c 6f 73 65 al void OnClose
2af0: 44 6f 63 75 6d 65 6e 74 28 76 6f 69 64 29 3b 09 Document(void);.
2b00: 2f 2f 33 33 33 0d 0a 09 76 69 72 74 75 61 6c 20 //333...virtual
2b10: 69 6e 74 20 20 4f 6e 43 6d 64 4d 73 67 28 75 6e int OnCmdMsg(un
2b20: 73 69 67 6e 65 64 20 69 6e 74 2c 69 6e 74 2c 76 signed int,int,v
2b30: 6f 69 64 20 2a 2c 73 74 72 75 63 74 20 41 46 58 oid *,struct AFX
2b40: 5f 43 4d 44 48 41 4e 44 4c 45 52 49 4e 46 4f 20 _CMDHANDLERINFO
2b50: 2a 29 3b 09 2f 2f 33 33 34 0d 0a 70 72 6f 74 65 *);.//334..prote
2b60: 63 74 65 64 3a 0d 0a 09 76 6f 69 64 20 20 4f 6e cted:...void On
2b70: 45 64 69 74 43 6f 6e 76 65 72 74 28 76 6f 69 64 EditConvert(void
2b80: 29 3b 09 2f 2f 33 33 36 0d 0a 09 76 6f 69 64 20 );.//336...void
2b90: 20 4f 6e 46 69 6c 65 53 61 76 65 28 76 6f 69 64 OnFileSave(void
2ba0: 29 3b 09 2f 2f 33 33 37 0d 0a 09 76 6f 69 64 20 );.//337...void
2bb0: 20 4f 6e 46 69 6c 65 53 61 76 65 41 73 28 76 6f OnFileSaveAs(vo
2bc0: 69 64 29 3b 09 2f 2f 33 33 38 0d 0a 09 76 69 72 id);.//338...vir
2bd0: 74 75 61 6c 20 69 6e 74 20 20 4f 6e 4e 65 77 44 tual int OnNewD
2be0: 6f 63 75 6d 65 6e 74 28 76 6f 69 64 29 3b 09 2f ocument(void);./
2bf0: 2f 33 33 39 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 /339..public:...
2c00: 76 69 72 74 75 61 6c 20 69 6e 74 20 20 4f 6e 53 virtual int OnS
2c10: 61 76 65 44 6f 63 75 6d 65 6e 74 28 63 68 61 72 aveDocument(char
2c20: 20 63 6f 6e 73 74 20 2a 29 3b 09 2f 2f 33 34 30 const *);.//340
2c30: 0d 0a 70 72 6f 74 65 63 74 65 64 3a 0d 0a 09 76 ..protected:...v
2c40: 6f 69 64 20 20 4f 6e 55 70 64 61 74 65 46 69 6c oid OnUpdateFil
2c50: 65 53 61 76 65 28 63 6c 61 73 73 20 43 43 6d 64 eSave(class CCmd
2c60: 55 49 20 2a 29 3b 09 2f 2f 33 34 31 0d 0a 09 76 UI *);.//341...v
2c70: 6f 69 64 20 20 4f 6e 55 70 64 61 74 65 46 69 6c oid OnUpdateFil
2c80: 65 53 61 76 65 41 73 28 63 6c 61 73 73 20 43 43 eSaveAs(class CC
2c90: 6d 64 55 49 20 2a 29 3b 09 2f 2f 33 34 32 0d 0a mdUI *);.//342..
2ca0: 09 76 6f 69 64 20 20 4f 6e 55 70 64 61 74 65 4f .void OnUpdateO
2cb0: 62 6a 65 63 74 56 65 72 62 4d 65 6e 75 28 63 6c bjectVerbMenu(cl
2cc0: 61 73 73 20 43 43 6d 64 55 49 20 2a 29 3b 09 2f ass CCmdUI *);./
2cd0: 2f 33 34 33 0d 0a 09 76 69 72 74 75 61 6c 20 76 /343...virtual v
2ce0: 6f 69 64 20 20 52 65 6c 65 61 73 65 46 69 6c 65 oid ReleaseFile
2cf0: 28 63 6c 61 73 73 20 43 46 69 6c 65 20 2a 2c 69 (class CFile *,i
2d00: 6e 74 29 3b 09 2f 2f 33 35 36 0d 0a 70 75 62 6c nt);.//356..publ
2d10: 69 63 3a 0d 0a 09 69 6e 74 20 20 53 61 76 65 41 ic:...int SaveA
2d20: 73 28 63 68 61 72 20 63 6f 6e 73 74 20 2a 2c 65 s(char const *,e
2d30: 6e 75 6d 20 43 53 68 65 65 74 53 61 76 65 41 73 num CSheetSaveAs
2d40: 54 79 70 65 29 3b 09 2f 2f 33 37 34 0d 0a 70 72 Type);.//374..pr
2d50: 6f 74 65 63 74 65 64 3a 0d 0a 09 76 69 72 74 75 otected:...virtu
2d60: 61 6c 20 69 6e 74 20 20 53 61 76 65 4d 6f 64 69 al int SaveModi
2d70: 66 69 65 64 28 76 6f 69 64 29 3b 09 2f 2f 33 37 fied(void);.//37
2d80: 36 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 76 6f 69 6..public:...voi
2d90: 64 20 20 53 61 76 65 50 72 6f 66 69 6c 65 28 76 d SaveProfile(v
2da0: 6f 69 64 29 3b 09 2f 2f 33 37 37 0d 0a 09 76 69 oid);.//377...vi
2db0: 72 74 75 61 6c 20 76 6f 69 64 20 20 53 65 72 69 rtual void Seri
2dc0: 61 6c 69 7a 65 28 63 6c 61 73 73 20 43 41 72 63 alize(class CArc
2dd0: 68 69 76 65 20 26 29 3b 09 2f 2f 33 39 30 0d 0a hive &);.//390..
2de0: 09 76 69 72 74 75 61 6c 20 76 6f 69 64 20 20 53 .virtual void S
2df0: 65 74 4d 6f 64 69 66 69 65 64 46 6c 61 67 28 69 etModifiedFlag(i
2e00: 6e 74 29 3b 09 2f 2f 34 30 34 0d 0a 09 76 6f 69 nt);.//404...voi
2e10: 64 20 20 53 65 74 4e 6f 53 61 76 65 50 72 6f 6d d SetNoSaveProm
2e20: 70 74 28 69 6e 74 29 3b 09 2f 2f 34 30 37 0d 0a pt(int);.//407..
2e30: 09 76 69 72 74 75 61 6c 20 76 6f 69 64 20 20 53 .virtual void S
2e40: 65 74 50 61 74 68 4e 61 6d 65 28 63 68 61 72 20 etPathName(char
2e50: 63 6f 6e 73 74 20 2a 2c 69 6e 74 29 3b 09 2f 2f const *,int);.//
2e60: 34 30 39 0d 0a 09 76 6f 69 64 20 20 53 65 74 50 409...void SetP
2e70: 72 6f 66 69 6c 65 4b 65 79 28 63 68 61 72 20 63 rofileKey(char c
2e80: 6f 6e 73 74 20 2a 29 3b 09 2f 2f 34 31 35 0d 0a onst *);.//415..
2e90: 09 76 6f 69 64 20 20 53 65 74 52 65 61 64 4f 6e .void SetReadOn
2ea0: 6c 79 28 69 6e 74 29 3b 09 2f 2f 34 32 30 0d 0a ly(int);.//420..
2eb0: 09 76 6f 69 64 20 20 53 65 74 55 73 65 72 54 69 .void SetUserTi
2ec0: 74 6c 65 28 63 68 61 72 20 63 6f 6e 73 74 20 2a tle(char const *
2ed0: 29 3b 09 2f 2f 34 33 30 0d 0a 09 76 6f 69 64 20 );.//430...void
2ee0: 20 53 65 74 57 69 6e 64 6f 77 4b 65 79 28 63 68 SetWindowKey(ch
2ef0: 61 72 20 63 6f 6e 73 74 20 2a 29 3b 09 2f 2f 34 ar const *);.//4
2f00: 33 31 0d 0a 0d 0a 09 44 45 43 4c 41 52 45 5f 4d 31.....DECLARE_M
2f10: 45 53 53 41 47 45 5f 4d 41 50 28 29 0d 0a 7d 3b ESSAGE_MAP()..};
2f20: 0d 0a 0d 0a 0d 0a 63 6c 61 73 73 20 43 53 68 65 ......class CShe
2f30: 65 74 44 72 61 77 69 6e 67 3a 70 75 62 6c 69 63 etDrawing:public
2f40: 20 43 4f 62 6a 65 63 74 0d 0a 7b 0d 0a 44 45 43 CObject..{..DEC
2f50: 4c 41 52 45 5f 44 59 4e 43 52 45 41 54 45 28 43 LARE_DYNCREATE(C
2f60: 53 68 65 65 74 44 72 61 77 69 6e 67 29 0d 0a 0d SheetDrawing)...
2f70: 0a 70 75 62 6c 69 63 3a 0d 0a 09 20 43 53 68 65 .public:... CShe
2f80: 65 74 44 72 61 77 69 6e 67 28 63 6c 61 73 73 20 etDrawing(class
2f90: 43 53 68 65 65 74 44 72 61 77 69 6e 67 20 63 6f CSheetDrawing co
2fa0: 6e 73 74 20 26 2c 63 6c 61 73 73 20 43 4f 6c 65 nst &,class COle
2fb0: 44 6f 63 75 6d 65 6e 74 20 2a 29 3b 09 2f 2f 37 Document *);.//7
2fc0: 0d 0a 09 20 43 53 68 65 65 74 44 72 61 77 69 6e ... CSheetDrawin
2fd0: 67 28 65 6e 75 6d 20 43 53 68 65 65 74 44 72 61 g(enum CSheetDra
2fe0: 77 54 79 70 65 29 3b 09 2f 2f 38 0d 0a 09 20 43 wType);.//8... C
2ff0: 53 68 65 65 74 44 72 61 77 69 6e 67 28 76 6f 69 SheetDrawing(voi
3000: 64 29 3b 09 2f 2f 39 0d 0a 09 76 69 72 74 75 61 d);.//9...virtua
3010: 6c 20 20 7e 43 53 68 65 65 74 44 72 61 77 69 6e l ~CSheetDrawin
3020: 67 28 76 6f 69 64 29 3b 09 2f 2f 34 30 0d 0a 09 g(void);.//40...
3030: 63 6c 61 73 73 20 43 53 68 65 65 74 44 72 61 77 class CSheetDraw
3040: 69 6e 67 20 26 20 20 6f 70 65 72 61 74 6f 72 3d ing & operator=
3050: 28 63 6c 61 73 73 20 43 53 68 65 65 74 44 72 61 (class CSheetDra
3060: 77 69 6e 67 20 63 6f 6e 73 74 20 26 29 3b 09 2f wing const &);./
3070: 2f 34 39 0d 0a 09 76 6f 69 64 20 20 60 63 6f 70 /49...void `cop
3080: 79 20 63 6f 6e 73 74 72 75 63 74 6f 72 20 63 6c y constructor cl
3090: 6f 73 75 72 65 27 28 63 6c 61 73 73 20 43 53 68 osure'(class CSh
30a0: 65 65 74 44 72 61 77 69 6e 67 20 63 6f 6e 73 74 eetDrawing const
30b0: 20 26 29 3b 09 2f 2f 38 36 0d 0a 09 63 6c 61 73 &);.//86...clas
30c0: 73 20 43 53 68 65 65 74 44 72 61 77 69 6e 67 20 s CSheetDrawing
30d0: 26 20 20 41 73 73 69 67 6e 28 63 6c 61 73 73 20 & Assign(class
30e0: 43 53 68 65 65 74 44 72 61 77 69 6e 67 20 63 6f CSheetDrawing co
30f0: 6e 73 74 20 26 29 3b 09 2f 2f 39 32 0d 0a 09 63 nst &);.//92...c
3100: 6c 61 73 73 20 43 52 65 63 74 20 20 20 47 65 74 lass CRect Get
3110: 44 69 73 70 6c 52 65 63 74 28 76 6f 69 64 29 63 DisplRect(void)c
3120: 6f 6e 73 74 3b 09 2f 2f 31 37 33 0d 0a 09 75 6e onst;.//173...un
3130: 73 69 67 6e 65 64 20 6c 6f 6e 67 20 20 47 65 74 signed long Get
3140: 49 44 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f ID(void)const;./
3150: 2f 32 30 34 0d 0a 09 73 74 72 75 63 74 20 49 44 /204...struct ID
3160: 69 73 70 61 74 63 68 20 2a 20 20 47 65 74 4f 62 ispatch * GetOb
3170: 6a 65 63 74 44 69 73 70 61 74 63 68 28 76 6f 69 jectDispatch(voi
3180: 64 29 3b 09 2f 2f 32 31 39 0d 0a 09 63 6c 61 73 d);.//219...clas
3190: 73 20 43 53 68 65 65 74 52 65 63 74 20 63 6f 6e s CSheetRect con
31a0: 73 74 20 26 20 20 47 65 74 52 65 63 74 28 76 6f st & GetRect(vo
31b0: 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 32 33 30 0d id)const;.//230.
31c0: 0a 09 65 6e 75 6d 20 43 53 68 65 65 74 44 72 61 ..enum CSheetDra
31d0: 77 54 79 70 65 20 20 20 47 65 74 54 79 70 65 28 wType GetType(
31e0: 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 32 36 void)const;.//26
31f0: 36 0d 0a 09 76 69 72 74 75 61 6c 20 76 6f 69 64 6...virtual void
3200: 20 20 53 65 72 69 61 6c 69 7a 65 28 63 6c 61 73 Serialize(clas
3210: 73 20 43 41 72 63 68 69 76 65 20 26 29 3b 09 2f s CArchive &);./
3220: 2f 33 39 31 0d 0a 09 76 6f 69 64 20 20 53 65 74 /391...void Set
3230: 44 69 73 70 6c 52 65 63 74 28 63 6c 61 73 73 20 DisplRect(class
3240: 43 52 65 63 74 20 63 6f 6e 73 74 20 26 29 3b 09 CRect const &);.
3250: 2f 2f 33 39 39 0d 0a 09 76 6f 69 64 20 20 53 65 //399...void Se
3260: 74 52 65 63 74 28 63 6c 61 73 73 20 43 53 68 65 tRect(class CShe
3270: 65 74 52 65 63 74 20 63 6f 6e 73 74 20 26 29 3b etRect const &);
3280: 09 2f 2f 34 32 31 0d 0a 7d 3b 0d 0a 0d 0a 0d 0a .//421..};......
3290: 63 6c 61 73 73 20 43 53 68 65 65 74 46 6f 72 6d class CSheetForm
32a0: 61 74 3a 70 75 62 6c 69 63 20 43 4f 62 6a 65 63 at:public CObjec
32b0: 74 0d 0a 7b 0d 0a 44 45 43 4c 41 52 45 5f 44 59 t..{..DECLARE_DY
32c0: 4e 43 52 45 41 54 45 28 43 53 68 65 65 74 46 6f NCREATE(CSheetFo
32d0: 72 6d 61 74 29 0d 0a 0d 0a 70 75 62 6c 69 63 3a rmat)....public:
32e0: 0d 0a 09 20 43 53 68 65 65 74 46 6f 72 6d 61 74 ... CSheetFormat
32f0: 28 63 6c 61 73 73 20 43 53 68 65 65 74 46 6f 72 (class CSheetFor
3300: 6d 61 74 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f mat const &);.//
3310: 31 30 0d 0a 09 20 43 53 68 65 65 74 46 6f 72 6d 10... CSheetForm
3320: 61 74 28 76 6f 69 64 29 3b 09 2f 2f 31 31 0d 0a at(void);.//11..
3330: 09 76 69 72 74 75 61 6c 20 20 7e 43 53 68 65 65 .virtual ~CShee
3340: 74 46 6f 72 6d 61 74 28 76 6f 69 64 29 3b 09 2f tFormat(void);./
3350: 2f 34 31 0d 0a 09 63 6c 61 73 73 20 43 53 68 65 /41...class CShe
3360: 65 74 46 6f 72 6d 61 74 20 26 20 20 6f 70 65 72 etFormat & oper
3370: 61 74 6f 72 3d 28 63 6c 61 73 73 20 43 53 68 65 ator=(class CShe
3380: 65 74 46 6f 72 6d 61 74 20 63 6f 6e 73 74 20 26 etFormat const &
3390: 29 3b 09 2f 2f 35 30 0d 0a 09 76 6f 69 64 20 20 );.//50...void
33a0: 41 70 70 6c 79 28 63 6c 61 73 73 20 43 53 68 65 Apply(class CShe
33b0: 65 74 46 6f 72 6d 61 74 20 63 6f 6e 73 74 20 26 etFormat const &
33c0: 2c 75 6e 73 69 67 6e 65 64 20 6c 6f 6e 67 29 3b ,unsigned long);
33d0: 09 2f 2f 38 39 0d 0a 09 63 6c 61 73 73 20 43 53 .//89...class CS
33e0: 68 65 65 74 46 6f 72 6d 61 74 20 26 20 20 41 73 heetFormat & As
33f0: 73 69 67 6e 28 63 6c 61 73 73 20 43 53 68 65 65 sign(class CShee
3400: 74 46 6f 72 6d 61 74 20 63 6f 6e 73 74 20 26 29 tFormat const &)
3410: 3b 09 2f 2f 39 33 0d 0a 70 72 6f 74 65 63 74 65 ;.//93..protecte
3420: 64 3a 0d 0a 09 76 6f 69 64 20 20 43 6c 65 61 72 d:...void Clear
3430: 46 6c 61 67 28 65 6e 75 6d 20 43 53 68 65 65 74 Flag(enum CSheet
3440: 44 57 6f 72 64 29 3b 09 2f 2f 31 30 33 0d 0a 09 DWord);.//103...
3450: 76 6f 69 64 20 20 43 6c 65 61 72 46 6c 61 67 28 void ClearFlag(
3460: 65 6e 75 6d 20 43 53 68 65 65 74 53 74 72 69 6e enum CSheetStrin
3470: 67 29 3b 09 2f 2f 31 30 34 0d 0a 70 75 62 6c 69 g);.//104..publi
3480: 63 3a 0d 0a 09 75 6e 73 69 67 6e 65 64 20 6c 6f c:...unsigned lo
3490: 6e 67 20 20 43 6f 6d 70 61 72 65 28 63 6c 61 73 ng Compare(clas
34a0: 73 20 43 53 68 65 65 74 46 6f 72 6d 61 74 20 63 s CSheetFormat c
34b0: 6f 6e 73 74 20 26 29 3b 09 2f 2f 31 30 37 0d 0a onst &);.//107..
34c0: 09 75 6e 73 69 67 6e 65 64 20 63 68 61 72 20 20 .unsigned char
34d0: 47 65 74 42 6b 43 6f 6c 6f 72 28 76 6f 69 64 29 GetBkColor(void)
34e0: 63 6f 6e 73 74 3b 09 2f 2f 31 34 37 0d 0a 09 75 const;.//147...u
34f0: 6e 73 69 67 6e 65 64 20 63 68 61 72 20 20 47 65 nsigned char Ge
3500: 74 42 6f 72 64 65 72 42 6f 74 74 6f 6d 28 76 6f tBorderBottom(vo
3510: 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 31 34 38 0d id)const;.//148.
3520: 0a 09 75 6e 73 69 67 6e 65 64 20 63 68 61 72 20 ..unsigned char
3530: 20 47 65 74 42 6f 72 64 65 72 43 6f 6c 6f 72 28 GetBorderColor(
3540: 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 31 34 void)const;.//14
3550: 39 0d 0a 09 75 6e 73 69 67 6e 65 64 20 63 68 61 9...unsigned cha
3560: 72 20 20 47 65 74 42 6f 72 64 65 72 4c 65 66 74 r GetBorderLeft
3570: 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 31 (void)const;.//1
3580: 35 30 0d 0a 09 75 6e 73 69 67 6e 65 64 20 63 68 50...unsigned ch
3590: 61 72 20 20 47 65 74 42 6f 72 64 65 72 52 69 67 ar GetBorderRig
35a0: 68 74 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f ht(void)const;./
35b0: 2f 31 35 31 0d 0a 09 75 6e 73 69 67 6e 65 64 20 /151...unsigned
35c0: 63 68 61 72 20 20 47 65 74 42 6f 72 64 65 72 54 char GetBorderT
35d0: 6f 70 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f op(void)const;./
35e0: 2f 31 35 32 0d 0a 09 75 6e 73 69 67 6e 65 64 20 /152...unsigned
35f0: 63 68 61 72 20 20 47 65 74 42 6f 72 64 65 72 73 char GetBorders
3600: 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 31 (void)const;.//1
3610: 35 33 0d 0a 09 75 6e 73 69 67 6e 65 64 20 63 68 53...unsigned ch
3620: 61 72 20 20 47 65 74 44 61 74 61 46 6f 72 6d 61 ar GetDataForma
3630: 74 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f t(void)const;.//
3640: 31 37 31 0d 0a 09 75 6e 73 69 67 6e 65 64 20 63 171...unsigned c
3650: 68 61 72 20 20 47 65 74 44 6f 6e 74 50 72 69 6e har GetDontPrin
3660: 74 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f t(void)const;.//
3670: 31 37 35 0d 0a 09 75 6e 73 69 67 6e 65 64 20 63 175...unsigned c
3680: 68 61 72 20 20 47 65 74 46 6f 6e 74 42 6f 6c 64 har GetFontBold
3690: 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 31 (void)const;.//1
36a0: 38 33 0d 0a 09 75 6e 73 69 67 6e 65 64 20 63 68 83...unsigned ch
36b0: 61 72 20 20 47 65 74 46 6f 6e 74 49 74 61 6c 69 ar GetFontItali
36c0: 63 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f c(void)const;.//
36d0: 31 38 36 0d 0a 09 75 6e 73 69 67 6e 65 64 20 73 186...unsigned s
36e0: 68 6f 72 74 20 20 47 65 74 46 6f 6e 74 4e 61 6d hort GetFontNam
36f0: 65 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f e(void)const;.//
3700: 31 38 38 0d 0a 09 75 6e 73 69 67 6e 65 64 20 73 188...unsigned s
3710: 68 6f 72 74 20 20 47 65 74 46 6f 6e 74 53 69 7a hort GetFontSiz
3720: 65 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f e(void)const;.//
3730: 31 38 39 0d 0a 09 75 6e 73 69 67 6e 65 64 20 63 189...unsigned c
3740: 68 61 72 20 20 47 65 74 46 6f 6e 74 55 6e 64 65 har GetFontUnde
3750: 72 6c 69 6e 65 28 76 6f 69 64 29 63 6f 6e 73 74 rline(void)const
3760: 3b 09 2f 2f 31 39 30 0d 0a 09 75 6e 73 69 67 6e ;.//190...unsign
3770: 65 64 20 73 68 6f 72 74 20 20 47 65 74 48 65 69 ed short GetHei
3780: 67 68 74 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 ght(void)const;.
3790: 2f 2f 32 30 32 0d 0a 09 75 6e 73 69 67 6e 65 64 //202...unsigned
37a0: 20 63 68 61 72 20 20 47 65 74 48 6f 72 7a 41 6c char GetHorzAl
37b0: 69 67 6e 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 ign(void)const;.
37c0: 2f 2f 32 30 33 0d 0a 09 75 6e 73 69 67 6e 65 64 //203...unsigned
37d0: 20 63 68 61 72 20 20 47 65 74 4c 69 6e 65 53 74 char GetLineSt
37e0: 79 6c 65 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 yle(void)const;.
37f0: 2f 2f 32 30 36 0d 0a 09 75 6e 73 69 67 6e 65 64 //206...unsigned
3800: 20 63 68 61 72 20 20 47 65 74 4c 69 6e 65 57 65 char GetLineWe
3810: 69 67 68 74 28 76 6f 69 64 29 63 6f 6e 73 74 3b ight(void)const;
3820: 09 2f 2f 32 30 37 0d 0a 09 75 6e 73 69 67 6e 65 .//207...unsigne
3830: 64 20 63 68 61 72 20 20 47 65 74 50 61 74 74 65 d char GetPatte
3840: 72 6e 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f rn(void)const;./
3850: 2f 32 32 34 0d 0a 09 75 6e 73 69 67 6e 65 64 20 /224...unsigned
3860: 63 68 61 72 20 20 47 65 74 50 61 74 74 65 72 6e char GetPattern
3870: 43 6f 6c 6f 72 28 76 6f 69 64 29 63 6f 6e 73 74 Color(void)const
3880: 3b 09 2f 2f 32 32 35 0d 0a 09 69 6e 74 20 20 47 ;.//225...int G
3890: 65 74 50 72 6f 70 65 72 74 69 65 73 43 6f 75 6e etPropertiesCoun
38a0: 74 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f t(void)const;.//
38b0: 32 32 37 0d 0a 09 75 6e 73 69 67 6e 65 64 20 63 227...unsigned c
38c0: 68 61 72 20 20 47 65 74 54 65 78 74 43 6f 6c 6f har GetTextColo
38d0: 72 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f r(void)const;.//
38e0: 32 36 35 0d 0a 09 69 6e 74 20 20 47 65 74 55 6e 265...int GetUn
38f0: 70 72 6f 74 65 63 74 65 64 28 76 6f 69 64 29 63 protected(void)c
3900: 6f 6e 73 74 3b 09 2f 2f 32 37 30 0d 0a 09 75 6e onst;.//270...un
3910: 73 69 67 6e 65 64 20 63 68 61 72 20 20 47 65 74 signed char Get
3920: 56 65 72 74 41 6c 69 67 6e 28 76 6f 69 64 29 63 VertAlign(void)c
3930: 6f 6e 73 74 3b 09 2f 2f 32 37 31 0d 0a 09 75 6e onst;.//271...un
3940: 73 69 67 6e 65 64 20 73 68 6f 72 74 20 20 47 65 signed short Ge
3950: 74 57 69 64 74 68 28 76 6f 69 64 29 63 6f 6e 73 tWidth(void)cons
3960: 74 3b 09 2f 2f 32 37 33 0d 0a 09 75 6e 73 69 67 t;.//273...unsig
3970: 6e 65 64 20 63 68 61 72 20 20 47 65 74 57 72 61 ned char GetWra
3980: 70 54 65 78 74 28 76 6f 69 64 29 63 6f 6e 73 74 pText(void)const
3990: 3b 09 2f 2f 32 37 35 0d 0a 09 69 6e 74 20 20 48 ;.//275...int H
39a0: 61 73 50 72 6f 70 65 72 74 69 65 73 28 76 6f 69 asProperties(voi
39b0: 64 29 63 6f 6e 73 74 3b 09 2f 2f 32 37 37 0d 0a d)const;.//277..
39c0: 70 72 6f 74 65 63 74 65 64 3a 0d 0a 09 69 6e 74 protected:...int
39d0: 20 20 49 73 46 6c 61 67 53 65 74 28 65 6e 75 6d IsFlagSet(enum
39e0: 20 43 53 68 65 65 74 44 57 6f 72 64 29 63 6f 6e CSheetDWord)con
39f0: 73 74 3b 09 2f 2f 32 39 32 0d 0a 09 69 6e 74 20 st;.//292...int
3a00: 20 49 73 46 6c 61 67 53 65 74 28 65 6e 75 6d 20 IsFlagSet(enum
3a10: 43 53 68 65 65 74 53 74 72 69 6e 67 29 63 6f 6e CSheetString)con
3a20: 73 74 3b 09 2f 2f 32 39 33 0d 0a 70 75 62 6c 69 st;.//293..publi
3a30: 63 3a 0d 0a 09 69 6e 74 20 20 49 73 50 72 6f 70 c:...int IsProp
3a40: 65 72 74 79 53 65 74 28 65 6e 75 6d 20 43 53 68 ertySet(enum CSh
3a50: 65 65 74 44 57 6f 72 64 29 63 6f 6e 73 74 3b 09 eetDWord)const;.
3a60: 2f 2f 32 39 37 0d 0a 09 69 6e 74 20 20 4c 6f 6f //297...int Loo
3a70: 6b 75 70 50 72 6f 70 65 72 74 79 28 65 6e 75 6d kupProperty(enum
3a80: 20 43 53 68 65 65 74 44 57 6f 72 64 2c 75 6e 73 CSheetDWord,uns
3a90: 69 67 6e 65 64 20 6c 6f 6e 67 20 26 29 63 6f 6e igned long &)con
3aa0: 73 74 3b 09 2f 2f 33 31 37 0d 0a 09 76 6f 69 64 st;.//317...void
3ab0: 20 20 52 65 6d 6f 76 65 41 6c 6c 50 72 6f 70 65 RemoveAllPrope
3ac0: 72 74 69 65 73 28 76 6f 69 64 29 3b 09 2f 2f 33 rties(void);.//3
3ad0: 36 32 0d 0a 09 69 6e 74 20 20 52 65 6d 6f 76 65 62...int Remove
3ae0: 50 72 6f 70 65 72 74 79 28 65 6e 75 6d 20 43 53 Property(enum CS
3af0: 68 65 65 74 44 57 6f 72 64 29 3b 09 2f 2f 33 37 heetDWord);.//37
3b00: 30 0d 0a 09 76 69 72 74 75 61 6c 20 76 6f 69 64 0...virtual void
3b10: 20 20 53 65 72 69 61 6c 69 7a 65 28 63 6c 61 73 Serialize(clas
3b20: 73 20 43 41 72 63 68 69 76 65 20 26 29 3b 09 2f s CArchive &);./
3b30: 2f 33 39 32 0d 0a 70 72 6f 74 65 63 74 65 64 3a /392..protected:
3b40: 0d 0a 09 76 6f 69 64 20 20 53 65 74 46 6c 61 67 ...void SetFlag
3b50: 28 65 6e 75 6d 20 43 53 68 65 65 74 44 57 6f 72 (enum CSheetDWor
3b60: 64 29 3b 09 2f 2f 34 30 31 0d 0a 09 76 6f 69 64 d);.//401...void
3b70: 20 20 53 65 74 46 6c 61 67 28 65 6e 75 6d 20 43 SetFlag(enum C
3b80: 53 68 65 65 74 53 74 72 69 6e 67 29 3b 09 2f 2f SheetString);.//
3b90: 34 30 32 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 76 402..public:...v
3ba0: 6f 69 64 20 20 53 65 74 50 72 6f 70 65 72 74 79 oid SetProperty
3bb0: 28 65 6e 75 6d 20 43 53 68 65 65 74 44 57 6f 72 (enum CSheetDWor
3bc0: 64 2c 75 6e 73 69 67 6e 65 64 20 6c 6f 6e 67 29 d,unsigned long)
3bd0: 3b 09 2f 2f 34 31 38 0d 0a 7d 3b 0d 0a 0d 0a 0d ;.//418..};.....
3be0: 0a 63 6c 61 73 73 20 43 53 68 65 65 74 47 44 49 .class CSheetGDI
3bf0: 0d 0a 7b 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 20 ..{..public:...
3c00: 43 53 68 65 65 74 47 44 49 28 76 6f 69 64 29 3b CSheetGDI(void);
3c10: 09 2f 2f 31 32 0d 0a 09 76 69 72 74 75 61 6c 20 .//12...virtual
3c20: 20 7e 43 53 68 65 65 74 47 44 49 28 76 6f 69 64 ~CSheetGDI(void
3c30: 29 3b 09 2f 2f 34 32 0d 0a 09 76 6f 69 64 20 20 );.//42...void
3c40: 41 74 74 61 63 68 28 63 6c 61 73 73 20 43 53 68 Attach(class CSh
3c50: 65 65 74 56 69 65 77 20 2a 29 3b 09 2f 2f 39 37 eetView *);.//97
3c60: 0d 0a 09 76 6f 69 64 20 20 43 6c 65 61 72 46 6f ...void ClearFo
3c70: 6e 74 43 61 63 68 65 28 76 6f 69 64 29 3b 09 2f ntCache(void);./
3c80: 2f 31 30 35 0d 0a 09 76 6f 69 64 20 20 43 6c 65 /105...void Cle
3c90: 61 72 48 65 69 67 68 74 43 61 63 68 65 28 76 6f arHeightCache(vo
3ca0: 69 64 29 3b 09 2f 2f 31 30 36 0d 0a 09 76 6f 69 id);.//106...voi
3cb0: 64 20 20 43 72 65 61 74 65 44 69 73 70 6c 61 79 d CreateDisplay
3cc0: 49 6e 66 6f 28 76 6f 69 64 29 3b 09 2f 2f 31 31 Info(void);.//11
3cd0: 33 0d 0a 09 69 6e 74 20 20 43 72 65 61 74 65 50 3...int CreateP
3ce0: 72 69 6e 74 65 72 49 6e 66 6f 28 76 6f 69 64 29 rinterInfo(void)
3cf0: 3b 09 2f 2f 31 32 30 0d 0a 70 72 6f 74 65 63 74 ;.//120..protect
3d00: 65 64 3a 0d 0a 09 76 6f 69 64 20 20 44 65 73 74 ed:...void Dest
3d10: 72 6f 79 28 76 6f 69 64 29 3b 09 2f 2f 31 32 39 roy(void);.//129
3d20: 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 76 6f 69 64 ..public:...void
3d30: 20 20 44 72 61 77 42 6f 72 64 65 72 28 63 6c 61 DrawBorder(cla
3d40: 73 73 20 43 44 43 20 2a 2c 63 6c 61 73 73 20 43 ss CDC *,class C
3d50: 52 65 63 74 2c 69 6e 74 2c 75 6e 73 69 67 6e 65 Rect,int,unsigne
3d60: 64 20 6c 6f 6e 67 2c 75 6e 73 69 67 6e 65 64 20 d long,unsigned
3d70: 6c 6f 6e 67 29 3b 09 2f 2f 31 33 33 0d 0a 09 76 long);.//133...v
3d80: 6f 69 64 20 20 44 72 61 77 4c 69 6e 65 28 63 6c oid DrawLine(cl
3d90: 61 73 73 20 43 44 43 20 2a 2c 63 6c 61 73 73 20 ass CDC *,class
3da0: 43 52 65 63 74 2c 69 6e 74 2c 69 6e 74 2c 75 6e CRect,int,int,un
3db0: 73 69 67 6e 65 64 20 6c 6f 6e 67 29 3b 09 2f 2f signed long);.//
3dc0: 31 33 34 0d 0a 09 73 74 61 74 69 63 20 76 6f 69 134...static voi
3dd0: 64 20 20 44 72 61 77 50 61 67 65 42 72 65 61 6b d DrawPageBreak
3de0: 28 63 6c 61 73 73 20 43 44 43 20 2a 2c 63 6c 61 (class CDC *,cla
3df0: 73 73 20 43 52 65 63 74 2c 75 6e 73 69 67 6e 65 ss CRect,unsigne
3e00: 64 20 6c 6f 6e 67 2c 75 6e 73 69 67 6e 65 64 20 d long,unsigned
3e10: 6c 6f 6e 67 2c 65 6e 75 6d 20 43 53 68 65 65 74 long,enum CSheet
3e20: 42 72 65 61 6b 53 74 79 6c 65 29 3b 09 2f 2f 31 BreakStyle);.//1
3e30: 33 35 0d 0a 09 73 74 61 74 69 63 20 76 6f 69 64 35...static void
3e40: 20 20 46 69 6c 6c 52 65 63 74 28 63 6c 61 73 73 FillRect(class
3e50: 20 43 44 43 20 2a 2c 63 6c 61 73 73 20 43 52 65 CDC *,class CRe
3e60: 63 74 20 63 6f 6e 73 74 20 26 2c 75 6e 73 69 67 ct const &,unsig
3e70: 6e 65 64 20 6c 6f 6e 67 29 3b 09 2f 2f 31 33 37 ned long);.//137
3e80: 0d 0a 09 63 6c 61 73 73 20 43 52 65 63 74 20 20 ...class CRect
3e90: 20 47 65 74 43 65 6c 6c 52 65 63 74 28 69 6e 74 GetCellRect(int
3ea0: 2c 69 6e 74 29 3b 09 2f 2f 31 35 37 0d 0a 09 73 ,int);.//157...s
3eb0: 74 61 74 69 63 20 69 6e 74 20 20 47 65 74 43 6c tatic int GetCl
3ec0: 69 70 52 67 6e 28 63 6c 61 73 73 20 43 44 43 20 ipRgn(class CDC
3ed0: 2a 2c 63 6c 61 73 73 20 43 52 67 6e 20 26 29 3b *,class CRgn &);
3ee0: 09 2f 2f 31 35 38 0d 0a 09 69 6e 74 20 20 47 65 .//158...int Ge
3ef0: 74 43 6f 6c 75 6d 6e 53 74 61 72 74 28 69 6e 74 tColumnStart(int
3f00: 29 3b 09 2f 2f 31 36 36 0d 0a 09 69 6e 74 20 20 );.//166...int
3f10: 47 65 74 43 6f 6c 75 6d 6e 57 69 64 74 68 28 69 GetColumnWidth(i
3f20: 6e 74 29 3b 09 2f 2f 31 36 37 0d 0a 70 72 6f 74 nt);.//167..prot
3f30: 65 63 74 65 64 3a 0d 0a 09 69 6e 74 20 20 47 65 ected:...int Ge
3f40: 74 43 6f 6c 75 6d 6e 57 69 64 74 68 55 6e 69 28 tColumnWidthUni(
3f50: 69 6e 74 29 3b 09 2f 2f 31 36 38 0d 0a 70 75 62 int);.//168..pub
3f60: 6c 69 63 3a 0d 0a 09 63 6c 61 73 73 20 43 46 6f lic:...class CFo
3f70: 6e 74 20 2a 20 20 47 65 74 46 6f 6e 74 28 73 74 nt * GetFont(st
3f80: 72 75 63 74 20 74 61 67 4c 4f 47 46 4f 4e 54 41 ruct tagLOGFONTA
3f90: 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 31 38 31 const &);.//181
3fa0: 0d 0a 70 72 6f 74 65 63 74 65 64 3a 0d 0a 09 69 ..protected:...i
3fb0: 6e 74 20 20 47 65 74 46 6f 6e 74 43 61 63 68 65 nt GetFontCache
3fc0: 50 6f 73 28 73 74 72 75 63 74 20 74 61 67 4c 4f Pos(struct tagLO
3fd0: 47 46 4f 4e 54 41 20 63 6f 6e 73 74 20 26 29 3b GFONTA const &);
3fe0: 09 2f 2f 31 38 34 0d 0a 70 75 62 6c 69 63 3a 0d .//184..public:.
3ff0: 0a 09 69 6e 74 20 20 47 65 74 46 6f 6e 74 48 65 ..int GetFontHe
4000: 69 67 68 74 28 73 74 72 75 63 74 20 74 61 67 4c ight(struct tagL
4010: 4f 47 46 4f 4e 54 41 20 63 6f 6e 73 74 20 26 29 OGFONTA const &)
4020: 3b 09 2f 2f 31 38 35 0d 0a 09 63 6c 61 73 73 20 ;.//185...class
4030: 43 53 69 7a 65 20 20 20 47 65 74 47 61 70 53 69 CSize GetGapSi
4040: 7a 65 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f ze(void)const;./
4050: 2f 31 39 36 0d 0a 09 63 6c 61 73 73 20 43 53 69 /196...class CSi
4060: 7a 65 20 20 20 47 65 74 4c 6f 67 50 69 78 65 6c ze GetLogPixel
4070: 73 28 76 6f 69 64 29 3b 09 2f 2f 32 30 38 0d 0a s(void);.//208..
4080: 09 69 6e 74 20 20 47 65 74 52 6f 77 48 65 69 67 .int GetRowHeig
4090: 68 74 28 69 6e 74 29 3b 09 2f 2f 32 33 36 0d 0a ht(int);.//236..
40a0: 70 72 6f 74 65 63 74 65 64 3a 0d 0a 09 69 6e 74 protected:...int
40b0: 20 20 47 65 74 52 6f 77 48 65 69 67 68 74 55 6e GetRowHeightUn
40c0: 69 28 69 6e 74 29 3b 09 2f 2f 32 33 37 0d 0a 70 i(int);.//237..p
40d0: 75 62 6c 69 63 3a 0d 0a 09 69 6e 74 20 20 47 65 ublic:...int Ge
40e0: 74 52 6f 77 53 74 61 72 74 28 69 6e 74 29 3b 09 tRowStart(int);.
40f0: 2f 2f 32 34 30 0d 0a 09 63 6c 61 73 73 20 43 53 //240...class CS
4100: 69 7a 65 20 20 20 47 65 74 52 75 6c 65 72 53 69 ize GetRulerSi
4110: 7a 65 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f ze(void)const;./
4120: 2f 32 34 32 0d 0a 09 69 6e 74 20 20 47 65 74 53 /242...int GetS
4130: 63 61 6c 65 28 76 6f 69 64 29 63 6f 6e 73 74 3b cale(void)const;
4140: 09 2f 2f 32 35 32 0d 0a 09 63 6c 61 73 73 20 43 .//252...class C
4150: 53 69 7a 65 20 20 20 47 65 74 53 65 63 74 69 6f Size GetSectio
4160: 6e 53 69 7a 65 28 76 6f 69 64 29 63 6f 6e 73 74 nSize(void)const
4170: 3b 09 2f 2f 32 35 33 0d 0a 09 63 6c 61 73 73 20 ;.//253...class
4180: 43 53 69 7a 65 20 20 20 47 65 74 53 74 64 43 68 CSize GetStdCh
4190: 61 72 53 69 7a 65 28 76 6f 69 64 29 3b 09 2f 2f arSize(void);.//
41a0: 32 36 31 0d 0a 09 75 6e 73 69 67 6e 65 64 20 6c 261...unsigned l
41b0: 6f 6e 67 20 20 47 65 74 53 79 73 43 6f 6c 6f 72 ong GetSysColor
41c0: 28 69 6e 74 29 3b 09 2f 2f 32 36 32 0d 0a 09 73 (int);.//262...s
41d0: 74 72 75 63 74 20 74 61 67 54 45 58 54 4d 45 54 truct tagTEXTMET
41e0: 52 49 43 41 20 63 6f 6e 73 74 20 26 20 20 47 65 RICA const & Ge
41f0: 74 54 4d 28 73 74 72 75 63 74 20 74 61 67 4c 4f tTM(struct tagLO
4200: 47 46 4f 4e 54 41 20 63 6f 6e 73 74 20 26 29 3b GFONTA const &);
4210: 09 2f 2f 32 36 33 0d 0a 09 69 6e 74 20 20 49 73 .//263...int Is
4220: 45 61 73 74 28 76 6f 69 64 29 3b 09 2f 2f 32 38 East(void);.//28
4230: 39 0d 0a 09 69 6e 74 20 20 49 73 4e 6f 72 74 68 9...int IsNorth
4240: 28 76 6f 69 64 29 3b 09 2f 2f 32 39 34 0d 0a 09 (void);.//294...
4250: 69 6e 74 20 20 49 73 53 6f 75 74 68 28 76 6f 69 int IsSouth(voi
4260: 64 29 3b 09 2f 2f 32 39 39 0d 0a 09 69 6e 74 20 d);.//299...int
4270: 20 49 73 57 65 73 74 28 76 6f 69 64 29 3b 09 2f IsWest(void);./
4280: 2f 33 30 31 0d 0a 09 73 74 61 74 69 63 20 63 6c /301...static cl
4290: 61 73 73 20 43 52 65 63 74 20 20 20 4a 75 73 74 ass CRect Just
42a0: 69 66 79 28 63 6c 61 73 73 20 43 44 43 20 2a 2c ify(class CDC *,
42b0: 63 68 61 72 20 63 6f 6e 73 74 20 2a 2c 63 6c 61 char const *,cla
42c0: 73 73 20 43 52 65 63 74 2c 69 6e 74 2c 69 6e 74 ss CRect,int,int
42d0: 2c 69 6e 74 2c 73 74 72 75 63 74 20 74 61 67 52 ,int,struct tagR
42e0: 45 43 54 20 63 6f 6e 73 74 20 2a 29 3b 09 2f 2f ECT const *);.//
42f0: 33 30 32 0d 0a 09 76 6f 69 64 20 20 50 54 74 6f 302...void PTto
4300: 52 43 28 63 6c 61 73 73 20 43 50 6f 69 6e 74 2c RC(class CPoint,
4310: 69 6e 74 20 26 2c 69 6e 74 20 26 2c 73 74 72 75 int &,int &,stru
4320: 63 74 20 74 61 67 52 45 43 54 20 2a 29 3b 09 2f ct tagRECT *);./
4330: 2f 33 34 35 0d 0a 09 73 74 61 74 69 63 20 76 6f /345...static vo
4340: 69 64 20 20 50 61 74 46 69 6c 6c 52 65 63 74 28 id PatFillRect(
4350: 63 6c 61 73 73 20 43 44 43 20 2a 2c 63 6c 61 73 class CDC *,clas
4360: 73 20 43 52 65 63 74 20 63 6f 6e 73 74 20 26 2c s CRect const &,
4370: 75 6e 73 69 67 6e 65 64 20 6c 6f 6e 67 2c 75 6e unsigned long,un
4380: 73 69 67 6e 65 64 20 6c 6f 6e 67 2c 69 6e 74 2c signed long,int,
4390: 63 6c 61 73 73 20 43 50 6f 69 6e 74 29 3b 09 2f class CPoint);./
43a0: 2f 33 35 31 0d 0a 09 76 6f 69 64 20 20 53 65 74 /351...void Set
43b0: 50 72 69 6e 74 48 65 61 64 65 72 73 28 69 6e 74 PrintHeaders(int
43c0: 29 3b 09 2f 2f 34 31 34 0d 0a 09 76 6f 69 64 20 );.//414...void
43d0: 20 53 65 74 53 63 61 6c 65 28 69 6e 74 29 3b 09 SetScale(int);.
43e0: 2f 2f 34 32 36 0d 0a 70 72 6f 74 65 63 74 65 64 //426..protected
43f0: 3a 0d 0a 09 76 6f 69 64 20 20 55 70 64 61 74 65 :...void Update
4400: 44 65 76 69 63 65 4d 65 74 72 69 63 73 28 76 6f DeviceMetrics(vo
4410: 69 64 29 3b 09 2f 2f 34 34 34 0d 0a 70 75 62 6c id);.//444..publ
4420: 69 63 3a 0d 0a 09 69 6e 74 20 20 58 43 68 61 72 ic:...int XChar
4430: 54 6f 50 69 78 65 6c 28 69 6e 74 29 3b 09 2f 2f ToPixel(int);.//
4440: 34 34 36 0d 0a 09 69 6e 74 20 20 58 4d 69 6c 6c 446...int XMill
4450: 69 6d 65 74 65 72 73 54 6f 50 69 78 65 6c 28 69 imetersToPixel(i
4460: 6e 74 29 3b 09 2f 2f 34 34 37 0d 0a 09 69 6e 74 nt);.//447...int
4470: 20 20 58 50 69 78 65 6c 54 6f 43 68 61 72 28 69 XPixelToChar(i
4480: 6e 74 29 3b 09 2f 2f 34 34 38 0d 0a 09 69 6e 74 nt);.//448...int
4490: 20 20 58 50 69 78 65 6c 54 6f 4d 69 6c 6c 69 6d XPixelToMillim
44a0: 65 74 65 72 73 28 69 6e 74 29 3b 09 2f 2f 34 34 eters(int);.//44
44b0: 39 0d 0a 09 69 6e 74 20 20 58 50 69 78 65 6c 54 9...int XPixelT
44c0: 6f 55 6e 69 74 28 69 6e 74 29 3b 09 2f 2f 34 35 oUnit(int);.//45
44d0: 30 0d 0a 09 69 6e 74 20 20 58 55 6e 69 74 54 6f 0...int XUnitTo
44e0: 50 69 78 65 6c 28 69 6e 74 29 3b 09 2f 2f 34 35 Pixel(int);.//45
44f0: 31 0d 0a 09 69 6e 74 20 20 59 43 68 61 72 54 6f 1...int YCharTo
4500: 50 69 78 65 6c 28 69 6e 74 29 3b 09 2f 2f 34 35 Pixel(int);.//45
4510: 32 0d 0a 09 69 6e 74 20 20 59 4d 69 6c 6c 69 6d 2...int YMillim
4520: 65 74 65 72 73 54 6f 50 69 78 65 6c 28 69 6e 74 etersToPixel(int
4530: 29 3b 09 2f 2f 34 35 33 0d 0a 09 69 6e 74 20 20 );.//453...int
4540: 59 50 69 78 65 6c 54 6f 43 68 61 72 28 69 6e 74 YPixelToChar(int
4550: 29 3b 09 2f 2f 34 35 34 0d 0a 09 69 6e 74 20 20 );.//454...int
4560: 59 50 69 78 65 6c 54 6f 4d 69 6c 6c 69 6d 65 74 YPixelToMillimet
4570: 65 72 73 28 69 6e 74 29 3b 09 2f 2f 34 35 35 0d ers(int);.//455.
4580: 0a 09 69 6e 74 20 20 59 50 69 78 65 6c 54 6f 55 ..int YPixelToU
4590: 6e 69 74 28 69 6e 74 29 3b 09 2f 2f 34 35 36 0d nit(int);.//456.
45a0: 0a 09 69 6e 74 20 20 59 55 6e 69 74 54 6f 50 69 ..int YUnitToPi
45b0: 78 65 6c 28 69 6e 74 29 3b 09 2f 2f 34 35 37 0d xel(int);.//457.
45c0: 0a 7d 3b 0d 0a 0d 0a 0d 0a 63 6c 61 73 73 20 43 .};......class C
45d0: 53 68 65 65 74 4e 61 6d 65 64 49 74 65 6d 3a 70 SheetNamedItem:p
45e0: 75 62 6c 69 63 20 43 4f 62 6a 65 63 74 0d 0a 7b ublic CObject..{
45f0: 0d 0a 44 45 43 4c 41 52 45 5f 44 59 4e 41 4d 49 ..DECLARE_DYNAMI
4600: 43 28 43 53 68 65 65 74 4e 61 6d 65 64 49 74 65 C(CSheetNamedIte
4610: 6d 29 0d 0a 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 m)....public:...
4620: 20 43 53 68 65 65 74 4e 61 6d 65 64 49 74 65 6d CSheetNamedItem
4630: 28 63 6c 61 73 73 20 43 53 68 65 65 74 4e 61 6d (class CSheetNam
4640: 65 64 49 74 65 6d 20 63 6f 6e 73 74 20 26 29 3b edItem const &);
4650: 09 2f 2f 31 33 0d 0a 09 20 43 53 68 65 65 74 4e .//13... CSheetN
4660: 61 6d 65 64 49 74 65 6d 28 63 6c 61 73 73 20 43 amedItem(class C
4670: 53 68 65 65 74 53 65 6c 65 63 74 69 6f 6e 20 63 SheetSelection c
4680: 6f 6e 73 74 20 26 29 3b 09 2f 2f 31 34 0d 0a 09 onst &);.//14...
4690: 20 43 53 68 65 65 74 4e 61 6d 65 64 49 74 65 6d CSheetNamedItem
46a0: 28 63 6c 61 73 73 20 43 53 68 65 65 74 44 72 61 (class CSheetDra
46b0: 77 69 6e 67 20 63 6f 6e 73 74 20 2a 29 3b 09 2f wing const *);./
46c0: 2f 31 35 0d 0a 09 20 43 53 68 65 65 74 4e 61 6d /15... CSheetNam
46d0: 65 64 49 74 65 6d 28 76 6f 69 64 29 3b 09 2f 2f edItem(void);.//
46e0: 31 36 0d 0a 09 76 69 72 74 75 61 6c 20 20 7e 43 16...virtual ~C
46f0: 53 68 65 65 74 4e 61 6d 65 64 49 74 65 6d 28 76 SheetNamedItem(v
4700: 6f 69 64 29 3b 09 2f 2f 34 33 0d 0a 09 63 6c 61 oid);.//43...cla
4710: 73 73 20 43 53 68 65 65 74 4e 61 6d 65 64 49 74 ss CSheetNamedIt
4720: 65 6d 20 26 20 20 6f 70 65 72 61 74 6f 72 3d 28 em & operator=(
4730: 63 6c 61 73 73 20 43 53 68 65 65 74 4e 61 6d 65 class CSheetName
4740: 64 49 74 65 6d 20 63 6f 6e 73 74 20 26 29 3b 09 dItem const &);.
4750: 2f 2f 35 31 0d 0a 09 62 6f 6f 6c 20 20 6f 70 65 //51...bool ope
4760: 72 61 74 6f 72 3d 3d 28 63 6c 61 73 73 20 43 53 rator==(class CS
4770: 68 65 65 74 4e 61 6d 65 64 49 74 65 6d 20 63 6f heetNamedItem co
4780: 6e 73 74 20 26 29 63 6f 6e 73 74 3b 09 2f 2f 36 nst &)const;.//6
4790: 30 0d 0a 09 62 6f 6f 6c 20 20 6f 70 65 72 61 74 0...bool operat
47a0: 6f 72 21 3d 28 63 6c 61 73 73 20 43 53 68 65 65 or!=(class CShee
47b0: 74 4e 61 6d 65 64 49 74 65 6d 20 63 6f 6e 73 74 tNamedItem const
47c0: 20 26 29 63 6f 6e 73 74 3b 09 2f 2f 36 34 0d 0a &)const;.//64..
47d0: 09 63 6c 61 73 73 20 43 53 68 65 65 74 4e 61 6d .class CSheetNam
47e0: 65 64 49 74 65 6d 20 26 20 20 41 73 73 69 67 6e edItem & Assign
47f0: 28 63 6c 61 73 73 20 43 53 68 65 65 74 4e 61 6d (class CSheetNam
4800: 65 64 49 74 65 6d 20 63 6f 6e 73 74 20 26 29 3b edItem const &);
4810: 09 2f 2f 39 34 0d 0a 09 63 6c 61 73 73 20 43 53 .//94...class CS
4820: 74 72 69 6e 67 20 20 20 44 69 73 70 6c 61 79 53 tring DisplayS
4830: 74 72 69 6e 67 28 76 6f 69 64 29 63 6f 6e 73 74 tring(void)const
4840: 3b 09 2f 2f 31 33 30 0d 0a 09 75 6e 73 69 67 6e ;.//130...unsign
4850: 65 64 20 6c 6f 6e 67 20 20 47 65 74 44 72 61 77 ed long GetDraw
4860: 49 44 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f ID(void)const;./
4870: 2f 31 37 36 0d 0a 09 63 6c 61 73 73 20 43 53 68 /176...class CSh
4880: 65 65 74 53 65 6c 65 63 74 69 6f 6e 20 63 6f 6e eetSelection con
4890: 73 74 20 26 20 20 47 65 74 52 61 6e 67 65 28 76 st & GetRange(v
48a0: 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 32 32 38 oid)const;.//228
48b0: 0d 0a 09 65 6e 75 6d 20 43 53 68 65 65 74 4e 61 ...enum CSheetNa
48c0: 6d 65 54 79 70 65 20 20 20 47 65 74 54 79 70 65 meType GetType
48d0: 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 32 (void)const;.//2
48e0: 36 37 0d 0a 09 62 6f 6f 6c 20 20 49 73 45 71 75 67...bool IsEqu
48f0: 61 6c 28 63 6c 61 73 73 20 43 53 68 65 65 74 4e al(class CSheetN
4900: 61 6d 65 64 49 74 65 6d 20 63 6f 6e 73 74 20 26 amedItem const &
4910: 29 63 6f 6e 73 74 3b 09 2f 2f 32 39 30 0d 0a 09 )const;.//290...
4920: 69 6e 74 20 20 50 61 72 73 65 53 74 72 69 6e 67 int ParseString
4930: 28 63 68 61 72 20 63 6f 6e 73 74 20 2a 29 3b 09 (char const *);.
4940: 2f 2f 33 34 36 0d 0a 09 76 69 72 74 75 61 6c 20 //346...virtual
4950: 76 6f 69 64 20 20 53 65 72 69 61 6c 69 7a 65 28 void Serialize(
4960: 63 6c 61 73 73 20 43 41 72 63 68 69 76 65 20 26 class CArchive &
4970: 29 3b 09 2f 2f 33 39 33 0d 0a 09 76 6f 69 64 20 );.//393...void
4980: 20 53 65 74 44 72 61 77 49 44 28 75 6e 73 69 67 SetDrawID(unsig
4990: 6e 65 64 20 6c 6f 6e 67 29 3b 09 2f 2f 34 30 30 ned long);.//400
49a0: 0d 0a 09 76 6f 69 64 20 20 53 65 74 52 61 6e 67 ...void SetRang
49b0: 65 28 63 6c 61 73 73 20 43 53 68 65 65 74 53 65 e(class CSheetSe
49c0: 6c 65 63 74 69 6f 6e 20 63 6f 6e 73 74 20 26 29 lection const &)
49d0: 3b 09 2f 2f 34 31 39 0d 0a 7d 3b 0d 0a 0d 0a 0d ;.//419..};.....
49e0: 0a 63 6c 61 73 73 20 43 53 68 65 65 74 4e 61 6d .class CSheetNam
49f0: 65 73 3a 70 75 62 6c 69 63 20 43 4f 62 6a 65 63 es:public CObjec
4a00: 74 0d 0a 7b 0d 0a 44 45 43 4c 41 52 45 5f 44 59 t..{..DECLARE_DY
4a10: 4e 41 4d 49 43 28 43 53 68 65 65 74 4e 61 6d 65 NAMIC(CSheetName
4a20: 73 29 0d 0a 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 s)....public:...
4a30: 20 43 53 68 65 65 74 4e 61 6d 65 73 28 76 6f 69 CSheetNames(voi
4a40: 64 29 3b 09 2f 2f 31 37 0d 0a 09 76 69 72 74 75 d);.//17...virtu
4a50: 61 6c 20 20 7e 43 53 68 65 65 74 4e 61 6d 65 73 al ~CSheetNames
4a60: 28 76 6f 69 64 29 3b 09 2f 2f 34 34 0d 0a 09 63 (void);.//44...c
4a70: 6c 61 73 73 20 43 53 68 65 65 74 4e 61 6d 65 73 lass CSheetNames
4a80: 20 26 20 20 6f 70 65 72 61 74 6f 72 3d 28 63 6c & operator=(cl
4a90: 61 73 73 20 43 53 68 65 65 74 4e 61 6d 65 73 20 ass CSheetNames
4aa0: 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 35 32 0d 0a const &);.//52..
4ab0: 09 76 69 72 74 75 61 6c 20 76 6f 69 64 20 20 53 .virtual void S
4ac0: 65 72 69 61 6c 69 7a 65 28 63 6c 61 73 73 20 43 erialize(class C
4ad0: 41 72 63 68 69 76 65 20 26 29 3b 09 2f 2f 33 39 Archive &);.//39
4ae0: 34 0d 0a 09 73 74 72 75 63 74 20 73 74 64 3a 3a 4...struct std::
4af0: 5f 5f 68 61 73 68 74 61 62 6c 65 5f 63 6f 6e 73 __hashtable_cons
4b00: 74 5f 69 74 65 72 61 74 6f 72 3c 73 74 72 75 63 t_iterator<struc
4b10: 74 20 73 74 64 3a 3a 70 61 69 72 3c 63 6c 61 73 t std::pair<clas
4b20: 73 20 43 53 74 72 69 6e 67 20 63 6f 6e 73 74 20 s CString const
4b30: 2c 63 6c 61 73 73 20 43 53 68 65 65 74 4e 61 6d ,class CSheetNam
4b40: 65 64 49 74 65 6d 3e 2c 63 6c 61 73 73 20 43 53 edItem>,class CS
4b50: 74 72 69 6e 67 2c 73 74 72 75 63 74 20 43 53 68 tring,struct CSh
4b60: 65 65 74 4e 61 6d 65 73 3a 3a 73 74 72 69 68 61 eetNames::striha
4b70: 73 68 2c 73 74 72 75 63 74 20 73 74 64 3a 3a 73 sh,struct std::s
4b80: 65 6c 65 63 74 31 73 74 3c 73 74 72 75 63 74 20 elect1st<struct
4b90: 73 74 64 3a 3a 70 61 69 72 3c 63 6c 61 73 73 20 std::pair<class
4ba0: 43 53 74 72 69 6e 67 20 63 6f 6e 73 74 20 2c 63 CString const ,c
4bb0: 6c 61 73 73 20 43 53 68 65 65 74 4e 61 6d 65 64 lass CSheetNamed
4bc0: 49 74 65 6d 3e 20 3e 2c 73 74 72 75 63 74 20 43 Item> >,struct C
4bd0: 53 68 65 65 74 4e 61 6d 65 73 3a 3a 73 74 72 69 SheetNames::stri
4be0: 65 71 2c 63 6c 61 73 73 20 73 74 64 3a 3a 5f 5f eq,class std::__
4bf0: 61 6c 6c 6f 63 3c 31 2c 30 3e 20 3e 20 20 20 62 alloc<1,0> > b
4c00: 65 67 69 6e 28 76 6f 69 64 29 63 6f 6e 73 74 3b egin(void)const;
4c10: 09 2f 2f 34 36 39 0d 0a 09 76 6f 69 64 20 20 63 .//469...void c
4c20: 6c 65 61 72 28 76 6f 69 64 29 3b 09 2f 2f 34 37 lear(void);.//47
4c30: 39 0d 0a 09 73 74 72 75 63 74 20 73 74 64 3a 3a 9...struct std::
4c40: 5f 5f 68 61 73 68 74 61 62 6c 65 5f 63 6f 6e 73 __hashtable_cons
4c50: 74 5f 69 74 65 72 61 74 6f 72 3c 73 74 72 75 63 t_iterator<struc
4c60: 74 20 73 74 64 3a 3a 70 61 69 72 3c 63 6c 61 73 t std::pair<clas
4c70: 73 20 43 53 74 72 69 6e 67 20 63 6f 6e 73 74 20 s CString const
4c80: 2c 63 6c 61 73 73 20 43 53 68 65 65 74 4e 61 6d ,class CSheetNam
4c90: 65 64 49 74 65 6d 3e 2c 63 6c 61 73 73 20 43 53 edItem>,class CS
4ca0: 74 72 69 6e 67 2c 73 74 72 75 63 74 20 43 53 68 tring,struct CSh
4cb0: 65 65 74 4e 61 6d 65 73 3a 3a 73 74 72 69 68 61 eetNames::striha
4cc0: 73 68 2c 73 74 72 75 63 74 20 73 74 64 3a 3a 73 sh,struct std::s
4cd0: 65 6c 65 63 74 31 73 74 3c 73 74 72 75 63 74 20 elect1st<struct
4ce0: 73 74 64 3a 3a 70 61 69 72 3c 63 6c 61 73 73 20 std::pair<class
4cf0: 43 53 74 72 69 6e 67 20 63 6f 6e 73 74 20 2c 63 CString const ,c
4d00: 6c 61 73 73 20 43 53 68 65 65 74 4e 61 6d 65 64 lass CSheetNamed
4d10: 49 74 65 6d 3e 20 3e 2c 73 74 72 75 63 74 20 43 Item> >,struct C
4d20: 53 68 65 65 74 4e 61 6d 65 73 3a 3a 73 74 72 69 SheetNames::stri
4d30: 65 71 2c 63 6c 61 73 73 20 73 74 64 3a 3a 5f 5f eq,class std::__
4d40: 61 6c 6c 6f 63 3c 31 2c 30 3e 20 3e 20 20 20 65 alloc<1,0> > e
4d50: 6e 64 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f nd(void)const;./
4d60: 2f 34 38 30 0d 0a 09 76 6f 69 64 20 20 65 72 61 /480...void era
4d70: 73 65 28 63 6c 61 73 73 20 43 53 74 72 69 6e 67 se(class CString
4d80: 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 34 38 31 const &);.//481
4d90: 0d 0a 09 73 74 72 75 63 74 20 73 74 64 3a 3a 5f ...struct std::_
4da0: 5f 68 61 73 68 74 61 62 6c 65 5f 63 6f 6e 73 74 _hashtable_const
4db0: 5f 69 74 65 72 61 74 6f 72 3c 73 74 72 75 63 74 _iterator<struct
4dc0: 20 73 74 64 3a 3a 70 61 69 72 3c 63 6c 61 73 73 std::pair<class
4dd0: 20 43 53 74 72 69 6e 67 20 63 6f 6e 73 74 20 2c CString const ,
4de0: 63 6c 61 73 73 20 43 53 68 65 65 74 4e 61 6d 65 class CSheetName
4df0: 64 49 74 65 6d 3e 2c 63 6c 61 73 73 20 43 53 74 dItem>,class CSt
4e00: 72 69 6e 67 2c 73 74 72 75 63 74 20 43 53 68 65 ring,struct CShe
4e10: 65 74 4e 61 6d 65 73 3a 3a 73 74 72 69 68 61 73 etNames::strihas
4e20: 68 2c 73 74 72 75 63 74 20 73 74 64 3a 3a 73 65 h,struct std::se
4e30: 6c 65 63 74 31 73 74 3c 73 74 72 75 63 74 20 73 lect1st<struct s
4e40: 74 64 3a 3a 70 61 69 72 3c 63 6c 61 73 73 20 43 td::pair<class C
4e50: 53 74 72 69 6e 67 20 63 6f 6e 73 74 20 2c 63 6c String const ,cl
4e60: 61 73 73 20 43 53 68 65 65 74 4e 61 6d 65 64 49 ass CSheetNamedI
4e70: 74 65 6d 3e 20 3e 2c 73 74 72 75 63 74 20 43 53 tem> >,struct CS
4e80: 68 65 65 74 4e 61 6d 65 73 3a 3a 73 74 72 69 65 heetNames::strie
4e90: 71 2c 63 6c 61 73 73 20 73 74 64 3a 3a 5f 5f 61 q,class std::__a
4ea0: 6c 6c 6f 63 3c 31 2c 30 3e 20 3e 20 20 20 66 69 lloc<1,0> > fi
4eb0: 6e 64 28 63 6c 61 73 73 20 43 53 74 72 69 6e 67 nd(class CString
4ec0: 20 63 6f 6e 73 74 20 26 29 63 6f 6e 73 74 3b 09 const &)const;.
4ed0: 2f 2f 34 38 32 0d 0a 09 73 74 72 75 63 74 20 73 //482...struct s
4ee0: 74 64 3a 3a 5f 5f 68 61 73 68 74 61 62 6c 65 5f td::__hashtable_
4ef0: 63 6f 6e 73 74 5f 69 74 65 72 61 74 6f 72 3c 73 const_iterator<s
4f00: 74 72 75 63 74 20 73 74 64 3a 3a 70 61 69 72 3c truct std::pair<
4f10: 63 6c 61 73 73 20 43 53 74 72 69 6e 67 20 63 6f class CString co
4f20: 6e 73 74 20 2c 63 6c 61 73 73 20 43 53 68 65 65 nst ,class CShee
4f30: 74 4e 61 6d 65 64 49 74 65 6d 3e 2c 63 6c 61 73 tNamedItem>,clas
4f40: 73 20 43 53 74 72 69 6e 67 2c 73 74 72 75 63 74 s CString,struct
4f50: 20 43 53 68 65 65 74 4e 61 6d 65 73 3a 3a 73 74 CSheetNames::st
4f60: 72 69 68 61 73 68 2c 73 74 72 75 63 74 20 73 74 rihash,struct st
4f70: 64 3a 3a 73 65 6c 65 63 74 31 73 74 3c 73 74 72 d::select1st<str
4f80: 75 63 74 20 73 74 64 3a 3a 70 61 69 72 3c 63 6c uct std::pair<cl
4f90: 61 73 73 20 43 53 74 72 69 6e 67 20 63 6f 6e 73 ass CString cons
4fa0: 74 20 2c 63 6c 61 73 73 20 43 53 68 65 65 74 4e t ,class CSheetN
4fb0: 61 6d 65 64 49 74 65 6d 3e 20 3e 2c 73 74 72 75 amedItem> >,stru
4fc0: 63 74 20 43 53 68 65 65 74 4e 61 6d 65 73 3a 3a ct CSheetNames::
4fd0: 73 74 72 69 65 71 2c 63 6c 61 73 73 20 73 74 64 strieq,class std
4fe0: 3a 3a 5f 5f 61 6c 6c 6f 63 3c 31 2c 30 3e 20 3e ::__alloc<1,0> >
4ff0: 20 20 20 66 69 6e 64 5f 69 74 65 6d 28 63 6c 61 find_item(cla
5000: 73 73 20 43 53 68 65 65 74 4e 61 6d 65 64 49 74 ss CSheetNamedIt
5010: 65 6d 20 63 6f 6e 73 74 20 26 29 63 6f 6e 73 74 em const &)const
5020: 3b 09 2f 2f 34 38 33 0d 0a 09 76 6f 69 64 20 20 ;.//483...void
5030: 69 6e 73 65 72 74 28 63 6c 61 73 73 20 43 53 74 insert(class CSt
5040: 72 69 6e 67 20 63 6f 6e 73 74 20 26 2c 63 6c 61 ring const &,cla
5050: 73 73 20 43 53 68 65 65 74 4e 61 6d 65 64 49 74 ss CSheetNamedIt
5060: 65 6d 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 34 em const &);.//4
5070: 38 34 0d 0a 7d 3b 0d 0a 0d 0a 0d 0a 63 6c 61 73 84..};......clas
5080: 73 20 43 53 68 65 65 74 4f 75 74 6c 69 6e 65 0d s CSheetOutline.
5090: 0a 7b 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 20 43 .{..public:... C
50a0: 53 68 65 65 74 4f 75 74 6c 69 6e 65 28 63 6c 61 SheetOutline(cla
50b0: 73 73 20 43 53 68 65 65 74 4f 75 74 6c 69 6e 65 ss CSheetOutline
50c0: 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 31 38 0d const &);.//18.
50d0: 0a 09 20 43 53 68 65 65 74 4f 75 74 6c 69 6e 65 .. CSheetOutline
50e0: 28 69 6e 74 2c 69 6e 74 2c 69 6e 74 2c 63 68 61 (int,int,int,cha
50f0: 72 20 63 6f 6e 73 74 20 2a 29 3b 09 2f 2f 31 39 r const *);.//19
5100: 0d 0a 09 20 43 53 68 65 65 74 4f 75 74 6c 69 6e ... CSheetOutlin
5110: 65 28 76 6f 69 64 29 3b 09 2f 2f 32 30 0d 0a 09 e(void);.//20...
5120: 76 69 72 74 75 61 6c 20 20 7e 43 53 68 65 65 74 virtual ~CSheet
5130: 4f 75 74 6c 69 6e 65 28 76 6f 69 64 29 3b 09 2f Outline(void);./
5140: 2f 34 35 0d 0a 09 63 6c 61 73 73 20 43 53 68 65 /45...class CShe
5150: 65 74 4f 75 74 6c 69 6e 65 20 26 20 20 6f 70 65 etOutline & ope
5160: 72 61 74 6f 72 3d 28 63 6c 61 73 73 20 43 53 68 rator=(class CSh
5170: 65 65 74 4f 75 74 6c 69 6e 65 20 63 6f 6e 73 74 eetOutline const
5180: 20 26 29 3b 09 2f 2f 35 33 0d 0a 09 63 6c 61 73 &);.//53...clas
5190: 73 20 43 53 68 65 65 74 4f 75 74 6c 69 6e 65 20 s CSheetOutline
51a0: 26 20 20 41 73 73 69 67 6e 28 63 6c 61 73 73 20 & Assign(class
51b0: 43 53 68 65 65 74 4f 75 74 6c 69 6e 65 20 63 6f CSheetOutline co
51c0: 6e 73 74 20 26 29 3b 09 2f 2f 39 35 0d 0a 09 63 nst &);.//95...c
51d0: 6c 61 73 73 20 43 53 74 72 69 6e 67 20 63 6f 6e lass CString con
51e0: 73 74 20 26 20 20 47 65 74 4e 61 6d 65 28 76 6f st & GetName(vo
51f0: 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 32 31 33 0d id)const;.//213.
5200: 0a 09 76 6f 69 64 20 20 53 65 74 4e 61 6d 65 28 ..void SetName(
5210: 63 68 61 72 20 63 6f 6e 73 74 20 2a 29 3b 09 2f char const *);./
5220: 2f 34 30 36 0d 0a 7d 3b 0d 0a 0d 0a 0d 0a 63 6c /406..};......cl
5230: 61 73 73 20 43 53 68 65 65 74 50 6f 69 6e 74 0d ass CSheetPoint.
5240: 0a 7b 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 20 43 .{..public:... C
5250: 53 68 65 65 74 50 6f 69 6e 74 28 73 74 72 75 63 SheetPoint(struc
5260: 74 20 53 48 45 45 54 50 4f 49 4e 54 20 63 6f 6e t SHEETPOINT con
5270: 73 74 20 26 29 3b 09 2f 2f 32 31 0d 0a 09 20 43 st &);.//21... C
5280: 53 68 65 65 74 50 6f 69 6e 74 28 63 6c 61 73 73 SheetPoint(class
5290: 20 43 53 68 65 65 74 50 6f 69 6e 74 20 63 6f 6e CSheetPoint con
52a0: 73 74 20 26 29 3b 09 2f 2f 32 32 0d 0a 09 20 43 st &);.//22... C
52b0: 53 68 65 65 74 50 6f 69 6e 74 28 69 6e 74 2c 69 SheetPoint(int,i
52c0: 6e 74 2c 69 6e 74 2c 69 6e 74 29 3b 09 2f 2f 32 nt,int,int);.//2
52d0: 33 0d 0a 09 20 43 53 68 65 65 74 50 6f 69 6e 74 3... CSheetPoint
52e0: 28 63 6c 61 73 73 20 43 50 6f 69 6e 74 2c 63 6c (class CPoint,cl
52f0: 61 73 73 20 43 50 6f 69 6e 74 29 3b 09 2f 2f 32 ass CPoint);.//2
5300: 34 0d 0a 09 20 43 53 68 65 65 74 50 6f 69 6e 74 4... CSheetPoint
5310: 28 76 6f 69 64 29 3b 09 2f 2f 32 35 0d 0a 09 63 (void);.//25...c
5320: 6c 61 73 73 20 43 53 68 65 65 74 50 6f 69 6e 74 lass CSheetPoint
5330: 20 26 20 20 6f 70 65 72 61 74 6f 72 3d 28 73 74 & operator=(st
5340: 72 75 63 74 20 53 48 45 45 54 50 4f 49 4e 54 20 ruct SHEETPOINT
5350: 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 35 34 0d 0a const &);.//54..
5360: 09 63 6c 61 73 73 20 43 53 68 65 65 74 50 6f 69 .class CSheetPoi
5370: 6e 74 20 26 20 20 6f 70 65 72 61 74 6f 72 3d 28 nt & operator=(
5380: 63 6c 61 73 73 20 43 53 68 65 65 74 50 6f 69 6e class CSheetPoin
5390: 74 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 35 35 t const &);.//55
53a0: 0d 0a 09 69 6e 74 20 20 6f 70 65 72 61 74 6f 72 ...int operator
53b0: 3d 3d 28 63 6c 61 73 73 20 43 53 68 65 65 74 50 ==(class CSheetP
53c0: 6f 69 6e 74 20 63 6f 6e 73 74 20 26 29 63 6f 6e oint const &)con
53d0: 73 74 3b 09 2f 2f 36 31 0d 0a 09 69 6e 74 20 20 st;.//61...int
53e0: 6f 70 65 72 61 74 6f 72 21 3d 28 63 6c 61 73 73 operator!=(class
53f0: 20 43 53 68 65 65 74 50 6f 69 6e 74 20 63 6f 6e CSheetPoint con
5400: 73 74 20 26 29 63 6f 6e 73 74 3b 09 2f 2f 36 35 st &)const;.//65
5410: 0d 0a 09 63 6c 61 73 73 20 43 53 68 65 65 74 50 ...class CSheetP
5420: 6f 69 6e 74 20 20 20 6f 70 65 72 61 74 6f 72 2d oint operator-
5430: 28 63 6c 61 73 73 20 43 53 68 65 65 74 50 6f 69 (class CSheetPoi
5440: 6e 74 20 63 6f 6e 73 74 20 26 29 63 6f 6e 73 74 nt const &)const
5450: 3b 09 2f 2f 36 39 0d 0a 09 63 6c 61 73 73 20 43 ;.//69...class C
5460: 53 68 65 65 74 50 6f 69 6e 74 20 20 20 6f 70 65 SheetPoint ope
5470: 72 61 74 6f 72 2d 28 76 6f 69 64 29 63 6f 6e 73 rator-(void)cons
5480: 74 3b 09 2f 2f 37 30 0d 0a 09 63 6c 61 73 73 20 t;.//70...class
5490: 43 53 68 65 65 74 50 6f 69 6e 74 20 20 20 6f 70 CSheetPoint op
54a0: 65 72 61 74 6f 72 2b 28 63 6c 61 73 73 20 43 53 erator+(class CS
54b0: 68 65 65 74 50 6f 69 6e 74 20 63 6f 6e 73 74 20 heetPoint const
54c0: 26 29 63 6f 6e 73 74 3b 09 2f 2f 37 31 0d 0a 09 &)const;.//71...
54d0: 76 6f 69 64 20 20 6f 70 65 72 61 74 6f 72 2b 3d void operator+=
54e0: 28 63 6c 61 73 73 20 43 53 68 65 65 74 50 6f 69 (class CSheetPoi
54f0: 6e 74 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 37 nt const &);.//7
5500: 32 0d 0a 09 76 6f 69 64 20 20 6f 70 65 72 61 74 2...void operat
5510: 6f 72 2d 3d 28 63 6c 61 73 73 20 43 53 68 65 65 or-=(class CShee
5520: 74 50 6f 69 6e 74 20 63 6f 6e 73 74 20 26 29 3b tPoint const &);
5530: 09 2f 2f 37 33 0d 0a 09 76 6f 69 64 20 20 4f 66 .//73...void Of
5540: 66 73 65 74 28 63 6c 61 73 73 20 43 53 68 65 65 fset(class CShee
5550: 74 50 6f 69 6e 74 20 63 6f 6e 73 74 20 26 29 3b tPoint const &);
5560: 09 2f 2f 33 32 37 0d 0a 09 76 6f 69 64 20 20 4f .//327...void O
5570: 66 66 73 65 74 28 63 6c 61 73 73 20 43 50 6f 69 ffset(class CPoi
5580: 6e 74 2c 63 6c 61 73 73 20 43 50 6f 69 6e 74 29 nt,class CPoint)
5590: 3b 09 2f 2f 33 32 38 0d 0a 09 63 6c 61 73 73 20 ;.//328...class
55a0: 43 53 68 65 65 74 50 6f 69 6e 74 20 26 20 20 53 CSheetPoint & S
55b0: 65 74 50 6f 69 6e 74 28 73 74 72 75 63 74 20 53 etPoint(struct S
55c0: 48 45 45 54 50 4f 49 4e 54 20 63 6f 6e 73 74 20 HEETPOINT const
55d0: 26 29 3b 09 2f 2f 34 31 30 0d 0a 09 63 6c 61 73 &);.//410...clas
55e0: 73 20 43 53 68 65 65 74 50 6f 69 6e 74 20 26 20 s CSheetPoint &
55f0: 20 53 65 74 50 6f 69 6e 74 28 63 6c 61 73 73 20 SetPoint(class
5600: 43 53 68 65 65 74 50 6f 69 6e 74 20 63 6f 6e 73 CSheetPoint cons
5610: 74 20 26 29 3b 09 2f 2f 34 31 31 0d 0a 09 63 6c t &);.//411...cl
5620: 61 73 73 20 43 53 68 65 65 74 50 6f 69 6e 74 20 ass CSheetPoint
5630: 26 20 20 53 65 74 50 6f 69 6e 74 28 69 6e 74 2c & SetPoint(int,
5640: 69 6e 74 2c 69 6e 74 2c 69 6e 74 29 3b 09 2f 2f int,int,int);.//
5650: 34 31 32 0d 0a 09 63 6c 61 73 73 20 43 53 68 65 412...class CShe
5660: 65 74 50 6f 69 6e 74 20 26 20 20 53 65 74 50 6f etPoint & SetPo
5670: 69 6e 74 28 63 6c 61 73 73 20 43 50 6f 69 6e 74 int(class CPoint
5680: 2c 63 6c 61 73 73 20 43 50 6f 69 6e 74 29 3b 09 ,class CPoint);.
5690: 2f 2f 34 31 33 0d 0a 7d 3b 0d 0a 0d 0a 0d 0a 63 //413..};......c
56a0: 6c 61 73 73 20 43 53 68 65 65 74 52 65 63 74 0d lass CSheetRect.
56b0: 0a 7b 0d 0a 70 75 62 6c 69 63 3a 0d 0a 09 20 43 .{..public:... C
56c0: 53 68 65 65 74 52 65 63 74 28 63 6c 61 73 73 20 SheetRect(class
56d0: 43 53 68 65 65 74 52 65 63 74 20 63 6f 6e 73 74 CSheetRect const
56e0: 20 26 29 3b 09 2f 2f 32 36 0d 0a 09 20 43 53 68 &);.//26... CSh
56f0: 65 65 74 52 65 63 74 28 63 6c 61 73 73 20 43 53 eetRect(class CS
5700: 68 65 65 74 50 6f 69 6e 74 20 63 6f 6e 73 74 20 heetPoint const
5710: 26 2c 63 6c 61 73 73 20 43 53 68 65 65 74 50 6f &,class CSheetPo
5720: 69 6e 74 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f int const &);.//
5730: 32 37 0d 0a 09 20 43 53 68 65 65 74 52 65 63 74 27... CSheetRect
5740: 28 63 6c 61 73 73 20 43 52 65 63 74 29 3b 09 2f (class CRect);./
5750: 2f 32 38 0d 0a 09 20 43 53 68 65 65 74 52 65 63 /28... CSheetRec
5760: 74 28 76 6f 69 64 29 3b 09 2f 2f 32 39 0d 0a 09 t(void);.//29...
5770: 63 6c 61 73 73 20 43 53 68 65 65 74 52 65 63 74 class CSheetRect
5780: 20 26 20 20 6f 70 65 72 61 74 6f 72 3d 28 63 6c & operator=(cl
5790: 61 73 73 20 43 53 68 65 65 74 52 65 63 74 20 63 ass CSheetRect c
57a0: 6f 6e 73 74 20 26 29 3b 09 2f 2f 35 36 0d 0a 09 onst &);.//56...
57b0: 69 6e 74 20 20 6f 70 65 72 61 74 6f 72 3d 3d 28 int operator==(
57c0: 63 6c 61 73 73 20 43 53 68 65 65 74 52 65 63 74 class CSheetRect
57d0: 20 63 6f 6e 73 74 20 26 29 63 6f 6e 73 74 3b 09 const &)const;.
57e0: 2f 2f 36 32 0d 0a 09 69 6e 74 20 20 6f 70 65 72 //62...int oper
57f0: 61 74 6f 72 21 3d 28 63 6c 61 73 73 20 43 53 68 ator!=(class CSh
5800: 65 65 74 52 65 63 74 20 63 6f 6e 73 74 20 26 29 eetRect const &)
5810: 63 6f 6e 73 74 3b 09 2f 2f 36 36 0d 0a 09 20 6f const;.//66... o
5820: 70 65 72 61 74 6f 72 20 73 74 72 75 63 74 20 53 perator struct S
5830: 48 45 45 54 52 45 43 54 20 26 28 76 6f 69 64 29 HEETRECT &(void)
5840: 3b 09 2f 2f 36 38 0d 0a 09 63 6c 61 73 73 20 43 ;.//68...class C
5850: 53 68 65 65 74 50 6f 69 6e 74 20 20 20 42 6f 74 SheetPoint Bot
5860: 74 6f 6d 4c 65 66 74 28 76 6f 69 64 29 63 6f 6e tomLeft(void)con
5870: 73 74 3b 09 2f 2f 39 38 0d 0a 09 63 6c 61 73 73 st;.//98...class
5880: 20 43 53 68 65 65 74 50 6f 69 6e 74 20 20 20 42 CSheetPoint B
5890: 6f 74 74 6f 6d 52 69 67 68 74 28 76 6f 69 64 29 ottomRight(void)
58a0: 63 6f 6e 73 74 3b 09 2f 2f 39 39 0d 0a 09 69 6e const;.//99...in
58b0: 74 20 20 44 65 6c 65 74 65 52 65 63 74 28 63 6c t DeleteRect(cl
58c0: 61 73 73 20 43 52 65 63 74 20 63 6f 6e 73 74 20 ass CRect const
58d0: 26 2c 65 6e 75 6d 20 43 53 68 65 65 74 44 69 72 &,enum CSheetDir
58e0: 65 63 74 69 6f 6e 29 3b 09 2f 2f 31 32 38 0d 0a ection);.//128..
58f0: 09 69 6e 74 20 20 49 6e 73 65 72 74 52 65 63 74 .int InsertRect
5900: 28 63 6c 61 73 73 20 43 52 65 63 74 20 63 6f 6e (class CRect con
5910: 73 74 20 26 2c 65 6e 75 6d 20 43 53 68 65 65 74 st &,enum CSheet
5920: 44 69 72 65 63 74 69 6f 6e 29 3b 09 2f 2f 32 38 Direction);.//28
5930: 34 0d 0a 09 69 6e 74 20 20 49 6e 74 65 72 73 65 4...int Interse
5940: 63 74 52 65 63 74 28 63 6c 61 73 73 20 43 53 68 ctRect(class CSh
5950: 65 65 74 52 65 63 74 20 63 6f 6e 73 74 20 26 2c eetRect const &,
5960: 63 6c 61 73 73 20 43 53 68 65 65 74 52 65 63 74 class CSheetRect
5970: 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 32 38 36 const &);.//286
5980: 0d 0a 09 69 6e 74 20 20 49 73 52 65 63 74 4e 75 ...int IsRectNu
5990: 6c 6c 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f ll(void)const;./
59a0: 2f 32 39 38 0d 0a 09 76 6f 69 64 20 20 4e 6f 72 /298...void Nor
59b0: 6d 61 6c 69 7a 65 52 65 63 74 28 76 6f 69 64 29 malizeRect(void)
59c0: 3b 09 2f 2f 33 32 36 0d 0a 09 76 6f 69 64 20 20 ;.//326...void
59d0: 4f 66 66 73 65 74 52 65 63 74 28 63 6c 61 73 73 OffsetRect(class
59e0: 20 43 53 68 65 65 74 50 6f 69 6e 74 20 63 6f 6e CSheetPoint con
59f0: 73 74 20 26 29 3b 09 2f 2f 33 33 30 0d 0a 09 69 st &);.//330...i
5a00: 6e 74 20 20 50 74 49 6e 52 65 63 74 28 63 6c 61 nt PtInRect(cla
5a10: 73 73 20 43 53 68 65 65 74 50 6f 69 6e 74 20 63 ss CSheetPoint c
5a20: 6f 6e 73 74 20 26 29 3b 09 2f 2f 33 35 34 0d 0a onst &);.//354..
5a30: 09 63 6c 61 73 73 20 43 53 68 65 65 74 52 65 63 .class CSheetRec
5a40: 74 20 26 20 20 53 65 74 52 65 63 74 28 63 6c 61 t & SetRect(cla
5a50: 73 73 20 43 53 68 65 65 74 52 65 63 74 20 63 6f ss CSheetRect co
5a60: 6e 73 74 20 26 29 3b 09 2f 2f 34 32 32 0d 0a 09 nst &);.//422...
5a70: 63 6c 61 73 73 20 43 53 68 65 65 74 52 65 63 74 class CSheetRect
5a80: 20 26 20 20 53 65 74 52 65 63 74 28 63 6c 61 73 & SetRect(clas
5a90: 73 20 43 53 68 65 65 74 50 6f 69 6e 74 20 63 6f s CSheetPoint co
5aa0: 6e 73 74 20 26 2c 63 6c 61 73 73 20 43 53 68 65 nst &,class CShe
5ab0: 65 74 50 6f 69 6e 74 20 63 6f 6e 73 74 20 26 29 etPoint const &)
5ac0: 3b 09 2f 2f 34 32 33 0d 0a 09 76 6f 69 64 20 20 ;.//423...void
5ad0: 53 65 74 52 65 63 74 45 6d 70 74 79 28 76 6f 69 SetRectEmpty(voi
5ae0: 64 29 3b 09 2f 2f 34 32 34 0d 0a 09 69 6e 74 20 d);.//424...int
5af0: 20 53 75 62 74 72 61 63 74 52 65 63 74 28 63 6c SubtractRect(cl
5b00: 61 73 73 20 43 53 68 65 65 74 52 65 63 74 20 63 ass CSheetRect c
5b10: 6f 6e 73 74 20 26 2c 63 6c 61 73 73 20 43 53 68 onst &,class CSh
5b20: 65 65 74 52 65 63 74 20 63 6f 6e 73 74 20 26 29 eetRect const &)
5b30: 3b 09 2f 2f 34 33 35 0d 0a 09 63 6c 61 73 73 20 ;.//435...class
5b40: 43 53 68 65 65 74 50 6f 69 6e 74 20 20 20 54 6f CSheetPoint To
5b50: 70 4c 65 66 74 28 76 6f 69 64 29 63 6f 6e 73 74 pLeft(void)const
5b60: 3b 09 2f 2f 34 33 36 0d 0a 09 63 6c 61 73 73 20 ;.//436...class
5b70: 43 53 68 65 65 74 50 6f 69 6e 74 20 20 20 54 6f CSheetPoint To
5b80: 70 52 69 67 68 74 28 76 6f 69 64 29 63 6f 6e 73 pRight(void)cons
5b90: 74 3b 09 2f 2f 34 33 37 0d 0a 09 69 6e 74 20 20 t;.//437...int
5ba0: 55 6e 69 6f 6e 52 65 63 74 28 63 6c 61 73 73 20 UnionRect(class
5bb0: 43 53 68 65 65 74 52 65 63 74 20 63 6f 6e 73 74 CSheetRect const
5bc0: 20 26 2c 63 6c 61 73 73 20 43 53 68 65 65 74 52 &,class CSheetR
5bd0: 65 63 74 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f ect const &);.//
5be0: 34 34 33 0d 0a 7d 3b 0d 0a 0d 0a 0d 0a 63 6c 61 443..};......cla
5bf0: 73 73 20 43 53 68 65 65 74 52 6f 77 3a 70 75 62 ss CSheetRow:pub
5c00: 6c 69 63 20 43 4f 62 6a 65 63 74 0d 0a 7b 0d 0a lic CObject..{..
5c10: 44 45 43 4c 41 52 45 5f 44 59 4e 43 52 45 41 54 DECLARE_DYNCREAT
5c20: 45 28 43 53 68 65 65 74 52 6f 77 29 0d 0a 0d 0a E(CSheetRow)....
5c30: 70 75 62 6c 69 63 3a 0d 0a 09 20 43 53 68 65 65 public:... CShee
5c40: 74 52 6f 77 28 63 6c 61 73 73 20 43 53 68 65 65 tRow(class CShee
5c50: 74 52 6f 77 20 63 6f 6e 73 74 20 26 29 3b 09 2f tRow const &);./
5c60: 2f 33 30 0d 0a 09 20 43 53 68 65 65 74 52 6f 77 /30... CSheetRow
5c70: 28 76 6f 69 64 29 3b 09 2f 2f 33 31 0d 0a 09 76 (void);.//31...v
5c80: 69 72 74 75 61 6c 20 20 7e 43 53 68 65 65 74 52 irtual ~CSheetR
5c90: 6f 77 28 76 6f 69 64 29 3b 09 2f 2f 34 36 0d 0a ow(void);.//46..
5ca0: 09 63 6c 61 73 73 20 43 53 68 65 65 74 52 6f 77 .class CSheetRow
5cb0: 20 26 20 20 6f 70 65 72 61 74 6f 72 3d 28 63 6c & operator=(cl
5cc0: 61 73 73 20 43 53 68 65 65 74 52 6f 77 20 63 6f ass CSheetRow co
5cd0: 6e 73 74 20 26 29 3b 09 2f 2f 35 37 0d 0a 09 63 nst &);.//57...c
5ce0: 6c 61 73 73 20 43 53 68 65 65 74 52 6f 77 20 26 lass CSheetRow &
5cf0: 20 20 41 73 73 69 67 6e 28 63 6c 61 73 73 20 43 Assign(class C
5d00: 53 68 65 65 74 52 6f 77 20 63 6f 6e 73 74 20 26 SheetRow const &
5d10: 29 3b 09 2f 2f 39 36 0d 0a 09 63 6c 61 73 73 20 );.//96...class
5d20: 43 53 68 65 65 74 43 65 6c 6c 20 26 20 20 45 6c CSheetCell & El
5d30: 65 6d 65 6e 74 41 74 28 69 6e 74 2c 69 6e 74 20 ementAt(int,int
5d40: 2a 29 3b 09 2f 2f 31 33 36 0d 0a 09 63 6c 61 73 *);.//136...clas
5d50: 73 20 43 53 68 65 65 74 43 65 6c 6c 20 2a 20 20 s CSheetCell *
5d60: 47 65 74 41 74 28 69 6e 74 2c 69 6e 74 20 2a 29 GetAt(int,int *)
5d70: 63 6f 6e 73 74 3b 09 2f 2f 31 34 36 0d 0a 09 69 const;.//146...i
5d80: 6e 74 20 20 47 65 74 43 6f 75 6e 74 28 76 6f 69 nt GetCount(voi
5d90: 64 29 63 6f 6e 73 74 3b 09 2f 2f 31 37 30 0d 0a d)const;.//170..
5da0: 09 69 6e 74 20 20 4b 65 79 41 74 28 69 6e 74 29 .int KeyAt(int)
5db0: 63 6f 6e 73 74 3b 09 2f 2f 33 30 33 0d 0a 09 69 const;.//303...i
5dc0: 6e 74 20 20 4c 6f 6f 6b 75 70 28 69 6e 74 2c 63 nt Lookup(int,c
5dd0: 6c 61 73 73 20 43 53 68 65 65 74 43 65 6c 6c 20 lass CSheetCell
5de0: 2a 20 26 2c 69 6e 74 20 2a 29 63 6f 6e 73 74 3b * &,int *)const;
5df0: 09 2f 2f 33 30 37 0d 0a 09 69 6e 74 20 20 4c 6f .//307...int Lo
5e00: 6f 6b 75 70 4b 65 79 28 69 6e 74 2c 69 6e 74 20 okupKey(int,int
5e10: 2a 29 63 6f 6e 73 74 3b 09 2f 2f 33 31 31 0d 0a *)const;.//311..
5e20: 09 76 6f 69 64 20 20 4d 6f 64 69 66 79 4b 65 79 .void ModifyKey
5e30: 28 69 6e 74 2c 69 6e 74 29 3b 09 2f 2f 33 32 33 (int,int);.//323
5e40: 0d 0a 09 76 6f 69 64 20 20 52 65 6d 6f 76 65 41 ...void RemoveA
5e50: 6c 6c 28 76 6f 69 64 29 3b 09 2f 2f 33 35 38 0d ll(void);.//358.
5e60: 0a 09 76 6f 69 64 20 20 52 65 6d 6f 76 65 41 74 ..void RemoveAt
5e70: 28 69 6e 74 29 3b 09 2f 2f 33 36 34 0d 0a 09 69 (int);.//364...i
5e80: 6e 74 20 20 52 65 6d 6f 76 65 4b 65 79 28 69 6e nt RemoveKey(in
5e90: 74 29 3b 09 2f 2f 33 36 36 0d 0a 09 76 69 72 74 t);.//366...virt
5ea0: 75 61 6c 20 76 6f 69 64 20 20 53 65 72 69 61 6c ual void Serial
5eb0: 69 7a 65 28 63 6c 61 73 73 20 43 41 72 63 68 69 ize(class CArchi
5ec0: 76 65 20 26 29 3b 09 2f 2f 33 39 35 0d 0a 09 69 ve &);.//395...i
5ed0: 6e 74 20 20 53 65 74 4b 65 79 28 69 6e 74 2c 63 nt SetKey(int,c
5ee0: 6c 61 73 73 20 43 53 68 65 65 74 43 65 6c 6c 20 lass CSheetCell
5ef0: 2a 29 3b 09 2f 2f 34 30 33 0d 0a 7d 3b 0d 0a 0d *);.//403..};...
5f00: 0a 0d 0a 63 6c 61 73 73 20 43 53 68 65 65 74 53 ...class CSheetS
5f10: 65 6c 65 63 74 69 6f 6e 3a 70 75 62 6c 69 63 20 election:public
5f20: 43 4f 62 6a 65 63 74 0d 0a 7b 0d 0a 44 45 43 4c CObject..{..DECL
5f30: 41 52 45 5f 44 59 4e 41 4d 49 43 28 43 53 68 65 ARE_DYNAMIC(CShe
5f40: 65 74 53 65 6c 65 63 74 69 6f 6e 29 0d 0a 0d 0a etSelection)....
5f50: 70 75 62 6c 69 63 3a 0d 0a 09 20 43 53 68 65 65 public:... CShee
5f60: 74 53 65 6c 65 63 74 69 6f 6e 28 63 6c 61 73 73 tSelection(class
5f70: 20 43 53 68 65 65 74 53 65 6c 65 63 74 69 6f 6e CSheetSelection
5f80: 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 33 32 0d const &);.//32.
5f90: 0a 09 20 43 53 68 65 65 74 53 65 6c 65 63 74 69 .. CSheetSelecti
5fa0: 6f 6e 28 76 6f 69 64 29 3b 09 2f 2f 33 33 0d 0a on(void);.//33..
5fb0: 09 76 69 72 74 75 61 6c 20 20 7e 43 53 68 65 65 .virtual ~CShee
5fc0: 74 53 65 6c 65 63 74 69 6f 6e 28 76 6f 69 64 29 tSelection(void)
5fd0: 3b 09 2f 2f 34 37 0d 0a 09 63 6c 61 73 73 20 43 ;.//47...class C
5fe0: 53 68 65 65 74 53 65 6c 65 63 74 69 6f 6e 20 26 SheetSelection &
5ff0: 20 20 6f 70 65 72 61 74 6f 72 3d 28 63 6c 61 73 operator=(clas
6000: 73 20 43 53 68 65 65 74 53 65 6c 65 63 74 69 6f s CSheetSelectio
6010: 6e 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 35 38 n const &);.//58
6020: 0d 0a 09 69 6e 74 20 20 6f 70 65 72 61 74 6f 72 ...int operator
6030: 3d 3d 28 63 6c 61 73 73 20 43 53 68 65 65 74 53 ==(class CSheetS
6040: 65 6c 65 63 74 69 6f 6e 20 63 6f 6e 73 74 20 26 election const &
6050: 29 63 6f 6e 73 74 3b 09 2f 2f 36 33 0d 0a 09 69 )const;.//63...i
6060: 6e 74 20 20 6f 70 65 72 61 74 6f 72 21 3d 28 63 nt operator!=(c
6070: 6c 61 73 73 20 43 53 68 65 65 74 53 65 6c 65 63 lass CSheetSelec
6080: 74 69 6f 6e 20 63 6f 6e 73 74 20 26 29 63 6f 6e tion const &)con
6090: 73 74 3b 09 2f 2f 36 37 0d 0a 09 69 6e 74 20 20 st;.//67...int
60a0: 44 65 6c 65 74 65 28 63 6c 61 73 73 20 43 53 68 Delete(class CSh
60b0: 65 65 74 53 65 6c 65 63 74 69 6f 6e 20 63 6f 6e eetSelection con
60c0: 73 74 20 26 2c 65 6e 75 6d 20 43 53 68 65 65 74 st &,enum CSheet
60d0: 44 69 72 65 63 74 69 6f 6e 29 3b 09 2f 2f 31 32 Direction);.//12
60e0: 32 0d 0a 09 69 6e 74 20 20 47 65 74 45 6e 64 28 2...int GetEnd(
60f0: 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 31 37 void)const;.//17
6100: 39 0d 0a 09 69 6e 74 20 20 47 65 74 4e 6f 72 6d 9...int GetNorm
6110: 61 6c 45 6e 64 28 76 6f 69 64 29 63 6f 6e 73 74 alEnd(void)const
6120: 3b 09 2f 2f 32 31 36 0d 0a 09 63 6c 61 73 73 20 ;.//216...class
6130: 43 52 65 63 74 20 20 20 47 65 74 4e 6f 72 6d 61 CRect GetNorma
6140: 6c 52 65 63 74 28 76 6f 69 64 29 63 6f 6e 73 74 lRect(void)const
6150: 3b 09 2f 2f 32 31 37 0d 0a 09 69 6e 74 20 20 47 ;.//217...int G
6160: 65 74 4e 6f 72 6d 61 6c 53 74 61 72 74 28 76 6f etNormalStart(vo
6170: 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 32 31 38 0d id)const;.//218.
6180: 0a 09 63 6c 61 73 73 20 43 52 65 63 74 20 63 6f ..class CRect co
6190: 6e 73 74 20 26 20 20 47 65 74 52 65 63 74 28 76 nst & GetRect(v
61a0: 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 32 33 31 oid)const;.//231
61b0: 0d 0a 09 69 6e 74 20 20 47 65 74 53 74 61 72 74 ...int GetStart
61c0: 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f 32 (void)const;.//2
61d0: 36 30 0d 0a 09 65 6e 75 6d 20 43 53 68 65 65 74 60...enum CSheet
61e0: 53 65 6c 65 63 74 54 79 70 65 20 20 20 47 65 74 SelectType Get
61f0: 54 79 70 65 28 76 6f 69 64 29 63 6f 6e 73 74 3b Type(void)const;
6200: 09 2f 2f 32 36 38 0d 0a 09 69 6e 74 20 20 49 6e .//268...int In
6210: 73 65 72 74 28 63 6c 61 73 73 20 43 53 68 65 65 sert(class CShee
6220: 74 53 65 6c 65 63 74 69 6f 6e 20 63 6f 6e 73 74 tSelection const
6230: 20 26 2c 65 6e 75 6d 20 43 53 68 65 65 74 44 69 &,enum CSheetDi
6240: 72 65 63 74 69 6f 6e 29 3b 09 2f 2f 32 38 30 0d rection);.//280.
6250: 0a 09 69 6e 74 20 20 49 6e 74 65 72 73 65 63 74 ..int Intersect
6260: 28 63 6c 61 73 73 20 43 53 68 65 65 74 53 65 6c (class CSheetSel
6270: 65 63 74 69 6f 6e 20 63 6f 6e 73 74 20 26 2c 63 ection const &,c
6280: 6c 61 73 73 20 43 53 68 65 65 74 53 65 6c 65 63 lass CSheetSelec
6290: 74 69 6f 6e 20 63 6f 6e 73 74 20 26 29 3b 09 2f tion const &);./
62a0: 2f 32 38 35 0d 0a 09 69 6e 74 20 20 49 73 43 65 /285...int IsCe
62b0: 6c 6c 53 65 6c 65 63 74 65 64 28 69 6e 74 2c 69 llSelected(int,i
62c0: 6e 74 29 63 6f 6e 73 74 3b 09 2f 2f 32 38 38 0d nt)const;.//288.
62d0: 0a 09 69 6e 74 20 20 49 73 45 71 75 61 6c 28 63 ..int IsEqual(c
62e0: 6c 61 73 73 20 43 53 68 65 65 74 53 65 6c 65 63 lass CSheetSelec
62f0: 74 69 6f 6e 20 63 6f 6e 73 74 20 26 29 63 6f 6e tion const &)con
6300: 73 74 3b 09 2f 2f 32 39 31 0d 0a 09 76 6f 69 64 st;.//291...void
6310: 20 20 4f 66 66 73 65 74 28 69 6e 74 2c 69 6e 74 Offset(int,int
6320: 29 3b 09 2f 2f 33 32 39 0d 0a 09 76 6f 69 64 20 );.//329...void
6330: 20 53 65 6c 65 63 74 43 65 6c 6c 28 69 6e 74 2c SelectCell(int,
6340: 69 6e 74 29 3b 09 2f 2f 33 38 32 0d 0a 09 76 6f int);.//382...vo
6350: 69 64 20 20 53 65 6c 65 63 74 43 6f 6c 75 6d 6e id SelectColumn
6360: 73 28 69 6e 74 2c 69 6e 74 29 3b 09 2f 2f 33 38 s(int,int);.//38
6370: 33 0d 0a 09 76 6f 69 64 20 20 53 65 6c 65 63 74 3...void Select
6380: 52 65 63 74 28 63 6c 61 73 73 20 43 52 65 63 74 Rect(class CRect
6390: 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 33 38 34 const &);.//384
63a0: 0d 0a 09 76 6f 69 64 20 20 53 65 6c 65 63 74 52 ...void SelectR
63b0: 65 63 74 28 69 6e 74 2c 69 6e 74 2c 69 6e 74 2c ect(int,int,int,
63c0: 69 6e 74 29 3b 09 2f 2f 33 38 35 0d 0a 09 76 6f int);.//385...vo
63d0: 69 64 20 20 53 65 6c 65 63 74 52 6f 77 73 28 69 id SelectRows(i
63e0: 6e 74 2c 69 6e 74 29 3b 09 2f 2f 33 38 36 0d 0a nt,int);.//386..
63f0: 09 76 6f 69 64 20 20 53 65 6c 65 63 74 54 61 62 .void SelectTab
6400: 6c 65 28 76 6f 69 64 29 3b 09 2f 2f 33 38 37 0d le(void);.//387.
6410: 0a 09 76 69 72 74 75 61 6c 20 76 6f 69 64 20 20 ..virtual void
6420: 53 65 72 69 61 6c 69 7a 65 28 63 6c 61 73 73 20 Serialize(class
6430: 43 41 72 63 68 69 76 65 20 26 29 3b 09 2f 2f 33 CArchive &);.//3
6440: 39 36 0d 0a 09 69 6e 74 20 20 53 75 62 74 72 61 96...int Subtra
6450: 63 74 28 63 6c 61 73 73 20 43 53 68 65 65 74 53 ct(class CSheetS
6460: 65 6c 65 63 74 69 6f 6e 20 63 6f 6e 73 74 20 26 election const &
6470: 2c 63 6c 61 73 73 20 43 53 68 65 65 74 53 65 6c ,class CSheetSel
6480: 65 63 74 69 6f 6e 20 63 6f 6e 73 74 20 26 29 3b ection const &);
6490: 09 2f 2f 34 33 34 0d 0a 09 76 6f 69 64 20 20 55 .//434...void U
64a0: 6e 69 6f 6e 28 63 6c 61 73 73 20 43 53 68 65 65 nion(class CShee
64b0: 74 53 65 6c 65 63 74 69 6f 6e 20 63 6f 6e 73 74 tSelection const
64c0: 20 26 2c 63 6c 61 73 73 20 43 53 68 65 65 74 53 &,class CSheetS
64d0: 65 6c 65 63 74 69 6f 6e 20 63 6f 6e 73 74 20 26 election const &
64e0: 29 3b 09 2f 2f 34 34 32 0d 0a 7d 3b 0d 0a 0d 0a );.//442..};....
64f0: 0d 0a 63 6c 61 73 73 20 43 53 68 65 65 74 56 69 ..class CSheetVi
6500: 65 77 0d 0a 7b 0d 0a 70 72 69 76 61 74 65 3a 0d ew..{..private:.
6510: 0a 09 20 43 53 68 65 65 74 56 69 65 77 28 76 6f .. CSheetView(vo
6520: 69 64 29 3b 09 2f 2f 33 34 0d 0a 70 75 62 6c 69 id);.//34..publi
6530: 63 3a 0d 0a 09 20 43 53 68 65 65 74 56 69 65 77 c:... CSheetView
6540: 28 63 6c 61 73 73 20 43 53 68 65 65 74 56 69 65 (class CSheetVie
6550: 77 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f 33 35 w const &);.//35
6560: 0d 0a 09 20 43 53 68 65 65 74 56 69 65 77 28 63 ... CSheetView(c
6570: 6c 61 73 73 20 43 53 68 65 65 74 44 6f 63 20 2a lass CSheetDoc *
6580: 29 3b 09 2f 2f 33 36 0d 0a 09 63 6c 61 73 73 20 );.//36...class
6590: 43 53 68 65 65 74 56 69 65 77 20 26 20 20 6f 70 CSheetView & op
65a0: 65 72 61 74 6f 72 3d 28 63 6c 61 73 73 20 43 53 erator=(class CS
65b0: 68 65 65 74 56 69 65 77 20 63 6f 6e 73 74 20 26 heetView const &
65c0: 29 3b 09 2f 2f 35 39 0d 0a 70 72 6f 74 65 63 74 );.//59..protect
65d0: 65 64 3a 0d 0a 09 69 6e 74 20 20 43 72 65 61 74 ed:...int Creat
65e0: 65 44 65 76 69 63 65 4d 6f 64 65 28 63 6c 61 73 eDeviceMode(clas
65f0: 73 20 43 50 72 69 6e 74 44 69 61 6c 6f 67 20 2a s CPrintDialog *
6600: 29 3b 09 2f 2f 31 31 32 0d 0a 70 75 62 6c 69 63 );.//112..public
6610: 3a 0d 0a 09 63 6c 61 73 73 20 43 52 65 63 74 20 :...class CRect
6620: 20 20 47 65 74 53 65 63 74 6f 72 52 65 63 74 28 GetSectorRect(
6630: 65 6e 75 6d 20 43 53 68 65 65 74 53 65 63 74 6f enum CSheetSecto
6640: 72 2c 75 6e 73 69 67 6e 65 64 20 69 6e 74 29 3b r,unsigned int);
6650: 09 2f 2f 32 35 34 0d 0a 09 63 6c 61 73 73 20 43 .//254...class C
6660: 53 68 65 65 74 20 26 20 20 47 65 74 53 68 65 65 Sheet & GetShee
6670: 74 28 76 6f 69 64 29 63 6f 6e 73 74 3b 09 2f 2f t(void)const;.//
6680: 32 35 36 0d 0a 70 72 69 76 61 74 65 3a 0d 0a 09 256..private:...
6690: 76 69 72 74 75 61 6c 20 76 6f 69 64 20 20 4f 6e virtual void On
66a0: 44 72 61 77 28 63 6c 61 73 73 20 43 44 43 20 2a Draw(class CDC *
66b0: 29 3b 09 2f 2f 33 33 35 0d 0a 70 72 6f 74 65 63 );.//335..protec
66c0: 74 65 64 3a 0d 0a 09 63 6c 61 73 73 20 43 53 68 ted:...class CSh
66d0: 65 65 74 50 6f 69 6e 74 20 20 20 50 69 78 65 6c eetPoint Pixel
66e0: 54 6f 53 68 65 65 74 28 63 6c 61 73 73 20 43 53 ToSheet(class CS
66f0: 68 65 65 74 47 44 49 20 26 2c 63 6c 61 73 73 20 heetGDI &,class
6700: 43 50 6f 69 6e 74 20 63 6f 6e 73 74 20 26 29 3b CPoint const &);
6710: 09 2f 2f 33 35 32 0d 0a 09 63 6c 61 73 73 20 43 .//352...class C
6720: 53 68 65 65 74 52 65 63 74 20 20 20 50 69 78 65 SheetRect Pixe
6730: 6c 54 6f 53 68 65 65 74 28 63 6c 61 73 73 20 43 lToSheet(class C
6740: 53 68 65 65 74 47 44 49 20 26 2c 63 6c 61 73 73 SheetGDI &,class
6750: 20 43 52 65 63 74 20 63 6f 6e 73 74 20 26 29 3b CRect const &);
6760: 09 2f 2f 33 35 33 0d 0a 70 75 62 6c 69 63 3a 0d .//353..public:.
6770: 0a 09 76 6f 69 64 20 20 53 63 72 6f 6c 6c 42 79 ..void ScrollBy
6780: 28 69 6e 74 2c 69 6e 74 29 3b 09 2f 2f 33 37 39 (int,int);.//379
6790: 0d 0a 09 76 6f 69 64 20 20 53 63 72 6f 6c 6c 54 ...void ScrollT
67a0: 6f 45 6e 64 50 6f 73 69 74 69 6f 6e 28 69 6e 74 oEndPosition(int
67b0: 2c 69 6e 74 29 3b 09 2f 2f 33 38 30 0d 0a 09 76 ,int);.//380...v
67c0: 6f 69 64 20 20 53 63 72 6f 6c 6c 54 6f 50 6f 73 oid ScrollToPos
67d0: 69 74 69 6f 6e 28 69 6e 74 2c 69 6e 74 29 3b 09 ition(int,int);.
67e0: 2f 2f 33 38 31 0d 0a 70 72 6f 74 65 63 74 65 64 //381..protected
67f0: 3a 0d 0a 09 63 6c 61 73 73 20 43 50 6f 69 6e 74 :...class CPoint
6800: 20 20 20 53 68 65 65 74 54 6f 50 69 78 65 6c 28 SheetToPixel(
6810: 63 6c 61 73 73 20 43 53 68 65 65 74 47 44 49 20 class CSheetGDI
6820: 26 2c 63 6c 61 73 73 20 43 53 68 65 65 74 50 6f &,class CSheetPo
6830: 69 6e 74 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f int const &);.//
6840: 34 33 32 0d 0a 09 63 6c 61 73 73 20 43 52 65 63 432...class CRec
6850: 74 20 20 20 53 68 65 65 74 54 6f 50 69 78 65 6c t SheetToPixel
6860: 28 63 6c 61 73 73 20 43 53 68 65 65 74 47 44 49 (class CSheetGDI
6870: 20 26 2c 63 6c 61 73 73 20 43 53 68 65 65 74 52 &,class CSheetR
6880: 65 63 74 20 63 6f 6e 73 74 20 26 29 3b 09 2f 2f ect const &);.//
6890: 34 33 33 0d 0a 7d 3b 0d 0a 0d 0a 2f 2f 20 45 6e 433..};....// En
68a0: 64 20 63 6c 61 73 73 20 64 65 73 63 72 69 70 74 d class descript
68b0: 69 6f 6e 73 0d 0a 2f 2f 20 42 65 67 69 6e 20 66 ions..// Begin f
68c0: 72 65 65 20 66 75 6e 63 74 69 6f 6e 73 20 64 65 ree functions de
68d0: 66 69 6e 69 74 69 6f 6e 73 0d 0a 2f 2f 20 45 6e finitions..// En
68e0: 64 20 66 72 65 65 20 66 75 6e 63 74 69 6f 6e 73 d free functions
68f0: 20 64 65 66 69 6e 69 74 69 6f 6e 73 0d 0a 65 78 definitions..ex
6900: 74 65 72 6e 20 69 6e 74 20 58 6c 43 6f 6e 76 65 tern int XlConve
6910: 72 74 65 72 3b 0d 0a 0d 0a rter;....