home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / componen / olectra / demo / chart / 2dconst.h next >
Encoding:
Text File  |  1996-09-11  |  15.7 KB  |  559 lines

  1. /***************************/
  2. /***** Error Constants *****/
  3. /***************************/
  4. /* Documentation: Specifies the error detected by the chart. */
  5.  
  6. /* Documentation: Invalid index found in variant */
  7. const int ocErrorInvalidIndex = 0;
  8.  
  9. /* Documentation: Property is read-only and cannot be modified */
  10. const int ocErrorReadOnly = 1;
  11.  
  12. /* Documentation: Numeric value is out of range */
  13. const int ocErrorOutOfRange = 2;
  14.  
  15. /* Documentation: Invalid enumerated value for property */
  16. const int ocErrorInvalidEnum = 3;
  17.  
  18. /* Documentation: Invalid value for property */
  19. const int ocErrorInvalidValue = 4;
  20.  
  21. /* Documentation: Property does not exist for this instance of the object */
  22. const int ocErrorNoSuchProperty = 5;
  23.  
  24. /* Documentation: Collection already contains a duplicate value */
  25. const int ocErrorDuplicateValue = 6;
  26.  
  27. /* Documentation: Cannot find item in collection */
  28. const int ocErrorNoSuchItem = 7;
  29.  
  30. /* Documentation: Cannot create object */
  31. const int ocErrorCannotCreateObject = 8;
  32.  
  33. /* Documentation: Property set to wrong object type */
  34. const int ocErrorTypeMismatch = 9;
  35.  
  36. /****************************/
  37. /***** Adjust Constants *****/
  38. /****************************/
  39. /* Documentation: Specifies the alignment of multiple lines of text. */
  40.  
  41. /* Documentation: Aligned to left edge. */
  42. const int oc2dAdjustLeft = 1;
  43.  
  44. /* Documentation: Aligned to right edge. */
  45. const int oc2dAdjustRight = 2;
  46.  
  47. /* Documentation: Centered. */
  48. const int oc2dAdjustCenter = 3;
  49.  
  50. /*********************************/
  51. /***** Orientation Constants *****/
  52. /*********************************/
  53. /* Documentation: Specifies the orientation. */
  54.  
  55. /* Documentation: Vertical orientation. */
  56. const int oc2dOrientVertical = 1;
  57.  
  58. /* Documentation: Horizontal orientation. */
  59. const int oc2dOrientHorizontal = 2;
  60.  
  61. /****************************/
  62. /***** Anchor Constants *****/
  63. /****************************/
  64. /* Documentation: Specifies the position of the object
  65.    relative to the anchor position. */
  66.  
  67. /* Documentation: Above anchor position. */
  68. const int oc2dAnchorNorth = 16;
  69.  
  70. /* Documentation: Below anchor position. */
  71. const int oc2dAnchorSouth = 32;
  72.  
  73. /* Documentation: To right of anchor position. */
  74. const int oc2dAnchorEast = 1;
  75.  
  76. /* Documentation: To left of anchor position. */
  77. const int oc2dAnchorWest = 2;
  78.  
  79. /* Documentation: Above and to right of anchor position. */
  80. const int oc2dAnchorNorthEast = 17;
  81.  
  82. /* Documentation: Above and to left of anchor position. */
  83. const int oc2dAnchorNorthWest = 18;
  84.  
  85. /* Documentation: Below and to right of position. */
  86. const int oc2dAnchorSouthEast = 33;
  87.  
  88. /* Documentation: Below and to left of position. */
  89. const int oc2dAnchorSouthWest = 34;
  90.  
  91. /* Documentation: Center over anchor position (ChartLabel object only). */
  92. const int oc2dAnchorCenter = 0;
  93.  
  94. /* Documentation: Automatically position the object (ChartLabel object only). */
  95. const int oc2dAnchorAuto = 256;
  96.  
  97. /***************************************/
  98. /***** Annotation Method Constants *****/
  99. /***************************************/
  100. /* Documentation: Specifies the annotation method. */
  101.  
  102. /* Documentation: Annotate using chart's X- or Y-values. */
  103. const int oc2dAnnotateValues = 0;
  104.  
  105. /* Documentation: Annotate using Point-labels (X-axis only). */
  106. const int oc2dAnnotatePointLabels = 1;
  107.  
  108. /* Documentation: Annotate using ValueLabels property. */
  109. const int oc2dAnnotateValueLabels = 2;
  110.  
  111. /* Documentation: Annotate using Time-labels (X-axis only). */
  112. const int oc2dAnnotateTimeLabels = 3;
  113.  
  114. /******************************************/
  115. /***** Annotation Placement Constants *****/
  116. /******************************************/
  117. /* Documentation: Specifies the placement of the axis annotation and title. */
  118.  
  119. /* Documentation: Annotation placement automatically determined. */
  120. const int oc2dAnnotateAuto = 0;
  121.  
  122. /* Documentation: Annotation along the origin. */
  123. const int oc2dAnnotateOrigin = 1;
  124.  
  125. /* Documentation: Annotation along the axis minimum. */
  126. Const int oc2dAnnotateMinimum = 2;
  127.  
  128. /* Documentation: Annotation along the axis maximum. */
  129. const int oc2dAnnotateMaximum = 3;
  130.  
  131. /***********************************/
  132. /***** Attach Method Constants *****/
  133. /***********************************/
  134. /* Documentation: Specifies how a chart label is attached to a chart. */
  135.  
  136. /* Documentation: Attach at specified pixel coordinate. */
  137. const int oc2dAttachCoord = 0;
  138.  
  139. /* Documentation: Attach to specified data coordinates. */
  140. const int oc2dAttachDataCoord = 1;
  141.  
  142. /* Documentation: Attach to specified data indices. */
  143. const int oc2dAttachDataIndex = 2;
  144.  
  145. /* Documentation: Attach using data index for X coordinate,
  146.    and data value for Y coordinate. */
  147. const int oc2dAttachDataIndexDataY = 3;
  148.  
  149. /*****************************/
  150. /***** Axis ID Constants *****/
  151. /*****************************/
  152. /* Documentation: Specifies a chart axis. */
  153.  
  154. /* Documentation: X-axis. */
  155. const int oc2dAxisX = 0;
  156.  
  157. /* Documentation: Y-axis. */
  158. const int oc2dAxisY = 1;
  159.  
  160. /* Documentation: Y2-axis (second Y-axis). */
  161. const int oc2dAxisY2 = 2;
  162.  
  163. /*********************************/
  164. /***** Border Type Constants *****/
  165. /*********************************/
  166. /* Documentation: Valid border styles. */
  167.  
  168. /* Documentation: Border None */
  169. const int oc2dBorderNone = 0;
  170.  
  171. /* Documentation: Border 3D Out */
  172. const int oc2dBorder3DOut = 1;
  173.  
  174. /* Documentation: Border 3D In */
  175. const int oc2dBorder3DIn = 2;
  176.  
  177. /* Documentation: Border Shadow */
  178. const int oc2dBorderShadow = 3;
  179.  
  180. /* Documentation: Border Plain */
  181. const int oc2dBorderPlain = 4;
  182.  
  183. /* Documentation: Border Etched In */
  184. const int oc2dBorderEtchedIn = 5;
  185.  
  186. /* Documentation: Border Etched Out */
  187. const int oc2dBorderEtchedOut = 6;
  188.  
  189. /*********************************/
  190. /***** Data Layout Constants *****/
  191. /*********************************/
  192. /* Documentation: Specifies the layout of the data to be graphed. */
  193.  
  194. /* Documentation: Array data. */
  195. const int oc2dDataArray = 1;
  196.  
  197. /* Documentation: General data. */
  198. const int oc2dDataGeneral = 2;
  199.  
  200. /**********************************/
  201. /***** Fill Pattern Constants *****/
  202. /**********************************/
  203. /* Documentation: Valid fill patterns. */
  204.  
  205. /* Documentation: No Fill Pattern */
  206. const int oc2dFillNone = 1;
  207.  
  208. /* Documentation: Solid Fill */
  209. const int oc2dFillSolid = 2;
  210.  
  211. /* Documentation: 25% Fill */
  212. Const int oc2dFill25Percent = 3;
  213.  
  214. /* Documentation: 50% Fill */
  215. const int oc2dFill50Percent = 4;
  216.  
  217. /* Documentation: 75% Fill */
  218. const int oc2dFill75Percent = 5;
  219.  
  220. /* Documentation: Horizontal Stripe */
  221. const int oc2dFillHorizontalStripe = 6;
  222.  
  223. /* Documentation: Vertical Stripe */
  224. const int oc2dFillVerticalStripe = 7;
  225.  
  226. /* Documentation: 45 Degree Stripe */
  227. const int oc2dFill45DegreeStripe = 8;
  228.  
  229. /* Documentation: 135 Degree Stripe */
  230. const int oc2dFill135DegreeStripe = 9;
  231.  
  232. /* Documentation: Diagonal Hatched */
  233. const int oc2dFillDiagHatched = 10;
  234.  
  235. /* Documentation: Cross Hatched */
  236. const int oc2dFillCrossHatched = 11;
  237.  
  238. /* Documentation: Backward Diagonal */
  239. const int oc2dFillBackwardDiagonal = 12;
  240.  
  241. /* Documentation: Cross */
  242. const int oc2dFillCross = 13;
  243.  
  244. /* Documentation: Diagonal Cross */
  245. const int oc2dFillDiagonalCross = 14;
  246.  
  247. /* Documentation: Forward Diagonal */
  248. const int oc2dFillForwardDiagonal = 15;
  249.  
  250. /* Documentation: Horizontal */
  251. const int oc2dFillHorizontal = 16;
  252.  
  253. /* Documentation: Vertical */
  254. const int oc2dFillVertical = 17;
  255.  
  256. /***************************/
  257. /***** Focus Constants *****/
  258. /***************************/
  259. /* Documentation: Specifies how the nearest series and
  260.    point value are determined. */
  261.  
  262. /* Documentation: Use X-axis to determine closest value. */
  263. const int oc2dFocusX = 1;
  264.  
  265. /* Documentation: Use Y-axis to determine closest value. */
  266. const int oc2dFocusY = 2;
  267.  
  268. /* Documentation: Use both axes to determine closest value. */
  269. const int oc2dFocusXY = 3;
  270.  
  271. /**********************************/
  272. /***** Line Pattern Constants *****/
  273. /**********************************/
  274. /* Documentation: Valid line patterns. */
  275.  
  276. /* Documentation: No Line Pattern */
  277. const int oc2dLineNone = 1;
  278.  
  279. /* Documentation: Solid */
  280. const int oc2dLineSolid = 2;
  281.  
  282. /* Documentation: Long Dash */
  283. const int oc2dLineLongDash = 3;
  284.  
  285. /* Documentation: Dotted */
  286. const int oc2dLineDotted = 4;
  287.  
  288. /* Documentation: Short Dash */
  289. const int oc2dLineShortDash = 5;
  290.  
  291. /* Documentation: Long Short Long Dash */
  292. const int oc2dLineLongShortLongDash = 6;
  293.  
  294. /* Documentation: Dash Dot */
  295. const int oc2dLineDashDot = 7;
  296.  
  297. /***********************************/
  298. /***** Marker Method Constants *****/
  299. /***********************************/
  300. /* Documentation: Specifies the marker positioning method used. */
  301.  
  302. /* Documentation: Specify position in data coordinates. */
  303. const int oc2dMarkerDataCoord = 0;
  304.  
  305. /* Documentation: Specify position as an index into a data set. */
  306. const int oc2dMarkerDataIndex = 1;
  307.  
  308. /********************************/
  309. /***** Num Method Constants *****/
  310. /********************************/
  311. /* Documentation: Specifies the method used to calculate axis numbering. */
  312.  
  313. /* Documentation: Use current value of axis precision. */
  314. const int oc2dNumPrecision = 0;
  315.  
  316. /* Documentation: Use rounded numbers (most significant digit is 1, 2 or 5). */
  317. const int oc2dNumRound = 1;
  318.  
  319. /**************************************/
  320. /***** Origin Placement Constants *****/
  321. /**************************************/
  322. /* Documentation: Specifies the location of the origin. */
  323.  
  324. /* Documentation: Origin location automatically determined. */
  325. const int oc2dOriginAuto = 0;
  326.  
  327. /* Documentation: Origin at zero. */
  328. const int oc2dOriginZero = 1;
  329.  
  330. /* Documentation: Origin at axis minimum. */
  331. const int oc2dOriginMinimum = 2;
  332.  
  333. /* Documentation: Origin at axis maximum. */
  334. const int oc2dOriginMaximum = 3;
  335.  
  336. /********************************/
  337. /***** Sort Order Constants *****/
  338. /********************************/
  339. /* Documentation: Specifies the order in which pie slices should be displayed. */
  340.  
  341. /* Documentation: Ascending order. */
  342. const int oc2dSortOrderAscending = 1;
  343.  
  344. /* Documentation: Descending order. */
  345. const int oc2dSortOrderDescending = 2;
  346.  
  347. /* Documentation: Data Order. */
  348. const int oc2dSortOrderNone = 3;
  349.  
  350. /*******************************/
  351. /***** Threshold Constants *****/
  352. /*******************************/
  353. /* Documentation: Specifies the method used to determine which point
  354.    values will be grouped into the "other" slice in pie charts. */
  355.  
  356. /* Documentation: Group all values whose individual percentage
  357.    is less than ThresholdValue. */
  358. const int oc2dThresholdSliceCutoff = 1;
  359.  
  360. /* Documentation: Group values whose total percentage is less
  361.    than ThresholdValue. */
  362. const int oc2dThresholdPercentile = 2;
  363.  
  364. /***************************/
  365. /***** Shape Constants *****/
  366. /***************************/
  367. /* Documentation: Valid symbol shapes. */
  368.  
  369. /* Documentation: None */
  370. const int oc2dShapeNone = 1;
  371.  
  372. /* Documentation: Dot */
  373. const int oc2dShapeDot = 2;
  374.  
  375. /* Documentation: Box */
  376. const int oc2dShapeBox = 3;
  377.  
  378. /* Documentation: Triangle */
  379. const int oc2dShapeTriangle = 4;
  380.  
  381. /* Documentation: Diamond */
  382. const int oc2dShapeDiamond = 5;
  383.  
  384. /* Documentation: Star */
  385. const int oc2dShapeStar = 6;
  386.  
  387. /* Documentation: Vertical Line */
  388. const int oc2dShapeVerticalLine = 7;
  389.  
  390. /* Documentation: Horizontal Line */
  391. const int oc2dShapeHorizontalLine = 8;
  392.  
  393. /* Documentation: Cross */
  394. const int oc2dShapeCross = 9;
  395.  
  396. /* Documentation: Circle */
  397. const int oc2dShapeCircle = 10;
  398.  
  399. /* Documentation: Square */
  400. const int oc2dShapeSquare = 11;
  401.  
  402. /****************************/
  403. /***** Region Constants *****/
  404. /****************************/
  405. /* Documentation: Specifies a region of a chart. */
  406.  
  407. /* Documentation: Located in chart area. */
  408. const int oc2dRegionInChartArea = -100;
  409.  
  410. /* Documentation: Located in legend. */
  411. const int oc2dRegionInLegend = -99;
  412.  
  413. /* Documentation: Located in header. */
  414. const int oc2dRegionInHeader = -98;
  415.  
  416. /* Documentation: Located in footer. */
  417. const int oc2dRegionInFooter = -97;
  418.  
  419. /* Documentation: No particular region. */
  420. const int oc2dRegionNone = -96;
  421.  
  422. /******************************/
  423. /***** Rotation Constants *****/
  424. /******************************/
  425. /* Documentation: Specifies an angle of rotation
  426.    (in counterclockwise degrees). */
  427.  
  428. /* Documentation: No rotation. */
  429. const int oc2dRotateNone = 1;
  430.  
  431. /* Documentation: Rotate 90 degrees. */
  432. const int oc2dRotate90Degrees = 2;
  433.  
  434. /* Documentation: Rotate 270 degrees. */
  435. const int oc2dRotate270Degrees = 3;
  436.  
  437. /*******************************/
  438. /***** Time Unit Constants *****/
  439. /*******************************/
  440. /* Documentation: Specifies the time unit to use in a time-axis. */
  441.  
  442. /* Documentation: Seconds */
  443. const int oc2dTimeSeconds = 1;
  444.  
  445. /* Documentation: Minutes */
  446. const int oc2dTimeMinutes = 2;
  447.  
  448. /* Documentation: Hours */
  449. const int oc2dTimeHours = 3;
  450.  
  451. /* Documentation: Days */
  452. const int oc2dTimeDays = 4;
  453.  
  454. /* Documentation: Weeks */
  455. const int oc2dTimeWeeks = 5;
  456.  
  457. /* Documentation: Months */
  458. const int oc2dTimeMonths = 6;
  459.  
  460. /* Documentation: Years */
  461. const int oc2dTimeYears = 7;
  462.  
  463. /********************************/
  464. /***** Chart Type Constants *****/
  465. /********************************/
  466. /* Documentation: Specifies the chart display type. */
  467.  
  468. /* Documentation: Line chart. */
  469. const int oc2dTypePlot = 1;
  470.  
  471. /* Documentation: Bar chart. */
  472. const int oc2dTypeBar = 2;
  473.  
  474. /* Documentation: Pie chart. */
  475. const int oc2dTypePie = 3;
  476.  
  477. /* Documentation: Stacking bar chart. */
  478. const int oc2dTypeStackingBar = 4;
  479.  
  480. /* Documentation: Area chart. */
  481. const int oc2dTypeArea = 5;
  482.  
  483. /****************************/
  484. /***** Action Constants *****/
  485. /****************************/
  486. /* Documentation: Specifies a user action. */
  487.  
  488. /* Documentation: No action. */
  489. const int oc2dActionNone = 0;
  490.  
  491. /* Documentation: Start a user interaction. */
  492. const int oc2dActionModifyStart = 1;
  493.  
  494. /* Documentation: Notify application that user interaction has ended. */
  495. const int oc2dActionModifyEnd = 2;
  496.  
  497. /* Documentation: Rotate the chart. */
  498. const int oc2dActionRotate = 3;
  499.  
  500. /* Documentation: Scale the chart. */
  501. const int oc2dActionScale = 4;
  502.  
  503. /* Documentation: Translate the chart. */
  504. const int oc2dActionTranslate = 5;
  505.  
  506. /* Documentation: Start zoom. */
  507. const int oc2dActionZoomStart = 6;
  508.  
  509. /* Documentation: Update the zoom area selection rubberband. */
  510. const int oc2dActionZoomUpdate = 7;
  511.  
  512. /* Documentation: Zoom into chart at the area selected by the rubberband. */
  513. const int oc2dActionZoomEnd = 8;
  514.  
  515. /* Documentation: Cancel zoom in progress. */
  516. const int oc2dActionZoomCancel = 9;
  517.  
  518. /* Documentation: Restore all scaling and translations to default. */
  519. const int oc2dActionReset = 10;
  520.  
  521. /* Documentation: Display property page. */
  522. const int oc2dActionProperties = 11;
  523.  
  524. /****************************/
  525. /***** Format Constants *****/
  526. /****************************/
  527. /* Documentation: Specifies the format to use when printing. */
  528.  
  529. /* Documentation: Bitmap (.BMP). */
  530. const int oc2dFormatBitmap = 1;
  531.  
  532. /* Documentation: Metafile (.WMF). */
  533. const int oc2dFormatMetafile = 2;
  534.  
  535. /* Documentation: Enhanced metafile (.EMF). */
  536. const int oc2dFormatEnhMetafile = 3;
  537.  
  538. /***************************/
  539. /***** Scale Constants *****/
  540. /***************************/
  541. /* Documentation: Specifies the scaling to use when printing. */
  542.  
  543. /* Documentation: Same size as actual chart. */
  544. const int oc2dScaleNone = 1;
  545.  
  546. /* Documentation: Scale to specified width, preserving aspect ratio. */
  547. const int oc2dScaleToWidth = 2;
  548.  
  549. /* Documentation: Scale to specified height, preserving aspect ratio. */
  550. const int oc2dScaleToHeight = 3;
  551.  
  552. /* Documentation: Scale to existing window (minimum of height and width),
  553.    preserving aspect ratio. */
  554. const int oc2dScaleToFit = 4;
  555.  
  556. /* Documentation: Enlarge to size of page. */
  557. const int oc2dScaleToMax = 5;
  558.  
  559.