home *** CD-ROM | disk | FTP | other *** search
/ CorelDRAW! 10 / cd10_pgrm.iso / Corel / Graphics10 / Draw / Scripts / Misc / drwconst.csi < prev    next >
Encoding:
Text File  |  1999-02-02  |  6.3 KB  |  154 lines

  1. REM Corel SCRIPT 9 Extra Constants [CorelSCRIPT 9.0]
  2. REM DrawConst.csc
  3. REM ⌐ 1997 Corel Corporation. All rights reserved.
  4.  
  5. REM This file contains predefined global constants for use with Corel SCRIPT 9
  6. REM that were not included in scpconst.csc.
  7.  
  8. ' Constants for the error codes.
  9. GLOBAL CONST ERR_USER_FIRST%      = 800
  10.  
  11. ' Constants for the DRAW fill types (GetFillType).
  12. GLOBAL CONST DRAW_FILL_NONE&                    = 0
  13. GLOBAL CONST DRAW_FILL_UNIFORM&                = 1
  14. GLOBAL CONST DRAW_FILL_FOUNTAIN&                = 2
  15. GLOBAL CONST DRAW_FILL_POSTSCRIPT&                = 6
  16. GLOBAL CONST DRAW_FILL_TWO_COLOR&                = 7
  17. GLOBAL CONST DRAW_FILL_COLOR_BITMAP&            = 9
  18. GLOBAL CONST DRAW_FILL_COLOR_VECTOR&            = 10
  19. GLOBAL CONST DRAW_FILL_COLOR_TEXTURE&            = 11
  20.  
  21. ' Constants for the DRAW contour types (ApplyContour).
  22. GLOBAL CONST DRAW_CONTOUR_TO_CENTER&            = 0
  23. GLOBAL CONST DRAW_CONTOUR_INSIDE&                = 1
  24. GLOBAL CONST DRAW_CONTOUR_OUTSIDE&                = 2
  25.  
  26. ' Constants for the DRAW reference points (SetReferencePoint).
  27. GLOBAL CONST DRAW_REF_TOP_RIGHT&                = 1
  28. GLOBAL CONST DRAW_REF_TOP_MIDDLE&                = 2
  29. GLOBAL CONST DRAW_REF_TOP_LEFT&                = 3
  30. GLOBAL CONST DRAW_REF_MIDDLE_LEFT&                = 4
  31. GLOBAL CONST DRAW_REF_LOWER_LEFT&                = 5
  32. GLOBAL CONST DRAW_REF_LOWER_MIDDLE&            = 6
  33. GLOBAL CONST DRAW_REF_LOWER_RIGHT&                = 7
  34. GLOBAL CONST DRAW_REF_MIDDLE_RIGHT&            = 8
  35. GLOBAL CONST DRAW_REF_CENTER&                    = 9
  36.  
  37. ' Constants for the DRAW page orientations (SetPageOrientation).
  38. GLOBAL CONST DRAW_ORIENT_PORTRAIT&                = 0
  39. GLOBAL CONST DRAW_ORIENT_LANDSCAPE&            = 1
  40.  
  41. ' Constants for the DRAW lens types (ApplyLensEffect).
  42. GLOBAL CONST DRAW_TAB_NONE&                    = 0
  43. GLOBAL CONST DRAW_TAB_BRIGHTEN&                = 1
  44. GLOBAL CONST DRAW_TAB_LIGHT&                    = 2
  45. GLOBAL CONST DRAW_TAB_FILTER&                    = 3
  46. GLOBAL CONST DRAW_TAB_CLRMAP&                    = 4
  47. GLOBAL CONST DRAW_TAB_FISHEYE&                = 5
  48. GLOBAL CONST DRAW_TAB_HEATMAP&                = 6
  49. GLOBAL CONST DRAW_TAB_INVERT&                    = 7
  50. GLOBAL CONST DRAW_TAB_ZOOM&                    = 8
  51. GLOBAL CONST DRAW_TAB_GRAYSCALE&                = 9
  52. GLOBAL CONST DRAW_TAB_AVERAGE&                = 10
  53. GLOBAL CONST DRAW_TAB_WIREFRAME&                = 11
  54. GLOBAL CONST DRAW_TAB_BITMAP&                    = 12 
  55.  
  56. ' Constants for the DRAW color models.
  57. GLOBAL CONST DRAW_COLORMODEL_PANTONE&            = 1
  58. GLOBAL CONST DRAW_COLORMODEL_CMYK100&            = 2
  59. GLOBAL CONST DRAW_COLORMODEL_CMYK255&            = 3
  60. GLOBAL CONST DRAW_COLORMODEL_CMY&                = 4
  61. GLOBAL CONST DRAW_COLORMODEL_RGB&                = 5
  62. GLOBAL CONST DRAW_COLORMODEL_HSB&                = 6
  63. GLOBAL CONST DRAW_COLORMODEL_HLS&                = 7
  64. GLOBAL CONST DRAW_COLORMODEL_BW&                = 8
  65. GLOBAL CONST DRAW_COLORMODEL_Gray&                = 9
  66. GLOBAL CONST DRAW_COLORMODEL_YIQ255&            = 11
  67. GLOBAL CONST DRAW_COLORMODEL_LAB&                = 12
  68.  
  69. ' Constants for the DRAW outline types (ApplyOutline).
  70. GLOBAL CONST DRAW_OUTLINE_TYPE_NONE&              = 0
  71. GLOBAL CONST DRAW_OUTLINE_TYPE_SOLID&             = 1
  72. GLOBAL CONST DRAW_OUTLINE_TYPE_DOT_DASH&          = 2
  73.  
  74. ' Constants for the DRAW end caps (ApplyOutline).
  75. GLOBAL CONST DRAW_OUTLINE_CAPS_BUTT&              = 0
  76. GLOBAL CONST DRAW_OUTLINE_CAPS_ROUND&             = 1
  77. GLOBAL CONST DRAW_OUTLINE_CAPS_SQUARE&            = 2
  78.  
  79. ' Constants for the DRAW join types (ApplyOutline).
  80. GLOBAL CONST DRAW_OUTLINE_JOIN_MITER&             = 0
  81. GLOBAL CONST DRAW_OUTLINE_JOIN_ROUND&             = 1
  82. GLOBAL CONST DRAW_OUTLINE_JOIN_BEVEL&             = 2
  83.  
  84. ' Constants for the DRAW object types (GetObjectType).
  85. GLOBAL CONST DRAW_OBJECT_TYPE_RESERVED%            = 0
  86. GLOBAL CONST DRAW_OBJECT_TYPE_RECTANGLE%        = 1
  87. GLOBAL CONST DRAW_OBJECT_TYPE_ELLIPSE%            = 2
  88. GLOBAL CONST DRAW_OBJECT_TYPE_CURVE%            = 3
  89. GLOBAL CONST DRAW_OBJECT_TYPE_TEXT%            = 4
  90. GLOBAL CONST DRAW_OBJECT_TYPE_BITMAP%            = 5
  91. GLOBAL CONST DRAW_OBJECT_TYPE_PARAGRAPH_TEXT%    = 6
  92. GLOBAL CONST DRAW_OBJECT_TYPE_OLE%                = 7
  93. GLOBAL CONST DRAW_OBJECT_TYPE_SYM_POLYGON%        = 9
  94. GLOBAL CONST DRAW_OBJECT_TYPE_GROUP%            = 12
  95.  
  96. ' Constants for the DRAW font styles (SetCharacterAttributes).
  97. GLOBAL CONST DRAW_FONT_STYLE_NORMAL%        = 7
  98. GLOBAL CONST DRAW_FONT_STYLE_NORMAL_ITALIC% = 8
  99. GLOBAL CONST DRAW_FONT_STYLE_BOLD%          = 13
  100. GLOBAL CONST DRAW_FONT_STYLE_BOLD_ITALIC%   = 14
  101.  
  102. ' Constants for the DRAW underline types (SetCharacterAttributes).
  103. GLOBAL CONST DRAW_FONT_UNDERLINE_NONE%                 = 0
  104. GLOBAL CONST DRAW_FONT_UNDERLINE_SINGLE_THIN%         = 1
  105. GLOBAL CONST DRAW_FONT_UNDERLINE_SINGLE_THIN_WORDS%     = 2
  106. GLOBAL CONST DRAW_FONT_UNDERLINE_SINGLE_THICK%         = 3
  107. GLOBAL CONST DRAW_FONT_UNDERLINE_SINGLE_THICK_WORDS%     = 4
  108. GLOBAL CONST DRAW_FONT_UNDERLINE_DOUBLE_THIN%         = 5
  109. GLOBAL CONST DRAW_FONT_UNDERLINE_DOUBLE_THIN_WORDS%     = 6
  110.  
  111. ' Constants for the DRAW overline types (SetCharacterAttributes).
  112. GLOBAL CONST DRAW_FONT_OVERLINE_NONE%                = 0
  113. GLOBAL CONST DRAW_FONT_OVERLINE_SINGLE_THIN%         = 1
  114. GLOBAL CONST DRAW_FONT_OVERLINE_SINGLE_THIN_WORDS%     = 2
  115. GLOBAL CONST DRAW_FONT_OVERLINE_SINGLE_THICK%         = 3
  116. GLOBAL CONST DRAW_FONT_OVERLINE_SINGLE_THICK_WORDS%     = 4
  117. GLOBAL CONST DRAW_FONT_OVERLINE_DOUBLE_THIN%         = 5
  118. GLOBAL CONST DRAW_FONT_OVERLINE_DOUBLE_THIN_WORDS%     = 6
  119.  
  120. ' Constants for the DRAW strikeout types (SetCharacterAttributes).
  121. GLOBAL CONST DRAW_FONT_STRIKEOUT_NONE%                = 0
  122. GLOBAL CONST DRAW_FONT_STRIKEOUT_SINGLE_THIN%         = 1
  123. GLOBAL CONST DRAW_FONT_STRIKEOUT_SINGLE_THIN_WORDS%     = 2
  124. GLOBAL CONST DRAW_FONT_STRIKEOUT_SINGLE_THICK%         = 3
  125. GLOBAL CONST DRAW_FONT_STRIKEOUT_SINGLE_THICK_WORDS%     = 4
  126. GLOBAL CONST DRAW_FONT_STRIKEOUT_DOUBLE_THIN%         = 5
  127. GLOBAL CONST DRAW_FONT_STRIKEOUT_DOUBLE_THIN_WORDS%     = 6
  128.  
  129. ' Constants for the DRAW placement types (SetCharacterAttributes).
  130. GLOBAL CONST DRAW_FONT_PLACEMENT_NORMAL%            = 0
  131. GLOBAL CONST DRAW_FONT_PLACEMENT_SUPERSCRIPT%        = 1
  132. GLOBAL CONST DRAW_FONT_PLACEMENT_SUBSCRIPT%            = 2
  133.  
  134. ' Constants for the DRAW alignment types (SetCharacterAttributes).
  135. GLOBAL CONST DRAW_FONT_ALIGNMENT_NONE%                = 0
  136. GLOBAL CONST DRAW_FONT_ALIGNMENT_LEFT%                = 1
  137. GLOBAL CONST DRAW_FONT_ALIGNMENT_CENTER%            = 2
  138. GLOBAL CONST DRAW_FONT_ALIGNMENT_RIGHT%                = 3
  139. GLOBAL CONST DRAW_FONT_ALIGNMENT_FULL%                = 4
  140. GLOBAL CONST DRAW_FONT_ALIGNMENT_FORCE%                = 5
  141.  
  142. ' Constants for the DRAW fountain fill types (ApplyFountainFill).
  143. GLOBAL CONST DRAW_FOUNTAIN_LINEAR%                    = 0
  144. GLOBAL CONST DRAW_FOUNTAIN_RADIAL%                    = 1
  145. GLOBAL CONST DRAW_FOUNTAIN_CONICAL%                = 2
  146. GLOBAL CONST DRAW_FOUNTAIN_SQUARE%                    = 3
  147.  
  148. ' Constants for the DRAW color blend types (ApplyFountainFill).
  149. GLOBAL CONST DRAW_BLEND_DIRECT%                    = 0
  150. GLOBAL CONST DRAW_BLEND_RAINBOW_CW%                = 1
  151. GLOBAL CONST DRAW_BLEND_RAINBOW_CCW%                = 2
  152. GLOBAL CONST DRAW_BLEND_CUSTOM%                    = 3
  153.  
  154.