
		LOAD		'Macros.dump'

		INCLUDE	'SS.equ'

		INCLUDE	'Driver.equ'

;-----------------------------------------------
;
;   Imported addresses
;
;-----------------------------------------------

;		IMPORT	Bar
		IMPORT	S_ChartDummy
		IMPORT	S_ChartListProc
		IMPORT	S_DlogRect

;-----------------------------------------------
;
;   Forward addresses and entries
;
;-----------------------------------------------

;		ENTRY	S_ChartNameStr

		ENTRY	S_3DBarIcon
		ENTRY	S_3DBarIconHdl
		ENTRY	S_BarIcon
		ENTRY	S_BarIconHdl
		ENTRY	S_Ch1stMsg
		ENTRY	S_Ch1stTxt
		ENTRY	S_ChBox2
		ENTRY	S_ChBoxMsg2
		ENTRY	S_ChCancelTxt
		ENTRY	S_ChLastLE
		ENTRY	S_ChLastMsg
		ENTRY	S_ChLastTxt
		ENTRY	S_ChMaxLE
		ENTRY	S_ChMaxMsg
		ENTRY	S_ChMaxTxt
		ENTRY	S_ChMinMsg
		ENTRY	S_ChMinTxt
		ENTRY	S_ChName
		ENTRY	S_ChNameLE
		ENTRY	S_ChNameMsg
		ENTRY	S_ChOK
		ENTRY	S_ChOKTxt
		ENTRY	S_ChPie
		ENTRY	S_ChPt
		ENTRY	S_ChRange
		ENTRY	S_ChRangeMsg
		ENTRY	S_ChVal
		ENTRY	S_ChValMsg
		ENTRY	S_LineIcon
		ENTRY	S_LineIconHdl
		ENTRY	S_MdCclTxt
		ENTRY	S_MdChgTxt
		ENTRY	S_MdDelTxt
		ENTRY	S_MdRCTxt
		ENTRY	S_MdRCalc
		ENTRY	S_MdTitleMsg
		ENTRY	S_PieIcon
		ENTRY	S_PieIconHdl
		ENTRY	S_PtIcon
		ENTRY	S_PtIconHdl
		ENTRY	S_RangeRect

;---------------------------------------------------------------------------
;
; S_ChartData 
;

S_ChartData	PROC		EXPORT

			EXPORT	S_ChartListRec
			EXPORT	S_ListDlog
			EXPORT	S_ListRect
			EXPORT	S_ChartCount
			EXPORT	S_ChartNameStr
			EXPORT	S_DlogClipRgn
			EXPORT	S_ItzaBar
			EXPORT	S_MissingSlice
			EXPORT	S_LinearMax
			EXPORT	S_LinearMaxVal
			EXPORT	S_ChartColors
			EXPORT	S_ChartMsgRec
			EXPORT	S_ChartSSWind
			EXPORT	S_ChartGRWind
			EXPORT	S_ChartPict
			EXPORT	S_ChartTitleLoc
			EXPORT	S_PieRect
			EXPORT	S_PictRect
			EXPORT	S_ChUntitle
			EXPORT	S_ChNameNum
			EXPORT	S_ChTooMany
			EXPORT	S_SliceStr
			EXPORT	S_NoSelectStr
			EXPORT	S_BadNum
			EXPORT	S_NoData
			EXPORT	S_OneDatum
			EXPORT	S_BigPie
			EXPORT	S_BigBar
			EXPORT	S_LoMem
			EXPORT	S_NoINF
			EXPORT	S_ModifyChartDlog
			EXPORT	S_MdRCalc
			EXPORT	S_MdRCTxt
			EXPORT	S_MdCancel
			EXPORT	S_MdCclTxt
			EXPORT	S_MdDelete
			EXPORT	S_MdDelTxt
			EXPORT	S_MdChange
			EXPORT	S_MdChgTxt
			EXPORT	S_MdTitle
			EXPORT	S_MdTitleMsg
			EXPORT	S_ChOKTxt
			EXPORT	S_ChCancelTxt
			EXPORT	S_ChooseChartDlog
			EXPORT	S_ChOK
			EXPORT	S_ChCancel
			EXPORT	S_ChIconTable
			EXPORT	S_ChPie
			EXPORT	S_ChBar
			EXPORT	S_Ch3DBar
			EXPORT	S_ChLine
			EXPORT	S_ChPt
			EXPORT	S_ChBox2
			EXPORT	S_ChBoxMsg2
			EXPORT	S_ChRange
			EXPORT	S_ChRangeMsg
			EXPORT	S_Ch1st
			EXPORT	S_Ch1stMsg
			EXPORT	S_ChLast
			EXPORT	S_ChLastMsg
			EXPORT	S_ChVal
			EXPORT	S_ChValMsg
			EXPORT	S_ChMin
			EXPORT	S_ChMinMsg
			EXPORT	S_ChMax
			EXPORT	S_ChMaxMsg
			EXPORT	S_ChName
			EXPORT	S_ChNameMsg
			EXPORT	S_Ch1stLE
			EXPORT	S_Ch1stTxt
			EXPORT	S_ChLastLE
			EXPORT	S_ChLastTxt
			EXPORT	S_ChMinLE
			EXPORT	S_ChMinTxt
			EXPORT	S_ChMaxLE
			EXPORT	S_ChMaxTxt
			EXPORT	S_ChNameLE
			EXPORT	S_ChNamePtr
			EXPORT	S_RangeRect
			EXPORT	S_ValueRect
			EXPORT	S_PieIconHdl
			EXPORT	S_PieIcon
			EXPORT	S_BarIconHdl
			EXPORT	S_BarIcon
			EXPORT	S_3DBarIconHdl
			EXPORT	S_3DBarIcon
			EXPORT	S_LineIconHdl
			EXPORT	S_LineIcon
			EXPORT	S_PtIconHdl
			EXPORT	S_PtIcon

;			ENTRY	S_EndTooMany

;-----------------
; Globals
;-----------------

S_ChartListRec
S_ListDlog	DS.L		1
S_ListRect	DC.W		23,54,105,254
			DC.W		23,252,105,278
S_ChartCount	DC.W		0
			DC.W		10
			DC.W		1
			DC.L		S_ChartListProc
			DC.L		S_ChartDummy
			DC.L		S_ChartDummy
			DS.W		18


S_ChartNameStr	DS.B		33

S_DlogClipRgn	DS.L		1

S_ItzaBar		DS.W		1
S_MissingSlice	DS.W		1
S_LinearMax	DS.W		1
S_LinearMaxVal	DS.B		10

S_ChartColors
			DC.W		LightBlue,LightGreen,DarkRed,Aqua,LeftGray,LightYellow
			DC.W		DarkGreen,Pink,DarkBlue,Orange,Purple,YellowGreen

S_ChartMsgRec
S_ChartSSWind	DS.L		1
S_ChartGRWind	DS.L		1
S_ChartPict	DS.L		1

S_ChartTitleLoc	DC.W		171,260

S_PieRect		DC.W		0,0,135,300

S_PictRect	DC.W		0,0,$18C,$2D0			; 8' x 11.5'

S_ChUntitle	STR		'Untitled Chart   '
S_ChNameNum
S_ChTooMany	DC.B		S_EndTooMany-S_ChTooMany-1
			DC.B		'You are limited to a maximum of 100'
			DC.B		13
			DC.B		'charts per spreadsheet.'
S_EndTooMany

;-----------------------
; Chart error messages
;-----------------------

S_SliceStr	STR		'Some of the numbers are too small to be plotted.'
S_NoSelectStr	STR		'You must select a chart first.'
S_BadNum		STR		'All numbers in the range must have the same sign.'
S_NoData		STR		'There is no data to chart in the selected range.'
S_OneDatum	STR		'A line chart must have more than one number',13,'to plot.'
S_BigPie		STR		'There is a maximum of 24 slices per pie.'
S_BigBar		STR		'There is a maximum of 256 data points per linear',13,'chart.  Only the first 256 cells will be charted.'
S_LoMem		STR		'Not enough memory to draw the chart.'
S_NoINF		STR		'Infinite values cannot be charted.',13,'Select a range that does not contain INF.' 




S_ModifyChartDlog
			DC.W		38,80,162,565
			DC.W		1						; visible
			DC.L		0						; refcon
			DC.L		S_MdRCalc,S_MdDelete,S_MdChange,S_MdCancel,S_MdTitle
			DC.L		0

		; Buttons

S_MdRCalc		DC.W		1
			DC.W		24,333,37,431
			DC.W		buttonItem
			DC.L		S_MdRCTxt
			DC.W		0
			DC.W		0
			DC.L		0

S_MdRCTxt		STR		'Recalculate'

S_MdCancel	DC.W		2
			DC.W		92,333,105,431
			DC.W		buttonItem
			DC.L		S_MdCclTxt
			DC.W		0
			DC.W		0
			DC.L		0

S_MdCclTxt	STR		'Cancel'

S_MdDelete	DC.W		3
			DC.W		48,333,61,431
			DC.W		buttonItem
			DC.L		S_MdDelTxt
			DC.W		0
			DC.W		0
			DC.L		0

S_MdDelTxt	STR		'Delete'

S_MdChange	DC.W		4
			DC.W		70,333,83,431
			DC.W		buttonItem
			DC.L		S_MdChgTxt
			DC.W		0
			DC.W		0
			DC.L		0

S_MdChgTxt	STR		'Change'

S_MdTitle		DC.W		5
			DC.W		9,58,21,254
			DC.W		statText+itemDisable
			DC.L		S_MdTitleMsg
			DC.W		0
			DC.W		0
			DC.L		0

S_MdTitleMsg	STR		'Select a chart:'

;---------------------------------------------------------------------------
; Choose Chart Dialog
;
;		   1 = OK
;		   2 = Cancel
;		   4 = 'Fixed decimal places'
;		   5 = DigitCount

S_ChOKTxt		STR		'OK'
S_ChCancelTxt	STR		'Cancel'

S_ChooseChartDlog
			DC.W		32,48,182,592
			DC.W		0							; Invisible
			DC.L		0							; Refcon
			DC.L		S_ChOK,S_ChCancel				; Buttons
			DC.L		S_ChPie,S_ChBar,S_Ch3DBar,S_ChLine	; Icons
			DC.L		S_ChPt
			DC.L		S_ChBox2
			DC.L		S_ChRange,S_Ch1st,S_ChLast		; Static Text
			DC.L		S_ChVal,S_ChMin,S_ChMax
			DC.L		S_ChName
			DC.L		S_ChNameLE
			DC.L		S_ChMaxLE,S_ChMinLE				; Line Edits
			DC.L		S_ChLastLE,S_Ch1stLE
			DC.L		S_RangeRect,S_ValueRect
			DC.L		0

		; Buttons

S_ChOK
			DC.W		1
			DC.W		130,400,143,501
			DC.W		buttonItem
			DC.L		S_ChOKTxt
			DC.W		0
			DC.W		0
			DC.L		0

S_ChCancel
			DC.W		2
			DC.W		105,402,118,503
			DC.W		buttonItem
			DC.L		S_ChCancelTxt
			DC.W		0
			DC.W		0
			DC.L		0


S_ChIconTable	DC.L		S_ChPie,S_ChBar,S_Ch3DBar,S_ChLine,S_ChPt

		; Icons

S_ChPie
			DC.W		3
			DC.W		17,36,44,102
			DC.W		iconItem
			DC.L		S_PieIconHdl
			DC.W		0,0
			DC.L		0

S_ChBar
			DC.W		4
			DC.W		17,138,44,204
			DC.W		iconItem
			DC.L		S_BarIconHdl
			DC.W		0,0
			DC.L		0

S_Ch3DBar
			DC.W		5
			DC.W		17,240,44,306
			DC.W		iconItem
			DC.L		S_3DBarIconHdl
			DC.W		0,0
			DC.L		0

S_ChLine
			DC.W		6
			DC.W		17,342,44,408
			DC.W		iconItem
			DC.L		S_LineIconHdl
			DC.W		0,0
			DC.L		0

S_ChPt
			DC.W		7
			DC.W		17,444,44,510
			DC.W		iconItem
			DC.L		S_PtIconHdl
			DC.W		0,0
			DC.L		0


		; Check box

S_ChBox2
			DC.W		8
			DC.W		73,402,83,513
			DC.W		checkItem
			DC.L		S_ChBoxMsg2
			DC.W		1						; initial value
			DC.B		0,0						; visibility, hilighting style
			DC.L		0

S_ChBoxMsg2	STR		'Spaced bars'


		; Static Text

S_ChRange
			DC.W		9
			DC.W		54,46,64,100
			DC.W		statText+itemDisable
			DC.L		S_ChRangeMsg
			DC.W		0
			DC.W		0
			DC.L		0

S_ChRangeMsg	STR		' Range:'

S_Ch1st
			DC.W		10
			DC.W		66,50,76,125
			DC.W		statText+itemDisable
			DC.L		S_Ch1stMsg
			DC.W		0
			DC.W		0
			DC.L		0

S_Ch1stMsg	STR		'First Cell'

S_ChLast
			DC.W		11
			DC.W		66,198,76,268
			DC.W		statText+itemDisable
			DC.L		S_ChLastMsg
			DC.W		0
			DC.W		0
			DC.L		0

S_ChLastMsg	STR		'Last Cell'

S_ChVal
			DC.W		12
			DC.W		90,46,100,100
			DC.W		statText+itemDisable
			DC.L		S_ChValMsg
			DC.W		0
			DC.W		0
			DC.L		0

S_ChValMsg	STR		' Value:'

S_ChMin
			DC.W		13
			DC.W		102,50,112,105
			DC.W		statText+itemDisable
			DC.L		S_ChMinMsg
			DC.W		0
			DC.W		0
			DC.L		0

S_ChMinMsg	STR		'Minimum'

S_ChMax
			DC.W		14
			DC.W		102,198,112,254
			DC.W		statText+itemDisable
			DC.L		S_ChMaxMsg
			DC.W		0
			DC.W		0
			DC.L		0

S_ChMaxMsg	STR		'Maximum'

S_ChName
			DC.W		15
			DC.W		132,45,142,126
			DC.W		statText+itemDisable
			DC.L		S_ChNameMsg
			DC.W		0
			DC.W		0
			DC.L		0

S_ChNameMsg	STR		'Chart Name:'


		; Line Edits

S_Ch1stLE
			DC.W		16
			DC.W		64,126,77,186
			DC.W		editLine
			DC.L		S_Ch1stTxt
			DC.W		6
			DC.W		0
			DC.W		0
			DC.L		0

S_Ch1stTxt
			DC.B		0
			DS.B		5

S_ChLastLE
			DC.W		17
			DC.W		64,278,77,344
			DC.W		editLine
			DC.L		S_ChLastTxt
			DC.W		6
			DC.W		0
			DC.W		0
			DC.L		0

S_ChLastTxt
			DC.B		0
			DS.B		5

S_ChMinLE
			DC.W		18
			DC.W		100,110,113,186
			DC.W		editLine
			DC.L		S_ChMinTxt
			DC.W		10
			DC.W		0
			DC.W		0
			DC.L		0

S_ChMinTxt	DS.B		16

S_ChMaxLE
			DC.W		19
			DC.W		100,258,113,344
			DC.W		editLine
			DC.L		S_ChMaxTxt
			DC.W		10
			DC.W		0
			DC.W		0
			DC.L		0

S_ChMaxTxt	DS.B		16

S_ChNameLE	DC.W		20
			DC.W		130,131,143,356
			DC.W		editLine
S_ChNamePtr	DC.L		S_ChartNameStr
			DC.W		31
			DC.W		0
			DC.W		0
			DC.L		0

S_RangeRect	DC.W		21
			DC.W		59,40,82,356
			DC.W		userItem+itemDisable
			DC.L		S_DlogRect
			DC.W		0
			DC.W		0
			DC.L		0

S_ValueRect	DC.W		22
			DC.W		95,40,118,356
			DC.W		userItem+itemDisable
			DC.L		S_DlogRect
			DC.W		0
			DC.W		0
			DC.L		0


S_PieIconHdl	DC.L		S_PieIcon,0
S_PieIcon
	DC.W		0,0,27,68
	DC.B		$FF,$FF,$FF,$FF,$FF,$F0,$00,$00,$00,$00,$0F,$FF,$FF,$FF,$FF,$FF,$FF
	DC.B		$FF,$FF,$FF,$FF,$C0,$00,$AA,$A0,$DD,$DD,$00,$03,$FF,$FF,$FF,$FF,$FF
	DC.B		$FF,$FF,$FF,$C0,$0A,$AA,$AA,$A0,$DD,$DD,$DD,$D0,$03,$FF,$FF,$FF,$FF
	DC.B		$FF,$FF,$F0,$0A,$AA,$AA,$AA,$A0,$DD,$DD,$DD,$DD,$D0,$0F,$FF,$FF,$FF
	DC.B		$FF,$FF,$0A,$AA,$AA,$AA,$AA,$A0,$DD,$DD,$DD,$DD,$DD,$C0,$FF,$FF,$FF
	DC.B		$FF,$F0,$AA,$AA,$AA,$AA,$AA,$A0,$DD,$DD,$DD,$DD,$DD,$DC,$0F,$FF,$FF
	DC.B		$FF,$CA,$AA,$AA,$AA,$AA,$AA,$A0,$DD,$DD,$DD,$DD,$DD,$DD,$C3,$FF,$FF
	DC.B		$FC,$0A,$AA,$AA,$AA,$AA,$AA,$A0,$DD,$DD,$DD,$DD,$DD,$DD,$D0,$3F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F,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
	DC.B		$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$0F

; --------------------
;	 A Chart:
; --------------------

;  ________________
; ;   Type (int)  2| 0
; ;________________|
; ;Range (int,int)8| 2
; ;________________|
; ;  Name (str)  32| 10
; ;________________|
; ;  IsMax (bool) 2| 42
; ;________________|
; ;  Max (ext)   10| 44
; ;________________|
; ;  Min (ext)   10| 54
; ;________________|
; ;SpaceBar (bool)2| 64
; ;________________|
; ;  Wind (long)  4| 66
; ;________________|
;				 70


			ENDP	



S_SANEData2	PROC		EXPORT

			EXPORT	S_decform2
			EXPORT	S_nstring2
			EXPORT	S_drec2

S_decform2	DC.W		1,17
S_nstring2	DS.W		156
S_drec2		DS.W		1
			DS.W		1
			DS.B		18

			ENDP	


;-----------------------------------------------------------------------------
;   S_CurrentData2
;

S_CurrentData2	PROC		EXPORT

			EXPORT	S_Cur2Window
			EXPORT	S_Cur2Sheet
			EXPORT	S_Cur2ContRect
			EXPORT	S_Cur2SheetInfo
			EXPORT	S_Cur2ContHt
			EXPORT	S_Cur2ContWd
			EXPORT	S_Cur2RScrl
			EXPORT	S_Cur2Bscrl
			EXPORT	S_Cur2Grow
			EXPORT	S_Cur2VPageSize
			EXPORT	S_Cur2MaxTLCell
			EXPORT	S_Cur2LEHandle
			EXPORT	S_Cur2Heap
			EXPORT	S_Cur2State
			EXPORT	S_Cur2RowBlock
			EXPORT	S_Cur2ContYPt
			EXPORT	S_Cur2ContXPt
			EXPORT	S_Cur2TLTitle
			EXPORT	S_Cur2BRTitle
			EXPORT	S_Cur2ChartCount
			EXPORT	S_Cur2ChartList
			EXPORT	S_Cur2ChangedList
			EXPORT	S_Cur2RecalcList
			EXPORT	S_Cur2ColumnWds
			EXPORT	S_Cur2DefColWd
			EXPORT	S_Cur2TLCell
			EXPORT	S_Cur2TLSelect
			EXPORT	S_Cur2BRSelect
			EXPORT	S_Cur2BRMost
			EXPORT	S_Cur2EditFlag
			EXPORT	S_Cur2DefFormat
			EXPORT	S_Cur2Format

S_Cur2Window		DC.L		0
S_Cur2Sheet		DC.L		0

S_Cur2ContRect
				DC.W		S_EditHeight+2
				DC.W		0

S_Cur2SheetInfo
S_Cur2ContHt		DS.W		1
S_Cur2ContWd		DS.W		1

S_Cur2RScrl		DS.L		1
S_Cur2Bscrl		DS.L		1
S_Cur2Grow		DS.L		1

S_Cur2VPageSize	DS.W		1
S_Cur2MaxTLCell	DS.L		1

S_Cur2LEHandle		DS.L		1
S_Cur2Heap		DS.L		1

S_Cur2State
;-----------
S_Cur2RowBlock		DS.L		1

S_Cur2ContYPt		DS.W		1
S_Cur2ContXPt		DS.W		1

S_Cur2TLTitle		DS.L		1
S_Cur2BRTitle		DS.L		1

S_Cur2ChartCount	DS.W		1
S_Cur2ChartList	DS.L		1

S_Cur2ChangedList	DS.L		1
S_Cur2RecalcList	DS.L		1

S_Cur2ColumnWds	DS.L		1
S_Cur2DefColWd		DS.W		1

S_Cur2TLCell		DS.L		1

S_Cur2TLSelect		DS.L		1
S_Cur2BRSelect		DS.L		1

S_Cur2BRMost		DS.L		1

S_Cur2EditFlag		DS.W		1

S_Cur2DefFormat	DS.L		1
S_Cur2Format		DS.L		1

			ENDP	
			END	
