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