home *** CD-ROM | disk | FTP | other *** search
- {$R-,S-,B-,I+}
- Unit PLGLOB;
-
- Interface
-
- uses
- Crt,
- Dos,
- StrTool,
- GEDDEFS,
- LibMan,
- Geotool,
- KEYSCRN,
- PLOTSYS,
- PLOTSTOR,
- Serinout,
- PRNinOut,
- PLSTEUER;
-
- CONST
- titel :Str64= '>>>> GEDDY-CAD <<<<';
- titel2 :Str64= 'Plotter-Ausgabe';
-
- ModeWinCol :Byte =53; {V: magenta , H:cyan }
- ModeLowCol :Byte =49; {V: blue , H:Cyan }
- ModeNorCol :Byte =53; {V: magenta , H:cyan }
- ModeFlpCol :Byte =94; {V: yellow , H:magenta}
- ModeHeadCol :Byte =62; {V: yellow , H:Cyan }
- ModeHiCol :Byte =49;
- MainWinCol :Byte =green;
- MainHeadCol :Byte =Yellow;
- MainNorCol :Byte =Yellow;
- MainLowCol :Byte =Lightgray;
- MainFlpCol :Byte =112;
- MainHiCol :Byte =Crt.LightRed;
- BordCol :Byte =Lightgray;
- CopyWrCol :Byte =LightRed;
- TitelCol :Byte =LightGreen;
- DiaWinCol :Byte =red+16*Lightgray;
- DiaHeadCol :Byte =Yellow+16*Lightgray;
- PlotWinCol :Byte =Crt.blue+16*lightgray;
- PlotHeadCol :Byte =Crt.black+16*lightgray;
-
-
- VAR wok : INTEGER;
- sel : BYTE;
- Plot_Win : WindowType;
- men_main,
- men_Mode : MenueType;
- Actual_ObjNr : LongInt;
- Actual_StiftNr:Integer;
- UsedLayers :Layerset;
-
- Type
- Druckparams =Record
- FileID :Str10; { enthält GEDDY-PAR}
- PARname :Str15; { 12 Zeichen }
- InitString,
- ExitString :Str64;
- Librarypath:Str64;
- Faktor :System.Real;
- PenSpeed :Integer;
- LinScal1,
- LinScal2 :System.Real;
- Ursprung :Koord;
- D_Offset :Koord; { 0.1 mm Schritte }
- D_Fenster1 :Koord; { 0.1 mm Schritte }
- D_Fenster2 :Koord; { 0.1 mm Schritte }
- D_Adapt :Boolean;
- D_Mirror :Boolean;
- D_Portrait :Boolean;
- D_Zurueck :Boolean;
- D_Farbe :Byte;
- D_Modus :Byte;
- LoetStopInc:System.Real;
- D_Absolut :Boolean;{ Laser }
- D_Position :Koord; { nur LaserDrucker }
- D_Layers :Layerset;
- D_PenInfo :Array[1..MaxLayer+1] of Record
- PenNr :Byte;
- PenWidth:System.Real;
- end;
- D_Textwidth:System.Real; { Stichbreite zu Schrifthöhe }
- end;
-
-
- Const DeviceInit :Str64 ='';
- DeviceExit :Str64 ='';
- ActualParName:Str15='';
- DWGopen :Boolean=false;
- DevMode :Boolean=false;
-
-
- VAR
- wind_Scr,
- Wind_tmp,
- wind_main,
- wind_dir : WindowType;
- BatchPar : Druckparams;
- DateInfo : Bildelement;
-
-
-
- Procedure InitColors;
-
- PROCEDURE Border;
-
- Procedure Abbrechen;
-
- Procedure OpenPrOut(Y :Integer;Var TC :Char);
-
- Procedure ClosePrOut;
-
- Procedure Zeichne(Objekt :Bildelement;MacWert :Macparms);
-
- Procedure Change(Var Objekt :Bildelement;MacWert :Macparms);
-
- Procedure GetLastKoord;
-
- Function Abstand(P1,P2 :Koord):Integer;
-
- Function PrepareSearch(Max:Integer):Boolean;
-
- Function MinSearch(Max :Integer):Integer;
-
- Procedure SelectPen(Stift:Integer);
-
- Procedure ZeichneaufBuf(Var Bild :Bildelement;Clearit :Boolean);
-
- Procedure ZeichneMAC(Var Objekt:Bildelement);
-
- Procedure Title_Line(Y:Integer;S:Str80);
-
- Procedure HeadLine(S:Str80);
-
- Procedure Line25;
-
-
- Procedure Escape;
-
- Procedure InitPlotRes(Res:Real);
-
- Procedure PlotInit;
-
- Procedure Crea_Men;
- {===========================================================================}
-
- Implementation
-
-
- (*$I PLGLOB.INC *)
-
- Var PExitSave :Pointer;
-
- {$F+} Procedure Pexit;{$F-}
- begin
- IF DWGopen then CloseFile(HauptDF);
- ExitProc:=PExitSave;
- end;
-
- begin
- PExitSave:=ExitProc;
- ExitProc:=@Pexit;
- InitColors;
- end.
-
-