home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 October / PCWorld_2002-10_cd.bin / Software / Topware / fprint / fpdk400.exe / include / fpdefs.bas < prev    next >
BASIC Source File  |  1999-10-26  |  6KB  |  165 lines

  1. Attribute VB_Name = "FPDEFS"
  2.  
  3. '
  4. '       fpdefs.bas
  5. '
  6. '       Copyright (c) 1999 FinePrint Software
  7. '       All Rights Reserved.
  8. '
  9.  
  10. ' layout types (1-up 2-up etc.
  11. Enum eLayoutType
  12.     eLayoutNil = -1         ' sentinel value
  13.     eLayoutBypass           ' passthrough to destination printer
  14.     eLayout1                ' 1-up
  15.     eLayout2                ' 2-up
  16.     eLayout4                ' 4-up
  17.     eLayout8                ' 8-up
  18.     eLayoutBooklet          ' booklet
  19.     eLayoutMax              ' sentinel value
  20. End Enum
  21.  
  22. ' border types
  23. Enum eBorderType
  24.     eBordersNil = -1        ' sentinel value
  25.     eBordersOff             ' off
  26.     eBordersOn              ' on
  27.     eBordersSmart           ' smart
  28.     eBordersMax             ' sentinel value
  29. End Enum
  30.  
  31. ' order types
  32. Enum eOrderType
  33.     eOrderAcross = 1
  34.     eOrderDown = 0
  35. End Enum
  36.  
  37. ' margin types
  38. Enum eMarginType
  39.     eMarginNil = -1         ' sentinel value
  40.     eMarginNone             ' none
  41.     eMarginSmall            ' small
  42.     eMarginMedium           ' medium
  43.     eMarginLarge            ' large
  44.     eMarginOrig             ' original
  45.     eMarginMax              ' sentinel value
  46. End Enum
  47.  
  48. ' dest printer duplex support
  49. Enum eDuplexSupportType
  50.     eDuplexSuppNil = -1     ' sentinel value
  51.     eDuplexSuppUnknown      ' unknown
  52.     eDuplexSuppFaceUp       ' manual face up
  53.     eDuplexSuppFaceDown     ' manual face down
  54.     eDuplexSuppHardware     ' hardware duplex
  55.     eDuplexSuppMax          ' sentinel value
  56. End Enum
  57.  
  58. ' dest printer duplex settings
  59. Enum eDuplexType
  60.     eDuplexNil = -1         ' sentinel value
  61.     eDuplexNone             ' 1-sided printing
  62.     eDuplexLong             ' 2-sided bind on long side
  63.     eDuplexShort            ' 2-sided bind on short side
  64.     eDuplexDflt             ' current printer setting
  65.     eDuplexMax              ' sentinel value
  66. End Enum
  67.  
  68. ' dest printer orientation
  69. Public Const DMORIENT_AUTOMATIC = 3
  70.  
  71. ' when to display the UI dialog
  72. Enum eShowDlgType
  73.     ShowDlg_Nil = -1        ' sentinel value
  74.     ShowDlg_Early           ' show UI before spooling
  75.     ShowDlg_Late            ' show UI after spooling
  76.     ShowDlg_Never           ' do not show UI
  77.     ShowDlg_Max             ' sentinel value
  78. End Enum
  79.  
  80. ' different ways to draw colored text
  81. Enum eColTextType
  82.     eColTextNil = -1        ' sentinel value
  83.     eColTextNormal          ' draw normally
  84.     eColTextPath            ' draw as a filled path
  85.     eColTextBlack           ' convert to black and draw normally
  86.     eColTextMax             ' sentinel value
  87. End Enum
  88.  
  89. ' stationery items
  90. Enum eStatItem
  91.     esiNil = -1             ' sentinel value
  92.     esiHeader               ' header
  93.     esiFooter               ' footer
  94.     esiWatermark            ' watermark
  95.     esiMax                  ' sentinel value
  96. End Enum
  97.  
  98. ' stationery item attributes
  99. Enum eStatItemAttr
  100.     esiaNil = -1            ' sentinel value
  101.     esiaText                ' text of item (LPTSTR)
  102.     esiaFont                ' font of item (LOGFONT)
  103.     esiaColor               ' text color of item (COLORREF)
  104.     esiaMax                 ' sentinel value
  105. End Enum
  106.  
  107. ' layout items
  108. Enum eLayoutItem
  109.     eliNil = -1             ' sentinel value
  110.     eliLayout               ' N-up
  111.     eliBorders              ' borders
  112.     eliOrder                ' page ordering (4-up and 8-up only)
  113.     eliStationery           ' stationery
  114.     eliForm                 ' form
  115.     eliDestPrinter          ' destination printer
  116.     eliMargins              ' margins
  117.     eliDuplex               ' double-sided
  118.     eliCopies               ' number of copies
  119.     eliMax                  ' sentinel value
  120. End Enum
  121.  
  122. ' dest printer page rotation
  123. Enum ePageRotation
  124.     eprNil = -1             ' sentinel value
  125.     eprEntire               ' rotate entire page
  126.     eprBanded               ' rotate page in bands
  127.     eprNone                 ' do not rotate
  128.     eprMax                  ' sentinel value
  129. End Enum
  130.  
  131. ' special return values from the FinePrint UI
  132. Public Const IDDEFER = &HAAAA      ' Defer button was pressed
  133. Public Const IDDEFERALL = &HAAAB   ' Defer All button was pressed
  134.  
  135. ' registry key names for dest printer settings
  136. Public Const stDestColoredText = "ColoredText"
  137. Public Const stDestDuplex = "Duplex"
  138. Public Const stDestDuplexSupport = "DuplexSupport"
  139. Public Const stDestDuplexType = "DuplexType"
  140. Public Const stDestExtraMargin = "AddMargin"
  141. Public Const stDestLandDupCorr = "DuplexCorrection"
  142. Public Const stDestOrientation = "Orientation"
  143. Public Const stDestPageRotation = "PageRotation"
  144. Public Const stDestPdfFontCorr = "EmbFontGraphics"
  145. Public Const stDestReverse = "Reverse"
  146.  
  147. ' FinePrint error codes
  148. Enum FpError
  149.     eFpeNil = -1            ' sentinel value
  150.     eFpeOK                  ' no error
  151.     eFpeNotImplemented      ' functionality is not implemented
  152.     eFpeBadParam            ' invalid parameter
  153.     eFpeNoMem               ' out of memory
  154.     eFpeBadVersion          ' incompatible FinePrint version
  155.     eFpeNotFound            ' item was not found
  156.     eFpeNoDispatcher        ' could not locate the dispatcher
  157.     eFpeDispatcherErr       ' an error occurred in the dispatcher
  158.     eFpeNoUi                ' could not locate the UI
  159.     eFpeUiErr               ' an error occurred in the UI
  160.     eFpeTimeout             ' a timeout expired
  161.     eFpePrinter             ' error on the dest printer
  162.     eFpeIo                  ' file I/O error
  163.     eFpeMax                 ' sentinel value
  164. End Enum
  165.