home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / tools / bachmann / bachmann.exe / CW / incsCW6 / PrintMgrDefines.h < prev   
Encoding:
C/C++ Source or Header  |  2000-11-08  |  3.9 KB  |  115 lines

  1. /*******************************************************************
  2.  *
  3.  * Copyright ⌐ 1998, Bachmann Software and Services.
  4.  * All rights reserved.
  5.  *
  6.  * FileName:
  7.  *        PrintMgrDefines.h
  8.  *
  9.  * Description:
  10.  *        Print Manager library private definitions.
  11.  *
  12.  * History:
  13.  *       12/14/98    Greg Winton    Created file.
  14.  *
  15.  *    12/23/98    Greg Winton    Added PrnDrawText... defines.
  16.  *
  17.  *******************************************************************/
  18.  
  19.  
  20. #ifndef __PRINT_MGR_DEFINES_H__
  21. #define __PRINT_MGR_DEFINES_H__
  22.  
  23. // PalmPilot common definitions
  24. // #include <Common.h>
  25.  
  26. /************************************************************
  27.  * Sample Library result codes
  28.  * (appErrorClass is reserved for 3rd party apps/libraries.
  29.  * It is defined in SystemMgr.h)
  30.  *************************************************************/
  31.  
  32. #define prnErrParam            (appErrorClass | 1)        // invalid parameter
  33. #define prnErrNotOpen        (appErrorClass | 2)        // library is not open
  34. #define prnErrAlreadyOpen  (appErrorClass | 3)     // return from PrnOpen() if
  35.                                                    // the library is already open by others
  36. #define prnErrStillOpen        (appErrorClass | 4)        // returned from PrnClose() if
  37.                                                                     // the library is still open by others
  38. #define prnErrMemory            (appErrorClass | 5)        // memory error occurred
  39. #define prnErrDevice       (appErrorClass | 6)     // device not ready error
  40. #define prnErrPort         (appErrorClass | 7)     // port error occurred
  41. #define prnErrAbort        (appErrorClass | 8)     // user aborted
  42. #define prnErrNotImpl      (appErrorClass | 9)     // function not implemented
  43. #define prnErrNotSupp      (appErrorClass | 10)    // request not supported.
  44. #define prnErrState        (appErrorClass | 11)    // state error
  45.  
  46. /********************************************************************
  47.  * Type and creator of Sample Library database
  48.  ********************************************************************/
  49. #define        printMgrCreatorID    'BPM1'               // Bachmann Print Manager database creator
  50. #define        printMgrTypeID        'libr'               // Standard library database type
  51.  
  52. /********************************************************************
  53.  * Internal library name which can be passed to SysLibFind()
  54.  ********************************************************************/
  55. #define        printMgrName            "Print Manager"
  56.  
  57. /********************************************************************
  58.  * Public Structures
  59.  ********************************************************************/
  60.  
  61. // Max font typeface length.
  62. #define prnFontMaxTypeface (25)
  63.  
  64. typedef struct {
  65.    Char           typeface [prnFontMaxTypeface+1];
  66.    UInt           height;
  67.    Boolean        bold;
  68.    Boolean        italics;
  69.    } PrnFontType;
  70.  
  71. typedef PrnFontType* PrnFontPtr;
  72.  
  73. typedef enum {
  74.    prnOrientPortrait = 0,
  75.    prnOrientLandscape
  76.    } PrnOrientEnum;
  77.  
  78. #define prnDrawTextLeft         (0x0001)
  79. #define prnDrawTextCenter       (0x0002)
  80. #define prnDrawTextRight        (0x0004)
  81. #define prnDrawTextBottom       (0x0010)
  82. #define prnDrawTextVCenter      (0x0020)
  83. #define prnDrawTextTop          (0x0040)
  84. #define prnDrawTextSingleLine   (0x0100)
  85. #define prnDrawTextMultiLine    (0x0200)
  86. #define prnDrawTextWordBreak    (0x0400)
  87. #define prnDrawTextClip         (0x1000)
  88. #define prnDrawTextNoClip       (0x2000)
  89.  
  90. #define prnDrawTextHorzAlignMask    (0x000F)
  91. #define prnDrawTextVertAlignMask    (0x00F0)
  92. #define prnDrawTextLineFormatMask   (0x0F00)
  93. #define prnDrawTextClippingMask     (0xF000)
  94.  
  95.  
  96.  
  97. typedef enum {
  98.    prnPaperTypeRoll = 0,
  99.    prnPaperTypeLetter,
  100.    prnPaperTypeA4,
  101.    prnPaperTypeLegal
  102.  
  103.    } PrnPaperTypeEnum;
  104.  
  105.  
  106. #define  BPMSettings_FILE_CREATOR   ('BPMC')
  107. #define  BPMSettings_FILE_VERSION   (0x01)
  108. #define  BPMSettings_PREF_ID        (0x02)
  109. #define  BPMSettings_PREF_VERSION   (0x01)
  110.  
  111.  
  112. #define  MAXSIZE_DRIVERNAME         25
  113.  
  114. #endif    // __PRINT_MGR_DEFINES_H__
  115.