home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / src / pagepart / iodpage.hpp < prev    next >
Text File  |  1997-04-02  |  4KB  |  113 lines

  1. //   @(#) 1.5 com/src/samples/pagepart/iodpage.hpp, odpagepart, od96os2, odos29712d 11/8/96 18:18:48 [3/21/97 17:48:59]
  2. //====START_GENERATED_PROLOG======================================
  3. //
  4. //
  5. //   COMPONENT_NAME:     odpagepart
  6. //
  7. //   CLASSES: none
  8. //
  9. //   ORIGINS: 27
  10. //
  11. //
  12. //   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //   All Rights Reserved
  14. //   Licensed Materials - Property of IBM
  15. //   US Government Users Restricted Rights - Use, duplication or
  16. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //
  18. //   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //   OR PERFORMANCE OF THIS SOFTWARE.
  25. //
  26. //====END_GENERATED_PROLOG========================================
  27. //
  28.  
  29.  
  30. #ifndef PageLayout_Header
  31. #define PageLayout_Header
  32.  
  33. /**********************************************************************************
  34. CONSTANTS AND TYPE DEFINITIONS
  35. **********************************************************************************/
  36.  
  37. #define kPartHandlerName                   "PageLayout"
  38. #define kPartHandlerDisplayName            "Page Layout"
  39. #define kPartKindName                      "PageLayout"
  40. #define kPartKindDisplayName               "Page Layout Kind"
  41. #define kPartCategoryName                  "Layout"
  42. #define kPartCategoryDisplayName           "Layout"
  43. #define kWindowsIcon                       "IODPage.ico"
  44. #define kPagePartDefaultFont               "9.WarpSans"
  45. // #define kPagePartMRIFileName               "IODPage.dll" //.dll extension causes it not to search LIBPATH???
  46. #define kPagePartMRIFileName               "IODPage"
  47.  
  48. #define PAGE_WIDTH         612   /* 72 * 8.5 */
  49. #define PAGE_HEIGHT        792   /* 72 * 11 */
  50.  
  51. #define HALF_CHAR_SIZE     4
  52.  
  53. #define GRID_SPACING       36
  54.  
  55. #define DOWN               -1
  56. #define UP                 1
  57.  
  58. #define NONE               0
  59. #define TOP_LEFT           1
  60. #define TOP_CENTER         2
  61. #define TOP_RIGHT          3
  62. #define BOTTOM_LEFT        4
  63. #define BOTTOM_CENTER      5
  64. #define BOTTOM_RIGHT       6
  65.  
  66. #define INCHES             0
  67. #define METRIC             1
  68.  
  69. #define DOTS               0
  70. #define DASH               1
  71. #define DASHDOT            2
  72. #define DASHDOUBLEDOT      3
  73. #define SOLID              4
  74.  
  75. #define INCH_LENGTH        72.0
  76. #define CENTIMETER_LENGTH  72.0/2.54
  77.  
  78. #define EIGHTH_INCH_MARK   3
  79. #define CENTIMETER_MARK    10
  80. #define TICK_MARK_SIZE     14
  81.  
  82. #define RULER_UNIT_OFFSET  5
  83.  
  84. #define VERT_RULER_OFFSET  22
  85. #define HORZ_RULER_OFFSET  22
  86.  
  87. #define LEFT_PAGE_OFFSET   40
  88. #define RIGHT_PAGE_OFFSET  20
  89. #define BOTTOM_PAGE_OFFSET 32
  90. #define TOP_PAGE_OFFSET    40
  91.  
  92. #define LEFT_MARGIN        54    /* 72 * (3/4) */
  93. #define RIGHT_MARGIN       54    /* 72 * (3/4) */
  94. #define BOTTOM_MARGIN      54    /* 72 * (3/4) */
  95. #define TOP_MARGIN         54    /* 72 * (3/4) */
  96.  
  97.  
  98. #ifndef ODPrintExtension_Header
  99. //jwa: Following two strings must stay here - do not move to pagemri.rc
  100. //     (since they are displayed when we can't get at our string table)
  101. #define ResourceErrorMsg   "Unable to load resources (pagemri.dll)!"
  102. #define StringNotFoundMsg  "Message not found"
  103. #endif //ODPrintExtension_Header
  104.  
  105.  
  106. /**********************************************************************************
  107. SIMPLE HELPER MACRO DEFINITIONS
  108. **********************************************************************************/
  109. #define PowerOf2(x)        (1 << (x))
  110. #define kNoBias            kODNULL
  111. #endif //PageLayout_Header
  112.  
  113.