-
Notifications
You must be signed in to change notification settings - Fork 74
/
UEPSFormat.p
108 lines (80 loc) · 2.42 KB
/
UEPSFormat.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
{Photoshop version 1.0.1, file: UEPSFormat.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 UEPSFormat;
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, UPrinting, UCommands, URootFormat, UPICTFile,
UPICTResource, UPostScript, UScreen, USeparation, UProgress;
TYPE
TEPSFormat = OBJECT (TPICTResourceFormat)
fBinary: BOOLEAN;
fFiveFiles: BOOLEAN;
fTransparent: BOOLEAN;
fIncludeScreen : BOOLEAN;
fIncludeTransfer: BOOLEAN;
fHalftonePreview: INTEGER;
fOtherPreview : INTEGER;
PROCEDURE TEPSFormat.IImageFormat; OVERRIDE;
FUNCTION TEPSFormat.CanWrite
(doc: TImageDocument): BOOLEAN; OVERRIDE;
PROCEDURE TEPSFormat.SetFormatOptions
(doc: TImageDocument); OVERRIDE;
PROCEDURE TEPSFormat.GetLine (VAR s: Str255);
PROCEDURE TEPSFormat.ReadImageData
(doc: TImageDocument;
binary: BOOLEAN;
first: INTEGER;
count: INTEGER;
alpha: INTEGER;
invert: BOOLEAN);
PROCEDURE TEPSFormat.ParseHeader
(doc: TImageDocument;
VAR binary: BOOLEAN;
VAR cPlate: Str255;
VAR mPlate: Str255;
VAR yPlate: Str255;
VAR kPlate: Str255;
dcsPlate: BOOLEAN);
PROCEDURE TEPSFormat.ReadPostScript (doc: TImageDocument);
PROCEDURE TEPSFormat.DoRead
(doc: TImageDocument;
refNum: INTEGER;
rsrcExists: BOOLEAN); OVERRIDE;
FUNCTION TEPSFormat.DataForkBytes
(doc: TImageDocument): LONGINT; OVERRIDE;
FUNCTION TEPSFormat.MakePreviewPICT1
(doc: TImageDocument;
newRows: INTEGER;
newCols: INTEGER): Handle;
FUNCTION TEPSFormat.MakePreviewPICT2
(doc: TImageDocument;
newRows: INTEGER;
newCols: INTEGER): Handle;
PROCEDURE TEPSFormat.AddPreviewPICT
(doc: TImageDocument;
newRows: INTEGER;
newCols: INTEGER);
PROCEDURE TEPSFormat.WritePostScript
(doc: TImageDocument;
refNum: INTEGER;
channel: INTEGER;
dstSize: Point;
useDCS: BOOLEAN;
depth: INTEGER);
PROCEDURE TEPSFormat.DoWrite
(doc: TImageDocument; refNum: INTEGER); OVERRIDE;
END;
IMPLEMENTATION
{$I UEPSFormat.inc1.p}
END.