-
Notifications
You must be signed in to change notification settings - Fork 74
/
UInternal.p
119 lines (79 loc) · 2.64 KB
/
UInternal.p
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{Photoshop version 1.0.1, file: UInternal.p
Computer History Museum, www.computerhistory.org
This material is (C)Copyright 1990 Adobe Systems Inc.
It may not be distributed to third parties.
It is licensed for non-commercial use according to
www.computerhistory.org/softwarelicense/photoshop/ }
UNIT UInternal;
INTERFACE
USES
{$LOAD MacIntf.LOAD}
MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf,
{$LOAD UMacApp.LOAD}
UObject, UList, UMacApp,
{$LOAD UPhotoshop.LOAD}
PaletteMgr, UConstants, UVMemory, UPhotoshop,
{$LOAD}
UDialog, UBWDialog, URootFormat, UProgress;
TYPE
TMultidiskStamp = RECORD
fName: STRING[63];
fDate: LONGINT;
fTime: LONGINT;
fPart: INTEGER
END;
PMultidiskStamp = ^TMultidiskStamp;
HMultidiskStamp = ^PMultidiskStamp;
TInternalFormat = OBJECT (TRootFormat)
fMultidisk: BOOLEAN;
fRow: INTEGER;
fChannel: INTEGER;
fLastVRefNum: INTEGER;
fStamp: TMultidiskStamp;
PROCEDURE TInternalFormat.IImageFormat; OVERRIDE;
FUNCTION TInternalFormat.CanWrite
(doc: TImageDocument): BOOLEAN; OVERRIDE;
PROCEDURE TInternalFormat.ReadPart (doc: TImageDocument);
PROCEDURE TInternalFormat.DoRead
(doc: TImageDocument;
refNum: INTEGER;
rsrcExists: BOOLEAN); OVERRIDE;
PROCEDURE TInternalFormat.ReadNext
(doc: TImageDocument; name: Str255);
PROCEDURE TInternalFormat.ReadOther
(doc: TImageDocument; name: Str255); OVERRIDE;
PROCEDURE TInternalFormat.AboutToSave
(doc: TImageDocument;
itsCmd: INTEGER;
VAR name: Str255;
VAR vRefNum: INTEGER;
VAR makingCopy: BOOLEAN); OVERRIDE;
FUNCTION TInternalFormat.DataForkBytes
(doc: TImageDocument): LONGINT; OVERRIDE;
FUNCTION TInternalFormat.SpotBytes (doc: TImageDocument): LONGINT;
FUNCTION TInternalFormat.RsrcForkBytes
(doc: TImageDocument): LONGINT; OVERRIDE;
PROCEDURE TInternalFormat.AddResources (doc: TImageDocument);
PROCEDURE TInternalFormat.AddStamp;
PROCEDURE TInternalFormat.FillUpDisk (doc: TImageDocument);
PROCEDURE TInternalFormat.DoWrite
(doc: TImageDocument; refNum: INTEGER); OVERRIDE;
PROCEDURE TInternalFormat.EjectLastVolume;
PROCEDURE TInternalFormat.WriteNext
(doc: TImageDocument; name: Str255);
PROCEDURE TInternalFormat.WriteOther
(doc: TImageDocument; name: Str255); OVERRIDE;
END;
TMiscResource = OBJECT (TObject)
fID: INTEGER;
fType: ResType;
fData: Handle;
PROCEDURE TMiscResource.Free; OVERRIDE;
END;
PROCEDURE ReadMiscResources (doc: TImageDocument);
PROCEDURE MiscResourcesBytes (doc: TImageDocument;
VAR rsrcForkBytes: LONGINT);
PROCEDURE WriteMiscResources (doc: TImageDocument);
IMPLEMENTATION
{$I UInternal.inc1.p}
END.