{----------------------------------------------------------------------------
|
| Library: Envision
|
| Module: Envision.Inc
|
| Description: Include for to define global compilation constants
|
| History: Dec 03, 1998. Michel Brazeau, first version
|
|---------------------------------------------------------------------------}

{$B-}  { Complete boolean evaluation off. DO NOT CHANGE }
{$H+}  { Long strings. DO NOT CHANGE }
{$X+}  { Extended syntax. DO NOT CHANGE }


{$ifdef __EnvisionDebug}
    {$R+,Q+,O-,I+}
{$else}
    {$R-,Q-,O+,I-}
{$endif}

{$define __Envision257AndHigher}

{$define __EmbedDLL}

{
  if __EmbedDLL, __LoadFreeImageDLLInMemory will control if the free image
  DLL is loaded in memory.

  Note that under Win64, the free image is never loaded in memory.
  See notes in unit .\Tests\TestCases\TImageReadTest.TestJpg
}
{$define __LoadFreeImageDLLInMemory}

{$ifdef Ver90}
    {$define __Delphi2}
    {$define __Delphi2AndAbove}
{$endif}

{$ifdef Ver100}
    {$define __Delphi3}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
{$endif}

{$ifdef Ver120}
    {$define __Delphi4}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
{$endif}

{$ifdef Ver130}
    {$define __Delphi5}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
{$endif}

{$ifdef Ver140}
    {$define __Delphi6}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
{$endif}

{$ifdef Ver150}
    {$define __Delphi7}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
{$endif}

{$ifdef Ver170}
    {$define __Delphi2005}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
{$endif}

{$ifdef Ver180}
    {$define __Delphi2006}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
{$endif}

{$ifdef Ver185}  { Ver190 is for Delphi 2007 for .Net *  }
    {$define __Delphi2007}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
    {$define __Delphi2007AndAbove}
{$endif}

{$ifdef Ver200}
    {$define __Delphi2009}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
    {$define __Delphi2007AndAbove}
    {$define __Delphi2009AndAbove}
{$endif}

{$ifdef Ver210}
    {$define __Delphi2010}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
    {$define __Delphi2007AndAbove}
    {$define __Delphi2009AndAbove}
    {$define __Delphi2010AndAbove}
{$endif}

{$ifdef Ver220}
    {$define __DelphiXE}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
    {$define __Delphi2007AndAbove}
    {$define __Delphi2009AndAbove}
    {$define __Delphi2010AndAbove}
    {$define __DelphiXEAndAbove}
{$endif}

{$ifdef Ver230}
    {$define __DelphiXE2}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
    {$define __Delphi2007AndAbove}
    {$define __Delphi2009AndAbove}
    {$define __Delphi2010AndAbove}
    {$define __DelphiXEAndAbove}
    {$define __DelphiXE2AndAbove}
{$endif}

{$ifdef Ver240}
    {$define __DelphiXE3}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
    {$define __Delphi2007AndAbove}
    {$define __Delphi2009AndAbove}
    {$define __Delphi2010AndAbove}
    {$define __DelphiXEAndAbove}
    {$define __DelphiXE2AndAbove}
    {$define __DelphiXE3AndAbove}
{$endif}

{$ifdef Ver250}
    {$define __DelphiXE4}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
    {$define __Delphi2007AndAbove}
    {$define __Delphi2009AndAbove}
    {$define __Delphi2010AndAbove}
    {$define __DelphiXEAndAbove}
    {$define __DelphiXE2AndAbove}
    {$define __DelphiXE3AndAbove}
    {$define __DelphiXE4AndAbove}
{$endif}


{$ifdef Ver260}
    {$define __DelphiXE5}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
    {$define __Delphi2007AndAbove}
    {$define __Delphi2009AndAbove}
    {$define __Delphi2010AndAbove}
    {$define __DelphiXEAndAbove}
    {$define __DelphiXE2AndAbove}
    {$define __DelphiXE3AndAbove}
    {$define __DelphiXE4AndAbove}
    {$define __DelphiXE5AndAbove}
{$endif}

{$ifdef Ver270}
    {$define __DelphiXE6}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
    {$define __Delphi2007AndAbove}
    {$define __Delphi2009AndAbove}
    {$define __Delphi2010AndAbove}
    {$define __DelphiXEAndAbove}
    {$define __DelphiXE2AndAbove}
    {$define __DelphiXE3AndAbove}
    {$define __DelphiXE4AndAbove}
    {$define __DelphiXE5AndAbove}
    {$define __DelphiXE6AndAbove}
{$endif}

{$ifdef Ver280}
    {$define __DelphiXE7}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
    {$define __Delphi2007AndAbove}
    {$define __Delphi2009AndAbove}
    {$define __Delphi2010AndAbove}
    {$define __DelphiXEAndAbove}
    {$define __DelphiXE2AndAbove}
    {$define __DelphiXE3AndAbove}
    {$define __DelphiXE4AndAbove}
    {$define __DelphiXE5AndAbove}
    {$define __DelphiXE6AndAbove}
    {$define __DelphiXE7AndAbove}
{$endif}

{$ifdef Ver290}
    {$define __DelphiXE8}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
    {$define __Delphi2007AndAbove}
    {$define __Delphi2009AndAbove}
    {$define __Delphi2010AndAbove}
    {$define __DelphiXEAndAbove}
    {$define __DelphiXE2AndAbove}
    {$define __DelphiXE3AndAbove}
    {$define __DelphiXE4AndAbove}
    {$define __DelphiXE5AndAbove}
    {$define __DelphiXE6AndAbove}
    {$define __DelphiXE7AndAbove}
    {$define __DelphiXE8AndAbove}
{$endif}


{$ifdef Ver300}
    {$define __DelphiD10}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
    {$define __Delphi2007AndAbove}
    {$define __Delphi2009AndAbove}
    {$define __Delphi2010AndAbove}
    {$define __DelphiXEAndAbove}
    {$define __DelphiXE2AndAbove}
    {$define __DelphiXE3AndAbove}
    {$define __DelphiXE4AndAbove}
    {$define __DelphiXE5AndAbove}
    {$define __DelphiXE6AndAbove}
    {$define __DelphiXE7AndAbove}
    {$define __DelphiXE8AndAbove}
    {$define __DelphiD10AndAbove}
{$endif}

{$ifdef Ver310}
    {$define __DelphiD10_1}
    {$define __Delphi2AndAbove}
    {$define __Delphi3AndAbove}
    {$define __Delphi4AndAbove}
    {$define __Delphi5AndAbove}
    {$define __Delphi6AndAbove}
    {$define __Delphi7AndAbove}
    {$define __Delphi2005AndAbove}
    {$define __Delphi2006AndAbove}
    {$define __Delphi2007AndAbove}
    {$define __Delphi2009AndAbove}
    {$define __Delphi2010AndAbove}
    {$define __DelphiXEAndAbove}
    {$define __DelphiXE2AndAbove}
    {$define __DelphiXE3AndAbove}
    {$define __DelphiXE4AndAbove}
    {$define __DelphiXE5AndAbove}
    {$define __DelphiXE6AndAbove}
    {$define __DelphiXE7AndAbove}
    {$define __DelphiXE8AndAbove}
    {$define __DelphiD10AndAbove}
    {$define __DelphiD10_1AndAbove}
{$endif}

{$ifdef __DelphiXE2AndAbove}
  {$define HAS_UNIT_SYSTEM_UITYPES}
{$endif}

{$WARN SYMBOL_DEPRECATED OFF}

{$ifdef Ver93}
    {$define __CBuilder1}
    {$define __CBuilder1AndAbove}
{$endif}

{$ifdef Ver110}
    {$define __CBuilder3}
    {$define __CBuilder1AndAbove}
    {$define __CBuilder3AndAbove}
{$endif}

{$ifdef Ver125}
    {$define __CBuilder4}
    {$define __CBuilder1AndAbove}
    {$define __CBuilder3AndAbove}
    {$define __CBuilder4AndAbove}
{$endif}

{$ifdef Ver135}
    {$define __CBuilder5}
    {$define __CBuilder1AndAbove}
    {$define __CBuilder3AndAbove}
    {$define __CBuilder4AndAbove}
    {$define __CBuilder5AndAbove}
{$endif}

{ conditional constants to register graphic file formats with
  TPicture. To disable, put a period (.) before the dollar ($)
  If a format is not defined, TPicture.LoadFromFile will not
  recognize the file extension. 
}


{ MB May 1, 1999. Do not replace TBitmap, TIcon, and TMetafile by default,
  as this interferes with at design time with forms containing these
  graphics.

  MB Sep 26, 1999. The VCL classes are no longer unregistered, so it is safe
  to have both VCL and Envision classes registered; for example both TBitmap
  and TBitmapGraphic may be registered, and a form may contain both types
  of graphics at design-time.

  Note that the TImageList component does not integrate with graphic classes
  other than TBitmap and TIcon.

  MB Feb 20, 2002. It seems that TSpeedButton and TBitBtn will not load bitmaps
  if TBitmapGraphic is registered at design time. This has been verified in
  Delphi 6.
}
{.$define __RegisterEnvisionBmp}
{.$define __RegisterEnvisionIco}
{.$define __RegisterEnvisionWmf}

{ PDF not registed by default as it is not general PDF parser }
{.$define __RegisterEnvisionPdf}

{$define __RegisterEnvisionDcx}
{$define __RegisterEnvisionDds}
{$define __RegisterEnvisionEps}
{$define __RegisterEnvisionFaxG3}
{$define __RegisterEnvisionJ2k}
{$define __RegisterEnvisionJng}
{$define __RegisterEnvisionJp2}
{$define __RegisterEnvisionJpg}
{$define __RegisterEnvisionMng}
{$define __RegisterEnvisionPcx}
{$define __RegisterEnvisionPict}
{$define __RegisterEnvisionPng}
{$define __RegisterEnvisionPpm}
{$define __RegisterEnvisionPsd}
{$define __RegisterEnvisionTga}
{$define __RegisterEnvisionTif}
{$define __RegisterEnvisionWBmp}
{$define __RegisterEnvisionXpm}
{$define __RegisterEnvisionXbm}


