Module Winprint_Constants.pkg

     1// Constants used by Winprint1 and Winprint 2
     2
     3//**** Define Winprint Constants
     4
     5Enum_List // Metrics
     6    Define WPM_CM
     7    Define WPM_INCH
     8End_Enum_List
     9
    10// values returns by GetDocumentStatus
    11Enum_List
    12  define dsNotStarted for 0 // The document is cleared or has never started
    13  define dsStarted    for 1 // The document has been created, but is not finished.
    14  define dsFinished   for 2 // The document is completed, and is currently valid
    15End_Enum_List
    16
    17#REPLACE PRN_TRUE   1      //Only for internal use
    18#REPLACE PRN_FALSE  0      //Only for internal use
    19
    20//*** Fonts/Align
    21#REPLACE FONT_LEFT      0  //Default
    22#REPLACE FONT_CENTER    2
    23#REPLACE FONT_RIGHT     4
    24
    25#REPLACE FONT_DEFAULT   0
    26#REPLACE FONT_UNDER     8
    27#REPLACE FONT_BOLD     16
    28#REPLACE FONT_ITALIC   32
    29#REPLACE FONT_STRIKE   64
    30
    31//*** Header position on page
    32#REPLACE HDR_LEFT    0
    33#REPLACE HDR_CENTER  1
    34#REPLACE HDR_RIGHT   2
    35
    36//*** Header frame types
    37#REPLACE HDR_NOFRAME 0
    38#REPLACE HDR_MARGINS 1
    39#REPLACE HDR_FRMSIZE 2
    40
    41//*** Header Margin
    42#REPLACE HM_TOPOUTER     0   // margin above the top of the header's frame
    43#REPLACE HM_TOPINNER     1   // margin below the top of the header's frame
    44#REPLACE HM_BOTTOMINNER  2   // margin above the bottom of the header's frame
    45#REPLACE HM_BOTTOMOUTER  3   // margin below the bottom of the header's frame
    46
    47//*** Header page breake/wrap
    48#REPLACE HDR_NOWRAP 0
    49#REPLACE HDR_WRAP   1
    50
    51//*** Headers
    52#REPLACE DFPageTop         0
    53#REPLACE DFReportHeader    1
    54#REPLACE DFPageHeader      2
    55#REPLACE DFPageTitle       3
    56#REPLACE DFSubHeader       4
    57#REPLACE DFSubTotal        5
    58#REPLACE DFTotal           6
    59#REPLACE DFPageTotal       7
    60#REPLACE DFPageFooter      8
    61#REPLACE DFReportFooter    9
    62#REPLACE DFPageBottom      10
    63#REPLACE DFPageHeader2     11
    64
    65//*** RGB colors for WinPrint
    66//*** If you want to define more colors, use the function DFGetDFColor.
    67#REPLACE RGB_BLACK   0
    68#REPLACE RGB_WHITE  -256
    69//*** Default
    70#REPLACE RGB_RED      65280
    71#REPLACE RGB_BLUE    -16777216
    72#REPLACE RGB_GREEN    16711680
    73#REPLACE RGB_YELLOW   16776960
    74#REPLACE RGB_GREY    -1061109760
    75#REPLACE RGB_CYAN    -65536
    76#REPLACE RGB_MAGENTA -16711936
    77//*** Dark
    78#REPLACE RGB_DRED      32768
    79#REPLACE RGB_DBLUE    -2147483648
    80#REPLACE RGB_DGREEN    8388608
    81#REPLACE RGB_DYELLOW   8421376
    82#REPLACE RGB_DGREY    -2139062272
    83#REPLACE RGB_DCYAN    -2139095040
    84#REPLACE RGB_DMAGENTA -2147450880
    85//*** Same as magenta, i will leav them becauce they exist in ver 1.0
    86#REPLACE RGB_PINK     -16711936
    87#REPLACE RGB_DPINK    -2147450880
    88
    89//*** Graphics
    90#REPLACE DFGR_TRAN 0         //Transparent
    91#REPLACE DFGR_FILL 1         //Fill
    92
    93#REPLACE DFGR_IN   0         //Used with pie
    94#REPLACE DFGR_OUT  1         //Used with pie
    95#REPLACE DFGR_CURRLINE  -999 //Used with charts
    96#REPLACE DFGR_RB_MARGIN -998 //Right and bottom margin
    97
    98#REPLACE DFGR_BAR  1         //Type of graph
    99#REPLACE DFGR_PIE  2
   100#REPLACE DFGR_LINE 3
   101
   102#REPLACE DFGR_2D   0        //Text to right
   103#REPLACE DFGR_3D   1        //Text to right
   104#REPLACE DFGR_2DL  2        //Text to left
   105#REPLACE DFGR_3DL  3        //Text to left
   106
   107#REPLACE DFGR_NOVAL 0       //No value
   108#REPLACE DFGR_VAL   1       //Value
   109#REPLACE DFGR_PER   2       //Percent
   110
   111#REPLACE DFGR_HORI  0       //Horizontal
   112#REPLACE DFGR_VERT  1       //Vertical
   113
   114#REPLACE DFGR_NOWRAP 0      //Do not wrap graph to next page
   115#REPLACE DFGR_WRAP   1      //Wrap graph to next page
   116
   117#REPLACE DFGR_NOPOS  0      //Do not set current position
   118#REPLACE DFGR_SETPOS 1      //Set current position after graphic
   119
   120//*** PD flags for print setup/dialog
   121#REPLACE DF_DISABLEPRINTTOFILE        1
   122#REPLACE DF_HIDEPRINTTOFILE           2
   123#REPLACE DF_PRINTTOFILE               3
   124
   125#REPLACE DF_NOPAGENUMS               100000
   126#REPLACE DF_PAGENUMS                 200000
   127
   128#REPLACE DF_PORTRAIT                  0
   129#REPLACE DF_LANDSCAPE                 4
   130
   131#REPLACE DF_PAPER_LETTER             10
   132#REPLACE DF_PAPER_LETTERSMALL        20
   133#REPLACE DF_PAPER_TABLOID            30
   134#REPLACE DF_PAPER_LEDGER             40
   135#REPLACE DF_PAPER_LEGAL              50
   136#REPLACE DF_PAPER_STATEMENT          60
   137#REPLACE DF_PAPER_EXECUTIVE          70
   138#REPLACE DF_PAPER_A3                 80
   139#REPLACE DF_PAPER_A4                 90
   140#REPLACE DF_PAPER_A4SMALL            100
   141#REPLACE DF_PAPER_A5                 110
   142#REPLACE DF_PAPER_B4                 120
   143#REPLACE DF_PAPER_B5                 130
   144#REPLACE DF_PAPER_FOLIO              140
   145#REPLACE DF_PAPER_QUARTO             150
   146#REPLACE DF_PAPER_10X14              160
   147#REPLACE DF_PAPER_11X17              170
   148#REPLACE DF_PAPER_NOTE               180
   149#REPLACE DF_PAPER_ENV_9              190
   150#REPLACE DF_PAPER_ENV_10             200
   151#REPLACE DF_PAPER_ENV_11             210
   152#REPLACE DF_PAPER_ENV_12             220
   153#REPLACE DF_PAPER_ENV_14             230
   154#REPLACE DF_PAPER_CSHEET             240
   155#REPLACE DF_PAPER_DSHEET             250
   156#REPLACE DF_PAPER_ESHEET             260
   157#REPLACE DF_PAPER_ENV_DL             270
   158#REPLACE DF_PAPER_ENV_C3             280
   159#REPLACE DF_PAPER_ENV_C4             290
   160#REPLACE DF_PAPER_ENV_C5             300
   161#REPLACE DF_PAPER_ENV_C6             310
   162#REPLACE DF_PAPER_ENV_C65            320
   163#REPLACE DF_PAPER_ENV_B4             330
   164#REPLACE DF_PAPER_ENV_B5             340
   165#REPLACE DF_PAPER_ENV_B6             350
   166#REPLACE DF_PAPER_ENV_ITALY          360
   167#REPLACE DF_PAPER_ENV_MONARCH        370
   168#REPLACE DF_PAPER_ENV_PERSONAL       380
   169#REPLACE DF_PAPER_FANFOLD_US         390
   170#REPLACE DF_PAPER_FANFOLD_STD_GERMAN 400
   171#REPLACE DF_PAPER_FANFOLD_LGL_GERMAN 410
   172#REPLACE DF_PAPER_LAST               420
   173#REPLACE DF_PAPER_USER               430
   174
   175#REPLACE DF_BIN_AUTO                1000
   176#REPLACE DF_BIN_LOWER               1500
   177#REPLACE DF_BIN_CASSETTE            2000
   178#REPLACE DF_BIN_MANUAL              2500
   179#REPLACE DF_BIN_ENVELOPE            3000
   180#REPLACE DF_BIN_MIDDLE              3500
   181#REPLACE DF_BIN_ENVMANUAL           4000
   182#REPLACE DF_BIN_ONLYONE             4500
   183#REPLACE DF_BIN_FIRST               5000
   184#REPLACE DF_BIN_SMALLFMT            5500
   185#REPLACE DF_BIN_LARGECAPACITY       6000
   186#REPLACE DF_BIN_TRACTOR             6500
   187#REPLACE DF_BIN_LARGEFMT            7000
   188#REPLACE DF_BIN_UPPER               7500
   189#REPLACE DF_BIN_LAST                8000
   190
   191#REPLACE DF_RES_HIGH               10000
   192#REPLACE DF_RES_MEDIUM             20000
   193#REPLACE DF_RES_LOW                30000
   194#REPLACE DF_RES_DRAFT              40000
   195
   196