home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / tools / bachmann / bachmann.exe / CW / incsCW6 / PageMgrDefines.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-11-08  |  3.2 KB  |  85 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.  *       03/30/99    Greg Winton    Created file.
  14.  *
  15.  *       04/07/99    Greg Winton    Added PagFontType declaration.
  16.  *
  17.  *******************************************************************/
  18.  
  19. #ifndef __PAGE_MGR_DEFINES_H__
  20. #define __PAGE_MGR_DEFINES_H__
  21.  
  22. // PalmPilot common definitions
  23. // #include <Common.h>
  24.  
  25.  
  26. /********************************************************************
  27.  * Type and creator of Sample Library database
  28.  ********************************************************************/
  29. #define  pageMgrCreatorID  'BPGM'               // Bachmann Page Manager database creator
  30. #define  pageMgrTypeID     'libr'               // Standard library database type
  31.  
  32. /********************************************************************
  33.  * Internal library name which can be passed to SysLibFind()
  34.  ********************************************************************/
  35. #define        pageMgrName            "PageMgr"
  36.  
  37. /************************************************************
  38.  * PageMgr Library result codes
  39.  * (appErrorClass is reserved for 3rd party apps/libraries.
  40.  * It is defined in SystemMgr.h)
  41.  *************************************************************/
  42.  
  43. #define pagErrParam            (appErrorClass | 1)        // invalid parameter
  44. #define pagErrNotOpen        (appErrorClass | 2)        // library is not open
  45. #define pagErrAlreadyOpen  (appErrorClass | 3)     // return from PagOpen() if
  46.                                                    // the library is already open by others
  47. #define pagErrStillOpen        (appErrorClass | 4)        // returned from PagClose() if
  48.                                                                     // the library is still open by others
  49. #define pagErrMemory            (appErrorClass | 5)        // memory error occurred
  50. #define pagErrDevice       (appErrorClass | 6)     // device not ready error
  51. #define pagErrPort         (appErrorClass | 7)     // port error occurred
  52. #define pagErrAbort        (appErrorClass | 8)     // user aborted
  53. #define pagErrNotImpl      (appErrorClass | 9)     // function not implemented
  54. #define pagErrNotSupp      (appErrorClass | 10)    // request not supported.
  55. #define pagErrState        (appErrorClass | 11)    // state error
  56. #define pagErrNoConfig     (appErrorClass | 12)    // BPM Config needs to be run to set a default device
  57.  
  58. /********************************************************************
  59.  * Option Defines
  60.  ********************************************************************/
  61. typedef enum {
  62.    pagOptionMaxLines
  63. } PagOptionEnum;
  64.  
  65. // Max font typeface length.
  66. #define pagFontMaxTypeface (25)
  67.  
  68. typedef struct {
  69.    Char           typeface [pagFontMaxTypeface+1];
  70.    UInt           height;
  71.    Boolean        bold;
  72.    Boolean        italics;
  73.    } PagFontType;
  74.  
  75. typedef PagFontType* PagFontPtr;
  76.  
  77. /********************************************************************
  78.  * Public Structures
  79.  ********************************************************************/
  80.  
  81. #define  MAXSIZE_DRIVERNAME         25
  82.  
  83.  
  84. #endif    // __PAGE_MGR_DEFINES_H__
  85.