| 1 |
/*****************************************************************************\ |
| 2 |
|
| 3 |
This program is free software; you can redistribute it and/or |
| 4 |
modify it under the terms of the GNU General Public License as |
| 5 |
published by the Free Software Foundation; either version 2 of the |
| 6 |
License, or (at your option) any later version. |
| 7 |
|
| 8 |
This program is distributed in the hope that it will be useful, but |
| 9 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
General Public License for more details. |
| 12 |
|
| 13 |
You should have received a copy of the GNU General Public License |
| 14 |
along with this program; if not, write to the Free Software |
| 15 |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
| 16 |
MA 02111-1307, USA. |
| 17 |
|
| 18 |
\ |
| 19 |
\*****************************************************************************/ |
| 20 |
|
| 21 |
|
| 22 |
static char *LibRev = "PCL XL Stream Creator Library. Revision p$Revision: 4.0 $"; |
| 23 |
static char *LibCopyright = "(c) Copyright Hewlett-Packard Company, 1995, 1996, 1997. All rights are reserved."; |
| 24 |
|
| 25 |
/* |
| 26 |
* file: jetlib.c |
| 27 |
* |
| 28 |
* PCL XL Stream Creator Library |
| 29 |
* |
| 30 |
*/ |
| 31 |
#include <math.h> |
| 32 |
#include <stdlib.h> /* for malloc */ |
| 33 |
#include "jetlib.h" /* library header file */ |
| 34 |
#include <stdarg.h> |
| 35 |
#include <string.h> /* standard C string routines */ |
| 36 |
#include <stdio.h> /* standard C I/O routines (used for sprintf) */ |
| 37 |
|
| 38 |
/* The following variables are not used by the Windows driver API: */ |
| 39 |
|
| 40 |
#define HP_ByteLen 1 /* one byte needed */ |
| 41 |
#define HP_Int16Len 2 /* two bytes needed */ |
| 42 |
#define HP_Int32Len 4 /* four bytes needed */ |
| 43 |
#define HP_Real32Len 4 /* four bytes needed */ |
| 44 |
#define HP_XyMultiplier 2 /* x,y value length multiplier */ |
| 45 |
#define HP_BoxMultiplier 4 /* box value multiplier */ |
| 46 |
|
| 47 |
#define HP_MaxNumberOfOps 256 /* number of operators */ |
| 48 |
#define HP_MaxNumberOfAttrIds 256 /* maximum number of attribute ids */ |
| 49 |
|
| 50 |
#define HP_Mask8(value) (HP_UByte) (255 & (value)) |
| 51 |
|
| 52 |
#define HP_MEMALLOC(size) malloc(size) |
| 53 |
#define HP_MEMDEALLOC(ptr) if (ptr) free(ptr); ptr=NULL; |
| 54 |
|
| 55 |
|
| 56 |
#ifndef HP_WindowsAPI |
| 57 |
|
| 58 |
/* following macro adds an 8-bit value to the attribute list */ |
| 59 |
#define HP_AddToListByte(pStream, value) \ |
| 60 |
{\ |
| 61 |
if (HP_NoErrors(pStream)) \ |
| 62 |
{\ |
| 63 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen++]= \ |
| 64 |
HP_Mask8(value);\ |
| 65 |
pStream->HP_CurrentStreamLen++; \ |
| 66 |
}\ |
| 67 |
} |
| 68 |
|
| 69 |
/* following macro adds a 16-bit value to the attribute list */ |
| 70 |
#define HP_AddToListInt16(pStream, value) \ |
| 71 |
{\ |
| 72 |
HP_UInt16 localVal = (HP_UInt16) value;\ |
| 73 |
if (HP_NoErrors(pStream)) \ |
| 74 |
{\ |
| 75 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen] = \ |
| 76 |
HP_Mask8(localVal);\ |
| 77 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+1]= \ |
| 78 |
HP_Mask8(localVal=(localVal>>8));\ |
| 79 |
pStream->HP_CurrentBufferLen+=HP_Int16Len;\ |
| 80 |
pStream->HP_CurrentStreamLen+=HP_Int16Len;\ |
| 81 |
}\ |
| 82 |
} |
| 83 |
|
| 84 |
/* following macro adds a 32-bit value to the attribute list */ |
| 85 |
#define HP_AddToListInt32(pStream, value) \ |
| 86 |
{\ |
| 87 |
HP_UInt32 localVal = value;\ |
| 88 |
if (HP_NoErrors(pStream)) \ |
| 89 |
{\ |
| 90 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen] = \ |
| 91 |
HP_Mask8(localVal);\ |
| 92 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+1]= \ |
| 93 |
HP_Mask8(localVal=(localVal>>8));\ |
| 94 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+2]= \ |
| 95 |
HP_Mask8(localVal=(localVal>>8));\ |
| 96 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+3]= \ |
| 97 |
HP_Mask8(localVal>>8);\ |
| 98 |
pStream->HP_CurrentBufferLen+=HP_Int32Len;\ |
| 99 |
pStream->HP_CurrentStreamLen+=HP_Int32Len;\ |
| 100 |
}\ |
| 101 |
} |
| 102 |
|
| 103 |
/* the following adds a 32-bit real value to the attribute list */ |
| 104 |
#define HP_AddToListReal32(pStream, value) \ |
| 105 |
{\ |
| 106 |
HP_UInt32 localVal = (HP_UInt32) HP_Real32ToUInt32(value);\ |
| 107 |
if (HP_NoErrors(pStream)) \ |
| 108 |
{\ |
| 109 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen] \ |
| 110 |
= HP_Mask8(localVal);\ |
| 111 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+1]= \ |
| 112 |
HP_Mask8(localVal=(localVal>>8));\ |
| 113 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+2]= \ |
| 114 |
HP_Mask8(localVal=(localVal>>8));\ |
| 115 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+3]= \ |
| 116 |
HP_Mask8(localVal>>8);\ |
| 117 |
pStream->HP_CurrentBufferLen+=HP_Real32Len;\ |
| 118 |
pStream->HP_CurrentStreamLen+=HP_Real32Len;\ |
| 119 |
}\ |
| 120 |
} |
| 121 |
|
| 122 |
/* the following macros are for BIG_ENDIAN native machines */ |
| 123 |
/* (most significant byte first) */ |
| 124 |
|
| 125 |
/* following macro adds a 16-bit value to the attribute list */ |
| 126 |
#define HP_AddToListInt16MSB(pStream, value) \ |
| 127 |
{\ |
| 128 |
HP_UInt16 localVal = value;\ |
| 129 |
if (HP_NoErrors(pStream)) \ |
| 130 |
{\ |
| 131 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+1] = HP_Mask8(localVal);\ |
| 132 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen]= HP_Mask8(localVal=(localVal>>8));\ |
| 133 |
pStream->HP_CurrentBufferLen+=HP_Int16Len;\ |
| 134 |
pStream->HP_CurrentStreamLen+=HP_Int16Len;\ |
| 135 |
}\ |
| 136 |
} |
| 137 |
|
| 138 |
/* following macro adds a 32-bit value to the attribute list */ |
| 139 |
#define HP_AddToListInt32MSB(pStream, value) \ |
| 140 |
{\ |
| 141 |
HP_UInt32 localVal = value;\ |
| 142 |
if (HP_NoErrors(pStream)) \ |
| 143 |
{\ |
| 144 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+3] = HP_Mask8(localVal);\ |
| 145 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+2]= HP_Mask8(localVal=(localVal>>8));\ |
| 146 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+1]= HP_Mask8(localVal=(localVal>>8));\ |
| 147 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen]= HP_Mask8(localVal>>8);\ |
| 148 |
pStream->HP_CurrentBufferLen+=HP_Int32Len;\ |
| 149 |
pStream->HP_CurrentStreamLen+=HP_Int32Len;\ |
| 150 |
}\ |
| 151 |
} |
| 152 |
|
| 153 |
/* the following adds a 32-bit real value to the attribute list */ |
| 154 |
#define HP_AddToListReal32MSB(pStream, value) \ |
| 155 |
{\ |
| 156 |
HP_UInt32 localVal = (HP_UInt32) HP_Real32ToUInt32(value);\ |
| 157 |
if (HP_NoErrors(pStream)) \ |
| 158 |
{\ |
| 159 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+3] = HP_Mask8(localVal);\ |
| 160 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+2]= HP_Mask8(localVal=(localVal>>8));\ |
| 161 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen+1]= HP_Mask8(localVal=(localVal>>8));\ |
| 162 |
pStream->HP_OutBuffer[pStream->HP_CurrentBufferLen]= HP_Mask8(localVal>>8);\ |
| 163 |
pStream->HP_CurrentBufferLen+=HP_Real32Len;\ |
| 164 |
pStream->HP_CurrentStreamLen+=HP_Real32Len;\ |
| 165 |
}\ |
| 166 |
} |
| 167 |
|
| 168 |
#endif /* for all translation macros */ |
| 169 |
|
| 170 |
|
| 171 |
#define HP_OpTagLen 0 /* byte length of operator value tag */ |
| 172 |
#define HP_AttrTagLen 1 /* byte length of attribute identifier tag */ |
| 173 |
#define HP_DataTagLen 1 /* byte length of data type tag */ |
| 174 |
|
| 175 |
const HP_UByte HP_OpValueMap[HP_MaxNumberOfOps]= |
| 176 |
{ |
| 177 |
/* 0x00 nul */ 0x00, |
| 178 |
/* 0x01 soh */ 0x00, |
| 179 |
/* 0x02 stx */ 0x00, |
| 180 |
/* 0x03 etx */ 0x00, |
| 181 |
/* 0x04 eot */ 0x00, |
| 182 |
/* 0x05 enq */ 0x00, |
| 183 |
/* 0x06 ack */ 0x00, |
| 184 |
/* 0x07 bel */ 0x00, |
| 185 |
/* 0x08 bs */ 0x00, |
| 186 |
/* 0x09 ht */ 0x00, |
| 187 |
/* 0x0a nl */ 0x00, |
| 188 |
/* 0x0b vt */ 0x00, |
| 189 |
/* 0x0c np */ 0x00, |
| 190 |
/* 0x0d cr */ 0x00, |
| 191 |
/* 0x0e so */ 0x00, |
| 192 |
/* 0x0f si */ 0x00, |
| 193 |
/* 0x10 dle */ 0x00, |
| 194 |
/* 0x11 dc1 */ 0x00, |
| 195 |
/* 0x12 dc2 */ 0x00, |
| 196 |
/* 0x13 dc3 */ 0x00, |
| 197 |
/* 0x14 dc4 */ 0x00, |
| 198 |
/* 0x15 nak */ 0x00, |
| 199 |
/* 0x16 syn */ 0x00, |
| 200 |
/* 0x17 etb */ 0x00, |
| 201 |
/* 0x18 can */ 0x00, |
| 202 |
/* 0x19 em */ 0x00, |
| 203 |
/* 0x1a sub */ 0x00, |
| 204 |
/* 0x1b esc */ 0x00, |
| 205 |
/* 0x1c fs */ 0x00, |
| 206 |
/* 0x1d gs */ 0x00, |
| 207 |
/* 0x1e rs */ 0x00, |
| 208 |
/* 0x1f us */ 0x00, |
| 209 |
/* 0x20 sp */ 0x00, |
| 210 |
/* 0x21 ! */ 0x00, |
| 211 |
/* 0x22 " */ 0x00, |
| 212 |
/* 0x23 # */ 0x00, |
| 213 |
/* 0x24 $ */ 0x00, |
| 214 |
/* 0x25 % */ 0x00, |
| 215 |
/* 0x26 & */ 0x00, |
| 216 |
/* 0x27 ' */ 0x00, |
| 217 |
/* 0x28 ( */ 0x00, |
| 218 |
/* 0x29 ) */ 0x00, |
| 219 |
/* 0x2a * */ 0x00, |
| 220 |
/* 0x2b + */ 0x00, |
| 221 |
/* 0x2c , */ 0x00, |
| 222 |
/* 0x2d - */ 0x00, |
| 223 |
/* 0x2e . */ 0x00, |
| 224 |
/* 0x2f / */ 0x00, |
| 225 |
/* 0x30 0 */ 0x00, |
| 226 |
/* 0x31 1 */ 0x00, |
| 227 |
/* 0x32 2 */ 0x00, /* 0x32 - 0x40 not used */ |
| 228 |
/* 0x33 3 */ 0x00, |
| 229 |
/* 0x34 4 */ 0x00, |
| 230 |
/* 0x35 5 */ 0x00, |
| 231 |
/* 0x36 6 */ 0x00, |
| 232 |
/* 0x37 7 */ 0x00, |
| 233 |
/* 0x38 8 */ 0x00, |
| 234 |
/* 0x39 9 */ 0x00, |
| 235 |
/* 0x3a : */ 0x00, |
| 236 |
/* 0x3b ; */ 0x00, |
| 237 |
/* 0x3c < */ 0x00, |
| 238 |
/* 0x3d = */ 0x00, |
| 239 |
/* 0x3e > */ 0x00, |
| 240 |
/* 0x3f ? */ 0x00, |
| 241 |
/* 0x40 @ */ 0x00, |
| 242 |
/* 0x41 A */ HP_BeginSession, |
| 243 |
/* 0x42 B */ HP_EndSession, |
| 244 |
/* 0x43 C */ HP_BeginPage, |
| 245 |
/* 0x44 D */ HP_EndPage, |
| 246 |
|
| 247 |
#ifdef FAX_10 |
| 248 |
/* 0x45 */ HP_SetJobAttribute, |
| 249 |
#else |
| 250 |
/* 0x45 E */ 0x00, |
| 251 |
#endif |
| 252 |
/* 0x46 F */ HP_VendorUnique, /* HP_SelfTest */ |
| 253 |
/* 0x47 G */ HP_Comment, |
| 254 |
/* 0x48 H */ HP_OpenDataSource, |
| 255 |
/* 0x49 I */ HP_CloseDataSource, |
| 256 |
/* 0x4a J */ HP_EchoComment, |
| 257 |
/* 0x4b K */ HP_Query, |
| 258 |
/* 0x4c L */ 0x00, |
| 259 |
/* 0x4d M */ 0x00, |
| 260 |
/* 0x4e N */ 0x00, |
| 261 |
/* 0x4f O */ HP_BeginFontHeader, |
| 262 |
/* 0x50 P */ HP_ReadFontHeader, |
| 263 |
/* 0x51 Q */ HP_EndFontHeader, |
| 264 |
/* 0x52 R */ HP_BeginChar, |
| 265 |
/* 0x53 S */ HP_ReadChar, |
| 266 |
/* 0x54 T */ HP_EndChar, |
| 267 |
/* 0x55 U */ HP_RemoveFont, |
| 268 |
/* 0x56 V */ HP_SetCharAttribute, |
| 269 |
/* 0x57 W */ HP_SetDefaultGS, |
| 270 |
/* 0x58 X */ HP_SetColorTreatment, |
| 271 |
/* 0x59 Y */ 0, |
| 272 |
/* 0x5a Z */ 0, |
| 273 |
/* 0x5b [ */ HP_BeginStream, |
| 274 |
/* 0x5c \ */ HP_ReadStream, |
| 275 |
/* 0x5d ] */ HP_EndStream, |
| 276 |
/* 0x5e ^ */ HP_ExecStream, |
| 277 |
/* 0x5f _ */ HP_RemoveStream, |
| 278 |
/* 0x60 ` */ HP_PopGS, |
| 279 |
/* 0x61 a */ HP_PushGS, |
| 280 |
/* 0x62 b */ HP_SetClipReplace, |
| 281 |
/* 0x63 c */ HP_SetBrushSource, |
| 282 |
/* 0x64 d */ HP_SetCharAngle, |
| 283 |
/* 0x65 e */ HP_SetCharScale, |
| 284 |
/* 0x66 f */ HP_SetCharShear, |
| 285 |
/* 0x67 g */ HP_SetClipIntersect, |
| 286 |
/* 0x68 h */ HP_SetClipRectangle, |
| 287 |
/* 0x69 i */ HP_SetClipToPage, |
| 288 |
/* 0x6a j */ HP_SetColorSpace, |
| 289 |
/* 0x6b k */ HP_SetCursor, |
| 290 |
/* 0x6c l */ HP_SetCursorRel, |
| 291 |
/* 0x6d m */ HP_SetHalftoneMethod, |
| 292 |
/* 0x6e n */ HP_SetFillMode, |
| 293 |
/* 0x6f o */ HP_SetFont, |
| 294 |
/* 0x70 p */ HP_SetLineDash, |
| 295 |
/* 0x71 q */ HP_SetLineCap, |
| 296 |
/* 0x72 r */ HP_SetLineJoin, |
| 297 |
/* 0x73 s */ HP_SetMiterLimit, |
| 298 |
/* 0x74 t */ HP_SetPageDefaultCTM, |
| 299 |
/* 0x75 u */ HP_SetPageOrigin, |
| 300 |
/* 0x76 v */ HP_SetPageRotation, |
| 301 |
/* 0x77 w */ HP_SetPageScale, |
| 302 |
/* 0x78 x */ HP_SetPaintTxMode, |
| 303 |
/* 0x79 y */ HP_SetPenSource, |
| 304 |
/* 0x7a z */ HP_SetPenWidth, |
| 305 |
/* 0x7b { */ HP_SetROP, |
| 306 |
/* 0x7c | */ HP_SetSourceTxMode, |
| 307 |
/* 0x7d } */ HP_SetCharBoldValue, |
| 308 |
#ifdef XL_30 |
| 309 |
/* 0x7e ~ */ HP_SetNeutralAxis, |
| 310 |
#else |
| 311 |
/* 0x7e ~ */ 0x00, |
| 312 |
#endif |
| 313 |
/* 0x7f del */ HP_SetClipMode, |
| 314 |
/* 0x80 */ HP_SetPathToClip, |
| 315 |
/* 0x81 */ HP_SetCharSubMode, |
| 316 |
/* 0x82 */ 0, |
| 317 |
/* 0x83 */ 0, |
| 318 |
/* 0x84 */ HP_CloseSubPath, |
| 319 |
/* 0x85 */ HP_NewPath, |
| 320 |
/* 0x86 */ HP_PaintPath, |
| 321 |
/* 0x87 */ 0, |
| 322 |
/* 0x88 */ 0, |
| 323 |
/* 0x89 */ 0, |
| 324 |
/* 0x8a */ 0, |
| 325 |
/* 0x8b */ 0, |
| 326 |
/* 0x8c */ 0, |
| 327 |
/* 0x8d */ 0, |
| 328 |
/* 0x8e */ 0, |
| 329 |
/* 0x8f */ 0, |
| 330 |
|
| 331 |
/* 0x90 */ 0x00, |
| 332 |
|
| 333 |
#ifdef XL_30 |
| 334 |
/* 0x91 */ HP_ArcPath, |
| 335 |
/* 0x92 */ HP_SetColorTrapping, |
| 336 |
/* 0x93 */ HP_BezierPath, |
| 337 |
/* 0x94 */ HP_SetAdaptiveHalftoning, |
| 338 |
#else |
| 339 |
/* 0x91 */ HP_ArcPath, |
| 340 |
/* 0x92 */ 0x00, |
| 341 |
/* 0x93 */ HP_BezierPath, |
| 342 |
/* 0x94 */ 0x00, |
| 343 |
#endif |
| 344 |
/* 0x95 */ HP_BezierRelPath, |
| 345 |
/* 0x96 */ HP_Chord, |
| 346 |
/* 0x97 */ HP_ChordPath, |
| 347 |
/* 0x98 */ HP_Ellipse, |
| 348 |
/* 0x99 */ HP_EllipsePath, |
| 349 |
/* 0x9a */ 0x00, |
| 350 |
/* 0x9b */ HP_LinePath, |
| 351 |
/* 0x9c */ 0x00, |
| 352 |
/* 0x9d */ HP_LineRelPath, |
| 353 |
/* 0x9e */ HP_Pie, |
| 354 |
/* 0x9f */ HP_PiePath, |
| 355 |
/* 0xa0 */ HP_Rectangle, |
| 356 |
/* 0xa1 */ HP_RectanglePath, |
| 357 |
/* 0xa2 */ HP_RoundRectangle, |
| 358 |
/* 0xa3 */ HP_RoundRectanglePath, |
| 359 |
/* 0xa4 */ 0x00, |
| 360 |
/* 0xa5 */ 0x00, |
| 361 |
/* 0xa6 */ 0x00, |
| 362 |
/* 0xa7 */ 0x00, |
| 363 |
/* 0xa8 */ HP_Text, |
| 364 |
/* 0xa9 */ HP_TextPath, |
| 365 |
/* 0xaa */ HP_SystemText, |
| 366 |
/* 0xab */ 0x00, |
| 367 |
/* 0xac */ 0x00, |
| 368 |
/* 0xad */ 0x00, |
| 369 |
/* 0xae */ 0x00, |
| 370 |
/* 0xaf */ 0x00, |
| 371 |
/* 0xb0 */ HP_BeginImage, |
| 372 |
/* 0xb1 */ HP_ReadImage, |
| 373 |
/* 0xb2 */ HP_EndImage, |
| 374 |
/* 0xb3 */ HP_BeginRastPattern, |
| 375 |
/* 0xb4 */ HP_ReadRastPattern, |
| 376 |
/* 0xb5 */ HP_EndRastPattern, |
| 377 |
/* 0xb6 */ HP_BeginScan, |
| 378 |
/* 0xb7 */ 0x00, |
| 379 |
/* 0xb8 */ HP_EndScan, |
| 380 |
/* 0xb9 */ HP_ScanLineRel, |
| 381 |
/* 0xba */ 0x00, |
| 382 |
/* 0xbb */ 0x00, |
| 383 |
/* 0xbc */ 0x00, |
| 384 |
/* 0xbd */ 0x00, |
| 385 |
/* 0xbe */ 0x00, |
| 386 |
#ifdef XL_30 |
| 387 |
/* 0xbf */ HP_PassThrough, |
| 388 |
#else |
| 389 |
/* 0xbf */ 0, |
| 390 |
#endif |
| 391 |
/* 0xc0 */ 0x00, |
| 392 |
/* 0xc1 */ 0x00, |
| 393 |
/* 0xc2 */ 0x00, |
| 394 |
/* 0xc3 */ 0x00, |
| 395 |
/* 0xc4 */ 0x00, |
| 396 |
/* 0xc5 */ 0x00, |
| 397 |
/* 0xc6 */ 0x00, |
| 398 |
/* 0xc7 */ 0x00, |
| 399 |
/* 0xc8 */ 0x00, |
| 400 |
/* 0xc9 */ 0x00, |
| 401 |
/* 0xca */ 0x00, |
| 402 |
/* 0xcb */ 0x00, |
| 403 |
/* 0xcc */ 0x00, |
| 404 |
/* 0xcd */ 0x00, |
| 405 |
/* 0xce */ 0x00, |
| 406 |
/* 0xcf */ 0x00, |
| 407 |
/* 0xd0 */ 0x00, |
| 408 |
/* 0xd1 */ 0x00, |
| 409 |
/* 0xd2 */ 0x00, |
| 410 |
/* 0xd3 */ 0x00, |
| 411 |
/* 0xd4 */ 0x00, |
| 412 |
/* 0xd5 */ 0x00, |
| 413 |
/* 0xd6 */ 0x00, |
| 414 |
/* 0xd7 */ 0x00, |
| 415 |
/* 0xd8 */ 0x00, |
| 416 |
/* 0xd9 */ 0x00, |
| 417 |
/* 0xda */ 0x00, |
| 418 |
/* 0xdb */ 0x00, |
| 419 |
/* 0xdc */ 0x00, |
| 420 |
/* 0xdd */ 0x00, |
| 421 |
/* 0xde */ 0x00, |
| 422 |
/* 0xdf */ 0x00, |
| 423 |
/* 0xe0 */ 0x00, |
| 424 |
/* 0xe1 */ 0x00, |
| 425 |
/* 0xe2 */ 0x00, |
| 426 |
/* 0xe3 */ 0x00, |
| 427 |
/* 0xe4 */ 0x00, |
| 428 |
/* 0xe5 */ 0x00, |
| 429 |
/* 0xe6 */ 0x00, |
| 430 |
/* 0xe7 */ 0x00, |
| 431 |
/* 0xe8 */ 0x00, |
| 432 |
/* 0xe9 */ 0x00, |
| 433 |
/* 0xea */ 0x00, |
| 434 |
/* 0xeb */ 0x00, |
| 435 |
/* 0xec */ 0x00, |
| 436 |
/* 0xed */ 0x00, |
| 437 |
/* 0xee */ 0x00, |
| 438 |
/* 0xef */ 0x00, |
| 439 |
/* 0xf0 */ 0x00, |
| 440 |
/* 0xf1 */ 0x00, |
| 441 |
/* 0x2f */ 0x00, |
| 442 |
/* 0xf3 */ 0x00, |
| 443 |
/* 0xf4 */ 0x00, |
| 444 |
/* 0xf5 */ 0x00, |
| 445 |
/* 0xf6 */ 0x00, |
| 446 |
/* 0xf7 */ 0x00, |
| 447 |
/* 0xf8 */ 0x00, |
| 448 |
/* 0xf9 */ 0x00, |
| 449 |
/* 0xfa */ 0x00, |
| 450 |
/* 0xfb */ 0x00, |
| 451 |
/* 0xfc */ 0x00, /* Reserved */ |
| 452 |
/* 0xfd */ 0x00, /* Reserved */ |
| 453 |
/* 0xfe */ 0x00, /* Reserved */ |
| 454 |
/* 0xff */ 0x00 /* Reserved */ |
| 455 |
}; |
| 456 |
|
| 457 |
const HP_UByte HP_AttrIdValueMap[HP_MaxNumberOfAttrIds]= |
| 458 |
{ |
| 459 |
/* 0 */ 0x00, |
| 460 |
/* 1 */ HP_CMYColor, |
| 461 |
/* 2 */ HP_PaletteDepth, |
| 462 |
/* 3 */ HP_ColorSpace, |
| 463 |
/* 4 */ HP_NullBrush, |
| 464 |
/* 5 */ HP_NullPen, |
| 465 |
/* 6 */ HP_PaletteData, |
| 466 |
/* 7 */ HP_PaletteIndex, |
| 467 |
/* 8 */ HP_PatternSelectID, |
| 468 |
/* 9 */ HP_GrayLevel, |
| 469 |
/* 10 */ 0x00, |
| 470 |
/* 11 */ HP_RGBColor, |
| 471 |
/* 12 */ HP_PatternOrigin, |
| 472 |
/* 13 */ HP_NewDestinationSize, |
| 473 |
/* 14 */ HP_PrimaryArray, |
| 474 |
/* 15 */ HP_PrimaryDepth, |
| 475 |
/* 16 */ 0x00, |
| 476 |
/* 17 */ HP_ColorimetricColorSpace, |
| 477 |
/* 18 */ HP_XYChromaticities, |
| 478 |
/* 19 */ HP_WhitePointReference, |
| 479 |
/* 20 */ HP_CRGBMinMax, |
| 480 |
/* 21 */ HP_GammaGain, |
| 481 |
/* 22 */ 0x00, |
| 482 |
/* 23 */ 0x00, |
| 483 |
/* 24 */ 0x00, |
| 484 |
/* 25 */ 0x00, |
| 485 |
/* 26 */ 0x00, |
| 486 |
/* 27 */ 0x00, |
| 487 |
/* 28 */ 0x00, |
| 488 |
#ifdef XL_30 |
| 489 |
/* 29 */ HP_AllObjectTypes, |
| 490 |
/* 30 */ HP_TextObjects, |
| 491 |
/* 31 */ HP_VectorObjects, |
| 492 |
/* 32 */ HP_RasterObjects, |
| 493 |
#else |
| 494 |
/* 29 */ 0x00, |
| 495 |
/* 30 */ 0x00, |
| 496 |
/* 31 */ 0x00, |
| 497 |
/* 32 */ 0x00, |
| 498 |
#endif |
| 499 |
/* 33 */ HP_DeviceMatrix, |
| 500 |
/* 34 */ HP_DitherMatrixDataType, |
| 501 |
/* 35 */ HP_DitherOrigin, |
| 502 |
/* 36 */ HP_MediaDest, |
| 503 |
/* 37 */ HP_MediaSize, |
| 504 |
/* 38 */ HP_MediaSource, |
| 505 |
/* 39 */ HP_MediaType, |
| 506 |
/* 40 */ HP_Orientation, |
| 507 |
/* 41 */ HP_PageAngle, |
| 508 |
/* 42 */ HP_PageOrigin, |
| 509 |
/* 43 */ HP_PageScale, |
| 510 |
/* 44 */ HP_ROP3, |
| 511 |
/* 45 */ HP_TxMode, |
| 512 |
/* 46 */ 0x00, |
| 513 |
/* 47 */ HP_CustomMediaSize, |
| 514 |
/* 48 */ HP_CustomMediaSizeUnits, |
| 515 |
/* 49 */ HP_PageCopies, |
| 516 |
/* 50 */ HP_DitherMatrixSize, |
| 517 |
/* 51 */ HP_DitherMatrixDepth, |
| 518 |
/* 52 */ HP_SimplexPageMode, |
| 519 |
/* 53 */ HP_DuplexPageMode, |
| 520 |
/* 54 */ HP_DuplexPageSide, |
| 521 |
/* 55 */ 0x00, |
| 522 |
/* 56 */ 0x00, |
| 523 |
/* 57 */ 0x00, |
| 524 |
/* 58 */ 0x00, |
| 525 |
/* 59 */ 0x00, |
| 526 |
/* 60 */ 0x00, |
| 527 |
/* 61 */ 0x00, |
| 528 |
/* 62 */ 0x00, |
| 529 |
/* 63 */ 0, |
| 530 |
/* 64 */ 0, |
| 531 |
/* 65 */ HP_ArcDirection, |
| 532 |
/* 66 */ HP_BoundingBox, |
| 533 |
/* 67 */ HP_DashOffset, |
| 534 |
/* 68 */ HP_EllipseDimension, |
| 535 |
/* 69 */ HP_EndPoint, |
| 536 |
/* 70 */ HP_FillMode, |
| 537 |
/* 71 */ HP_LineCapStyle, |
| 538 |
/* 72 */ HP_LineJoinStyle, |
| 539 |
/* 73 */ HP_MiterLength, |
| 540 |
/* 74 */ HP_LineDashStyle, |
| 541 |
/* 75 */ HP_PenWidth, |
| 542 |
/* 76 */ HP_Point, |
| 543 |
/* 77 */ HP_NumberOfPoints, |
| 544 |
/* 78 */ HP_SolidLine, |
| 545 |
/* 79 */ HP_StartPoint, |
| 546 |
/* 80 */ HP_PointType, |
| 547 |
/* 81 */ HP_ControlPoint1, |
| 548 |
/* 82 */ HP_ControlPoint2, |
| 549 |
/* 83 */ HP_ClipRegion, |
| 550 |
/* 84 */ HP_ClipMode, |
| 551 |
/* 85 */ 0x00, |
| 552 |
/* 86 */ 0x00, |
| 553 |
/* 87 */ 0x00, |
| 554 |
/* 88 */ 0x00, |
| 555 |
/* 89 */ 0x00, |
| 556 |
/* 90 */ 0x00, |
| 557 |
/* 91 */ 0x00, |
| 558 |
/* 92 */ 0x00, |
| 559 |
/* 93 */ 0x00, |
| 560 |
/* 94 */ 0x00, |
| 561 |
/* 95 */ 0x00, |
| 562 |
/* 96 */ 0x00, |
| 563 |
/* 97 */ HP_ColorDepthArray, |
| 564 |
/* 98 */ HP_ColorDepth, |
| 565 |
/* 99 */ HP_BlockHeight, |
| 566 |
/* 100 */ HP_ColorMapping, |
| 567 |
/* 101 */ HP_CompressMode, |
| 568 |
/* 102 */ HP_DestinationBox, |
| 569 |
/* 103 */ HP_DestinationSize, |
| 570 |
/* 104 */ HP_PatternPersistence, |
| 571 |
/* 105 */ HP_PatternDefineID, |
| 572 |
/* 106 */ 0x00, |
| 573 |
/* 107 */ HP_SourceHeight, |
| 574 |
/* 108 */ HP_SourceWidth, |
| 575 |
/* 109 */ HP_StartLine, |
| 576 |
/* 110 */ HP_PadBytesMultiple, |
| 577 |
/* 111 */ HP_BlockByteLength, |
| 578 |
/* 112 */ 0, |
| 579 |
/* 113 */ 0, |
| 580 |
/* 114 */ 0, |
| 581 |
/* 115 */ HP_NumberOfScanLines, |
| 582 |
/* 116 */ HP_PrintableArea, |
| 583 |
/* 117 */ HP_TumbleMode, |
| 584 |
/* 118 */ HP_ContentOrientation, |
| 585 |
/* 119 */ HP_FeedOrientation, |
| 586 |
/* 120 */ HP_ColorTreatment, |
| 587 |
/* 121 */ 0, |
| 588 |
/* 122 */ 0, |
| 589 |
/* 123 */ 0, |
| 590 |
/* 124 */ 0, |
| 591 |
/* 125 */ 0, |
| 592 |
/* 126 */ 0, |
| 593 |
/* 127 */ 0x00, |
| 594 |
/* 128 */ 0x00, |
| 595 |
/* 129 */ HP_CommentData, |
| 596 |
/* 130 */ HP_DataOrg, |
| 597 |
/* 131 */ 0x00, |
| 598 |
/* 132 */ 0x00, |
| 599 |
/* 133 */ 0x00, |
| 600 |
/* 134 */ HP_Measure, |
| 601 |
/* 135 */ 0x00, |
| 602 |
/* 136 */ HP_SourceType, |
| 603 |
/* 137 */ HP_UnitsPerMeasure, |
| 604 |
/* 138 */ HP_QueryKey, |
| 605 |
/* 139 */ HP_StreamName, |
| 606 |
/* 140 */ HP_StreamDataLength, |
| 607 |
/* 141 */ HP_PCLSelectFont, |
| 608 |
/* 142 */ 0x00, |
| 609 |
/* 143 */ HP_ErrorReport, |
| 610 |
/* 144 */ 0x00, |
| 611 |
/* 145 */ HP_VUExtension, |
| 612 |
/* 146 */ HP_VUDataLength, |
| 613 |
/* 147 */ HP_VUAttr1, |
| 614 |
/* 148 */ HP_VUAttr2, |
| 615 |
/* 149 */ HP_VUAttr3, |
| 616 |
/* 150 */ HP_VUAttr4, |
| 617 |
/* 151 */ HP_VUAttr5, |
| 618 |
/* 152 */ HP_VUAttr6, |
| 619 |
/* 153 */ HP_VUAttr7, |
| 620 |
/* 154 */ HP_VUAttr8, |
| 621 |
/* 155 */ HP_VUAttr9, |
| 622 |
/* 156 */ HP_VUAttr10, |
| 623 |
/* 157 */ HP_VUAttr11, |
| 624 |
/* 158 */ HP_VUAttr12, /* HP_PassThroughCommand, */ |
| 625 |
/* 159 */ HP_PassThroughArray, |
| 626 |
/* 160 */ HP_Diagnostics, |
| 627 |
/* 161 */ HP_CharAngle, |
| 628 |
/* 162 */ HP_CharCode, |
| 629 |
/* 163 */ HP_CharDataSize, |
| 630 |
/* 164 */ HP_CharScale, |
| 631 |
/* 165 */ HP_CharShear, |
| 632 |
/* 166 */ HP_CharSize, |
| 633 |
/* 167 */ HP_FontHeaderLength, |
| 634 |
/* 168 */ HP_FontName, |
| 635 |
/* 169 */ HP_FontFormat, |
| 636 |
/* 170 */ HP_SymbolSet, |
| 637 |
/* 171 */ HP_TextData, |
| 638 |
/* 172 */ HP_CharSubModeArray, |
| 639 |
/* 173 */ HP_WritingMode, |
| 640 |
/* 174 */ HP_BitmapCharScale, |
| 641 |
/* 175 */ HP_XSpacingData, |
| 642 |
/* 176 */ HP_YSpacingData, |
| 643 |
/* 177 */ HP_CharBoldValue, |
| 644 |
#ifdef FAX_10 |
| 645 |
/* 178 */ HP_SendType, |
| 646 |
/* 179 */ HP_JobAttributeName, |
| 647 |
/* 180 */ HP_JobAttributeValue, |
| 648 |
/* 181 */ HP_JobAttributeType, |
| 649 |
|
| 650 |
#else |
| 651 |
/* 178 */ 0x00, |
| 652 |
/* 179 */ 0x00, |
| 653 |
/* 180 */ 0x00, |
| 654 |
/* 181 */ 0x00, |
| 655 |
#endif |
| 656 |
/* 182 */ 0x00, |
| 657 |
/* 183 */ 0x00, |
| 658 |
/* 184 */ 0x00, |
| 659 |
/* 185 */ 0x00, |
| 660 |
/* 186 */ 0x00, |
| 661 |
/* 187 */ 0x00, |
| 662 |
/* 188 */ 0x00, |
| 663 |
/* 189 */ 0x00, |
| 664 |
/* 190 */ 0x00, |
| 665 |
/* 191 */ 0x00, |
| 666 |
/* 192 */ 0x00, |
| 667 |
/* 193 */ 0x00, |
| 668 |
/* 194 */ 0x00, |
| 669 |
/* 195 */ 0x00, |
| 670 |
/* 196 */ 0x00, |
| 671 |
/* 197 */ 0x00, |
| 672 |
/* 198 */ 0x00, |
| 673 |
/* 199 */ 0x00, |
| 674 |
/* 200 */ 0x00, |
| 675 |
/* 201 */ 0x00, |
| 676 |
/* 202 */ 0x00, |
| 677 |
/* 203 */ 0x00, |
| 678 |
/* 204 */ 0x00, |
| 679 |
/* 205 */ 0x00, |
| 680 |
/* 206 */ 0x00, |
| 681 |
/* 207 */ 0x00, |
| 682 |
/* 208 */ 0x00, |
| 683 |
/* 209 */ 0x00, |
| 684 |
/* 210 */ 0x00, |
| 685 |
/* 211 */ 0x00, |
| 686 |
/* 212 */ 0x00, |
| 687 |
/* 213 */ 0x00, |
| 688 |
/* 214 */ 0x00, |
| 689 |
/* 215 */ 0x00, |
| 690 |
/* 216 */ 0x00, |
| 691 |
/* 217 */ 0x00, |
| 692 |
/* 218 */ 0x00, |
| 693 |
/* 219 */ 0x00, |
| 694 |
/* 220 */ 0x00, |
| 695 |
/* 221 */ 0x00, |
| 696 |
/* 222 */ 0x00, |
| 697 |
/* 223 */ 0x00, |
| 698 |
/* 224 */ 0x00, |
| 699 |
/* 225 */ 0x00, |
| 700 |
/* 226 */ 0x00, |
| 701 |
/* 227 */ 0x00, |
| 702 |
/* 228 */ 0x00, |
| 703 |
/* 229 */ 0x00, |
| 704 |
/* 230 */ 0x00, |
| 705 |
/* 231 */ 0x00, |
| 706 |
/* 232 */ 0x00, |
| 707 |
/* 233 */ 0x00, |
| 708 |
/* 234 */ 0x00, |
| 709 |
/* 235 */ 0x00, |
| 710 |
/* 236 */ 0x00, |
| 711 |
/* 237 */ 0x00, |
| 712 |
/* 238 */ 0x00, |
| 713 |
/* 239 */ 0x00, |
| 714 |
/* 240 */ 0x00, |
| 715 |
/* 241 */ 0x00, |
| 716 |
/* 242 */ 0x00, |
| 717 |
/* 243 */ 0x00, |
| 718 |
/* 244 */ 0x00, |
| 719 |
/* 245 */ 0x00, |
| 720 |
/* 246 */ 0x00, |
| 721 |
/* 247 */ 0x00, |
| 722 |
/* 248 */ 0x00, |
| 723 |
/* 249 */ 0x00, |
| 724 |
/* 250 */ 0x00, |
| 725 |
/* 251 */ 0x00, |
| 726 |
/* 252 */ 0x00, |
| 727 |
/* 253 */ 0x00, |
| 728 |
/* 254 */ 0x00, |
| 729 |
/* 255 */ 0x00 |
| 730 |
}; |
| 731 |
|
| 732 |
/***************************************************************************** |
| 733 |
|
| 734 |
function: HP_Real32toUInt32 |
| 735 |
|
| 736 |
purpose: Take a HP_Real32 value and convert it to a UInt32 value |
| 737 |
where the most significant byte is the left-most byte |
| 738 |
and the least significant byte is the right-most byte. |
| 739 |
|
| 740 |
parameters: name data type / description |
| 741 |
----------------- ------------------------------------- |
| 742 |
realNumber HP_Real32 / A HP library 32-bit real |
| 743 |
number which is typically a float. |
| 744 |
|
| 745 |
comments: This routine is only used internal to the library in the |
| 746 |
macros defined to output a Real32 value. |
| 747 |
|
| 748 |
*****************************************************************************/ |
| 749 |
#ifdef HP_WindowsAPI |
| 750 |
HP_UInt32 FAR PASCAL HP_Real32ToUInt32( |
| 751 |
#else |
| 752 |
HP_UInt32 HP_Real32ToUInt32( |
| 753 |
#endif |
| 754 |
/* HP_Real32ToUInt32(*/ HP_Real32 realNumber) |
| 755 |
{ |
| 756 |
|
| 757 |
union { |
| 758 |
HP_Real32 real32Num; |
| 759 |
HP_UInt32 uint32Num; |
| 760 |
} numUnion; |
| 761 |
|
| 762 |
numUnion.real32Num = realNumber; |
| 763 |
|
| 764 |
return(numUnion.uint32Num); |
| 765 |
|
| 766 |
} |
| 767 |
|
| 768 |
/***************************************************************************** |
| 769 |
|
| 770 |
function: HP_GetLibErrorText |
| 771 |
|
| 772 |
purpose: Return a pointer to a constant byte string containing |
| 773 |
text which explains the error found. If no text is found |
| 774 |
for the error number passed in, a null pointer is returned. |
| 775 |
|
| 776 |
parameters: name data type / description |
| 777 |
----------------- ------------------------------------- |
| 778 |
errorNumber HP_SInt16 / A library error code number |
| 779 |
#defined in the jetlib.h file. |
| 780 |
|
| 781 |
comments: |
| 782 |
|
| 783 |
*****************************************************************************/ |
| 784 |
HP_pUByte HP_GetLibErrorText(HP_SInt16 errorNumber) |
| 785 |
{ |
| 786 |
|
| 787 |
HP_pUByte pText; |
| 788 |
|
| 789 |
switch (errorNumber) |
| 790 |
{ |
| 791 |
case HP_NoError: |
| 792 |
pText = (HP_pUByte) "XL Library: No Errors Detected"; |
| 793 |
break; |
| 794 |
case HPERR_InitError: |
| 795 |
pText = (HP_pUByte) "XL Library: Initialization Failed"; |
| 796 |
break; |
| 797 |
case HPERR_UndefinedOp: |
| 798 |
pText = (HP_pUByte) "XL Library: Operator Number Undefined"; |
| 799 |
break; |
| 800 |
case HPERR_OutOfMemory: |
| 801 |
pText = (HP_pUByte) "XL Library: Out of Memory"; |
| 802 |
break; |
| 803 |
case HPERR_ZeroBufferSize: |
| 804 |
pText = (HP_pUByte) "XL Library: A Stream Buffer Size of Zero Was Requested"; |
| 805 |
break; |
| 806 |
case HPERR_OutBufferOverflow: |
| 807 |
pText = (HP_pUByte) "XL Library: Stream Output Buffer Overflowed"; |
| 808 |
break; |
| 809 |
case HPERR_FlushBufferFailed: |
| 810 |
pText = (HP_pUByte) "XL Library: Attempt to Flush Output Buffer Failed"; |
| 811 |
break; |
| 812 |
default: |
| 813 |
pText = (HP_pUByte) "XL Library: Number of Error Reported is Undefined"; |
| 814 |
break; |
| 815 |
} |
| 816 |
|
| 817 |
return(pText); |
| 818 |
} |
| 819 |
|
| 820 |
|
| 821 |
#ifndef HP_WindowsAPI |
| 822 |
|
| 823 |
/***************************************************************************** |
| 824 |
|
| 825 |
function: HP_NewStream |
| 826 |
|
| 827 |
purpose: Initialize a new stream. This must be called prior |
| 828 |
to accessing any library routines. |
| 829 |
|
| 830 |
parameters: |
| 831 |
HP_SInt32 outBufferMaxSize :: max size of output buffer |
| 832 |
maintained by stream library |
| 833 |
|
| 834 |
unsigned long cookie :: magic cookie for callers use included in |
| 835 |
callback of flush output buffer function |
| 836 |
|
| 837 |
*****************************************************************************/ |
| 838 |
|
| 839 |
HP_InitFuncPrefix HP_NewStream(HP_SInt32 outBufferMaxSize, unsigned long cookie) |
| 840 |
{ |
| 841 |
|
| 842 |
HP_StreamHandleType pStream = NULL, returnVal = NULL; |
| 843 |
|
| 844 |
pStream = (HP_StreamHandleType) HP_MEMALLOC ((size_t) sizeof(HP_StreamStructType)); |
| 845 |
if (pStream) |
| 846 |
{ |
| 847 |
|
| 848 |
pStream->HP_OutBufferMaxSize = outBufferMaxSize; |
| 849 |
if (pStream->HP_OutBufferMaxSize) |
| 850 |
{ |
| 851 |
/* enhance checking here to insure that buffer size meets some |
| 852 |
* reasonable minimum value |
| 853 |
*/ |
| 854 |
pStream->HP_ErrorCode = HP_NoError; |
| 855 |
pStream->HP_ErrorCount = 0; |
| 856 |
pStream->HP_OutBuffer = |
| 857 |
(HP_UByte *) HP_MEMALLOC ((size_t) pStream->HP_OutBufferMaxSize); |
| 858 |
if (pStream->HP_OutBuffer) |
| 859 |
{ |
| 860 |
pStream->HP_CurrentBufferLen = 0; |
| 861 |
pStream->HP_CurrentStreamLen = 0; |
| 862 |
pStream->cookie = cookie; |
| 863 |
returnVal = pStream; |
| 864 |
return(returnVal); |
| 865 |
} |
| 866 |
else |
| 867 |
{ |
| 868 |
HP_SetErrorCode(pStream, HPERR_OutOfMemory); |
| 869 |
if(NULL != pStream) |
| 870 |
{ |
| 871 |
HP_MEMDEALLOC(pStream); |
| 872 |
} |
| 873 |
} |
| 874 |
} |
| 875 |
else |
| 876 |
{ |
| 877 |
HP_SetErrorCode(pStream, HPERR_ZeroBufferSize); |
| 878 |
if(NULL != pStream) |
| 879 |
{ |
| 880 |
HP_MEMDEALLOC(pStream); |
| 881 |
} |
| 882 |
} |
| 883 |
} |
| 884 |
return(returnVal); |
| 885 |
} |
| 886 |
|
| 887 |
/***************************************************************************** |
| 888 |
|
| 889 |
function: HP_FinishStream |
| 890 |
|
| 891 |
purpose: Finish the stream. This must be called to do a final |
| 892 |
flush on the stream output buffer and release all memory |
| 893 |
allocated by the stream library. |
| 894 |
|
| 895 |
parameters: None |
| 896 |
|
| 897 |
return: returns the total length of the stream |
| 898 |
|
| 899 |
comments: |
| 900 |
|
| 901 |
*****************************************************************************/ |
| 902 |
HP_UInt32FuncPrefix HP_FinishStream(HP_StreamHandleType pStream) |
| 903 |
{ |
| 904 |
HP_UInt32 streamLength = pStream->HP_CurrentStreamLen; |
| 905 |
|
| 906 |
HP_MEMDEALLOC(pStream->HP_OutBuffer); |
| 907 |
HP_MEMDEALLOC(pStream); |
| 908 |
|
| 909 |
return(streamLength); |
| 910 |
|
| 911 |
} |
| 912 |
|
| 913 |
#endif |
| 914 |
|
| 915 |
/***************************************************************************** |
| 916 |
|
| 917 |
function: HP_FlushStreamBuffer |
| 918 |
|
| 919 |
purpose: Flushes the stream buffer to the output stream. |
| 920 |
|
| 921 |
parameters: None |
| 922 |
|
| 923 |
return: None |
| 924 |
|
| 925 |
comments: |
| 926 |
|
| 927 |
*****************************************************************************/ |
| 928 |
HP_StdFuncPrefix HP_FlushStreamBuffer(HP_StreamHandleType pStream) |
| 929 |
{ |
| 930 |
|
| 931 |
} |
| 932 |
|
| 933 |
|
| 934 |
|
| 935 |
/***************************************************************************** |
| 936 |
|
| 937 |
|
| 938 |
function: HP_Operator |
| 939 |
|
| 940 |
purpose: Execute or schedule execution of an Operator corresponding to |
| 941 |
the operatorID |
| 942 |
|
| 943 |
parameters: name data type / description |
| 944 |
---------------- ------------------------------------- |
| 945 |
operatorId HP_UInt16 / An operator identifier from |
| 946 |
the jetlib.h header file signifying the |
| 947 |
operator to be executed |
| 948 |
|
| 949 |
comments: The behavior of this function is binding-dependent. This |
| 950 |
implementation places a binding-dependent operator |
| 951 |
identifier in the protocol byte stream. |
| 952 |
|
| 953 |
errors: HPERR_OutOfMemory, HPERR_UndefinedOp |
| 954 |
|
| 955 |
*****************************************************************************/ |
| 956 |
HP_StdFuncPrefix HP_Operator(HP_StreamHandleType pStream, HP_UInt16 operatorId) |
| 957 |
{ |
| 958 |
|
| 959 |
HP_UInt16 bindingOperatorId; |
| 960 |
|
| 961 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 962 |
|
| 963 |
if (HP_NoErrors(pStream)) |
| 964 |
{ |
| 965 |
|
| 966 |
bindingOperatorId = HP_OpValueMap[operatorId]; |
| 967 |
if ((operatorId < HP_MaxNumberOfOps) && bindingOperatorId) |
| 968 |
{ |
| 969 |
HP_AddToListByte(pStream, (HP_UByte) bindingOperatorId); |
| 970 |
} |
| 971 |
else |
| 972 |
{ |
| 973 |
HP_SetErrorCode(pStream, HPERR_UndefinedOp); |
| 974 |
} |
| 975 |
|
| 976 |
} |
| 977 |
|
| 978 |
} |
| 979 |
|
| 980 |
|
| 981 |
/***************************************************************************** |
| 982 |
|
| 983 |
|
| 984 |
function: HP_AttrId |
| 985 |
|
| 986 |
purpose: Add an attribute identifier to the attribute list |
| 987 |
|
| 988 |
parameters: name data type / description |
| 989 |
----------------- ------------------------------------- |
| 990 |
attrId HP_UInt16 / An attribute identifier from |
| 991 |
the jetlib.h header file signifying the |
| 992 |
attribute identifier to be added |
| 993 |
|
| 994 |
comments: The behavior of this function is binding-dependent. This |
| 995 |
implementation places an attribute identifier in the protocol |
| 996 |
byte stream. |
| 997 |
|
| 998 |
|
| 999 |
errors: HPERR_OutOfMemory, HPERR_UndefinedAttr |
| 1000 |
|
| 1001 |
*****************************************************************************/ |
| 1002 |
HP_StdFuncPrefix HP_AttrId(HP_StreamHandleType pStream, HP_UInt16 attrId) |
| 1003 |
{ |
| 1004 |
|
| 1005 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1006 |
|
| 1007 |
HP_UInt16 bindingAttributeId; |
| 1008 |
|
| 1009 |
if (HP_NoErrors(pStream)) |
| 1010 |
{ |
| 1011 |
|
| 1012 |
bindingAttributeId = HP_AttrIdValueMap[attrId]; |
| 1013 |
if ((attrId < HP_MaxNumberOfAttrIds) && bindingAttributeId) |
| 1014 |
{ |
| 1015 |
|
| 1016 |
HP_AddToListByte(pStream, (HP_UByte) HP_8BitAttrId); |
| 1017 |
if (HP_NoErrors(pStream)) |
| 1018 |
{ |
| 1019 |
HP_AddToListByte(pStream, (HP_UByte) bindingAttributeId); |
| 1020 |
} |
| 1021 |
} |
| 1022 |
else |
| 1023 |
{ |
| 1024 |
HP_SetErrorCode(pStream, HPERR_UndefinedAttrId); |
| 1025 |
} |
| 1026 |
|
| 1027 |
} |
| 1028 |
|
| 1029 |
|
| 1030 |
} |
| 1031 |
|
| 1032 |
HP_UInt16 HP_strlen(HP_pUByte array) |
| 1033 |
{ |
| 1034 |
|
| 1035 |
HP_UInt16 length = 0; |
| 1036 |
while (array[length]) length++; |
| 1037 |
return(length); |
| 1038 |
} |
| 1039 |
|
| 1040 |
HP_StdFuncPrefix HP_AddStreamHeader_1( /* AddStreamHeader signature 1 */ |
| 1041 |
HP_StreamHandleType pStream, /* PCL XL Stream library pointer */ |
| 1042 |
HP_UInt16 protocolClass, /* protocol class number */ |
| 1043 |
HP_UInt16 protocolRev, /* protocol class revision */ |
| 1044 |
HP_pUByte commentArray, /* any comment desired */ |
| 1045 |
HP_UInt32 commentArrayLen) /* length of comment array */ |
| 1046 |
{ |
| 1047 |
|
| 1048 |
#define HP_MAX_NUM_BUFF 10 |
| 1049 |
#define HP_LINEFEED 0x0a |
| 1050 |
|
| 1051 |
HP_UInt32 index = 0; |
| 1052 |
HP_UByte numberBuff[HP_MAX_NUM_BUFF]; |
| 1053 |
static HP_pUByte streamClassName = (HP_pUByte) ") HP-PCL XL"; |
| 1054 |
static HP_pUByte commentFieldId = (HP_pUByte) ";Comment"; |
| 1055 |
|
| 1056 |
numberBuff[0] = '\0'; |
| 1057 |
|
| 1058 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1059 |
|
| 1060 |
if (HP_NoErrors(pStream)) |
| 1061 |
{ |
| 1062 |
/* Add stream class name field to stream header: */ |
| 1063 |
|
| 1064 |
unsigned int nameLen = HP_strlen(streamClassName); |
| 1065 |
|
| 1066 |
index = 0; |
| 1067 |
while ((HP_NoErrors(pStream)) && (index < nameLen)) |
| 1068 |
{ |
| 1069 |
HP_AddToListByte(pStream, (HP_UByte) streamClassName[index++]); |
| 1070 |
} |
| 1071 |
} |
| 1072 |
|
| 1073 |
if (HP_NoErrors(pStream)) |
| 1074 |
{ |
| 1075 |
sprintf((char *) numberBuff, ";%d", protocolClass); |
| 1076 |
{ |
| 1077 |
unsigned int numberLen = HP_strlen(numberBuff); |
| 1078 |
|
| 1079 |
index = 0; |
| 1080 |
while ((HP_NoErrors(pStream)) && (index < numberLen)) |
| 1081 |
{ |
| 1082 |
HP_AddToListByte(pStream, (HP_UByte) numberBuff[index++]); |
| 1083 |
} |
| 1084 |
} |
| 1085 |
} |
| 1086 |
|
| 1087 |
if (HP_NoErrors(pStream)) |
| 1088 |
{ |
| 1089 |
/* Add protocol class revision field to stream header: */ |
| 1090 |
sprintf((char *) numberBuff, ";%d", protocolRev); |
| 1091 |
{ |
| 1092 |
unsigned int numberLen = HP_strlen(numberBuff); |
| 1093 |
|
| 1094 |
index = 0; |
| 1095 |
while ((HP_NoErrors(pStream)) && (index < numberLen)) |
| 1096 |
{ |
| 1097 |
HP_AddToListByte(pStream, (HP_UByte) numberBuff[index++]); |
| 1098 |
} |
| 1099 |
|
| 1100 |
} |
| 1101 |
} |
| 1102 |
|
| 1103 |
if (HP_NoErrors(pStream)) |
| 1104 |
{ |
| 1105 |
/* Add Comment field prefix to stream header: */ |
| 1106 |
|
| 1107 |
unsigned int commentFieldLen = HP_strlen(commentFieldId); |
| 1108 |
|
| 1109 |
index = 0; |
| 1110 |
while ((HP_NoErrors(pStream)) && (index < commentFieldLen)) |
| 1111 |
{ |
| 1112 |
HP_AddToListByte(pStream, (HP_UByte) commentFieldId[index++]); |
| 1113 |
} |
| 1114 |
} |
| 1115 |
|
| 1116 |
if (HP_NoErrors(pStream)) |
| 1117 |
{ |
| 1118 |
/* Add user comment to stream header: */ |
| 1119 |
|
| 1120 |
index = 0; |
| 1121 |
while ((HP_NoErrors(pStream)) && (index < commentArrayLen)) |
| 1122 |
{ |
| 1123 |
HP_AddToListByte(pStream, (HP_UByte) commentArray[index++]); |
| 1124 |
} |
| 1125 |
} |
| 1126 |
|
| 1127 |
if (HP_NoErrors(pStream)) |
| 1128 |
{ |
| 1129 |
/* Add line feed to end the stream header: */ |
| 1130 |
|
| 1131 |
HP_AddToListByte(pStream, (HP_UByte) HP_LINEFEED); |
| 1132 |
} |
| 1133 |
|
| 1134 |
#undef HP_LINEFEED |
| 1135 |
#undef HP_MAX_NUM_BUFF |
| 1136 |
} |
| 1137 |
|
| 1138 |
|
| 1139 |
/***************************************************************************** |
| 1140 |
|
| 1141 |
|
| 1142 |
function: HP_AttrUByte |
| 1143 |
|
| 1144 |
purpose: Add an 8-bit unsigned value to the |
| 1145 |
attribute list |
| 1146 |
|
| 1147 |
parameters: name data type / description |
| 1148 |
----------------- ------------------------------------- |
| 1149 |
intValue HP_UByte / The 8-bit integer value to be |
| 1150 |
added to the attribute list |
| 1151 |
|
| 1152 |
comments: The behavior of this function is binding-dependent. This |
| 1153 |
implementation places the value in the protocol byte stream. |
| 1154 |
|
| 1155 |
*****************************************************************************/ |
| 1156 |
HP_StdFuncPrefix HP_AttrUByte(HP_StreamHandleType pStream, HP_UByte intValue) |
| 1157 |
{ |
| 1158 |
|
| 1159 |
|
| 1160 |
|
| 1161 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1162 |
|
| 1163 |
if (HP_NoErrors(pStream)) |
| 1164 |
{ |
| 1165 |
|
| 1166 |
HP_AddToListByte(pStream, (HP_UByte) HP_UByteData); |
| 1167 |
if (HP_NoErrors(pStream)) |
| 1168 |
{ |
| 1169 |
HP_AddToListByte(pStream, (HP_UByte) intValue); |
| 1170 |
} |
| 1171 |
|
| 1172 |
} |
| 1173 |
|
| 1174 |
} |
| 1175 |
|
| 1176 |
|
| 1177 |
/***************************************************************************** |
| 1178 |
|
| 1179 |
|
| 1180 |
function: HP_AttrUInt16 |
| 1181 |
|
| 1182 |
purpose: Add a 16-bit unsigned integer value to the |
| 1183 |
attribute list |
| 1184 |
|
| 1185 |
parameters: name data type / description |
| 1186 |
----------------- ------------------------------------- |
| 1187 |
intValue HP_UInt16 / The 16-bit integer value to be |
| 1188 |
added to the attribute list |
| 1189 |
|
| 1190 |
comments: The behavior of this function is binding-dependent. This |
| 1191 |
implementation places the value in the protocol byte stream. |
| 1192 |
|
| 1193 |
*****************************************************************************/ |
| 1194 |
HP_StdFuncPrefix HP_AttrUInt16(HP_StreamHandleType pStream, HP_UInt16 intValue) |
| 1195 |
{ |
| 1196 |
|
| 1197 |
|
| 1198 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1199 |
|
| 1200 |
if (HP_NoErrors(pStream)) |
| 1201 |
{ |
| 1202 |
|
| 1203 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt16Data); |
| 1204 |
if (HP_NoErrors(pStream)) |
| 1205 |
{ |
| 1206 |
HP_AddToListInt16(pStream, (HP_UInt16) intValue); |
| 1207 |
} |
| 1208 |
} |
| 1209 |
|
| 1210 |
|
| 1211 |
} |
| 1212 |
|
| 1213 |
/***************************************************************************** |
| 1214 |
|
| 1215 |
|
| 1216 |
function: HP_AttrSInt16 |
| 1217 |
|
| 1218 |
purpose: Add a 16-bit signed integer value to the |
| 1219 |
attribute list |
| 1220 |
|
| 1221 |
parameters: name data type / description |
| 1222 |
----------------- ------------------------------------- |
| 1223 |
intValue HP_SInt16 / The 16-bit integer value to be |
| 1224 |
added to the attribute list |
| 1225 |
|
| 1226 |
comments: The behavior of this function is binding-dependent. This |
| 1227 |
implementation places the value in the protocol byte stream. |
| 1228 |
|
| 1229 |
*****************************************************************************/ |
| 1230 |
HP_StdFuncPrefix HP_AttrSInt16(HP_StreamHandleType pStream, HP_SInt16 intValue) |
| 1231 |
{ |
| 1232 |
|
| 1233 |
|
| 1234 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1235 |
|
| 1236 |
if (HP_NoErrors(pStream)) |
| 1237 |
{ |
| 1238 |
|
| 1239 |
HP_AddToListByte(pStream, (HP_UByte) HP_SInt16Data); |
| 1240 |
if (HP_NoErrors(pStream)) |
| 1241 |
{ |
| 1242 |
HP_AddToListInt16(pStream, (HP_UInt16) intValue); |
| 1243 |
} |
| 1244 |
} |
| 1245 |
|
| 1246 |
} |
| 1247 |
|
| 1248 |
|
| 1249 |
/***************************************************************************** |
| 1250 |
|
| 1251 |
|
| 1252 |
function: HP_AttrUInt32 |
| 1253 |
|
| 1254 |
purpose: Add a 32-bit unsigned integer value to the |
| 1255 |
attribute list |
| 1256 |
|
| 1257 |
parameters: name data type / description |
| 1258 |
----------------- ------------------------------------- |
| 1259 |
intValue HP_UInt32 / The 32-bit integer value to be |
| 1260 |
added to the attribute list |
| 1261 |
|
| 1262 |
comments: The behavior of this function is binding-dependent. This |
| 1263 |
implementation places the value in the protocol byte stream. |
| 1264 |
|
| 1265 |
*****************************************************************************/ |
| 1266 |
HP_StdFuncPrefix HP_AttrUInt32(HP_StreamHandleType pStream, HP_UInt32 intValue) |
| 1267 |
{ |
| 1268 |
|
| 1269 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1270 |
|
| 1271 |
if (HP_NoErrors(pStream)) |
| 1272 |
{ |
| 1273 |
|
| 1274 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt32Data); |
| 1275 |
if (HP_NoErrors(pStream)) |
| 1276 |
{ |
| 1277 |
HP_AddToListInt32(pStream, (HP_UInt32) intValue); |
| 1278 |
} |
| 1279 |
} |
| 1280 |
|
| 1281 |
} |
| 1282 |
|
| 1283 |
/***************************************************************************** |
| 1284 |
|
| 1285 |
|
| 1286 |
function: HP_AttrSInt32 |
| 1287 |
|
| 1288 |
purpose: Add a 32-bit signed integer value to the |
| 1289 |
attribute list |
| 1290 |
|
| 1291 |
parameters: name data type / description |
| 1292 |
----------------- ------------------------------------- |
| 1293 |
intValue HP_SInt32 / The 32-bit integer value to be |
| 1294 |
added to the attribute list |
| 1295 |
|
| 1296 |
comments: The behavior of this function is binding-dependent. This |
| 1297 |
implementation places the value in the protocol byte stream. |
| 1298 |
|
| 1299 |
*****************************************************************************/ |
| 1300 |
HP_StdFuncPrefix HP_AttrSInt32(HP_StreamHandleType pStream, HP_SInt32 intValue) |
| 1301 |
{ |
| 1302 |
|
| 1303 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1304 |
|
| 1305 |
if (HP_NoErrors(pStream)) |
| 1306 |
{ |
| 1307 |
|
| 1308 |
HP_AddToListByte(pStream, (HP_UByte) HP_SInt32Data); |
| 1309 |
if (HP_NoErrors(pStream)) |
| 1310 |
{ |
| 1311 |
HP_AddToListInt32(pStream, (HP_UInt32) intValue); |
| 1312 |
} |
| 1313 |
} |
| 1314 |
|
| 1315 |
} |
| 1316 |
|
| 1317 |
|
| 1318 |
/***************************************************************************** |
| 1319 |
|
| 1320 |
|
| 1321 |
function: HP_AttrReal32 |
| 1322 |
|
| 1323 |
purpose: Add a 32-bit real (floating point) value to the |
| 1324 |
attribute list |
| 1325 |
|
| 1326 |
parameters: name data type / description |
| 1327 |
----------------- ------------------------------------- |
| 1328 |
realValue HP_Real32 / The 32-bit real value to be |
| 1329 |
added to the attribute list |
| 1330 |
|
| 1331 |
comments: The behavior of this function is binding-dependent. This |
| 1332 |
implementation places the value in the protocol byte stream. |
| 1333 |
|
| 1334 |
*****************************************************************************/ |
| 1335 |
HP_StdFuncPrefix HP_AttrReal32(HP_StreamHandleType pStream, HP_Real32 realValue) |
| 1336 |
{ |
| 1337 |
|
| 1338 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1339 |
|
| 1340 |
if (HP_NoErrors(pStream)) |
| 1341 |
{ |
| 1342 |
|
| 1343 |
HP_AddToListByte(pStream, (HP_UByte) HP_Real32Data); |
| 1344 |
if (HP_NoErrors(pStream)) |
| 1345 |
{ |
| 1346 |
HP_AddToListReal32(pStream, (HP_Real32) realValue); |
| 1347 |
} |
| 1348 |
} |
| 1349 |
|
| 1350 |
} |
| 1351 |
|
| 1352 |
|
| 1353 |
/***************************************************************************** |
| 1354 |
|
| 1355 |
|
| 1356 |
function: HP_AttrXyUByte |
| 1357 |
|
| 1358 |
purpose: Add two 8-bit unsigned values to the |
| 1359 |
attribute list. One represents a value corresponding to |
| 1360 |
the x-axis and the other corresponds to the y-axis. |
| 1361 |
|
| 1362 |
parameters: name data type / description |
| 1363 |
----------------- ------------------------------------- |
| 1364 |
xValue HP_UByte / The 8-bit integer x value to |
| 1365 |
be added to the attribute list |
| 1366 |
|
| 1367 |
yValue HP_UByte / The 8-bit integer y value to |
| 1368 |
be added to the attribute list |
| 1369 |
|
| 1370 |
comments: The behavior of this function is binding-dependent. This |
| 1371 |
implementation places the values in the protocol byte stream. |
| 1372 |
|
| 1373 |
*****************************************************************************/ |
| 1374 |
HP_StdFuncPrefix HP_AttrXyUByte(HP_StreamHandleType pStream, HP_UByte xValue, HP_UByte yValue) |
| 1375 |
{ |
| 1376 |
|
| 1377 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1378 |
|
| 1379 |
if (HP_NoErrors(pStream)) |
| 1380 |
{ |
| 1381 |
|
| 1382 |
HP_AddToListByte(pStream, (HP_UByte) HP_UByteXy); |
| 1383 |
if (HP_NoErrors(pStream)) |
| 1384 |
{ |
| 1385 |
HP_AddToListByte(pStream, (HP_UByte) xValue); |
| 1386 |
} |
| 1387 |
if (HP_NoErrors(pStream)) |
| 1388 |
{ |
| 1389 |
HP_AddToListByte(pStream, (HP_UByte) yValue); |
| 1390 |
} |
| 1391 |
} |
| 1392 |
|
| 1393 |
} |
| 1394 |
|
| 1395 |
|
| 1396 |
/***************************************************************************** |
| 1397 |
|
| 1398 |
|
| 1399 |
function: HP_AttrXyUInt16 |
| 1400 |
|
| 1401 |
purpose: Add two 16-bit unsigned integer values to the |
| 1402 |
attribute list. One represents a value corresponding to |
| 1403 |
the x-axis and the other corresponds to the y-axis. |
| 1404 |
|
| 1405 |
parameters: name data type / description |
| 1406 |
----------------- ------------------------------------- |
| 1407 |
xValue HP_UInt16 / The 16-bit integer x value to |
| 1408 |
be added to the attribute list |
| 1409 |
|
| 1410 |
yValue HP_UInt16 / The 16-bit integer y value to |
| 1411 |
be added to the attribute list |
| 1412 |
|
| 1413 |
comments: The behavior of this function is binding-dependent. This |
| 1414 |
implementation places the values in the protocol byte stream. |
| 1415 |
|
| 1416 |
*****************************************************************************/ |
| 1417 |
HP_StdFuncPrefix HP_AttrXyUInt16(HP_StreamHandleType pStream, HP_UInt16 xValue, HP_UInt16 yValue) |
| 1418 |
{ |
| 1419 |
|
| 1420 |
|
| 1421 |
if (HP_NoErrors(pStream)) |
| 1422 |
{ |
| 1423 |
|
| 1424 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt16Xy); |
| 1425 |
if (HP_NoErrors(pStream)) |
| 1426 |
{ |
| 1427 |
HP_AddToListInt16(pStream, (HP_UInt16) xValue); |
| 1428 |
} |
| 1429 |
if (HP_NoErrors(pStream)) |
| 1430 |
{ |
| 1431 |
HP_AddToListInt16(pStream, (HP_UInt16) yValue); |
| 1432 |
} |
| 1433 |
} |
| 1434 |
|
| 1435 |
} |
| 1436 |
|
| 1437 |
/***************************************************************************** |
| 1438 |
|
| 1439 |
|
| 1440 |
function: HP_AttrXySInt16 |
| 1441 |
|
| 1442 |
purpose: Add two 16-bit signed integer values to the |
| 1443 |
attribute list. One represents a value corresponding to |
| 1444 |
the x-axis and the other corresponds to the y-axis. |
| 1445 |
|
| 1446 |
parameters: name data type / description |
| 1447 |
----------------- ------------------------------------- |
| 1448 |
xValue HP_SInt16 / The 16-bit integer x value to |
| 1449 |
be added to the attribute list |
| 1450 |
|
| 1451 |
yValue HP_SInt16 / The 16-bit integer y value to |
| 1452 |
be added to the attribute list |
| 1453 |
|
| 1454 |
comments: The behavior of this function is binding-dependent. This |
| 1455 |
implementation places the values in the protocol byte stream. |
| 1456 |
|
| 1457 |
*****************************************************************************/ |
| 1458 |
HP_StdFuncPrefix HP_AttrXySInt16(HP_StreamHandleType pStream, HP_SInt16 xValue, HP_SInt16 yValue) |
| 1459 |
{ |
| 1460 |
|
| 1461 |
|
| 1462 |
if (HP_NoErrors(pStream)) |
| 1463 |
{ |
| 1464 |
|
| 1465 |
HP_AddToListByte(pStream, (HP_UByte) HP_SInt16Xy); |
| 1466 |
if (HP_NoErrors(pStream)) |
| 1467 |
{ |
| 1468 |
HP_AddToListInt16(pStream, (HP_UInt16) xValue); |
| 1469 |
} |
| 1470 |
if (HP_NoErrors(pStream)) |
| 1471 |
{ |
| 1472 |
HP_AddToListInt16(pStream, (HP_UInt16) yValue); |
| 1473 |
} |
| 1474 |
|
| 1475 |
} |
| 1476 |
|
| 1477 |
} |
| 1478 |
|
| 1479 |
|
| 1480 |
/***************************************************************************** |
| 1481 |
|
| 1482 |
|
| 1483 |
function: HP_AttrXyUInt32 |
| 1484 |
|
| 1485 |
purpose: Add two 32-bit unsigned integer values to the |
| 1486 |
attribute list. One represents a value corresponding to |
| 1487 |
the x-axis and the other corresponds to the y-axis. |
| 1488 |
|
| 1489 |
parameters: name data type / description |
| 1490 |
----------------- ------------------------------------- |
| 1491 |
xValue HP_UInt32 / The 32-bit integer x value to |
| 1492 |
be added to the attribute list |
| 1493 |
|
| 1494 |
yValue HP_UInt32 / The 32-bit integer y value to |
| 1495 |
be added to the attribute list |
| 1496 |
|
| 1497 |
comments: The behavior of this function is binding-dependent. This |
| 1498 |
implementation places the values in the protocol byte stream. |
| 1499 |
|
| 1500 |
*****************************************************************************/ |
| 1501 |
HP_StdFuncPrefix HP_AttrXyUInt32(HP_StreamHandleType pStream, HP_UInt32 xValue, HP_UInt32 yValue) |
| 1502 |
{ |
| 1503 |
|
| 1504 |
|
| 1505 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1506 |
|
| 1507 |
if (HP_NoErrors(pStream)) |
| 1508 |
{ |
| 1509 |
|
| 1510 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt32Xy); |
| 1511 |
if (HP_NoErrors(pStream)) |
| 1512 |
{ |
| 1513 |
HP_AddToListInt32(pStream, (HP_UInt32) xValue); |
| 1514 |
} |
| 1515 |
if (HP_NoErrors(pStream)) |
| 1516 |
{ |
| 1517 |
HP_AddToListInt32(pStream, (HP_UInt32) yValue); |
| 1518 |
} |
| 1519 |
} |
| 1520 |
|
| 1521 |
} |
| 1522 |
|
| 1523 |
|
| 1524 |
/***************************************************************************** |
| 1525 |
|
| 1526 |
|
| 1527 |
function: HP_AttrXyUInt32 |
| 1528 |
|
| 1529 |
purpose: Add two 32-bit signed integer values to the |
| 1530 |
attribute list. One represents a value corresponding to |
| 1531 |
the x-axis and the other corresponds to the y-axis. |
| 1532 |
|
| 1533 |
parameters: name data type / description |
| 1534 |
----------------- ------------------------------------- |
| 1535 |
xValue HP_SInt32 / The 32-bit integer x value to |
| 1536 |
be added to the attribute list |
| 1537 |
|
| 1538 |
yValue HP_SInt32 / The 32-bit integer y value to |
| 1539 |
be added to the attribute list |
| 1540 |
|
| 1541 |
comments: The behavior of this function is binding-dependent. This |
| 1542 |
implementation places the values in the protocol byte stream. |
| 1543 |
|
| 1544 |
*****************************************************************************/ |
| 1545 |
HP_StdFuncPrefix HP_AttrXySInt32(HP_StreamHandleType pStream, HP_SInt32 xValue, HP_SInt32 yValue) |
| 1546 |
{ |
| 1547 |
|
| 1548 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1549 |
|
| 1550 |
if (HP_NoErrors(pStream)) |
| 1551 |
{ |
| 1552 |
|
| 1553 |
HP_AddToListByte(pStream, (HP_UByte) HP_SInt32Xy); |
| 1554 |
if (HP_NoErrors(pStream)) |
| 1555 |
{ |
| 1556 |
HP_AddToListInt32(pStream, (HP_UInt32) xValue); |
| 1557 |
} |
| 1558 |
if (HP_NoErrors(pStream)) |
| 1559 |
{ |
| 1560 |
HP_AddToListInt32(pStream, (HP_UInt32) yValue); |
| 1561 |
} |
| 1562 |
|
| 1563 |
} |
| 1564 |
|
| 1565 |
} |
| 1566 |
|
| 1567 |
|
| 1568 |
/***************************************************************************** |
| 1569 |
|
| 1570 |
|
| 1571 |
function: HP_AttrXyReal32 |
| 1572 |
|
| 1573 |
purpose: Add two 32-bit real (floating point) values to the |
| 1574 |
attribute list. One represents a value corresponding to |
| 1575 |
the x-axis and the other corresponds to the y-axis. |
| 1576 |
|
| 1577 |
parameters: name data type / description |
| 1578 |
----------------- ------------------------------------- |
| 1579 |
xValue HP_Real32 / The 32-bit real x value to |
| 1580 |
be added to the attribute list |
| 1581 |
|
| 1582 |
yValue HP_Real32 / The 32-bit real y value to |
| 1583 |
be added to the attribute list |
| 1584 |
|
| 1585 |
comments: The behavior of this function is binding-dependent. This |
| 1586 |
implementation places the values in the protocol byte stream. |
| 1587 |
|
| 1588 |
*****************************************************************************/ |
| 1589 |
HP_StdFuncPrefix HP_AttrXyReal32(HP_StreamHandleType pStream, HP_Real32 xValue, HP_Real32 yValue) |
| 1590 |
{ |
| 1591 |
|
| 1592 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1593 |
|
| 1594 |
if (HP_NoErrors(pStream)) |
| 1595 |
{ |
| 1596 |
|
| 1597 |
HP_AddToListByte(pStream, (HP_UByte) HP_Real32Xy); |
| 1598 |
if (HP_NoErrors(pStream)) |
| 1599 |
{ |
| 1600 |
HP_AddToListReal32(pStream, (HP_Real32) xValue); |
| 1601 |
if (HP_NoErrors(pStream)) |
| 1602 |
{ |
| 1603 |
HP_AddToListReal32(pStream, (HP_Real32) yValue); |
| 1604 |
} |
| 1605 |
} |
| 1606 |
|
| 1607 |
} |
| 1608 |
|
| 1609 |
} |
| 1610 |
|
| 1611 |
|
| 1612 |
/***************************************************************************** |
| 1613 |
|
| 1614 |
|
| 1615 |
function: HP_AttrBoxUByte |
| 1616 |
|
| 1617 |
purpose: Add four 8-bit unsigned values to the |
| 1618 |
attribute list. The first two values represent the upper- |
| 1619 |
left point of a bounding box (x1, y1). The last two values |
| 1620 |
represent the lower-right point of a bounding box (x2, y2). |
| 1621 |
|
| 1622 |
parameters: name data type / description |
| 1623 |
----------------- ------------------------------------- |
| 1624 |
x1Value HP_UByte / The 8-bit integer x1 value to |
| 1625 |
be added to the attribute list |
| 1626 |
|
| 1627 |
y1Value HP_UByte / The 8-bit integer y1 value to |
| 1628 |
be added to the attribute list |
| 1629 |
|
| 1630 |
x2Value HP_UByte / The 8-bit integer x2 value to |
| 1631 |
be added to the attribute list |
| 1632 |
|
| 1633 |
y2Value HP_UByte / The 8-bit integer y2 value to |
| 1634 |
be added to the attribute list |
| 1635 |
|
| 1636 |
comments: The behavior of this function is binding-dependent. This |
| 1637 |
implementation places the values in the protocol byte stream. |
| 1638 |
|
| 1639 |
*****************************************************************************/ |
| 1640 |
HP_StdFuncPrefix HP_AttrBoxUByte(HP_StreamHandleType pStream, HP_UByte x1Value, HP_UByte y1Value, |
| 1641 |
HP_UByte x2Value, HP_UByte y2Value) |
| 1642 |
{ |
| 1643 |
|
| 1644 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1645 |
|
| 1646 |
if (HP_NoErrors(pStream)) |
| 1647 |
{ |
| 1648 |
|
| 1649 |
HP_AddToListByte(pStream, (HP_UByte) HP_UByteBox); |
| 1650 |
if (HP_NoErrors(pStream)) |
| 1651 |
{ |
| 1652 |
HP_AddToListByte(pStream, (HP_UByte) x1Value); |
| 1653 |
} |
| 1654 |
if (HP_NoErrors(pStream)) |
| 1655 |
{ |
| 1656 |
HP_AddToListByte(pStream, (HP_UByte) y1Value); |
| 1657 |
} |
| 1658 |
if (HP_NoErrors(pStream)) |
| 1659 |
{ |
| 1660 |
HP_AddToListByte(pStream, (HP_UByte) x2Value); |
| 1661 |
} |
| 1662 |
if (HP_NoErrors(pStream)) |
| 1663 |
{ |
| 1664 |
HP_AddToListByte(pStream, (HP_UByte) y2Value); |
| 1665 |
} |
| 1666 |
|
| 1667 |
} |
| 1668 |
|
| 1669 |
} |
| 1670 |
|
| 1671 |
|
| 1672 |
/***************************************************************************** |
| 1673 |
|
| 1674 |
|
| 1675 |
function: HP_AttrBoxUInt16 |
| 1676 |
|
| 1677 |
purpose: Add four 16-bit unsigned integer values to the |
| 1678 |
attribute list. The first two values represent the upper- |
| 1679 |
left point of a bounding box (x1, y1). The last two values |
| 1680 |
represent the lower-right point of a bounding box (x2, y2). |
| 1681 |
|
| 1682 |
parameters: name data type / description |
| 1683 |
----------------- ------------------------------------- |
| 1684 |
x1Value HP_UInt16 / The 16-bit integer x1 value to |
| 1685 |
be added to the attribute list |
| 1686 |
|
| 1687 |
y1Value HP_UInt16 / The 16-bit integer y1 value to |
| 1688 |
be added to the attribute list |
| 1689 |
|
| 1690 |
x2Value HP_UInt16 / The 16-bit integer x2 value to |
| 1691 |
be added to the attribute list |
| 1692 |
|
| 1693 |
y2Value HP_UInt16 / The 16-bit integer y2 value to |
| 1694 |
be added to the attribute list |
| 1695 |
|
| 1696 |
comments: The behavior of this function is binding-dependent. This |
| 1697 |
implementation places the values in the protocol byte stream. |
| 1698 |
|
| 1699 |
*****************************************************************************/ |
| 1700 |
HP_StdFuncPrefix HP_AttrBoxUInt16(HP_StreamHandleType pStream, HP_UInt16 x1Value, HP_UInt16 y1Value, |
| 1701 |
HP_UInt16 x2Value, HP_UInt16 y2Value) |
| 1702 |
{ |
| 1703 |
|
| 1704 |
|
| 1705 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1706 |
|
| 1707 |
if (HP_NoErrors(pStream)) |
| 1708 |
{ |
| 1709 |
|
| 1710 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt16Box); |
| 1711 |
if (HP_NoErrors(pStream)) |
| 1712 |
{ |
| 1713 |
HP_AddToListInt16(pStream, (HP_UInt16) x1Value); |
| 1714 |
} |
| 1715 |
if (HP_NoErrors(pStream)) |
| 1716 |
{ |
| 1717 |
HP_AddToListInt16(pStream, (HP_UInt16) y1Value); |
| 1718 |
} |
| 1719 |
if (HP_NoErrors(pStream)) |
| 1720 |
{ |
| 1721 |
HP_AddToListInt16(pStream, (HP_UInt16) x2Value); |
| 1722 |
} |
| 1723 |
if (HP_NoErrors(pStream)) |
| 1724 |
{ |
| 1725 |
HP_AddToListInt16(pStream, (HP_UInt16) y2Value); |
| 1726 |
} |
| 1727 |
|
| 1728 |
} |
| 1729 |
|
| 1730 |
} |
| 1731 |
|
| 1732 |
/***************************************************************************** |
| 1733 |
|
| 1734 |
|
| 1735 |
function: HP_AttrBoxSInt16 |
| 1736 |
|
| 1737 |
purpose: Add four 16-bit signed integer values to the |
| 1738 |
attribute list. The first two values represent the upper- |
| 1739 |
left point of a bounding box (x1, y1). The last two values |
| 1740 |
represent the lower-right point of a bounding box (x2, y2). |
| 1741 |
|
| 1742 |
parameters: name data type / description |
| 1743 |
----------------- ------------------------------------- |
| 1744 |
x1Value HP_SInt16 / The 16-bit integer x1 value to |
| 1745 |
be added to the attribute list |
| 1746 |
|
| 1747 |
y1Value HP_SInt16 / The 16-bit integer y1 value to |
| 1748 |
be added to the attribute list |
| 1749 |
|
| 1750 |
x2Value HP_SInt16 / The 16-bit integer x2 value to |
| 1751 |
be added to the attribute list |
| 1752 |
|
| 1753 |
y2Value HP_SInt16 / The 16-bit integer y2 value to |
| 1754 |
be added to the attribute list |
| 1755 |
|
| 1756 |
comments: The behavior of this function is binding-dependent. This |
| 1757 |
implementation places the values in the protocol byte stream. |
| 1758 |
|
| 1759 |
*****************************************************************************/ |
| 1760 |
HP_StdFuncPrefix HP_AttrBoxSInt16(HP_StreamHandleType pStream, HP_SInt16 x1Value, HP_SInt16 y1Value, |
| 1761 |
HP_SInt16 x2Value, HP_SInt16 y2Value) |
| 1762 |
{ |
| 1763 |
|
| 1764 |
|
| 1765 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1766 |
|
| 1767 |
if (HP_NoErrors(pStream)) |
| 1768 |
{ |
| 1769 |
|
| 1770 |
HP_AddToListByte(pStream, (HP_UByte) HP_SInt16Box); |
| 1771 |
if (HP_NoErrors(pStream)) |
| 1772 |
{ |
| 1773 |
HP_AddToListInt16(pStream, (HP_UInt16) x1Value); |
| 1774 |
} |
| 1775 |
if (HP_NoErrors(pStream)) |
| 1776 |
{ |
| 1777 |
HP_AddToListInt16(pStream, (HP_UInt16) y1Value); |
| 1778 |
} |
| 1779 |
if (HP_NoErrors(pStream)) |
| 1780 |
{ |
| 1781 |
HP_AddToListInt16(pStream, (HP_UInt16) x2Value); |
| 1782 |
} |
| 1783 |
if (HP_NoErrors(pStream)) |
| 1784 |
{ |
| 1785 |
HP_AddToListInt16(pStream, (HP_UInt16) y2Value); |
| 1786 |
} |
| 1787 |
|
| 1788 |
} |
| 1789 |
|
| 1790 |
} |
| 1791 |
|
| 1792 |
|
| 1793 |
/***************************************************************************** |
| 1794 |
|
| 1795 |
|
| 1796 |
function: HP_AttrBoxUInt32 |
| 1797 |
|
| 1798 |
purpose: Add four 32-bit unsigned integer values to the |
| 1799 |
attribute list. The first two values represent the upper- |
| 1800 |
left point of a bounding box (x1, y1). The last two values |
| 1801 |
represent the lower-right point of a bounding box (x2, y2). |
| 1802 |
|
| 1803 |
parameters: name data type / description |
| 1804 |
----------------- ------------------------------------- |
| 1805 |
x1Value HP_UInt32 / The 32-bit integer x1 value to |
| 1806 |
be added to the attribute list |
| 1807 |
|
| 1808 |
y1Value HP_UInt32 / The 32-bit integer y1 value to |
| 1809 |
be added to the attribute list |
| 1810 |
|
| 1811 |
x2Value HP_UInt32 / The 32-bit integer x2 value to |
| 1812 |
be added to the attribute list |
| 1813 |
|
| 1814 |
y2Value HP_UInt32 / The 32-bit integer y2 value to |
| 1815 |
be added to the attribute list |
| 1816 |
|
| 1817 |
comments: The behavior of this function is binding-dependent. This |
| 1818 |
implementation places the values in the protocol byte stream. |
| 1819 |
|
| 1820 |
*****************************************************************************/ |
| 1821 |
HP_StdFuncPrefix HP_AttrBoxUInt32(HP_StreamHandleType pStream, HP_UInt32 x1Value, HP_UInt32 y1Value, |
| 1822 |
HP_UInt32 x2Value, HP_UInt32 y2Value) |
| 1823 |
{ |
| 1824 |
|
| 1825 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1826 |
|
| 1827 |
if (HP_NoErrors(pStream)) |
| 1828 |
{ |
| 1829 |
|
| 1830 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt32Box); |
| 1831 |
if (HP_NoErrors(pStream)) |
| 1832 |
{ |
| 1833 |
HP_AddToListInt32(pStream, (HP_UInt32) x1Value); |
| 1834 |
} |
| 1835 |
if (HP_NoErrors(pStream)) |
| 1836 |
{ |
| 1837 |
HP_AddToListInt32(pStream, (HP_UInt32) y1Value); |
| 1838 |
} |
| 1839 |
if (HP_NoErrors(pStream)) |
| 1840 |
{ |
| 1841 |
HP_AddToListInt32(pStream, (HP_UInt32) x2Value); |
| 1842 |
} |
| 1843 |
if (HP_NoErrors(pStream)) |
| 1844 |
{ |
| 1845 |
HP_AddToListInt32(pStream, (HP_UInt32) y2Value); |
| 1846 |
} |
| 1847 |
|
| 1848 |
} |
| 1849 |
|
| 1850 |
} |
| 1851 |
|
| 1852 |
/***************************************************************************** |
| 1853 |
|
| 1854 |
|
| 1855 |
function: HP_AttrBoxSInt32 |
| 1856 |
|
| 1857 |
purpose: Add four 32-bit signed integer values to the |
| 1858 |
attribute list. The first two values represent the upper- |
| 1859 |
left point of a bounding box (x1, y1). The last two values |
| 1860 |
represent the lower-right point of a bounding box (x2, y2). |
| 1861 |
|
| 1862 |
parameters: name data type / description |
| 1863 |
----------------- ------------------------------------- |
| 1864 |
x1Value HP_SInt32 / The 32-bit integer x1 value to |
| 1865 |
be added to the attribute list |
| 1866 |
|
| 1867 |
y1Value HP_SInt32 / The 32-bit integer y1 value to |
| 1868 |
be added to the attribute list |
| 1869 |
|
| 1870 |
x2Value HP_SInt32 / The 32-bit integer x2 value to |
| 1871 |
be added to the attribute list |
| 1872 |
|
| 1873 |
y2Value HP_SInt32 / The 32-bit integer y2 value to |
| 1874 |
be added to the attribute list |
| 1875 |
|
| 1876 |
comments: The behavior of this function is binding-dependent. This |
| 1877 |
implementation places the values in the protocol byte stream. |
| 1878 |
|
| 1879 |
*****************************************************************************/ |
| 1880 |
HP_StdFuncPrefix HP_AttrBoxSInt32(HP_StreamHandleType pStream, HP_SInt32 x1Value, HP_SInt32 y1Value, |
| 1881 |
HP_SInt32 x2Value, HP_SInt32 y2Value) |
| 1882 |
{ |
| 1883 |
|
| 1884 |
|
| 1885 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1886 |
|
| 1887 |
if (HP_NoErrors(pStream)) |
| 1888 |
{ |
| 1889 |
|
| 1890 |
HP_AddToListByte(pStream, (HP_UByte) HP_SInt32Box); |
| 1891 |
if (HP_NoErrors(pStream)) |
| 1892 |
{ |
| 1893 |
HP_AddToListInt32(pStream, (HP_UInt32) x1Value); |
| 1894 |
} |
| 1895 |
if (HP_NoErrors(pStream)) |
| 1896 |
{ |
| 1897 |
HP_AddToListInt32(pStream, (HP_UInt32) y1Value); |
| 1898 |
} |
| 1899 |
if (HP_NoErrors(pStream)) |
| 1900 |
{ |
| 1901 |
HP_AddToListInt32(pStream, (HP_UInt32) x2Value); |
| 1902 |
} |
| 1903 |
if (HP_NoErrors(pStream)) |
| 1904 |
{ |
| 1905 |
HP_AddToListInt32(pStream, (HP_UInt32) y2Value); |
| 1906 |
} |
| 1907 |
|
| 1908 |
} |
| 1909 |
} |
| 1910 |
|
| 1911 |
|
| 1912 |
/***************************************************************************** |
| 1913 |
|
| 1914 |
|
| 1915 |
function: HP_AttrBoxReal32 |
| 1916 |
|
| 1917 |
purpose: Add four 32-bit real (floating point) values to the |
| 1918 |
attribute list. The first two values represent the upper- |
| 1919 |
left point of a bounding box (x1, y1). The last two values |
| 1920 |
represent the lower-right point of a bounding box (x2, y2). |
| 1921 |
|
| 1922 |
parameters: name data type / description |
| 1923 |
----------------- ------------------------------------- |
| 1924 |
x1Value HP_Real32 / The 32-bit integer x1 value |
| 1925 |
to be added to the attribute list |
| 1926 |
|
| 1927 |
y1Value HP_Real32 / The 32-bit integer y1 value |
| 1928 |
to be added to the attribute list |
| 1929 |
|
| 1930 |
x2Value HP_Real32 / The 32-bit integer x2 value |
| 1931 |
to be added to the attribute list |
| 1932 |
|
| 1933 |
y2Value HP_Real32 / The 32-bit integer y2 value |
| 1934 |
to be added to the attribute list |
| 1935 |
|
| 1936 |
comments: The behavior of this function is binding-dependent. This |
| 1937 |
implementation places the values in the protocol byte stream. |
| 1938 |
|
| 1939 |
*****************************************************************************/ |
| 1940 |
HP_StdFuncPrefix HP_AttrBoxReal32(HP_StreamHandleType pStream, HP_Real32 x1Value, HP_Real32 y1Value, |
| 1941 |
HP_Real32 x2Value, HP_Real32 y2Value) |
| 1942 |
{ |
| 1943 |
|
| 1944 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1945 |
|
| 1946 |
if (HP_NoErrors(pStream)) |
| 1947 |
{ |
| 1948 |
|
| 1949 |
HP_AddToListByte(pStream, (HP_UByte) HP_Real32Box); |
| 1950 |
|
| 1951 |
if (HP_NoErrors(pStream)) |
| 1952 |
{ |
| 1953 |
HP_AddToListReal32(pStream, (HP_Real32) x1Value); |
| 1954 |
} |
| 1955 |
if (HP_NoErrors(pStream)) |
| 1956 |
{ |
| 1957 |
HP_AddToListReal32(pStream, (HP_Real32) y1Value); |
| 1958 |
} |
| 1959 |
if (HP_NoErrors(pStream)) |
| 1960 |
{ |
| 1961 |
HP_AddToListReal32(pStream, (HP_Real32) x2Value); |
| 1962 |
} |
| 1963 |
if (HP_NoErrors(pStream)) |
| 1964 |
{ |
| 1965 |
HP_AddToListReal32(pStream, (HP_Real32) y2Value); |
| 1966 |
} |
| 1967 |
|
| 1968 |
} |
| 1969 |
|
| 1970 |
} |
| 1971 |
|
| 1972 |
|
| 1973 |
/***************************************************************************** |
| 1974 |
|
| 1975 |
|
| 1976 |
function: HP_AttrUByteArray |
| 1977 |
|
| 1978 |
purpose: Add 8-bit unsigned values to the |
| 1979 |
attribute list in the form of an array |
| 1980 |
|
| 1981 |
parameters: name data type / description |
| 1982 |
----------------- ------------------------------------- |
| 1983 |
array HP_UByte* / Pointer to the array of |
| 1984 |
8-bit values. |
| 1985 |
|
| 1986 |
arrayLen HP_UInt32 / The number of elements in |
| 1987 |
the array. |
| 1988 |
|
| 1989 |
comments: The behavior of this function is binding-dependent. This |
| 1990 |
implementation places the values in the protocol byte stream. |
| 1991 |
|
| 1992 |
*****************************************************************************/ |
| 1993 |
HP_StdFuncPrefix HP_AttrUByteArray(HP_StreamHandleType pStream, HP_pUByte array, HP_UInt32 arrayLen) |
| 1994 |
{ |
| 1995 |
|
| 1996 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 1997 |
|
| 1998 |
if (HP_NoErrors(pStream)) |
| 1999 |
{ |
| 2000 |
|
| 2001 |
HP_AddToListByte(pStream, (HP_UByte) HP_UByteArray); |
| 2002 |
if (HP_NoErrors(pStream)) |
| 2003 |
{ |
| 2004 |
HP_UInt32 index = 0; |
| 2005 |
|
| 2006 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt16Data); |
| 2007 |
if (HP_NoErrors(pStream)) HP_AddToListInt16(pStream, (HP_UInt16) arrayLen); |
| 2008 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2009 |
{ |
| 2010 |
HP_AddToListByte(pStream, (HP_UByte) array[index++]); |
| 2011 |
} |
| 2012 |
} |
| 2013 |
|
| 2014 |
} |
| 2015 |
|
| 2016 |
} |
| 2017 |
|
| 2018 |
/***************************************************************************** |
| 2019 |
|
| 2020 |
|
| 2021 |
function: HP_AttrString |
| 2022 |
|
| 2023 |
purpose: Add 8-bit unsigned values from a string to the |
| 2024 |
attribute list in the form of an array |
| 2025 |
|
| 2026 |
parameters: name data type / description |
| 2027 |
----------------- ------------------------------------- |
| 2028 |
array HP_UByte* / Pointer to the string. |
| 2029 |
|
| 2030 |
arrayLen HP_UInt32 / The number of characters in |
| 2031 |
the string. |
| 2032 |
|
| 2033 |
comments: The behavior of this function is binding-dependent. This |
| 2034 |
implementation places the values in the protocol byte stream. |
| 2035 |
|
| 2036 |
*****************************************************************************/ |
| 2037 |
HP_StdFuncPrefix HP_AttrString(HP_StreamHandleType pStream, HP_pUByte array, HP_UInt32 arrayLen) |
| 2038 |
{ |
| 2039 |
|
| 2040 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2041 |
|
| 2042 |
if (HP_NoErrors(pStream)) |
| 2043 |
{ |
| 2044 |
HP_AddToListByte(pStream, (HP_UByte) HP_String); |
| 2045 |
if (HP_NoErrors(pStream)) |
| 2046 |
{ |
| 2047 |
HP_UInt32 index = 0; |
| 2048 |
|
| 2049 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt16Data); |
| 2050 |
if (HP_NoErrors(pStream)) |
| 2051 |
HP_AddToListInt16(pStream, (HP_UInt16) arrayLen); |
| 2052 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2053 |
{ |
| 2054 |
HP_AddToListByte(pStream, (HP_UByte) array[index++]); |
| 2055 |
} |
| 2056 |
} |
| 2057 |
} |
| 2058 |
|
| 2059 |
} |
| 2060 |
|
| 2061 |
/***************************************************************************** |
| 2062 |
|
| 2063 |
|
| 2064 |
function: HP_AttrUInt16Array |
| 2065 |
|
| 2066 |
purpose: Add 16-bit unsigned integer values to the |
| 2067 |
attribute list in the form of an array |
| 2068 |
|
| 2069 |
parameters: name data type / description |
| 2070 |
----------------- ------------------------------------- |
| 2071 |
array HP_UInt16* / Pointer to the array of |
| 2072 |
16-bit values. |
| 2073 |
|
| 2074 |
arrayLen HP_UInt32/ The number of elements in |
| 2075 |
the array. |
| 2076 |
|
| 2077 |
comments: The behavior of this function is binding-dependent. This |
| 2078 |
implementation places the values in the protocol byte stream. |
| 2079 |
|
| 2080 |
*****************************************************************************/ |
| 2081 |
HP_StdFuncPrefix HP_AttrUInt16Array(HP_StreamHandleType pStream, HP_pUInt16 array, HP_UInt32 arrayLen) |
| 2082 |
{ |
| 2083 |
|
| 2084 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2085 |
|
| 2086 |
if (HP_NoErrors(pStream)) |
| 2087 |
{ |
| 2088 |
|
| 2089 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt16Array); |
| 2090 |
if (HP_NoErrors(pStream)) |
| 2091 |
{ |
| 2092 |
HP_UInt32 index = 0; |
| 2093 |
|
| 2094 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt16Data); |
| 2095 |
if (HP_NoErrors(pStream)) HP_AddToListInt16(pStream, (HP_UInt16) arrayLen); |
| 2096 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2097 |
{ |
| 2098 |
HP_AddToListInt16(pStream, (HP_UInt16) array[index++]); |
| 2099 |
} |
| 2100 |
} |
| 2101 |
|
| 2102 |
} |
| 2103 |
|
| 2104 |
} |
| 2105 |
|
| 2106 |
|
| 2107 |
/***************************************************************************** |
| 2108 |
|
| 2109 |
|
| 2110 |
function: HP_AttrUInt16ToByteArray |
| 2111 |
|
| 2112 |
purpose: Add 16-bit unsigned integer values to the |
| 2113 |
attribute list in the form of a byte array |
| 2114 |
|
| 2115 |
parameters: name data type / description |
| 2116 |
----------------- ------------------------------------- |
| 2117 |
array HP_UInt16* / Pointer to the array of |
| 2118 |
16-bit values. |
| 2119 |
|
| 2120 |
arrayLen HP_UInt32/ The number of elements in |
| 2121 |
the array. |
| 2122 |
|
| 2123 |
comments: The behavior of this function is binding-dependent. This |
| 2124 |
implementation places the values in the protocol byte stream. |
| 2125 |
|
| 2126 |
*****************************************************************************/ |
| 2127 |
HP_StdFuncPrefix HP_AttrUInt16ToByteArray(HP_StreamHandleType pStream, HP_pUInt16 array, HP_UInt32 arrayLen) |
| 2128 |
{ |
| 2129 |
|
| 2130 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2131 |
|
| 2132 |
if (HP_NoErrors(pStream)) |
| 2133 |
{ |
| 2134 |
|
| 2135 |
HP_AddToListByte(pStream, (HP_UByte) HP_UByteArray); |
| 2136 |
if (HP_NoErrors(pStream)) |
| 2137 |
{ |
| 2138 |
HP_UInt32 index = 0; |
| 2139 |
|
| 2140 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt16Data); |
| 2141 |
if (HP_NoErrors(pStream)) HP_AddToListInt16(pStream, (HP_UInt16) arrayLen); |
| 2142 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2143 |
{ |
| 2144 |
HP_AddToListByte(pStream, (HP_UByte) array[index++]); |
| 2145 |
} |
| 2146 |
} |
| 2147 |
|
| 2148 |
} |
| 2149 |
|
| 2150 |
} |
| 2151 |
|
| 2152 |
/***************************************************************************** |
| 2153 |
|
| 2154 |
|
| 2155 |
function: HP_AttrSInt16Array |
| 2156 |
|
| 2157 |
purpose: Add 16-bit signed integer values to the |
| 2158 |
attribute list in the form of an array |
| 2159 |
|
| 2160 |
parameters: name data type / description |
| 2161 |
----------------- ------------------------------------- |
| 2162 |
array HP_UInt16* / Pointer to the array of |
| 2163 |
16-bit values. |
| 2164 |
|
| 2165 |
arrayLen HP_UInt32/ The number of elements in |
| 2166 |
the array. |
| 2167 |
|
| 2168 |
comments: The behavior of this function is binding-dependent. This |
| 2169 |
implementation places the values in the protocol byte stream. |
| 2170 |
|
| 2171 |
*****************************************************************************/ |
| 2172 |
HP_StdFuncPrefix HP_AttrSInt16Array(HP_StreamHandleType pStream, HP_pSInt16 array, HP_UInt32 arrayLen) |
| 2173 |
{ |
| 2174 |
|
| 2175 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2176 |
|
| 2177 |
if (HP_NoErrors(pStream)) |
| 2178 |
{ |
| 2179 |
|
| 2180 |
HP_AddToListByte(pStream, (HP_UByte) HP_SInt16Array); |
| 2181 |
if (HP_NoErrors(pStream)) |
| 2182 |
{ |
| 2183 |
HP_UInt32 index = 0; |
| 2184 |
|
| 2185 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt16Data); |
| 2186 |
if (HP_NoErrors(pStream)) HP_AddToListInt16(pStream, (HP_UInt16) arrayLen); |
| 2187 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2188 |
{ |
| 2189 |
HP_AddToListInt16(pStream, (HP_UInt16) array[index++]); |
| 2190 |
} |
| 2191 |
} |
| 2192 |
|
| 2193 |
} |
| 2194 |
|
| 2195 |
} |
| 2196 |
|
| 2197 |
/***************************************************************************** |
| 2198 |
|
| 2199 |
|
| 2200 |
function: HP_AttrSInt16ToByteArray |
| 2201 |
|
| 2202 |
purpose: Add 16-bit signed integer values to the |
| 2203 |
attribute list in the form of a byte array |
| 2204 |
|
| 2205 |
parameters: name data type / description |
| 2206 |
----------------- ------------------------------------- |
| 2207 |
array HP_UInt16* / Pointer to the array of |
| 2208 |
16-bit values. |
| 2209 |
|
| 2210 |
arrayLen HP_UInt32/ The number of elements in |
| 2211 |
the array. |
| 2212 |
|
| 2213 |
comments: The behavior of this function is binding-dependent. This |
| 2214 |
implementation places the values in the protocol byte stream. |
| 2215 |
|
| 2216 |
*****************************************************************************/ |
| 2217 |
HP_StdFuncPrefix HP_AttrSInt16ToByteArray(HP_StreamHandleType pStream, HP_pSInt16 array, HP_UInt32 arrayLen) |
| 2218 |
{ |
| 2219 |
|
| 2220 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2221 |
|
| 2222 |
if (HP_NoErrors(pStream)) |
| 2223 |
{ |
| 2224 |
|
| 2225 |
HP_AddToListByte(pStream, (HP_UByte) HP_UByteArray); |
| 2226 |
if (HP_NoErrors(pStream)) |
| 2227 |
{ |
| 2228 |
HP_UInt32 index = 0; |
| 2229 |
|
| 2230 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt16Data); |
| 2231 |
if (HP_NoErrors(pStream)) HP_AddToListInt16(pStream, (HP_UInt16) arrayLen); |
| 2232 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2233 |
{ |
| 2234 |
HP_AddToListByte(pStream, (HP_UByte) array[index++]); |
| 2235 |
} |
| 2236 |
} |
| 2237 |
|
| 2238 |
} |
| 2239 |
|
| 2240 |
} |
| 2241 |
|
| 2242 |
/***************************************************************************** |
| 2243 |
|
| 2244 |
|
| 2245 |
function: HP_AttrUInt32Array |
| 2246 |
|
| 2247 |
purpose: Add 32-bit unsigned integer values to the |
| 2248 |
attribute list in the form of an array |
| 2249 |
|
| 2250 |
parameters: name data type / description |
| 2251 |
----------------- ------------------------------------- |
| 2252 |
array HP_UInt32* / Pointer to the array of |
| 2253 |
32-bit values. |
| 2254 |
|
| 2255 |
arrayLen HP_UInt32 / The number of elements in |
| 2256 |
the array. |
| 2257 |
|
| 2258 |
comments: The behavior of this function is binding-dependent. This |
| 2259 |
implementation places the values in the protocol byte stream. |
| 2260 |
|
| 2261 |
*****************************************************************************/ |
| 2262 |
HP_StdFuncPrefix HP_AttrUInt32Array(HP_StreamHandleType pStream, HP_pUInt32 array, HP_UInt32 arrayLen) |
| 2263 |
{ |
| 2264 |
|
| 2265 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2266 |
|
| 2267 |
if (HP_NoErrors(pStream)) |
| 2268 |
{ |
| 2269 |
|
| 2270 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt32Array); |
| 2271 |
if (HP_NoErrors(pStream)) |
| 2272 |
{ |
| 2273 |
HP_UInt32 index = 0; |
| 2274 |
|
| 2275 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt16Data); |
| 2276 |
if (HP_NoErrors(pStream)) HP_AddToListInt16(pStream, (HP_UInt16) arrayLen); |
| 2277 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2278 |
{ |
| 2279 |
HP_AddToListInt32(pStream, (HP_UInt32) array[index++]); |
| 2280 |
} |
| 2281 |
} |
| 2282 |
|
| 2283 |
} |
| 2284 |
|
| 2285 |
} |
| 2286 |
|
| 2287 |
/***************************************************************************** |
| 2288 |
|
| 2289 |
|
| 2290 |
function: HP_AttrSInt32Array |
| 2291 |
|
| 2292 |
purpose: Add 32-bit signed integer values to the |
| 2293 |
attribute list in the form of an array |
| 2294 |
|
| 2295 |
parameters: name data type / description |
| 2296 |
----------------- ------------------------------------- |
| 2297 |
array HP_UInt32* / Pointer to the array of |
| 2298 |
32-bit values. |
| 2299 |
|
| 2300 |
arrayLen HP_UInt32 / The number of elements in |
| 2301 |
the array. |
| 2302 |
|
| 2303 |
comments: The behavior of this function is binding-dependent. This |
| 2304 |
implementation places the values in the protocol byte stream. |
| 2305 |
|
| 2306 |
*****************************************************************************/ |
| 2307 |
HP_StdFuncPrefix HP_AttrSInt32Array(HP_StreamHandleType pStream, HP_pSInt32 array, HP_UInt32 arrayLen) |
| 2308 |
{ |
| 2309 |
|
| 2310 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2311 |
|
| 2312 |
if (HP_NoErrors(pStream)) |
| 2313 |
{ |
| 2314 |
|
| 2315 |
HP_AddToListByte(pStream, (HP_UByte) HP_SInt32Array); |
| 2316 |
if (HP_NoErrors(pStream)) |
| 2317 |
{ |
| 2318 |
HP_UInt32 index = 0; |
| 2319 |
|
| 2320 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt16Data); |
| 2321 |
if (HP_NoErrors(pStream)) HP_AddToListInt16(pStream, (HP_UInt16) arrayLen); |
| 2322 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2323 |
{ |
| 2324 |
HP_AddToListInt32(pStream, (HP_UInt32) array[index++]); |
| 2325 |
} |
| 2326 |
} |
| 2327 |
|
| 2328 |
} |
| 2329 |
|
| 2330 |
} |
| 2331 |
|
| 2332 |
/***************************************************************************** |
| 2333 |
|
| 2334 |
|
| 2335 |
function: HP_AttrReal32Array |
| 2336 |
|
| 2337 |
purpose: Add 32-bit real (floating point) values to the |
| 2338 |
attribute list in the form of an array |
| 2339 |
|
| 2340 |
parameters: name data type / description |
| 2341 |
----------------- ------------------------------------- |
| 2342 |
array HP_Real32* / Pointer to the array of |
| 2343 |
32-bit real values. |
| 2344 |
|
| 2345 |
arrayLen HP_UInt32 / The number of elements in |
| 2346 |
the array. |
| 2347 |
|
| 2348 |
comments: The behavior of this function is binding-dependent. This |
| 2349 |
implementation places the values in the protocol byte stream. |
| 2350 |
|
| 2351 |
*****************************************************************************/ |
| 2352 |
HP_StdFuncPrefix HP_AttrReal32Array(HP_StreamHandleType pStream, HP_pReal32 array, HP_UInt32 arrayLen) |
| 2353 |
{ |
| 2354 |
|
| 2355 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2356 |
|
| 2357 |
if (HP_NoErrors(pStream)) |
| 2358 |
{ |
| 2359 |
|
| 2360 |
HP_AddToListByte(pStream, (HP_UByte) HP_Real32Array); |
| 2361 |
|
| 2362 |
if (HP_NoErrors(pStream)) |
| 2363 |
{ |
| 2364 |
HP_UInt32 index = 0; |
| 2365 |
|
| 2366 |
HP_AddToListByte(pStream, (HP_UByte) HP_UInt16Data); |
| 2367 |
if (HP_NoErrors(pStream)) HP_AddToListInt16(pStream, (HP_UInt16) arrayLen); |
| 2368 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2369 |
{ |
| 2370 |
HP_AddToListReal32(pStream, (HP_Real32) array[index++]); |
| 2371 |
} |
| 2372 |
} |
| 2373 |
|
| 2374 |
} |
| 2375 |
|
| 2376 |
} |
| 2377 |
|
| 2378 |
|
| 2379 |
/***************************************************************************** |
| 2380 |
|
| 2381 |
|
| 2382 |
function: HP_EmbeddedDataPrefix |
| 2383 |
|
| 2384 |
purpose: Add length of embedded data to data stream. Raw |
| 2385 |
data should follow. Automatically choose a byte or |
| 2386 |
32-bit embedded data tag based on the dataLength passed |
| 2387 |
in by the user. |
| 2388 |
|
| 2389 |
parameters: name data type / description |
| 2390 |
----------------- ------------------------------------- |
| 2391 |
dataLength HP_UInt32 / The number of bytes of |
| 2392 |
the data that follows. |
| 2393 |
|
| 2394 |
comments: The behavior of this function is binding-dependent. This |
| 2395 |
implementation places the values in the protocol byte stream. |
| 2396 |
|
| 2397 |
*****************************************************************************/ |
| 2398 |
HP_StdFuncPrefix HP_EmbeddedDataPrefix(HP_StreamHandleType pStream, HP_UInt32 dataLength) |
| 2399 |
{ |
| 2400 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2401 |
|
| 2402 |
if (HP_NoErrors(pStream)) |
| 2403 |
{ |
| 2404 |
if (dataLength < 256) |
| 2405 |
{ |
| 2406 |
HP_AddToListByte(pStream, (HP_UByte) HP_EmbeddedDataByte); /* embedded data byte tag */ |
| 2407 |
if (HP_NoErrors(pStream)) HP_AddToListByte(pStream, (HP_UByte) dataLength); |
| 2408 |
} |
| 2409 |
else |
| 2410 |
{ |
| 2411 |
HP_AddToListByte(pStream, (HP_UByte) HP_EmbeddedData); /* embedded data tag */ |
| 2412 |
if (HP_NoErrors(pStream)) HP_AddToListInt32(pStream, (HP_UInt32) dataLength); |
| 2413 |
} |
| 2414 |
} |
| 2415 |
} |
| 2416 |
/***************************************************************************** |
| 2417 |
function: HP_EmbeddedDataPrefix32 |
| 2418 |
|
| 2419 |
purpose: Add length of embedded data to data stream. Raw |
| 2420 |
data should follow. Use a 32-bit datalength tag. |
| 2421 |
|
| 2422 |
parameters: name data type / description |
| 2423 |
----------------- ------------------------------------- |
| 2424 |
dataLength HP_UInt32 / The number of bytes of |
| 2425 |
the data that follows. |
| 2426 |
|
| 2427 |
comments: The behavior of this function is binding-dependent. This |
| 2428 |
implementation places the values in the protocol byte stream. |
| 2429 |
*****************************************************************************/ |
| 2430 |
HP_StdFuncPrefix HP_EmbeddedDataPrefix32(HP_StreamHandleType pStream, HP_UInt32 dataLength) |
| 2431 |
{ |
| 2432 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2433 |
if (HP_NoErrors(pStream)) |
| 2434 |
{ |
| 2435 |
HP_AddToListByte(pStream, (HP_UByte) HP_EmbeddedData); /* embedded data tag */ |
| 2436 |
if (HP_NoErrors(pStream)) HP_AddToListInt32(pStream, (HP_UInt32) dataLength); |
| 2437 |
} |
| 2438 |
} |
| 2439 |
|
| 2440 |
/***************************************************************************** |
| 2441 |
|
| 2442 |
|
| 2443 |
function: HP_DataUByteArray |
| 2444 |
|
| 2445 |
purpose: Add 8-bit unsigned values to the data source |
| 2446 |
from an array as embedded data |
| 2447 |
|
| 2448 |
parameters: name data type / description |
| 2449 |
----------------- ------------------------------------- |
| 2450 |
array HP_UByte* / Pointer to the array of |
| 2451 |
8-bit values. |
| 2452 |
|
| 2453 |
arrayLen HP_UInt32 / The number of bytes in |
| 2454 |
the array. |
| 2455 |
|
| 2456 |
comments: The behavior of this function is binding-dependent. This |
| 2457 |
implementation places the values in the protocol byte stream. |
| 2458 |
|
| 2459 |
*****************************************************************************/ |
| 2460 |
HP_StdFuncPrefix HP_DataUByteArray(HP_StreamHandleType pStream, HP_pUByte array, HP_UInt32 arrayLen) |
| 2461 |
{ |
| 2462 |
|
| 2463 |
|
| 2464 |
HP_UInt32 lengthInBytes, index = 0; |
| 2465 |
|
| 2466 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2467 |
|
| 2468 |
if (HP_NoErrors(pStream)) |
| 2469 |
{ |
| 2470 |
|
| 2471 |
lengthInBytes = arrayLen; |
| 2472 |
|
| 2473 |
HP_EmbeddedDataPrefix32(pStream, (HP_UInt32) lengthInBytes); |
| 2474 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2475 |
{ |
| 2476 |
HP_AddToListByte(pStream, (HP_UByte) array[index++]); |
| 2477 |
} |
| 2478 |
|
| 2479 |
} |
| 2480 |
|
| 2481 |
} |
| 2482 |
/***************************************************************************** |
| 2483 |
|
| 2484 |
|
| 2485 |
function: HP_DataUByteLine |
| 2486 |
|
| 2487 |
purpose: Add 8-bit unsigned values to the data source |
| 2488 |
from an array as embedded data. |
| 2489 |
The array is a scan line. Only the data is dumped. Not the length |
| 2490 |
|
| 2491 |
parameters: name data type / description |
| 2492 |
----------------- ------------------------------------- |
| 2493 |
array HP_UByte* / Pointer to the array of |
| 2494 |
8-bit values. |
| 2495 |
|
| 2496 |
arrayLen HP_UInt32 / The number of bytes in |
| 2497 |
the array. |
| 2498 |
|
| 2499 |
comments: The behavior of this function is binding-dependent. This |
| 2500 |
implementation places the values in the protocol byte stream. |
| 2501 |
|
| 2502 |
*****************************************************************************/ |
| 2503 |
HP_StdFuncPrefix HP_DataUByteLine(HP_StreamHandleType pStream, HP_pUByte array, HP_UInt32 arrayLen) |
| 2504 |
{ |
| 2505 |
|
| 2506 |
|
| 2507 |
HP_UInt32 lengthInBytes, index = 0; |
| 2508 |
|
| 2509 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2510 |
|
| 2511 |
if (HP_NoErrors(pStream)) |
| 2512 |
{ |
| 2513 |
|
| 2514 |
lengthInBytes = arrayLen; |
| 2515 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2516 |
{ |
| 2517 |
HP_AddToListByte(pStream, (HP_UByte) array[index++]); |
| 2518 |
} |
| 2519 |
|
| 2520 |
} |
| 2521 |
|
| 2522 |
} |
| 2523 |
/***************************************************************************** |
| 2524 |
|
| 2525 |
|
| 2526 |
function: HP_DataUInt16Array |
| 2527 |
|
| 2528 |
purpose: Add 16-bit unsigned integer values to the data source |
| 2529 |
from an array as embedded data |
| 2530 |
|
| 2531 |
parameters: name data type / description |
| 2532 |
----------------- ------------------------------------- |
| 2533 |
array HP_UInt16* / Pointer to the array of |
| 2534 |
16-bit values. |
| 2535 |
|
| 2536 |
arrayLen HP_UInt32 / The number of integers in |
| 2537 |
the array. |
| 2538 |
|
| 2539 |
comments: The behavior of this function is binding-dependent. This |
| 2540 |
implementation places the values in the protocol byte stream. |
| 2541 |
|
| 2542 |
*****************************************************************************/ |
| 2543 |
HP_StdFuncPrefix HP_DataUInt16Array(HP_StreamHandleType pStream, HP_pUInt16 array, HP_UInt32 arrayLen) |
| 2544 |
{ |
| 2545 |
|
| 2546 |
|
| 2547 |
HP_UInt32 lengthInBytes, index = 0; |
| 2548 |
|
| 2549 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2550 |
|
| 2551 |
if (HP_NoErrors(pStream)) |
| 2552 |
{ |
| 2553 |
|
| 2554 |
lengthInBytes = arrayLen * 2; |
| 2555 |
|
| 2556 |
HP_EmbeddedDataPrefix32(pStream, (HP_UInt32) lengthInBytes); |
| 2557 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2558 |
{ |
| 2559 |
HP_AddToListInt16(pStream, (HP_UInt16) array[index++]); |
| 2560 |
} |
| 2561 |
|
| 2562 |
} |
| 2563 |
|
| 2564 |
} |
| 2565 |
|
| 2566 |
|
| 2567 |
|
| 2568 |
/***************************************************************************** |
| 2569 |
|
| 2570 |
|
| 2571 |
function: HP_DataUInt16ArrayMSB |
| 2572 |
|
| 2573 |
purpose: Add 16-bit unsigned integer values to the data source |
| 2574 |
from an array as embedded data. Most significant byte |
| 2575 |
first. |
| 2576 |
|
| 2577 |
parameters: name data type / description |
| 2578 |
----------------- ------------------------------------- |
| 2579 |
array HP_UInt16* / Pointer to the array of |
| 2580 |
16-bit values. |
| 2581 |
|
| 2582 |
arrayLen HP_UInt32 / The number of integers in |
| 2583 |
the array. |
| 2584 |
|
| 2585 |
comments: The behavior of this function is binding-dependent. This |
| 2586 |
implementation places the values in the protocol byte stream. |
| 2587 |
|
| 2588 |
*****************************************************************************/ |
| 2589 |
HP_StdFuncPrefix HP_DataUInt16ArrayMSB(HP_StreamHandleType pStream, HP_pUInt16 array, HP_UInt32 arrayLen) |
| 2590 |
{ |
| 2591 |
|
| 2592 |
|
| 2593 |
HP_UInt32 lengthInBytes, index = 0; |
| 2594 |
|
| 2595 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2596 |
|
| 2597 |
if (HP_NoErrors(pStream)) |
| 2598 |
{ |
| 2599 |
|
| 2600 |
lengthInBytes = arrayLen * 2; |
| 2601 |
|
| 2602 |
HP_EmbeddedDataPrefix32(pStream, (HP_UInt32) lengthInBytes); |
| 2603 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2604 |
{ |
| 2605 |
HP_AddToListInt16MSB(pStream, (HP_UInt16) array[index++]); |
| 2606 |
} |
| 2607 |
|
| 2608 |
} |
| 2609 |
|
| 2610 |
} |
| 2611 |
|
| 2612 |
/***************************************************************************** |
| 2613 |
|
| 2614 |
|
| 2615 |
function: HP_DataUInt32Array |
| 2616 |
|
| 2617 |
purpose: Add 32-bit unsigned integer values to the data source |
| 2618 |
from an array as embedded data |
| 2619 |
|
| 2620 |
parameters: name data type / description |
| 2621 |
----------------- ------------------------------------- |
| 2622 |
array HP_UInt32* / Pointer to the array of |
| 2623 |
32-bit values. |
| 2624 |
|
| 2625 |
arrayLen HP_UInt32 / The number of integers in |
| 2626 |
the array. |
| 2627 |
|
| 2628 |
comments: The behavior of this function is binding-dependent. This |
| 2629 |
implementation places the values in the protocol byte stream. |
| 2630 |
|
| 2631 |
*****************************************************************************/ |
| 2632 |
HP_StdFuncPrefix HP_DataUInt32Array(HP_StreamHandleType pStream, HP_pUInt32 array, HP_UInt32 arrayLen) |
| 2633 |
{ |
| 2634 |
|
| 2635 |
|
| 2636 |
HP_UInt32 lengthInBytes, index = 0; |
| 2637 |
|
| 2638 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2639 |
|
| 2640 |
if (HP_NoErrors(pStream)) |
| 2641 |
{ |
| 2642 |
|
| 2643 |
lengthInBytes = arrayLen * 4; |
| 2644 |
|
| 2645 |
HP_EmbeddedDataPrefix32(pStream, (HP_UInt32) lengthInBytes); |
| 2646 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2647 |
{ |
| 2648 |
HP_AddToListInt32(pStream, (HP_UInt32) array[index++]); |
| 2649 |
} |
| 2650 |
|
| 2651 |
} |
| 2652 |
|
| 2653 |
|
| 2654 |
} |
| 2655 |
|
| 2656 |
/***************************************************************************** |
| 2657 |
|
| 2658 |
|
| 2659 |
function: HP_DataUInt32ArrayMSB |
| 2660 |
|
| 2661 |
purpose: Add 32-bit unsigned integer values to the data source |
| 2662 |
from an array as embedded data. Most significant byte |
| 2663 |
first. |
| 2664 |
|
| 2665 |
parameters: name data type / description |
| 2666 |
----------------- ------------------------------------- |
| 2667 |
array HP_UInt32* / Pointer to the array of |
| 2668 |
32-bit values. |
| 2669 |
|
| 2670 |
arrayLen HP_UInt32 / The number of integers in |
| 2671 |
the array. |
| 2672 |
|
| 2673 |
comments: The behavior of this function is binding-dependent. This |
| 2674 |
implementation places the values in the protocol byte stream. |
| 2675 |
|
| 2676 |
*****************************************************************************/ |
| 2677 |
HP_StdFuncPrefix HP_DataUInt32ArrayMSB(HP_StreamHandleType pStream, HP_pUInt32 array, HP_UInt32 arrayLen) |
| 2678 |
{ |
| 2679 |
|
| 2680 |
|
| 2681 |
HP_UInt32 lengthInBytes, index = 0; |
| 2682 |
|
| 2683 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2684 |
|
| 2685 |
if (HP_NoErrors(pStream)) |
| 2686 |
{ |
| 2687 |
|
| 2688 |
lengthInBytes = arrayLen * 4; |
| 2689 |
|
| 2690 |
HP_EmbeddedDataPrefix32(pStream, (HP_UInt32) lengthInBytes); |
| 2691 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2692 |
{ |
| 2693 |
HP_AddToListInt32MSB(pStream, (HP_UInt32) array[index++]); |
| 2694 |
} |
| 2695 |
|
| 2696 |
} |
| 2697 |
|
| 2698 |
|
| 2699 |
} |
| 2700 |
|
| 2701 |
/***************************************************************************** |
| 2702 |
|
| 2703 |
|
| 2704 |
function: HP_DataReal32Array |
| 2705 |
|
| 2706 |
purpose: Add 32-bit real values to the data source |
| 2707 |
from an array as embedded data |
| 2708 |
|
| 2709 |
parameters: name data type / description |
| 2710 |
----------------- ------------------------------------- |
| 2711 |
array HP_Real32* / Pointer to the array of |
| 2712 |
real 32-bit values. |
| 2713 |
|
| 2714 |
arrayLen HP_UInt32 / The number of reals in |
| 2715 |
the array. |
| 2716 |
|
| 2717 |
comments: The behavior of this function is binding-dependent. This |
| 2718 |
implementation places the values in the protocol byte stream. |
| 2719 |
|
| 2720 |
*****************************************************************************/ |
| 2721 |
HP_StdFuncPrefix HP_DataReal32Array(HP_StreamHandleType pStream, HP_pReal32 array, HP_UInt32 arrayLen) |
| 2722 |
{ |
| 2723 |
|
| 2724 |
|
| 2725 |
HP_UInt32 lengthInBytes, index = 0; |
| 2726 |
|
| 2727 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2728 |
|
| 2729 |
if (HP_NoErrors(pStream)) |
| 2730 |
{ |
| 2731 |
|
| 2732 |
lengthInBytes = arrayLen * 4; |
| 2733 |
|
| 2734 |
HP_EmbeddedDataPrefix32(pStream, (HP_UInt32) lengthInBytes); |
| 2735 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2736 |
{ |
| 2737 |
HP_AddToListReal32(pStream, (HP_Real32) array[index++]); |
| 2738 |
} |
| 2739 |
|
| 2740 |
} |
| 2741 |
|
| 2742 |
|
| 2743 |
} |
| 2744 |
|
| 2745 |
/***************************************************************************** |
| 2746 |
|
| 2747 |
|
| 2748 |
function: HP_DataReal32ArrayMSB |
| 2749 |
|
| 2750 |
purpose: Add 32-bit real values to the data source |
| 2751 |
from an array as embedded data in Most Significant |
| 2752 |
Byte First format |
| 2753 |
|
| 2754 |
parameters: name data type / description |
| 2755 |
----------------- ------------------------------------- |
| 2756 |
array HP_Real32* / Pointer to the array of |
| 2757 |
real 32-bit values. |
| 2758 |
|
| 2759 |
arrayLen HP_UInt32 / The number of reals in |
| 2760 |
the array. |
| 2761 |
|
| 2762 |
comments: The behavior of this function is binding-dependent. This |
| 2763 |
implementation places the values in the protocol byte stream. |
| 2764 |
|
| 2765 |
*****************************************************************************/ |
| 2766 |
HP_StdFuncPrefix HP_DataReal32ArrayMSB(HP_StreamHandleType pStream, HP_pReal32 array, HP_UInt32 arrayLen) |
| 2767 |
{ |
| 2768 |
|
| 2769 |
|
| 2770 |
HP_UInt32 lengthInBytes, index = 0; |
| 2771 |
|
| 2772 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2773 |
|
| 2774 |
if (HP_NoErrors(pStream)) |
| 2775 |
{ |
| 2776 |
|
| 2777 |
lengthInBytes = arrayLen * 4; |
| 2778 |
|
| 2779 |
HP_EmbeddedDataPrefix32(pStream, (HP_UInt32) lengthInBytes); |
| 2780 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 2781 |
{ |
| 2782 |
HP_AddToListReal32MSB(pStream, (HP_Real32) array[index++]); |
| 2783 |
} |
| 2784 |
|
| 2785 |
} |
| 2786 |
|
| 2787 |
|
| 2788 |
} |
| 2789 |
|
| 2790 |
|
| 2791 |
/***************************************************************************** |
| 2792 |
|
| 2793 |
|
| 2794 |
function: HP_RawUByte |
| 2795 |
|
| 2796 |
purpose: Add an raw 8-bit unsigned value to the data stream |
| 2797 |
|
| 2798 |
parameters: name data type / description |
| 2799 |
----------------- ------------------------------------- |
| 2800 |
intValue HP_UByte / The 8-bit integer value to be |
| 2801 |
added to the data source |
| 2802 |
|
| 2803 |
comments: The behavior of this function is binding-dependent. This |
| 2804 |
implementation places the value in the protocol byte stream. |
| 2805 |
|
| 2806 |
*****************************************************************************/ |
| 2807 |
HP_StdFuncPrefix HP_RawUByte(HP_StreamHandleType pStream, HP_UByte intValue) |
| 2808 |
{ |
| 2809 |
|
| 2810 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2811 |
|
| 2812 |
if (HP_NoErrors(pStream)) |
| 2813 |
{ |
| 2814 |
|
| 2815 |
HP_AddToListByte(pStream, (HP_UByte) intValue); |
| 2816 |
|
| 2817 |
} |
| 2818 |
|
| 2819 |
} |
| 2820 |
|
| 2821 |
|
| 2822 |
/***************************************************************************** |
| 2823 |
|
| 2824 |
|
| 2825 |
function: HP_RawUInt16 |
| 2826 |
|
| 2827 |
purpose: Add a raw 16-bit unsigned integer value to the data stream |
| 2828 |
|
| 2829 |
parameters: name data type / description |
| 2830 |
----------------- ------------------------------------- |
| 2831 |
intValue HP_UInt16 / The 16-bit integer value to be |
| 2832 |
added to the data stream |
| 2833 |
|
| 2834 |
comments: The behavior of this function is binding-dependent. This |
| 2835 |
implementation places the value in the protocol byte stream. |
| 2836 |
|
| 2837 |
*****************************************************************************/ |
| 2838 |
HP_StdFuncPrefix HP_RawUInt16(HP_StreamHandleType pStream, HP_UInt16 intValue) |
| 2839 |
{ |
| 2840 |
|
| 2841 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2842 |
|
| 2843 |
if (HP_NoErrors(pStream)) |
| 2844 |
{ |
| 2845 |
|
| 2846 |
HP_AddToListInt16(pStream, (HP_UInt16) intValue); |
| 2847 |
|
| 2848 |
} |
| 2849 |
|
| 2850 |
} |
| 2851 |
|
| 2852 |
/***************************************************************************** |
| 2853 |
|
| 2854 |
|
| 2855 |
function: HP_RawUInt16MSB |
| 2856 |
|
| 2857 |
purpose: Add a raw 16-bit unsigned integer value to the data stream |
| 2858 |
|
| 2859 |
parameters: name data type / description |
| 2860 |
----------------- ------------------------------------- |
| 2861 |
intValue HP_UInt16 / The 16-bit integer value to be |
| 2862 |
added to the data stream in Most |
| 2863 |
Byte First format |
| 2864 |
|
| 2865 |
comments: The behavior of this function is binding-dependent. This |
| 2866 |
implementation places the value in the protocol byte stream. |
| 2867 |
|
| 2868 |
*****************************************************************************/ |
| 2869 |
HP_StdFuncPrefix HP_RawUInt16MSB(HP_StreamHandleType pStream, HP_UInt16 intValue) |
| 2870 |
{ |
| 2871 |
|
| 2872 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2873 |
|
| 2874 |
if (HP_NoErrors(pStream)) |
| 2875 |
{ |
| 2876 |
|
| 2877 |
HP_AddToListInt16MSB(pStream, (HP_UInt16) intValue); |
| 2878 |
|
| 2879 |
} |
| 2880 |
|
| 2881 |
} |
| 2882 |
|
| 2883 |
|
| 2884 |
/***************************************************************************** |
| 2885 |
|
| 2886 |
|
| 2887 |
function: HP_RawUInt32 |
| 2888 |
|
| 2889 |
purpose: Add a raw 32-bit unsigned integer value to the data stream |
| 2890 |
|
| 2891 |
parameters: name data type / description |
| 2892 |
----------------- ------------------------------------- |
| 2893 |
intValue HP_UInt32 / The 32-bit integer value to be |
| 2894 |
added to the data stream |
| 2895 |
|
| 2896 |
comments: The behavior of this function is binding-dependent. This |
| 2897 |
implementation places the value in the protocol byte stream. |
| 2898 |
|
| 2899 |
*****************************************************************************/ |
| 2900 |
HP_StdFuncPrefix HP_RawUInt32(HP_StreamHandleType pStream, HP_UInt32 intValue) |
| 2901 |
{ |
| 2902 |
|
| 2903 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2904 |
|
| 2905 |
if (HP_NoErrors(pStream)) |
| 2906 |
{ |
| 2907 |
|
| 2908 |
HP_AddToListInt32(pStream, (HP_UInt32) intValue); |
| 2909 |
|
| 2910 |
} |
| 2911 |
|
| 2912 |
} |
| 2913 |
|
| 2914 |
/***************************************************************************** |
| 2915 |
|
| 2916 |
|
| 2917 |
function: HP_RawUInt32MSB |
| 2918 |
|
| 2919 |
purpose: Add a raw 32-bit unsigned integer value to the data stream |
| 2920 |
|
| 2921 |
parameters: name data type / description |
| 2922 |
----------------- ------------------------------------- |
| 2923 |
intValue HP_UInt32 / The 32-bit integer value to be |
| 2924 |
added to the data stream in Most |
| 2925 |
Significant Byte First format |
| 2926 |
|
| 2927 |
comments: The behavior of this function is binding-dependent. This |
| 2928 |
implementation places the value in the protocol byte stream. |
| 2929 |
|
| 2930 |
*****************************************************************************/ |
| 2931 |
HP_StdFuncPrefix HP_RawUInt32MSB(HP_StreamHandleType pStream, HP_UInt32 intValue) |
| 2932 |
{ |
| 2933 |
|
| 2934 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2935 |
|
| 2936 |
if (HP_NoErrors(pStream)) |
| 2937 |
{ |
| 2938 |
|
| 2939 |
HP_AddToListInt32MSB(pStream, (HP_UInt32) intValue); |
| 2940 |
|
| 2941 |
} |
| 2942 |
|
| 2943 |
} |
| 2944 |
|
| 2945 |
/***************************************************************************** |
| 2946 |
|
| 2947 |
|
| 2948 |
function: HP_RawReal32 |
| 2949 |
|
| 2950 |
purpose: Add a raw 32-bit real value to the data stream |
| 2951 |
|
| 2952 |
parameters: name data type / description |
| 2953 |
----------------- ------------------------------------- |
| 2954 |
intValue HP_Real32 / The 32-bit real value to be |
| 2955 |
added to the data stream |
| 2956 |
|
| 2957 |
comments: The behavior of this function is binding-dependent. This |
| 2958 |
implementation places the value in the protocol byte stream. |
| 2959 |
|
| 2960 |
*****************************************************************************/ |
| 2961 |
HP_StdFuncPrefix HP_RawReal32(HP_StreamHandleType pStream, HP_Real32 realValue) |
| 2962 |
{ |
| 2963 |
|
| 2964 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2965 |
|
| 2966 |
if (HP_NoErrors(pStream)) |
| 2967 |
{ |
| 2968 |
|
| 2969 |
HP_AddToListReal32(pStream, (HP_Real32) realValue); |
| 2970 |
|
| 2971 |
} |
| 2972 |
|
| 2973 |
} |
| 2974 |
|
| 2975 |
/***************************************************************************** |
| 2976 |
|
| 2977 |
|
| 2978 |
function: HP_RawReal32MSB |
| 2979 |
|
| 2980 |
purpose: Add a raw 32-bit real value to the data stream |
| 2981 |
|
| 2982 |
parameters: name data type / description |
| 2983 |
----------------- ------------------------------------- |
| 2984 |
intValue HP_Real32 / The 32-bit real value to be |
| 2985 |
added to the data stream in Most |
| 2986 |
Significant Byte First format |
| 2987 |
|
| 2988 |
comments: The behavior of this function is binding-dependent. This |
| 2989 |
implementation places the value in the protocol byte stream. |
| 2990 |
|
| 2991 |
*****************************************************************************/ |
| 2992 |
HP_StdFuncPrefix HP_RawReal32MSB(HP_StreamHandleType pStream, HP_Real32 realValue) |
| 2993 |
{ |
| 2994 |
|
| 2995 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 2996 |
|
| 2997 |
if (HP_NoErrors(pStream)) |
| 2998 |
{ |
| 2999 |
|
| 3000 |
HP_AddToListReal32MSB(pStream, (HP_Real32) realValue); |
| 3001 |
|
| 3002 |
} |
| 3003 |
|
| 3004 |
} |
| 3005 |
|
| 3006 |
/***************************************************************************** |
| 3007 |
|
| 3008 |
|
| 3009 |
function: HP_RawUByteArray |
| 3010 |
|
| 3011 |
purpose: Add raw 8-bit unsigned values to the data stream |
| 3012 |
from an array |
| 3013 |
|
| 3014 |
parameters: name data type / description |
| 3015 |
----------------- ------------------------------------- |
| 3016 |
array HP_UByte* / Pointer to the array of |
| 3017 |
8-bit values. |
| 3018 |
|
| 3019 |
arrayLen HP_UInt32 / The number of bytes in |
| 3020 |
the array. |
| 3021 |
|
| 3022 |
comments: The behavior of this function is binding-dependent. This |
| 3023 |
implementation places the values in the protocol byte stream. |
| 3024 |
|
| 3025 |
*****************************************************************************/ |
| 3026 |
HP_StdFuncPrefix HP_RawUByteArray(HP_StreamHandleType pStream, HP_pUByte array, HP_UInt32 arrayLen) |
| 3027 |
{ |
| 3028 |
|
| 3029 |
|
| 3030 |
HP_UInt32 index = 0; |
| 3031 |
|
| 3032 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 3033 |
|
| 3034 |
if (HP_NoErrors(pStream)) |
| 3035 |
{ |
| 3036 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 3037 |
{ |
| 3038 |
HP_AddToListByte(pStream, (HP_UByte) array[index++]); |
| 3039 |
} |
| 3040 |
|
| 3041 |
} |
| 3042 |
|
| 3043 |
} |
| 3044 |
|
| 3045 |
/***************************************************************************** |
| 3046 |
|
| 3047 |
|
| 3048 |
function: HP_RawUInt16ToByteArray |
| 3049 |
|
| 3050 |
purpose: Add raw 8-bit unsigned integer values to the data stream |
| 3051 |
from a unsigned 16-bit array |
| 3052 |
|
| 3053 |
parameters: name data type / description |
| 3054 |
----------------- ------------------------------------- |
| 3055 |
array HP_UInt16* / Pointer to the array of |
| 3056 |
16-bit values. |
| 3057 |
|
| 3058 |
arrayLen HP_UInt32 / The number of integers in |
| 3059 |
the array. |
| 3060 |
|
| 3061 |
comments: The behavior of this function is binding-dependent. This |
| 3062 |
implementation places the values in the protocol byte stream. |
| 3063 |
|
| 3064 |
*****************************************************************************/ |
| 3065 |
HP_StdFuncPrefix HP_RawUInt16ToByteArray(HP_StreamHandleType pStream, HP_pUInt16 array, HP_UInt32 arrayLen) |
| 3066 |
{ |
| 3067 |
|
| 3068 |
|
| 3069 |
HP_UInt32 index = 0; |
| 3070 |
|
| 3071 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 3072 |
|
| 3073 |
if (HP_NoErrors(pStream)) |
| 3074 |
{ |
| 3075 |
|
| 3076 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 3077 |
{ |
| 3078 |
HP_AddToListByte(pStream, (HP_UByte) array[index++]); |
| 3079 |
} |
| 3080 |
|
| 3081 |
} |
| 3082 |
|
| 3083 |
} |
| 3084 |
|
| 3085 |
/***************************************************************************** |
| 3086 |
|
| 3087 |
|
| 3088 |
function: HP_RawHugeUByteArray |
| 3089 |
|
| 3090 |
purpose: Add raw 8-bit unsigned values to the data stream |
| 3091 |
from an array using a huge pointer for DOS or |
| 3092 |
Windows. |
| 3093 |
|
| 3094 |
parameters: name data type / description |
| 3095 |
----------------- ------------------------------------- |
| 3096 |
array HP_pCharHuge / Pointer to the array of |
| 3097 |
8-bit values. |
| 3098 |
|
| 3099 |
arrayLen HP_UInt32 / The number of bytes in |
| 3100 |
the array. |
| 3101 |
|
| 3102 |
comments: The behavior of this function is binding-dependent. This |
| 3103 |
implementation places the values in the protocol byte stream. |
| 3104 |
|
| 3105 |
*****************************************************************************/ |
| 3106 |
HP_StdFuncPrefix HP_RawHugeUByteArray(HP_StreamHandleType pStream, HP_pCharHuge array, HP_UInt32 arrayLen) |
| 3107 |
{ |
| 3108 |
|
| 3109 |
|
| 3110 |
HP_UInt32 index = 0; |
| 3111 |
|
| 3112 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 3113 |
|
| 3114 |
if (HP_NoErrors(pStream)) |
| 3115 |
{ |
| 3116 |
|
| 3117 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 3118 |
{ |
| 3119 |
HP_AddToListByte(pStream, (HP_UByte) array[index++]); |
| 3120 |
} |
| 3121 |
|
| 3122 |
} |
| 3123 |
|
| 3124 |
} |
| 3125 |
|
| 3126 |
|
| 3127 |
/***************************************************************************** |
| 3128 |
|
| 3129 |
|
| 3130 |
function: HP_RawUInt16Array |
| 3131 |
|
| 3132 |
purpose: Add raw 16-bit unsigned integer values to the data stream |
| 3133 |
from an array |
| 3134 |
|
| 3135 |
parameters: name data type / description |
| 3136 |
----------------- ------------------------------------- |
| 3137 |
array HP_UInt16* / Pointer to the array of |
| 3138 |
16-bit values. |
| 3139 |
|
| 3140 |
arrayLen HP_UInt32 / The number of integers in |
| 3141 |
the array. |
| 3142 |
|
| 3143 |
comments: The behavior of this function is binding-dependent. This |
| 3144 |
implementation places the values in the protocol byte stream. |
| 3145 |
|
| 3146 |
*****************************************************************************/ |
| 3147 |
HP_StdFuncPrefix HP_RawUInt16Array(HP_StreamHandleType pStream, HP_pUInt16 array, HP_UInt32 arrayLen) |
| 3148 |
{ |
| 3149 |
|
| 3150 |
|
| 3151 |
HP_UInt32 index = 0; |
| 3152 |
|
| 3153 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 3154 |
|
| 3155 |
if (HP_NoErrors(pStream)) |
| 3156 |
{ |
| 3157 |
|
| 3158 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 3159 |
{ |
| 3160 |
HP_AddToListInt16(pStream, (HP_UInt16) array[index++]); |
| 3161 |
} |
| 3162 |
|
| 3163 |
} |
| 3164 |
|
| 3165 |
} |
| 3166 |
|
| 3167 |
/***************************************************************************** |
| 3168 |
|
| 3169 |
|
| 3170 |
function: HP_RawUInt16ArrayMSB |
| 3171 |
|
| 3172 |
purpose: Add raw 16-bit unsigned integer values to the data stream |
| 3173 |
from an array in Most Significant Byte First format |
| 3174 |
|
| 3175 |
parameters: name data type / description |
| 3176 |
----------------- ------------------------------------- |
| 3177 |
array HP_UInt16* / Pointer to the array of |
| 3178 |
16-bit values. |
| 3179 |
|
| 3180 |
arrayLen HP_UInt32 / The number of integers in |
| 3181 |
the array. |
| 3182 |
|
| 3183 |
comments: The behavior of this function is binding-dependent. This |
| 3184 |
implementation places the values in the protocol byte stream. |
| 3185 |
|
| 3186 |
*****************************************************************************/ |
| 3187 |
HP_StdFuncPrefix HP_RawUInt16ArrayMSB(HP_StreamHandleType pStream, HP_pUInt16 array, HP_UInt32 arrayLen) |
| 3188 |
{ |
| 3189 |
|
| 3190 |
|
| 3191 |
HP_UInt32 index = 0; |
| 3192 |
|
| 3193 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 3194 |
|
| 3195 |
if (HP_NoErrors(pStream)) |
| 3196 |
{ |
| 3197 |
|
| 3198 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 3199 |
{ |
| 3200 |
HP_AddToListInt16MSB(pStream, (HP_UInt16) array[index++]); |
| 3201 |
} |
| 3202 |
|
| 3203 |
} |
| 3204 |
|
| 3205 |
} |
| 3206 |
|
| 3207 |
|
| 3208 |
/***************************************************************************** |
| 3209 |
|
| 3210 |
|
| 3211 |
function: HP_RawUInt32Array |
| 3212 |
|
| 3213 |
purpose: Add raw 32-bit unsigned integer values to the data stream |
| 3214 |
from an array |
| 3215 |
|
| 3216 |
parameters: name data type / description |
| 3217 |
----------------- ------------------------------------- |
| 3218 |
array HP_UInt32* / Pointer to the array of |
| 3219 |
32-bit values. |
| 3220 |
|
| 3221 |
arrayLen HP_UInt32 / The number of integers in |
| 3222 |
the array. |
| 3223 |
|
| 3224 |
comments: The behavior of this function is binding-dependent. This |
| 3225 |
implementation places the values in the protocol byte stream. |
| 3226 |
|
| 3227 |
*****************************************************************************/ |
| 3228 |
HP_StdFuncPrefix HP_RawUInt32Array(HP_StreamHandleType pStream, HP_pUInt32 array, HP_UInt32 arrayLen) |
| 3229 |
{ |
| 3230 |
|
| 3231 |
|
| 3232 |
HP_UInt32 index = 0; |
| 3233 |
|
| 3234 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 3235 |
|
| 3236 |
if (HP_NoErrors(pStream)) |
| 3237 |
{ |
| 3238 |
|
| 3239 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 3240 |
{ |
| 3241 |
HP_AddToListInt32(pStream, (HP_UInt32) array[index++]); |
| 3242 |
} |
| 3243 |
|
| 3244 |
} |
| 3245 |
|
| 3246 |
|
| 3247 |
} |
| 3248 |
|
| 3249 |
/***************************************************************************** |
| 3250 |
|
| 3251 |
|
| 3252 |
function: HP_RawUInt32ArrayMSB |
| 3253 |
|
| 3254 |
purpose: Add raw 32-bit unsigned integer values to the data stream |
| 3255 |
from an array in Most Significant Byte First format |
| 3256 |
|
| 3257 |
parameters: name data type / description |
| 3258 |
----------------- ------------------------------------- |
| 3259 |
array HP_UInt32* / Pointer to the array of |
| 3260 |
32-bit values. |
| 3261 |
|
| 3262 |
arrayLen HP_UInt32 / The number of integers in |
| 3263 |
the array. |
| 3264 |
|
| 3265 |
comments: The behavior of this function is binding-dependent. This |
| 3266 |
implementation places the values in the protocol byte stream. |
| 3267 |
|
| 3268 |
*****************************************************************************/ |
| 3269 |
HP_StdFuncPrefix HP_RawUInt32ArrayMSB(HP_StreamHandleType pStream, HP_pUInt32 array, HP_UInt32 arrayLen) |
| 3270 |
{ |
| 3271 |
|
| 3272 |
|
| 3273 |
HP_UInt32 index = 0; |
| 3274 |
|
| 3275 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 3276 |
|
| 3277 |
if (HP_NoErrors(pStream)) |
| 3278 |
{ |
| 3279 |
|
| 3280 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 3281 |
{ |
| 3282 |
HP_AddToListInt32MSB(pStream, (HP_UInt32) array[index++]); |
| 3283 |
} |
| 3284 |
|
| 3285 |
} |
| 3286 |
|
| 3287 |
|
| 3288 |
} |
| 3289 |
|
| 3290 |
/***************************************************************************** |
| 3291 |
|
| 3292 |
|
| 3293 |
function: HP_RawReal32Array |
| 3294 |
|
| 3295 |
purpose: Add raw 32-bit real values to the data stream |
| 3296 |
from an array |
| 3297 |
|
| 3298 |
parameters: name data type / description |
| 3299 |
----------------- ------------------------------------- |
| 3300 |
array HP_Real32* / Pointer to the array of |
| 3301 |
32-bit values. |
| 3302 |
|
| 3303 |
arrayLen HP_Real32 / The number of reals in |
| 3304 |
the array. |
| 3305 |
|
| 3306 |
comments: The behavior of this function is binding-dependent. This |
| 3307 |
implementation places the values in the protocol byte stream. |
| 3308 |
|
| 3309 |
*****************************************************************************/ |
| 3310 |
HP_StdFuncPrefix HP_RawReal32Array(HP_StreamHandleType pStream, HP_pReal32 array, HP_UInt32 arrayLen) |
| 3311 |
{ |
| 3312 |
|
| 3313 |
|
| 3314 |
HP_UInt32 index = 0; |
| 3315 |
|
| 3316 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 3317 |
|
| 3318 |
if (HP_NoErrors(pStream)) |
| 3319 |
{ |
| 3320 |
|
| 3321 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 3322 |
{ |
| 3323 |
HP_AddToListReal32(pStream, (HP_Real32) array[index++]); |
| 3324 |
} |
| 3325 |
|
| 3326 |
} |
| 3327 |
|
| 3328 |
|
| 3329 |
} |
| 3330 |
|
| 3331 |
|
| 3332 |
/***************************************************************************** |
| 3333 |
|
| 3334 |
|
| 3335 |
function: HP_RawReal32ArrayMSB |
| 3336 |
|
| 3337 |
purpose: Add raw 32-bit real values to the data stream |
| 3338 |
from an array in Most Significant Byte First format |
| 3339 |
|
| 3340 |
parameters: name data type / description |
| 3341 |
----------------- ------------------------------------- |
| 3342 |
array HP_Real32* / Pointer to the array of |
| 3343 |
32-bit values. |
| 3344 |
|
| 3345 |
arrayLen HP_Real32 / The number of reals in |
| 3346 |
the array. |
| 3347 |
|
| 3348 |
comments: The behavior of this function is binding-dependent. This |
| 3349 |
implementation places the values in the protocol byte stream. |
| 3350 |
|
| 3351 |
*****************************************************************************/ |
| 3352 |
HP_StdFuncPrefix HP_RawReal32ArrayMSB(HP_StreamHandleType pStream, HP_pReal32 array, HP_UInt32 arrayLen) |
| 3353 |
{ |
| 3354 |
|
| 3355 |
|
| 3356 |
HP_UInt32 index = 0; |
| 3357 |
|
| 3358 |
/* Note: all HP_AddToList macros can set the errorCode */ |
| 3359 |
|
| 3360 |
if (HP_NoErrors(pStream)) |
| 3361 |
{ |
| 3362 |
|
| 3363 |
while ((HP_NoErrors(pStream)) && (index < arrayLen)) |
| 3364 |
{ |
| 3365 |
HP_AddToListReal32MSB(pStream, (HP_Real32) array[index++]); |
| 3366 |
} |
| 3367 |
|
| 3368 |
} |
| 3369 |
|
| 3370 |
|
| 3371 |
} |
| 3372 |
|
| 3373 |
/******************************************************************************************** |
| 3374 |
* |
| 3375 |
* function: HP_DataStream() |
| 3376 |
* |
| 3377 |
* Purpose: Used to pass unlimited numbers of randomly placed attributes. This call |
| 3378 |
* can be used to replace ALL other operator calls |
| 3379 |
* |
| 3380 |
* Parameters: name dataType / Description |
| 3381 |
* ----------------------------------------------------------------------------- |
| 3382 |
* pStream HP_StreamHandleType / Pointer to the current data stream |
| 3383 |
* Operator HP_UByte / XL Operator ID, defined in JETLIB.H |
| 3384 |
* ... struct ATTRIBUTE * / Pointer to attribute class defined |
| 3385 |
* in the callers space. There can be |
| 3386 |
* any number of attribute classes |
| 3387 |
* passed in the call, in any order. |
| 3388 |
* NOTE: Because a variable number of |
| 3389 |
* |
| 3390 |
*******************************************************************************************/ |
| 3391 |
|
| 3392 |
HP_StdFuncPrefix HP_DataStream(HP_StreamHandleType pStream, HP_UByte Operator, ...) |
| 3393 |
{ |
| 3394 |
va_list ap; |
| 3395 |
struct ATTRIBUTE *att = NULL; |
| 3396 |
|
| 3397 |
va_start(ap, Operator); |
| 3398 |
while ((att = va_arg(ap, struct ATTRIBUTE *)) != NULL) |
| 3399 |
{ |
| 3400 |
switch (att->Type) |
| 3401 |
{ |
| 3402 |
case HP_UByteData: |
| 3403 |
HP_AttrUByte(pStream, att->val.ubyte); |
| 3404 |
break; |
| 3405 |
case HP_UInt16Data: |
| 3406 |
HP_AttrUInt16(pStream, att->val.uint16); |
| 3407 |
break; |
| 3408 |
case HP_UInt32Data: |
| 3409 |
HP_AttrUInt32(pStream, att->val.uint32); |
| 3410 |
break; |
| 3411 |
case HP_SInt16Data: |
| 3412 |
HP_AttrSInt16(pStream, att->val.sint16); |
| 3413 |
break; |
| 3414 |
case HP_SInt32Data: |
| 3415 |
HP_AttrSInt32(pStream, att->val.sint32); |
| 3416 |
break; |
| 3417 |
case HP_Real32Data: |
| 3418 |
HP_AttrReal32(pStream, att->val.real32); |
| 3419 |
break; |
| 3420 |
case HP_UByteArray: |
| 3421 |
HP_AttrUByteArray(pStream, att->val.ubyte_array, att->arrayLen); |
| 3422 |
break; |
| 3423 |
case HP_UInt16Array: |
| 3424 |
HP_AttrUInt16Array(pStream, att->val.uint16_array, att->arrayLen); |
| 3425 |
break; |
| 3426 |
case HP_UInt32Array: |
| 3427 |
HP_AttrUInt32Array(pStream, att->val.uint32_array, att->arrayLen); |
| 3428 |
break; |
| 3429 |
case HP_SInt16Array: |
| 3430 |
HP_AttrSInt16Array(pStream, att->val.sint16_array, att->arrayLen); |
| 3431 |
break; |
| 3432 |
case HP_SInt32Array: |
| 3433 |
HP_AttrSInt32Array(pStream, att->val.sint32_array, att->arrayLen); |
| 3434 |
break; |
| 3435 |
case HP_Real32Array: |
| 3436 |
HP_AttrReal32Array(pStream, att->val.real32_array, att->arrayLen); |
| 3437 |
break; |
| 3438 |
case HP_UByteXy: |
| 3439 |
HP_AttrXyUByte(pStream, att->val.UByte_XY.x, |
| 3440 |
att->val.UByte_XY.y); |
| 3441 |
break; |
| 3442 |
case HP_UInt16Xy: |
| 3443 |
HP_AttrXyUInt16(pStream, att->val.UInt16_XY.x, |
| 3444 |
att->val.UInt16_XY.y); |
| 3445 |
break; |
| 3446 |
case HP_UInt32Xy: |
| 3447 |
HP_AttrXyUInt32(pStream, att->val.UInt32_XY.x, |
| 3448 |
att->val.UInt32_XY.y); |
| 3449 |
break; |
| 3450 |
case HP_SInt16Xy: |
| 3451 |
HP_AttrXySInt16(pStream, att->val.SInt16_XY.x, |
| 3452 |
att->val.SInt16_XY.y); |
| 3453 |
break; |
| 3454 |
case HP_SInt32Xy: |
| 3455 |
HP_AttrXySInt32(pStream, att->val.SInt32_XY.x, |
| 3456 |
att->val.SInt32_XY.y); |
| 3457 |
break; |
| 3458 |
case HP_Real32Xy: |
| 3459 |
HP_AttrXyReal32(pStream, att->val.Real32_XY.x, |
| 3460 |
att->val.Real32_XY.y); |
| 3461 |
break; |
| 3462 |
case HP_UByteBox: |
| 3463 |
HP_AttrBoxUByte(pStream, att->val.UByte_BOX.x1, |
| 3464 |
att->val.UByte_BOX.y1, |
| 3465 |
att->val.UByte_BOX.x2, |
| 3466 |
att->val.UByte_BOX.y2); |
| 3467 |
case HP_UInt16Box: |
| 3468 |
HP_AttrBoxUInt16(pStream, att->val.UInt16_BOX.x1, |
| 3469 |
att->val.UInt16_BOX.y1, |
| 3470 |
att->val.UInt16_BOX.x2, |
| 3471 |
att->val.UInt16_BOX.y2); |
| 3472 |
break; |
| 3473 |
case HP_UInt32Box: |
| 3474 |
HP_AttrBoxUInt32(pStream, att->val.UInt32_BOX.x1, |
| 3475 |
att->val.UInt32_BOX.y1, |
| 3476 |
att->val.UInt32_BOX.x2, |
| 3477 |
att->val.UInt32_BOX.y2); |
| 3478 |
break; |
| 3479 |
case HP_SInt16Box: |
| 3480 |
HP_AttrBoxSInt16(pStream, att->val.SInt16_BOX.x1, |
| 3481 |
att->val.SInt16_BOX.y1, |
| 3482 |
att->val.SInt16_BOX.x2, |
| 3483 |
att->val.SInt16_BOX.y2); |
| 3484 |
case HP_SInt32Box: |
| 3485 |
HP_AttrBoxSInt32(pStream, att->val.SInt32_BOX.x1, |
| 3486 |
att->val.SInt32_BOX.y1, |
| 3487 |
att->val.SInt32_BOX.x2, |
| 3488 |
att->val.SInt32_BOX.y2); |
| 3489 |
case HP_Real32Box: |
| 3490 |
HP_AttrBoxReal32(pStream, att->val.Real32_BOX.x1, |
| 3491 |
att->val.Real32_BOX.y1, |
| 3492 |
att->val.Real32_BOX.x2, |
| 3493 |
att->val.Real32_BOX.y2); |
| 3494 |
break; |
| 3495 |
} |
| 3496 |
HP_AttrId(pStream, att->Tag); |
| 3497 |
} |
| 3498 |
HP_Operator(pStream, Operator); |
| 3499 |
|
| 3500 |
va_end(ap); |
| 3501 |
} |
| 3502 |
#ifndef __cplusplus |
| 3503 |
HP_StdFuncPrefix HP_InitAttribute(struct ATTRIBUTE *att, HP_UByte aTag, HP_UByte aType ) |
| 3504 |
{ |
| 3505 |
att->Tag = aTag; |
| 3506 |
att->Type = aType; |
| 3507 |
att->arrayLen = 0; |
| 3508 |
att->cksum = (HP_UInt16)aTag * (HP_UInt16)aType; |
| 3509 |
} |
| 3510 |
#endif |
| 3511 |
|
| 3512 |
/******************************************************************************************** |
| 3513 |
* |
| 3514 |
* End Function: HP_DataStream() |
| 3515 |
* |
| 3516 |
*******************************************************************************************/ |
| 3517 |
|
| 3518 |
#ifndef JETASM_BUILD |
| 3519 |
#ifdef DOS_MEM_MODEL |
| 3520 |
#pragma code_seg ( "PCLXL_STREAM_API" ) |
| 3521 |
#endif |
| 3522 |
|
| 3523 |
/*------------------------------------------------------------------ |
| 3524 |
* <PCL XL Stream API Definitions> |
| 3525 |
* |
| 3526 |
* Descriptions: |
| 3527 |
* Each of the following functions correspond to one of the Cheetah |
| 3528 |
* operators in the Feature Reference Manual. All binary binding |
| 3529 |
* protocol translations are hidden behind those APIs. |
| 3530 |
* |
| 3531 |
* NOTE: |
| 3532 |
* If there are optional sets of parameters for an operator |
| 3533 |
* there will be multiple functions for the each operator. |
| 3534 |
* |
| 3535 |
*--------------------------------------------------------------------*/ |
| 3536 |
|
| 3537 |
|
| 3538 |
HP_StdFuncPrefix HP_ArcPath_1( /* ArcPath signature 1 */ |
| 3539 |
|
| 3540 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3541 |
HP_SInt16 x1Val, /* bounding box top left x */ |
| 3542 |
HP_SInt16 y1Val, /* bounding box top left y */ |
| 3543 |
HP_SInt16 x2Val, /* bounding box bottom right x */ |
| 3544 |
HP_SInt16 y2Val, /* bounding box bottom right y */ |
| 3545 |
HP_SInt16 StartPointX, /* starting point x */ |
| 3546 |
HP_SInt16 StartPointY, /* starting point y */ |
| 3547 |
HP_SInt16 EndPointX, /* ending point x */ |
| 3548 |
HP_SInt16 EndPointY, /* ending point y */ |
| 3549 |
HP_UByte arcDirectionEnum) /* arc direction enumeration */ |
| 3550 |
{ |
| 3551 |
HP_AttrBoxSInt16(pStream, x1Val, y1Val,x2Val,y2Val); |
| 3552 |
HP_AttrId(pStream, HP_BoundingBox); |
| 3553 |
HP_AttrXySInt16(pStream, StartPointX, StartPointY); |
| 3554 |
HP_AttrId(pStream, HP_StartPoint); |
| 3555 |
HP_AttrXySInt16(pStream, EndPointX, EndPointY); |
| 3556 |
HP_AttrId(pStream, HP_EndPoint); |
| 3557 |
HP_AttrUByte(pStream, arcDirectionEnum); |
| 3558 |
HP_AttrId(pStream, HP_ArcDirection); |
| 3559 |
HP_Operator(pStream, HP_ArcPath); |
| 3560 |
} |
| 3561 |
|
| 3562 |
|
| 3563 |
HP_StdFuncPrefix HP_ArcPath_2( /* ArcPath signature 2 */ |
| 3564 |
|
| 3565 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3566 |
HP_UInt16 x1Val, /* bounding box top left x */ |
| 3567 |
HP_UInt16 y1Val, /* bounding box top left y */ |
| 3568 |
HP_UInt16 x2Val, /* bounding box bottom right x */ |
| 3569 |
HP_UInt16 y2Val, /* bounding box bottom right y */ |
| 3570 |
HP_UInt16 StartPointX, /* starting point x */ |
| 3571 |
HP_UInt16 StartPointY, /* starting point y */ |
| 3572 |
HP_UInt16 EndPointX, /* ending point x */ |
| 3573 |
HP_UInt16 EndPointY, /* ending point y */ |
| 3574 |
HP_UByte arcDirectionEnum) /* arc direction enumeration */ |
| 3575 |
{ |
| 3576 |
HP_AttrBoxUInt16(pStream, x1Val, y1Val,x2Val,y2Val); |
| 3577 |
HP_AttrId(pStream, HP_BoundingBox); |
| 3578 |
HP_AttrXyUInt16(pStream, StartPointX, StartPointY); |
| 3579 |
HP_AttrId(pStream, HP_StartPoint); |
| 3580 |
HP_AttrXyUInt16(pStream, EndPointX, EndPointY); |
| 3581 |
HP_AttrId(pStream, HP_EndPoint); |
| 3582 |
HP_AttrUByte(pStream, arcDirectionEnum); |
| 3583 |
HP_AttrId(pStream, HP_ArcDirection); |
| 3584 |
HP_Operator(pStream, HP_ArcPath); |
| 3585 |
} |
| 3586 |
|
| 3587 |
|
| 3588 |
HP_StdFuncPrefix HP_ArcPath_3( /* ArcPath signature 3 */ |
| 3589 |
|
| 3590 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3591 |
HP_SInt32 x1Val, /* bounding box top left x */ |
| 3592 |
HP_SInt32 y1Val, /* bounding box top left y */ |
| 3593 |
HP_SInt32 x2Val, /* bounding box bottom right x */ |
| 3594 |
HP_SInt32 y2Val, /* bounding box bottom right y */ |
| 3595 |
HP_SInt32 StartPointX, /* starting point x */ |
| 3596 |
HP_SInt32 StartPointY, /* starting point y */ |
| 3597 |
HP_SInt32 EndPointX, /* ending point x */ |
| 3598 |
HP_SInt32 EndPointY, /* ending point y */ |
| 3599 |
HP_UByte arcDirectionEnum) /* arc direction enumeration */ |
| 3600 |
{ |
| 3601 |
HP_AttrBoxSInt32(pStream, x1Val, y1Val,x2Val,y2Val); |
| 3602 |
HP_AttrId(pStream, HP_BoundingBox); |
| 3603 |
HP_AttrXySInt32(pStream, StartPointX, StartPointY); |
| 3604 |
HP_AttrId(pStream, HP_StartPoint); |
| 3605 |
HP_AttrXySInt32(pStream, EndPointX, EndPointY); |
| 3606 |
HP_AttrId(pStream, HP_EndPoint); |
| 3607 |
HP_AttrUByte(pStream, arcDirectionEnum); |
| 3608 |
HP_AttrId(pStream, HP_ArcDirection); |
| 3609 |
HP_Operator(pStream, HP_ArcPath); |
| 3610 |
} |
| 3611 |
|
| 3612 |
|
| 3613 |
|
| 3614 |
HP_StdFuncPrefix HP_ArcPath_4( /* ArcPath signature 4 */ |
| 3615 |
|
| 3616 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3617 |
HP_Real32 x1Val, /* bounding box top left x */ |
| 3618 |
HP_Real32 y1Val, /* bounding box top left y */ |
| 3619 |
HP_Real32 x2Val, /* bounding box bottom right x */ |
| 3620 |
HP_Real32 y2Val, /* bounding box bottom right y */ |
| 3621 |
HP_Real32 StartPointX, /* starting point x */ |
| 3622 |
HP_Real32 StartPointY, /* starting point y */ |
| 3623 |
HP_Real32 EndPointX, /* ending point x */ |
| 3624 |
HP_Real32 EndPointY, /* ending point y */ |
| 3625 |
HP_UByte arcDirectionEnum) /* arc direction enumeration */ |
| 3626 |
{ |
| 3627 |
HP_AttrBoxReal32(pStream, x1Val, y1Val,x2Val,y2Val); |
| 3628 |
HP_AttrId(pStream, HP_BoundingBox); |
| 3629 |
HP_AttrXyReal32(pStream, StartPointX, StartPointY); |
| 3630 |
HP_AttrId(pStream, HP_StartPoint); |
| 3631 |
HP_AttrXyReal32(pStream, EndPointX, EndPointY); |
| 3632 |
HP_AttrId(pStream, HP_EndPoint); |
| 3633 |
HP_AttrUByte(pStream, arcDirectionEnum); |
| 3634 |
HP_AttrId(pStream, HP_ArcDirection); |
| 3635 |
HP_Operator(pStream, HP_ArcPath); |
| 3636 |
} |
| 3637 |
|
| 3638 |
|
| 3639 |
|
| 3640 |
|
| 3641 |
HP_StdFuncPrefix HP_BeginChar_1( /* BeginChar signature 1 */ |
| 3642 |
|
| 3643 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3644 |
HP_pUByte fontName, /* array for character's font name */ |
| 3645 |
HP_UInt16 fontNameLen) /* length of font name array */ |
| 3646 |
{ |
| 3647 |
HP_AttrUByteArray(pStream, fontName, (HP_UInt32) fontNameLen); |
| 3648 |
HP_AttrId(pStream,HP_FontName); |
| 3649 |
HP_Operator(pStream,HP_BeginChar); |
| 3650 |
} |
| 3651 |
|
| 3652 |
|
| 3653 |
|
| 3654 |
HP_StdFuncPrefix HP_BeginFontHeader_1( /* BeginFontHeader signature 1 */ |
| 3655 |
|
| 3656 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3657 |
HP_pUByte fontName, /* array for font name */ |
| 3658 |
HP_UInt16 fontNameLen, /* length of font name array */ |
| 3659 |
HP_UByte fontFormat) /* number of font format */ |
| 3660 |
{ |
| 3661 |
HP_AttrUByteArray(pStream, fontName, (HP_UInt32) fontNameLen); |
| 3662 |
HP_AttrId(pStream,HP_FontName); |
| 3663 |
HP_AttrUByte(pStream, fontFormat); |
| 3664 |
HP_AttrId(pStream, HP_FontFormat); |
| 3665 |
HP_Operator(pStream,HP_BeginFontHeader); |
| 3666 |
} |
| 3667 |
|
| 3668 |
|
| 3669 |
|
| 3670 |
|
| 3671 |
HP_StdFuncPrefix HP_BeginImage_1( /* BeginImage signature 1 */ |
| 3672 |
|
| 3673 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3674 |
HP_UByte colorMappingEnum, /* color mapping enumeration */ |
| 3675 |
HP_UByte colorDepthEnum, /* color depth enumeration */ |
| 3676 |
HP_UInt16 sourceWidth, /* source image width */ |
| 3677 |
HP_UInt16 sourceHeight, /* source image height */ |
| 3678 |
HP_UInt16 destWidth, /* destination height in user units */ |
| 3679 |
HP_UInt16 destHeight) /* destination width in user units */ |
| 3680 |
|
| 3681 |
{ |
| 3682 |
HP_AttrUByte(pStream, colorMappingEnum); |
| 3683 |
HP_AttrId(pStream, HP_ColorMapping); |
| 3684 |
HP_AttrUByte(pStream, colorDepthEnum); |
| 3685 |
HP_AttrId(pStream, HP_ColorDepth); |
| 3686 |
HP_AttrUInt16(pStream, sourceWidth); |
| 3687 |
HP_AttrId(pStream,HP_SourceWidth); |
| 3688 |
HP_AttrUInt16(pStream, sourceHeight); |
| 3689 |
HP_AttrId(pStream, HP_SourceHeight); |
| 3690 |
HP_AttrXyUInt16(pStream, destWidth, destHeight); |
| 3691 |
HP_AttrId(pStream, HP_DestinationSize); |
| 3692 |
HP_Operator(pStream, HP_BeginImage); |
| 3693 |
} |
| 3694 |
|
| 3695 |
|
| 3696 |
|
| 3697 |
HP_StdFuncPrefix HP_BeginImage_2( /* BeginImage signature 2 */ |
| 3698 |
|
| 3699 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3700 |
HP_UByte colorMappingEnum, /* color mapping enumeration */ |
| 3701 |
HP_UByte colorDepthEnum, /* color depth enumeration */ |
| 3702 |
HP_UInt16 sourceWidth, /* source image width */ |
| 3703 |
HP_UInt16 sourceHeight, /* source image height */ |
| 3704 |
HP_UInt16 destWidth, /* destination height in user units */ |
| 3705 |
HP_UInt16 destHeight) /* destination width in user units */ |
| 3706 |
|
| 3707 |
{ |
| 3708 |
HP_AttrUByte(pStream, colorMappingEnum); |
| 3709 |
HP_AttrId(pStream, HP_ColorMapping); |
| 3710 |
HP_AttrUByte(pStream, colorDepthEnum); |
| 3711 |
HP_AttrId(pStream, HP_ColorDepth); |
| 3712 |
HP_AttrUInt16(pStream, sourceWidth); |
| 3713 |
HP_AttrId(pStream,HP_SourceWidth); |
| 3714 |
HP_AttrUInt16(pStream, sourceHeight); |
| 3715 |
HP_AttrId(pStream, HP_SourceHeight); |
| 3716 |
HP_AttrXyUInt16(pStream, destWidth, destHeight); |
| 3717 |
HP_AttrId(pStream, HP_DestinationSize); |
| 3718 |
HP_Operator(pStream, HP_BeginImage); |
| 3719 |
} |
| 3720 |
|
| 3721 |
HP_StdFuncPrefix HP_BeginImage_3( /* BeginImage signature 3 */ |
| 3722 |
|
| 3723 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3724 |
HP_UByte colorMappingEnum, /* color mapping enumeration */ |
| 3725 |
HP_UByte colorDepthEnum, /* color depth enumeration */ |
| 3726 |
HP_UInt32 sourceWidth, /* source image width */ |
| 3727 |
HP_UInt32 sourceHeight, /* source image height */ |
| 3728 |
HP_UInt16 destWidth, /* destination height in user units */ |
| 3729 |
HP_UInt16 destHeight) /* destination width in user units */ |
| 3730 |
|
| 3731 |
{ |
| 3732 |
HP_AttrUByte(pStream, colorMappingEnum); |
| 3733 |
HP_AttrId(pStream, HP_ColorMapping); |
| 3734 |
HP_AttrUByte(pStream, colorDepthEnum); |
| 3735 |
HP_AttrId(pStream, HP_ColorDepth); |
| 3736 |
HP_AttrUInt32(pStream, sourceWidth); |
| 3737 |
HP_AttrId(pStream,HP_SourceWidth); |
| 3738 |
HP_AttrUInt32(pStream, sourceHeight); |
| 3739 |
HP_AttrId(pStream, HP_SourceHeight); |
| 3740 |
HP_AttrXyUInt16(pStream, destWidth, destHeight); |
| 3741 |
HP_AttrId(pStream, HP_DestinationSize); |
| 3742 |
HP_Operator(pStream, HP_BeginImage); |
| 3743 |
} |
| 3744 |
|
| 3745 |
HP_StdFuncPrefix HP_BeginPage_1( /* BeginPage signature 1 */ |
| 3746 |
|
| 3747 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3748 |
HP_UByte orientationEnum, /* page orientation enumeration */ |
| 3749 |
HP_UByte mediaSizeEnum) /* media size enumeration */ |
| 3750 |
{ |
| 3751 |
HP_AttrUByte(pStream, orientationEnum); |
| 3752 |
HP_AttrId(pStream, HP_Orientation); |
| 3753 |
HP_AttrUByte(pStream, mediaSizeEnum); |
| 3754 |
HP_AttrId(pStream, HP_MediaSize); |
| 3755 |
HP_Operator(pStream, HP_BeginPage); |
| 3756 |
} |
| 3757 |
|
| 3758 |
|
| 3759 |
HP_StdFuncPrefix HP_BeginPage_2( /* BeginPage signature 2 */ |
| 3760 |
|
| 3761 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3762 |
HP_UByte orientationEnum, /* page orientation enumeration */ |
| 3763 |
HP_UInt16 xSize, /* custom media x-axis size */ |
| 3764 |
HP_UInt16 ySize, /* custom media y-axis size */ |
| 3765 |
HP_UByte unitOfMeasureEnum) /* unit of measure enumeration */ |
| 3766 |
{ |
| 3767 |
HP_AttrUByte(pStream, orientationEnum); |
| 3768 |
HP_AttrId(pStream, HP_Orientation); |
| 3769 |
HP_AttrXyUInt16(pStream, xSize, ySize); |
| 3770 |
HP_AttrId(pStream, HP_CustomMediaSize); |
| 3771 |
HP_AttrUByte(pStream, unitOfMeasureEnum); |
| 3772 |
HP_AttrId(pStream, HP_CustomMediaSizeUnits); |
| 3773 |
HP_Operator(pStream, HP_BeginPage); |
| 3774 |
} |
| 3775 |
|
| 3776 |
|
| 3777 |
HP_StdFuncPrefix HP_BeginPage_3( /* BeginPage signature 3 */ |
| 3778 |
|
| 3779 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3780 |
HP_UByte orientationEnum, /* page orientation enumeration */ |
| 3781 |
HP_UByte mediaSizeEnum, /* media size enumeration */ |
| 3782 |
HP_UByte mediaSourceEnum) /* media source enumeration */ |
| 3783 |
{ |
| 3784 |
HP_AttrUByte(pStream, orientationEnum); |
| 3785 |
HP_AttrId(pStream, HP_Orientation); |
| 3786 |
HP_AttrUByte(pStream, mediaSizeEnum); |
| 3787 |
HP_AttrId(pStream, HP_MediaSize); |
| 3788 |
HP_AttrUByte(pStream, mediaSourceEnum); |
| 3789 |
HP_AttrId(pStream, HP_MediaSource); |
| 3790 |
HP_Operator(pStream, HP_BeginPage); |
| 3791 |
} |
| 3792 |
|
| 3793 |
|
| 3794 |
HP_StdFuncPrefix HP_BeginPage_4( /* BeginPage signature 4 */ |
| 3795 |
|
| 3796 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3797 |
HP_UByte orientationEnum, /* page orientation enumeration */ |
| 3798 |
HP_UInt16 xSize, /* custom media x-axis size */ |
| 3799 |
HP_UInt16 ySize, /* custom media y-axis size */ |
| 3800 |
HP_UByte unitOfMeasureEnum, /* unit of measure enumeration */ |
| 3801 |
HP_UByte mediaSourceEnum) /* media Source enumeration */ |
| 3802 |
{ |
| 3803 |
HP_AttrUByte(pStream, orientationEnum); |
| 3804 |
HP_AttrId(pStream, HP_Orientation); |
| 3805 |
HP_AttrXyUInt16(pStream, xSize, ySize); |
| 3806 |
HP_AttrId(pStream, HP_CustomMediaSize); |
| 3807 |
HP_AttrUByte(pStream, unitOfMeasureEnum); |
| 3808 |
HP_AttrId(pStream, HP_CustomMediaSizeUnits); |
| 3809 |
HP_AttrUByte(pStream, mediaSourceEnum); |
| 3810 |
HP_AttrId(pStream, HP_MediaSource); |
| 3811 |
HP_Operator(pStream, HP_BeginPage); |
| 3812 |
} |
| 3813 |
|
| 3814 |
HP_StdFuncPrefix HP_BeginPage_5( /* BeginPage signature 1 */ |
| 3815 |
|
| 3816 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3817 |
HP_UByte orientationEnum, /* page orientation enumeration */ |
| 3818 |
HP_UByte mediaSizeEnum, /* media size enumeration */ |
| 3819 |
HP_UByte DuplexModeEnum, /* Set/Clear duplex mode */ |
| 3820 |
HP_UByte DuplexPageSide) /* Front/Back to start */ |
| 3821 |
{ |
| 3822 |
HP_AttrUByte(pStream, orientationEnum); |
| 3823 |
HP_AttrId(pStream, HP_Orientation); |
| 3824 |
HP_AttrUByte(pStream, mediaSizeEnum); |
| 3825 |
HP_AttrId(pStream, HP_MediaSize); |
| 3826 |
HP_AttrUByte(pStream, DuplexModeEnum); |
| 3827 |
HP_AttrId(pStream, HP_DuplexPageMode); |
| 3828 |
HP_AttrUByte(pStream, DuplexPageSide); |
| 3829 |
HP_AttrId(pStream, HP_DuplexPageSide); |
| 3830 |
HP_Operator(pStream, HP_BeginPage); |
| 3831 |
} |
| 3832 |
|
| 3833 |
HP_StdFuncPrefix HP_BeginRastPattern_1( /* BeginRastPattern signature 1 */ |
| 3834 |
|
| 3835 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3836 |
HP_UByte colorMappingEnum, /* color mapping enumeration */ |
| 3837 |
HP_UByte colorDepthEnum, /* color depth enumeration */ |
| 3838 |
HP_UInt16 sourceWidth, /* source image width */ |
| 3839 |
HP_UInt16 sourceHeight, /* source image height */ |
| 3840 |
HP_UInt16 xHeight, /* destination size x-axis */ |
| 3841 |
HP_UInt16 yHeight, /* destination size y-axis */ |
| 3842 |
HP_SInt16 patternDefineID, /* pattern identifier */ |
| 3843 |
HP_UByte patternPersistence) /* pattern persistence */ |
| 3844 |
{ |
| 3845 |
HP_AttrUByte(pStream, colorMappingEnum); |
| 3846 |
HP_AttrId(pStream, HP_ColorMapping); |
| 3847 |
HP_AttrUByte(pStream, colorDepthEnum); |
| 3848 |
HP_AttrId(pStream, HP_ColorDepth); |
| 3849 |
HP_AttrUInt16(pStream, sourceWidth); |
| 3850 |
HP_AttrId(pStream,HP_SourceWidth); |
| 3851 |
HP_AttrUInt16(pStream, sourceHeight); |
| 3852 |
HP_AttrId(pStream, HP_SourceHeight); |
| 3853 |
HP_AttrXyUInt16(pStream, xHeight,yHeight ); |
| 3854 |
HP_AttrId(pStream, HP_DestinationSize); |
| 3855 |
HP_AttrSInt16(pStream, patternDefineID); |
| 3856 |
HP_AttrId(pStream, HP_PatternDefineID); |
| 3857 |
HP_AttrUByte(pStream, patternPersistence); |
| 3858 |
HP_AttrId(pStream, HP_PatternPersistence); |
| 3859 |
HP_Operator(pStream, HP_BeginRastPattern); |
| 3860 |
} |
| 3861 |
|
| 3862 |
|
| 3863 |
|
| 3864 |
|
| 3865 |
HP_StdFuncPrefix HP_BeginRastPattern_2( /* BeginRastPattern signature 3 */ |
| 3866 |
|
| 3867 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3868 |
HP_UByte colorMappingEnum, /* color mapping enumeration */ |
| 3869 |
HP_UByte colorDepthEnum, /* color depth enumeration */ |
| 3870 |
HP_UInt32 sourceWidth, /* source image width */ |
| 3871 |
HP_UInt32 sourceHeight, /* source image height */ |
| 3872 |
HP_UInt32 xHeight, /* destination size x-axis */ |
| 3873 |
HP_UInt32 yHeight, /* destination size y-axis */ |
| 3874 |
HP_SInt16 patternDefineID) /* pattern identifier */ |
| 3875 |
{ |
| 3876 |
HP_AttrUByte(pStream, colorMappingEnum); |
| 3877 |
HP_AttrId(pStream, HP_ColorMapping); |
| 3878 |
HP_AttrUByte(pStream, colorDepthEnum); |
| 3879 |
HP_AttrId(pStream, HP_ColorDepth); |
| 3880 |
HP_AttrUInt32(pStream, sourceWidth); |
| 3881 |
HP_AttrId(pStream,HP_SourceWidth); |
| 3882 |
HP_AttrUInt32(pStream, sourceHeight); |
| 3883 |
HP_AttrId(pStream, HP_SourceHeight); |
| 3884 |
HP_AttrXyUInt32(pStream, xHeight,yHeight ); |
| 3885 |
HP_AttrId(pStream, HP_DestinationSize); |
| 3886 |
HP_AttrSInt16(pStream, patternDefineID); |
| 3887 |
HP_AttrId(pStream, HP_PatternDefineID); |
| 3888 |
HP_Operator(pStream, HP_BeginRastPattern); |
| 3889 |
} |
| 3890 |
|
| 3891 |
|
| 3892 |
|
| 3893 |
|
| 3894 |
|
| 3895 |
HP_StdFuncPrefix HP_BeginScan_1( /* BeginScan signature 1 */ |
| 3896 |
|
| 3897 |
HP_StreamHandleType pStream) /* stream handle */ |
| 3898 |
|
| 3899 |
{ |
| 3900 |
HP_Operator(pStream, HP_BeginScan); |
| 3901 |
} |
| 3902 |
|
| 3903 |
HP_StdFuncPrefix HP_BeginSession_1( /* BeginSession signature 1 */ |
| 3904 |
|
| 3905 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3906 |
HP_UInt16 xValue, /* x units of measure */ |
| 3907 |
HP_UInt16 yValue, /* y units of measure */ |
| 3908 |
HP_UByte MeasureEnum) /* measure enumeration */ |
| 3909 |
{ |
| 3910 |
|
| 3911 |
HP_AttrXyUInt16(pStream,xValue,yValue); |
| 3912 |
HP_AttrId(pStream,HP_UnitsPerMeasure); |
| 3913 |
HP_AttrUByte(pStream, MeasureEnum); |
| 3914 |
HP_AttrId(pStream,HP_Measure); |
| 3915 |
HP_Operator(pStream,HP_BeginSession); |
| 3916 |
} |
| 3917 |
|
| 3918 |
HP_StdFuncPrefix HP_BeginSession_2( /* BeginSession signature 2 */ |
| 3919 |
|
| 3920 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3921 |
HP_UInt16 xValue, /* x units of measure */ |
| 3922 |
HP_UInt16 yValue, /* y units of measure */ |
| 3923 |
HP_UByte MeasureEnum, /* measure enumeration */ |
| 3924 |
HP_UByte errorReportingEnum) /* error reporting enumeration */ |
| 3925 |
{ |
| 3926 |
|
| 3927 |
HP_AttrXyUInt16(pStream,xValue,yValue); |
| 3928 |
HP_AttrId(pStream,HP_UnitsPerMeasure); |
| 3929 |
HP_AttrUByte(pStream, MeasureEnum); |
| 3930 |
HP_AttrId(pStream,HP_Measure); |
| 3931 |
HP_AttrUByte(pStream, errorReportingEnum); |
| 3932 |
HP_AttrId(pStream,HP_ErrorReport); |
| 3933 |
HP_Operator(pStream,HP_BeginSession); |
| 3934 |
|
| 3935 |
} |
| 3936 |
|
| 3937 |
HP_StdFuncPrefix HP_BeginStream_1( /* BeginStream signature 1 */ |
| 3938 |
|
| 3939 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3940 |
HP_pUByte streamName, /* array for stream name */ |
| 3941 |
HP_UInt16 streamNameLen) /* length of stream name array */ |
| 3942 |
{ |
| 3943 |
|
| 3944 |
HP_AttrUByteArray(pStream, streamName, (HP_UInt32) streamNameLen); |
| 3945 |
HP_AttrId(pStream,HP_StreamName); |
| 3946 |
HP_Operator(pStream,HP_BeginStream); |
| 3947 |
|
| 3948 |
} |
| 3949 |
|
| 3950 |
|
| 3951 |
HP_StdFuncPrefix HP_BezierPath_1( /* BezierPath signature 1 */ |
| 3952 |
|
| 3953 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3954 |
HP_UInt16 numberOfPoints, /* number of points */ |
| 3955 |
HP_UByte pointTypeEnum) /* enum for data type of points */ |
| 3956 |
|
| 3957 |
{ |
| 3958 |
HP_AttrUInt16(pStream, numberOfPoints); |
| 3959 |
HP_AttrId(pStream, HP_NumberOfPoints); |
| 3960 |
HP_AttrUByte(pStream, pointTypeEnum); |
| 3961 |
HP_AttrId(pStream, HP_PointType); |
| 3962 |
HP_Operator(pStream, HP_BezierPath); |
| 3963 |
} |
| 3964 |
|
| 3965 |
|
| 3966 |
|
| 3967 |
|
| 3968 |
HP_StdFuncPrefix HP_BezierPath_2( /* BezierPath signature 2 */ |
| 3969 |
|
| 3970 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3971 |
HP_SInt16 ControlPointX1, /* control point x1 */ |
| 3972 |
HP_SInt16 ControlPointY1, /* control point y1 */ |
| 3973 |
HP_SInt16 ControlPointX2, /* control point x2 */ |
| 3974 |
HP_SInt16 ControlPointY2, /* control point y2 */ |
| 3975 |
HP_SInt16 EndPointX, /* ending point x */ |
| 3976 |
HP_SInt16 EndPointY) /* ending point y */ |
| 3977 |
{ |
| 3978 |
HP_AttrXySInt16(pStream, ControlPointX1, ControlPointY1); |
| 3979 |
HP_AttrId(pStream, HP_ControlPoint1); |
| 3980 |
HP_AttrXySInt16(pStream, ControlPointX2, ControlPointY2); |
| 3981 |
HP_AttrId(pStream, HP_ControlPoint2); |
| 3982 |
HP_AttrXySInt16(pStream, EndPointX, EndPointY); |
| 3983 |
HP_AttrId(pStream, HP_EndPoint); |
| 3984 |
HP_Operator(pStream, HP_BezierPath); |
| 3985 |
} |
| 3986 |
|
| 3987 |
|
| 3988 |
|
| 3989 |
|
| 3990 |
HP_StdFuncPrefix HP_BezierPath_3( /* BezierPath signature 3 */ |
| 3991 |
|
| 3992 |
HP_StreamHandleType pStream, /* stream handle */ |
| 3993 |
HP_UInt16 ControlPointX1, /* control point x1 */ |
| 3994 |
HP_UInt16 ControlPointY1, /* control point y1 */ |
| 3995 |
HP_UInt16 ControlPointX2, /* control point x2 */ |
| 3996 |
HP_UInt16 ControlPointY2, /* control point y2 */ |
| 3997 |
HP_UInt16 EndPointX, /* ending point x */ |
| 3998 |
HP_UInt16 EndPointY) /* ending point y */ |
| 3999 |
{ |
| 4000 |
HP_AttrXyUInt16(pStream, ControlPointX1, ControlPointY1); |
| 4001 |
HP_AttrId(pStream, HP_ControlPoint1); |
| 4002 |
HP_AttrXyUInt16(pStream, ControlPointX2, ControlPointY2); |
| 4003 |
HP_AttrId(pStream, HP_ControlPoint2); |
| 4004 |
HP_AttrXyUInt16(pStream, EndPointX, EndPointY); |
| 4005 |
HP_AttrId(pStream, HP_EndPoint); |
| 4006 |
HP_Operator(pStream, HP_BezierPath); |
| 4007 |
} |
| 4008 |
|
| 4009 |
|
| 4010 |
|
| 4011 |
HP_StdFuncPrefix HP_BezierPath_4( /* BezierPath signature 4 */ |
| 4012 |
|
| 4013 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4014 |
HP_SInt32 ControlPointX1, /* control point x1 */ |
| 4015 |
HP_SInt32 ControlPointY1, /* control point y1 */ |
| 4016 |
HP_SInt32 ControlPointX2, /* control point x2 */ |
| 4017 |
HP_SInt32 ControlPointY2, /* control point y2 */ |
| 4018 |
HP_SInt32 EndPointX, /* ending point x */ |
| 4019 |
HP_SInt32 EndPointY) /* ending point y */ |
| 4020 |
{ |
| 4021 |
HP_AttrXySInt32(pStream, ControlPointX1, ControlPointY1); |
| 4022 |
HP_AttrId(pStream, HP_ControlPoint1); |
| 4023 |
HP_AttrXySInt32(pStream, ControlPointX2, ControlPointY2); |
| 4024 |
HP_AttrId(pStream, HP_ControlPoint2); |
| 4025 |
HP_AttrXySInt32(pStream, EndPointX, EndPointY); |
| 4026 |
HP_AttrId(pStream, HP_EndPoint); |
| 4027 |
HP_Operator(pStream, HP_BezierPath); |
| 4028 |
} |
| 4029 |
|
| 4030 |
|
| 4031 |
|
| 4032 |
HP_StdFuncPrefix HP_BezierPath_5( /* BezierPath signature 5 */ |
| 4033 |
|
| 4034 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4035 |
HP_Real32 ControlPointX1, /* control point x1 */ |
| 4036 |
HP_Real32 ControlPointY1, /* control point y1 */ |
| 4037 |
HP_Real32 ControlPointX2, /* control point x2 */ |
| 4038 |
HP_Real32 ControlPointY2, /* control point y2 */ |
| 4039 |
HP_Real32 EndPointX, /* ending point x */ |
| 4040 |
HP_Real32 EndPointY) /* ending point y */ |
| 4041 |
{ |
| 4042 |
HP_AttrXyReal32(pStream, ControlPointX1, ControlPointY1); |
| 4043 |
HP_AttrId(pStream, HP_ControlPoint1); |
| 4044 |
HP_AttrXyReal32(pStream, ControlPointX2, ControlPointY2); |
| 4045 |
HP_AttrId(pStream, HP_ControlPoint2); |
| 4046 |
HP_AttrXyReal32(pStream, EndPointX, EndPointY); |
| 4047 |
HP_AttrId(pStream, HP_EndPoint); |
| 4048 |
HP_Operator(pStream, HP_BezierPath); |
| 4049 |
} |
| 4050 |
|
| 4051 |
|
| 4052 |
|
| 4053 |
HP_StdFuncPrefix HP_BezierRelPath_1( /* BezierRelPath signature 1 */ |
| 4054 |
|
| 4055 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4056 |
HP_UInt16 numberOfPoints, /* number of points */ |
| 4057 |
HP_UByte pointTypeEnum) /* enum for data type of points */ |
| 4058 |
|
| 4059 |
{ |
| 4060 |
HP_AttrUInt16(pStream, numberOfPoints); |
| 4061 |
HP_AttrId(pStream, HP_NumberOfPoints); |
| 4062 |
HP_AttrUByte(pStream, pointTypeEnum); |
| 4063 |
HP_AttrId(pStream, HP_PointType); |
| 4064 |
HP_Operator(pStream, HP_BezierRelPath); |
| 4065 |
} |
| 4066 |
|
| 4067 |
|
| 4068 |
|
| 4069 |
|
| 4070 |
HP_StdFuncPrefix HP_BezierRelPath_2( /* BezierRelPath signature 2 */ |
| 4071 |
|
| 4072 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4073 |
HP_SInt16 ControlPointX1, /* control point x1 */ |
| 4074 |
HP_SInt16 ControlPointY1, /* control point y1 */ |
| 4075 |
HP_SInt16 ControlPointX2, /* control point x2 */ |
| 4076 |
HP_SInt16 ControlPointY2, /* control point y2 */ |
| 4077 |
HP_SInt16 EndPointX, /* ending point x */ |
| 4078 |
HP_SInt16 EndPointY) /* ending point y */ |
| 4079 |
{ |
| 4080 |
HP_AttrXySInt16(pStream, ControlPointX1, ControlPointY1); |
| 4081 |
HP_AttrId(pStream, HP_ControlPoint1); |
| 4082 |
HP_AttrXySInt16(pStream, ControlPointX2, ControlPointY2); |
| 4083 |
HP_AttrId(pStream, HP_ControlPoint2); |
| 4084 |
HP_AttrXySInt16(pStream, EndPointX, EndPointY); |
| 4085 |
HP_AttrId(pStream, HP_EndPoint); |
| 4086 |
HP_Operator(pStream, HP_BezierRelPath); |
| 4087 |
} |
| 4088 |
|
| 4089 |
|
| 4090 |
|
| 4091 |
|
| 4092 |
HP_StdFuncPrefix HP_BezierRelPath_3( /* BezierRelPath signature 3 */ |
| 4093 |
|
| 4094 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4095 |
HP_UInt16 ControlPointX1, /* control point x1 */ |
| 4096 |
HP_UInt16 ControlPointY1, /* control point y1 */ |
| 4097 |
HP_UInt16 ControlPointX2, /* control point x2 */ |
| 4098 |
HP_UInt16 ControlPointY2, /* control point y2 */ |
| 4099 |
HP_UInt16 EndPointX, /* ending point x */ |
| 4100 |
HP_UInt16 EndPointY) /* ending point y */ |
| 4101 |
{ |
| 4102 |
HP_AttrXyUInt16(pStream, ControlPointX1, ControlPointY1); |
| 4103 |
HP_AttrId(pStream, HP_ControlPoint1); |
| 4104 |
HP_AttrXyUInt16(pStream, ControlPointX2, ControlPointY2); |
| 4105 |
HP_AttrId(pStream, HP_ControlPoint2); |
| 4106 |
HP_AttrXyUInt16(pStream, EndPointX, EndPointY); |
| 4107 |
HP_AttrId(pStream, HP_EndPoint); |
| 4108 |
HP_Operator(pStream, HP_BezierRelPath); |
| 4109 |
} |
| 4110 |
|
| 4111 |
|
| 4112 |
|
| 4113 |
HP_StdFuncPrefix HP_BezierRelPath_4( /* BezierRelPath signature 4 */ |
| 4114 |
|
| 4115 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4116 |
HP_SInt32 ControlPointX1, /* control point x1 */ |
| 4117 |
HP_SInt32 ControlPointY1, /* control point y1 */ |
| 4118 |
HP_SInt32 ControlPointX2, /* control point x2 */ |
| 4119 |
HP_SInt32 ControlPointY2, /* control point y2 */ |
| 4120 |
HP_SInt32 EndPointX, /* ending point x */ |
| 4121 |
HP_SInt32 EndPointY) /* ending point y */ |
| 4122 |
{ |
| 4123 |
HP_AttrXySInt32(pStream, ControlPointX1, ControlPointY1); |
| 4124 |
HP_AttrId(pStream, HP_ControlPoint1); |
| 4125 |
HP_AttrXySInt32(pStream, ControlPointX2, ControlPointY2); |
| 4126 |
HP_AttrId(pStream, HP_ControlPoint2); |
| 4127 |
HP_AttrXySInt32(pStream, EndPointX, EndPointY); |
| 4128 |
HP_AttrId(pStream, HP_EndPoint); |
| 4129 |
HP_Operator(pStream, HP_BezierRelPath); |
| 4130 |
} |
| 4131 |
|
| 4132 |
|
| 4133 |
|
| 4134 |
HP_StdFuncPrefix HP_BezierRelPath_5( /* BezierRelPath signature 5 */ |
| 4135 |
|
| 4136 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4137 |
HP_Real32 ControlPointX1, /* control point x1 */ |
| 4138 |
HP_Real32 ControlPointY1, /* control point y1 */ |
| 4139 |
HP_Real32 ControlPointX2, /* control point x2 */ |
| 4140 |
HP_Real32 ControlPointY2, /* control point y2 */ |
| 4141 |
HP_Real32 EndPointX, /* ending point x */ |
| 4142 |
HP_Real32 EndPointY) /* ending point y */ |
| 4143 |
{ |
| 4144 |
HP_AttrXyReal32(pStream, ControlPointX1, ControlPointY1); |
| 4145 |
HP_AttrId(pStream, HP_ControlPoint1); |
| 4146 |
HP_AttrXyReal32(pStream, ControlPointX2, ControlPointY2); |
| 4147 |
HP_AttrId(pStream, HP_ControlPoint2); |
| 4148 |
HP_AttrXyReal32(pStream, EndPointX, EndPointY); |
| 4149 |
HP_AttrId(pStream, HP_EndPoint); |
| 4150 |
HP_Operator(pStream, HP_BezierRelPath); |
| 4151 |
} |
| 4152 |
|
| 4153 |
|
| 4154 |
|
| 4155 |
|
| 4156 |
HP_StdFuncPrefix HP_Chord_1( /* Chord signature 1 */ |
| 4157 |
|
| 4158 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4159 |
HP_SInt16 x1Val, /* bounding box top left x */ |
| 4160 |
HP_SInt16 y1Val, /* bounding box top left y */ |
| 4161 |
HP_SInt16 x2Val, /* bounding box bottom right x */ |
| 4162 |
HP_SInt16 y2Val, /* bounding box bottom right y */ |
| 4163 |
HP_SInt16 StartPointX, /* starting point x */ |
| 4164 |
HP_SInt16 StartPointY, /* starting point y */ |
| 4165 |
HP_SInt16 EndPointX, /* ending point x */ |
| 4166 |
HP_SInt16 EndPointY) /* ending point y */ |
| 4167 |
{ |
| 4168 |
HP_AttrBoxSInt16(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4169 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4170 |
HP_AttrXySInt16(pStream, StartPointX, StartPointY); |
| 4171 |
HP_AttrId(pStream, HP_StartPoint); |
| 4172 |
HP_AttrXySInt16(pStream, EndPointX, EndPointY); |
| 4173 |
HP_AttrId(pStream, HP_EndPoint); |
| 4174 |
HP_Operator(pStream, HP_Chord); |
| 4175 |
} |
| 4176 |
|
| 4177 |
|
| 4178 |
|
| 4179 |
|
| 4180 |
HP_StdFuncPrefix HP_Chord_2( /* Chord signature 2 */ |
| 4181 |
|
| 4182 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4183 |
HP_UInt16 x1Val, /* bounding box top left x */ |
| 4184 |
HP_UInt16 y1Val, /* bounding box top left y */ |
| 4185 |
HP_UInt16 x2Val, /* bounding box bottom right x */ |
| 4186 |
HP_UInt16 y2Val, /* bounding box bottom right y */ |
| 4187 |
HP_UInt16 StartPointX, /* starting point x */ |
| 4188 |
HP_UInt16 StartPointY, /* starting point y */ |
| 4189 |
HP_UInt16 EndPointX, /* ending point x */ |
| 4190 |
HP_UInt16 EndPointY) /* ending point y */ |
| 4191 |
{ |
| 4192 |
HP_AttrBoxUInt16(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4193 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4194 |
HP_AttrXyUInt16(pStream, StartPointX, StartPointY); |
| 4195 |
HP_AttrId(pStream, HP_StartPoint); |
| 4196 |
HP_AttrXyUInt16(pStream, EndPointX, EndPointY); |
| 4197 |
HP_AttrId(pStream, HP_EndPoint); |
| 4198 |
HP_Operator(pStream, HP_Chord); |
| 4199 |
} |
| 4200 |
|
| 4201 |
|
| 4202 |
|
| 4203 |
HP_StdFuncPrefix HP_Chord_3( /* Chord signature 3 */ |
| 4204 |
|
| 4205 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4206 |
HP_SInt32 x1Val, /* bounding box top left x */ |
| 4207 |
HP_SInt32 y1Val, /* bounding box top left y */ |
| 4208 |
HP_SInt32 x2Val, /* bounding box bottom right x */ |
| 4209 |
HP_SInt32 y2Val, /* bounding box bottom right y */ |
| 4210 |
HP_SInt32 StartPointX, /* starting point x */ |
| 4211 |
HP_SInt32 StartPointY, /* starting point y */ |
| 4212 |
HP_SInt32 EndPointX, /* ending point x */ |
| 4213 |
HP_SInt32 EndPointY) /* ending point y */ |
| 4214 |
{ |
| 4215 |
HP_AttrBoxSInt32(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4216 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4217 |
HP_AttrXySInt32(pStream, StartPointX, StartPointY); |
| 4218 |
HP_AttrId(pStream, HP_StartPoint); |
| 4219 |
HP_AttrXySInt32(pStream, EndPointX, EndPointY); |
| 4220 |
HP_AttrId(pStream, HP_EndPoint); |
| 4221 |
HP_Operator(pStream, HP_Chord); |
| 4222 |
} |
| 4223 |
|
| 4224 |
|
| 4225 |
|
| 4226 |
|
| 4227 |
HP_StdFuncPrefix HP_Chord_4( /* Chord signature 4 */ |
| 4228 |
|
| 4229 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4230 |
HP_Real32 x1Val, /* bounding box top left x */ |
| 4231 |
HP_Real32 y1Val, /* bounding box top left y */ |
| 4232 |
HP_Real32 x2Val, /* bounding box bottom right x */ |
| 4233 |
HP_Real32 y2Val, /* bounding box bottom right y */ |
| 4234 |
HP_Real32 StartPointX, /* starting point x */ |
| 4235 |
HP_Real32 StartPointY, /* starting point y */ |
| 4236 |
HP_Real32 EndPointX, /* ending point x */ |
| 4237 |
HP_Real32 EndPointY) /* ending point y */ |
| 4238 |
{ |
| 4239 |
HP_AttrBoxReal32(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4240 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4241 |
HP_AttrXyReal32(pStream, StartPointX, StartPointY); |
| 4242 |
HP_AttrId(pStream, HP_StartPoint); |
| 4243 |
HP_AttrXyReal32(pStream, EndPointX, EndPointY); |
| 4244 |
HP_AttrId(pStream, HP_EndPoint); |
| 4245 |
HP_Operator(pStream, HP_Chord); |
| 4246 |
} |
| 4247 |
|
| 4248 |
|
| 4249 |
|
| 4250 |
|
| 4251 |
HP_StdFuncPrefix HP_ChordPath_1( /* ChordPath signature 1 */ |
| 4252 |
|
| 4253 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4254 |
HP_SInt16 x1Val, /* bounding box top left x */ |
| 4255 |
HP_SInt16 y1Val, /* bounding box top left y */ |
| 4256 |
HP_SInt16 x2Val, /* bounding box bottom right x */ |
| 4257 |
HP_SInt16 y2Val, /* bounding box bottom right y */ |
| 4258 |
HP_SInt16 StartPointX, /* starting point x */ |
| 4259 |
HP_SInt16 StartPointY, /* starting point y */ |
| 4260 |
HP_SInt16 EndPointX, /* ending point x */ |
| 4261 |
HP_SInt16 EndPointY) /* ending point y */ |
| 4262 |
{ |
| 4263 |
HP_AttrBoxSInt16(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4264 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4265 |
HP_AttrXySInt16(pStream, StartPointX, StartPointY); |
| 4266 |
HP_AttrId(pStream, HP_StartPoint); |
| 4267 |
HP_AttrXySInt16(pStream, EndPointX, EndPointY); |
| 4268 |
HP_AttrId(pStream, HP_EndPoint); |
| 4269 |
HP_Operator(pStream, HP_ChordPath); |
| 4270 |
} |
| 4271 |
|
| 4272 |
|
| 4273 |
|
| 4274 |
|
| 4275 |
HP_StdFuncPrefix HP_ChordPath_2( /* ChordPath signature 2 */ |
| 4276 |
|
| 4277 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4278 |
HP_UInt16 x1Val, /* bounding box top left x */ |
| 4279 |
HP_UInt16 y1Val, /* bounding box top left y */ |
| 4280 |
HP_UInt16 x2Val, /* bounding box bottom right x */ |
| 4281 |
HP_UInt16 y2Val, /* bounding box bottom right y */ |
| 4282 |
HP_UInt16 StartPointX, /* starting point x */ |
| 4283 |
HP_UInt16 StartPointY, /* starting point y */ |
| 4284 |
HP_UInt16 EndPointX, /* ending point x */ |
| 4285 |
HP_UInt16 EndPointY) /* ending point y */ |
| 4286 |
{ |
| 4287 |
HP_AttrBoxUInt16(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4288 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4289 |
HP_AttrXyUInt16(pStream, StartPointX, StartPointY); |
| 4290 |
HP_AttrId(pStream, HP_StartPoint); |
| 4291 |
HP_AttrXyUInt16(pStream, EndPointX, EndPointY); |
| 4292 |
HP_AttrId(pStream, HP_EndPoint); |
| 4293 |
HP_Operator(pStream, HP_ChordPath); |
| 4294 |
} |
| 4295 |
|
| 4296 |
|
| 4297 |
|
| 4298 |
HP_StdFuncPrefix HP_ChordPath_3( /* ChordPath signature 3 */ |
| 4299 |
|
| 4300 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4301 |
HP_SInt32 x1Val, /* bounding box top left x */ |
| 4302 |
HP_SInt32 y1Val, /* bounding box top left y */ |
| 4303 |
HP_SInt32 x2Val, /* bounding box bottom right x */ |
| 4304 |
HP_SInt32 y2Val, /* bounding box bottom right y */ |
| 4305 |
HP_SInt32 StartPointX, /* starting point x */ |
| 4306 |
HP_SInt32 StartPointY, /* starting point y */ |
| 4307 |
HP_SInt32 EndPointX, /* ending point x */ |
| 4308 |
HP_SInt32 EndPointY) /* ending point y */ |
| 4309 |
{ |
| 4310 |
HP_AttrBoxSInt32(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4311 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4312 |
HP_AttrXySInt32(pStream, StartPointX, StartPointY); |
| 4313 |
HP_AttrId(pStream, HP_StartPoint); |
| 4314 |
HP_AttrXySInt32(pStream, EndPointX, EndPointY); |
| 4315 |
HP_AttrId(pStream, HP_EndPoint); |
| 4316 |
HP_Operator(pStream, HP_ChordPath); |
| 4317 |
} |
| 4318 |
|
| 4319 |
|
| 4320 |
|
| 4321 |
|
| 4322 |
HP_StdFuncPrefix HP_ChordPath_4( /* ChordPath signature 4 */ |
| 4323 |
|
| 4324 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4325 |
HP_Real32 x1Val, /* bounding box top left x */ |
| 4326 |
HP_Real32 y1Val, /* bounding box top left y */ |
| 4327 |
HP_Real32 x2Val, /* bounding box bottom right x */ |
| 4328 |
HP_Real32 y2Val, /* bounding box bottom right y */ |
| 4329 |
HP_Real32 StartPointX, /* starting point x */ |
| 4330 |
HP_Real32 StartPointY, /* starting point y */ |
| 4331 |
HP_Real32 EndPointX, /* ending point x */ |
| 4332 |
HP_Real32 EndPointY) /* ending point y */ |
| 4333 |
{ |
| 4334 |
HP_AttrBoxReal32(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4335 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4336 |
HP_AttrXyReal32(pStream, StartPointX, StartPointY); |
| 4337 |
HP_AttrId(pStream, HP_StartPoint); |
| 4338 |
HP_AttrXyReal32(pStream, EndPointX, EndPointY); |
| 4339 |
HP_AttrId(pStream, HP_EndPoint); |
| 4340 |
HP_Operator(pStream, HP_ChordPath); |
| 4341 |
} |
| 4342 |
|
| 4343 |
|
| 4344 |
|
| 4345 |
|
| 4346 |
HP_StdFuncPrefix HP_CloseDataSource_1( /* CloseDataSource signature 1 */ |
| 4347 |
|
| 4348 |
HP_StreamHandleType pStream) /* stream handle */ |
| 4349 |
{ |
| 4350 |
HP_Operator(pStream,HP_CloseDataSource); |
| 4351 |
} |
| 4352 |
|
| 4353 |
|
| 4354 |
|
| 4355 |
|
| 4356 |
HP_StdFuncPrefix HP_CloseSubPath_1( /* CloseSubPath signature 1 */ |
| 4357 |
|
| 4358 |
HP_StreamHandleType pStream) /* stream handle */ |
| 4359 |
{ |
| 4360 |
HP_Operator(pStream, HP_CloseSubPath); |
| 4361 |
} |
| 4362 |
|
| 4363 |
|
| 4364 |
|
| 4365 |
|
| 4366 |
HP_StdFuncPrefix HP_Comment_1( /* Comment signature 1 */ |
| 4367 |
|
| 4368 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4369 |
HP_pUByte array, /* array for comment data/text */ |
| 4370 |
HP_UInt32 arrayLen) /* length of comment data array */ |
| 4371 |
{ |
| 4372 |
HP_AttrUByteArray(pStream, array, arrayLen); |
| 4373 |
HP_AttrId(pStream, HP_CommentData); |
| 4374 |
HP_Operator(pStream,HP_Comment); |
| 4375 |
} |
| 4376 |
|
| 4377 |
HP_StdFuncPrefix HP_Comment_2( /* Comment signature 1 */ |
| 4378 |
|
| 4379 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4380 |
HP_pCharHuge array) /* length of comment data array */ |
| 4381 |
{ |
| 4382 |
HP_UInt32 arrayLen = strlen(( const char *)array); |
| 4383 |
|
| 4384 |
HP_AttrUByteArray(pStream, array, arrayLen); |
| 4385 |
HP_AttrId(pStream, HP_CommentData); |
| 4386 |
HP_Operator(pStream,HP_Comment); |
| 4387 |
} |
| 4388 |
|
| 4389 |
|
| 4390 |
|
| 4391 |
HP_StdFuncPrefix HP_EchoComment_1( /* EchoComment signature 1 */ |
| 4392 |
|
| 4393 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4394 |
HP_pUByte array, /* array for comment data/text */ |
| 4395 |
HP_UInt32 arrayLen) /* length of comment data array */ |
| 4396 |
{ |
| 4397 |
HP_AttrUByteArray(pStream, array, arrayLen); |
| 4398 |
HP_AttrId(pStream, HP_CommentData); |
| 4399 |
HP_Operator(pStream,HP_EchoComment); |
| 4400 |
} |
| 4401 |
|
| 4402 |
|
| 4403 |
|
| 4404 |
HP_StdFuncPrefix HP_Ellipse_1( /* Ellipse signature 1 */ |
| 4405 |
|
| 4406 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4407 |
HP_SInt16 x1Val, /* bounding box top left x */ |
| 4408 |
HP_SInt16 y1Val, /* bounding box top left y */ |
| 4409 |
HP_SInt16 x2Val, /* bounding box bottom right x */ |
| 4410 |
HP_SInt16 y2Val) /* bounding box bottom right y */ |
| 4411 |
{ |
| 4412 |
HP_AttrBoxSInt16(pStream, x1Val, y1Val, x2Val, y2Val); |
| 4413 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4414 |
HP_Operator(pStream, HP_Ellipse); |
| 4415 |
} |
| 4416 |
|
| 4417 |
|
| 4418 |
|
| 4419 |
|
| 4420 |
HP_StdFuncPrefix HP_Ellipse_2( /* Ellipse signature 2 */ |
| 4421 |
|
| 4422 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4423 |
HP_UInt16 x1Val, /* bounding box top left x */ |
| 4424 |
HP_UInt16 y1Val, /* bounding box top left y */ |
| 4425 |
HP_UInt16 x2Val, /* bounding box bottom right x */ |
| 4426 |
HP_UInt16 y2Val) /* bounding box bottom right y */ |
| 4427 |
{ |
| 4428 |
HP_AttrBoxUInt16(pStream, x1Val, y1Val, x2Val, y2Val); |
| 4429 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4430 |
HP_Operator(pStream, HP_Ellipse); |
| 4431 |
} |
| 4432 |
|
| 4433 |
|
| 4434 |
|
| 4435 |
HP_StdFuncPrefix HP_Ellipse_3( /* Ellipse signature 3 */ |
| 4436 |
|
| 4437 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4438 |
HP_SInt32 x1Val, /* bounding box top left x */ |
| 4439 |
HP_SInt32 y1Val, /* bounding box top left y */ |
| 4440 |
HP_SInt32 x2Val, /* bounding box bottom right x */ |
| 4441 |
HP_SInt32 y2Val) /* bounding box bottom right y */ |
| 4442 |
{ |
| 4443 |
HP_AttrBoxSInt32(pStream, x1Val, y1Val, x2Val, y2Val); |
| 4444 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4445 |
HP_Operator(pStream, HP_Ellipse); |
| 4446 |
} |
| 4447 |
|
| 4448 |
|
| 4449 |
|
| 4450 |
HP_StdFuncPrefix HP_Ellipse_4( /* Ellipse signature 4 */ |
| 4451 |
|
| 4452 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4453 |
HP_Real32 x1Val, /* bounding box top left x */ |
| 4454 |
HP_Real32 y1Val, /* bounding box top left y */ |
| 4455 |
HP_Real32 x2Val, /* bounding box bottom right x */ |
| 4456 |
HP_Real32 y2Val) /* bounding box bottom right y */ |
| 4457 |
{ |
| 4458 |
HP_AttrBoxReal32(pStream, x1Val, y1Val, x2Val, y2Val); |
| 4459 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4460 |
HP_Operator(pStream, HP_Ellipse); |
| 4461 |
} |
| 4462 |
|
| 4463 |
|
| 4464 |
|
| 4465 |
|
| 4466 |
HP_StdFuncPrefix HP_EllipsePath_1( /* EllipsePath signature 1 */ |
| 4467 |
|
| 4468 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4469 |
HP_SInt16 x1Val, /* bounding box top left x */ |
| 4470 |
HP_SInt16 y1Val, /* bounding box top left y */ |
| 4471 |
HP_SInt16 x2Val, /* bounding box bottom right x */ |
| 4472 |
HP_SInt16 y2Val) /* bounding box bottom right y */ |
| 4473 |
{ |
| 4474 |
HP_AttrBoxSInt16(pStream, x1Val, y1Val, x2Val, y2Val); |
| 4475 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4476 |
HP_Operator(pStream, HP_EllipsePath); |
| 4477 |
} |
| 4478 |
|
| 4479 |
|
| 4480 |
|
| 4481 |
|
| 4482 |
HP_StdFuncPrefix HP_EllipsePath_2( /* EllipsePath signature 2 */ |
| 4483 |
|
| 4484 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4485 |
HP_UInt16 x1Val, /* bounding box top left x */ |
| 4486 |
HP_UInt16 y1Val, /* bounding box top left y */ |
| 4487 |
HP_UInt16 x2Val, /* bounding box bottom right x */ |
| 4488 |
HP_UInt16 y2Val) /* bounding box bottom right y */ |
| 4489 |
{ |
| 4490 |
HP_AttrBoxUInt16(pStream, x1Val, y1Val, x2Val, y2Val); |
| 4491 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4492 |
HP_Operator(pStream, HP_EllipsePath); |
| 4493 |
} |
| 4494 |
|
| 4495 |
|
| 4496 |
|
| 4497 |
HP_StdFuncPrefix HP_EllipsePath_3( /* EllipsePath signature 3 */ |
| 4498 |
|
| 4499 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4500 |
HP_SInt32 x1Val, /* bounding box top left x */ |
| 4501 |
HP_SInt32 y1Val, /* bounding box top left y */ |
| 4502 |
HP_SInt32 x2Val, /* bounding box bottom right x */ |
| 4503 |
HP_SInt32 y2Val) /* bounding box bottom right y */ |
| 4504 |
{ |
| 4505 |
HP_AttrBoxSInt32(pStream, x1Val, y1Val, x2Val, y2Val); |
| 4506 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4507 |
HP_Operator(pStream, HP_EllipsePath); |
| 4508 |
} |
| 4509 |
|
| 4510 |
|
| 4511 |
|
| 4512 |
HP_StdFuncPrefix HP_EllipsePath_4( /* EllipsePath signature 4 */ |
| 4513 |
|
| 4514 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4515 |
HP_Real32 x1Val, /* bounding box top left x */ |
| 4516 |
HP_Real32 y1Val, /* bounding box top left y */ |
| 4517 |
HP_Real32 x2Val, /* bounding box bottom right x */ |
| 4518 |
HP_Real32 y2Val) /* bounding box bottom right y */ |
| 4519 |
{ |
| 4520 |
HP_AttrBoxReal32(pStream, x1Val, y1Val, x2Val, y2Val); |
| 4521 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4522 |
HP_Operator(pStream, HP_EllipsePath); |
| 4523 |
} |
| 4524 |
|
| 4525 |
|
| 4526 |
|
| 4527 |
HP_StdFuncPrefix HP_EndChar_1( /* EndChar signature 1 */ |
| 4528 |
|
| 4529 |
HP_StreamHandleType pStream) /* stream handle */ |
| 4530 |
{ |
| 4531 |
HP_Operator(pStream,HP_EndChar); |
| 4532 |
} |
| 4533 |
|
| 4534 |
|
| 4535 |
|
| 4536 |
|
| 4537 |
HP_StdFuncPrefix HP_EndFontHeader_1( /* EndFontHeader signature 1 */ |
| 4538 |
|
| 4539 |
HP_StreamHandleType pStream) /* stream handle */ |
| 4540 |
{ |
| 4541 |
HP_Operator(pStream,HP_EndFontHeader); |
| 4542 |
} |
| 4543 |
|
| 4544 |
|
| 4545 |
|
| 4546 |
|
| 4547 |
HP_StdFuncPrefix HP_EndImage_1( /* EndImage signature 1 */ |
| 4548 |
|
| 4549 |
HP_StreamHandleType pStream) /* stream handle */ |
| 4550 |
{ |
| 4551 |
HP_Operator(pStream, HP_EndImage); |
| 4552 |
} |
| 4553 |
|
| 4554 |
|
| 4555 |
|
| 4556 |
HP_StdFuncPrefix HP_EndPage_1( /* EndPage signature 1 */ |
| 4557 |
|
| 4558 |
HP_StreamHandleType pStream) /* stream handle */ |
| 4559 |
{ |
| 4560 |
HP_Operator(pStream,HP_EndPage); |
| 4561 |
} |
| 4562 |
|
| 4563 |
|
| 4564 |
HP_StdFuncPrefix HP_EndPage_2( /* EndPage signature 2 */ |
| 4565 |
|
| 4566 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4567 |
HP_UInt16 pageCopies) /* number of copies */ |
| 4568 |
{ |
| 4569 |
HP_AttrUInt16(pStream, pageCopies); |
| 4570 |
HP_AttrId(pStream, HP_PageCopies); |
| 4571 |
HP_Operator(pStream,HP_EndPage); |
| 4572 |
} |
| 4573 |
|
| 4574 |
|
| 4575 |
HP_StdFuncPrefix HP_EndPage_3( /* EndPage signature 3 */ |
| 4576 |
|
| 4577 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4578 |
HP_UInt16 pageCopies, /* number of copies */ |
| 4579 |
HP_UByte mediaSourceEnum) /* media source enumeration */ |
| 4580 |
{ |
| 4581 |
HP_AttrUInt16(pStream, pageCopies); |
| 4582 |
HP_AttrId(pStream, HP_PageCopies); |
| 4583 |
HP_AttrUByte(pStream, mediaSourceEnum); |
| 4584 |
HP_AttrId(pStream, HP_MediaSource); |
| 4585 |
HP_Operator(pStream,HP_EndPage); |
| 4586 |
} |
| 4587 |
|
| 4588 |
HP_StdFuncPrefix HP_EndPage_4( /* EndPage signature 4 */ |
| 4589 |
|
| 4590 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4591 |
HP_UByte mediaSourceEnum) /* media source enumeration */ |
| 4592 |
{ |
| 4593 |
HP_AttrUByte(pStream, mediaSourceEnum); |
| 4594 |
HP_AttrId(pStream, HP_MediaSource); |
| 4595 |
HP_Operator(pStream,HP_EndPage); |
| 4596 |
} |
| 4597 |
|
| 4598 |
|
| 4599 |
HP_StdFuncPrefix HP_EndRastPattern_1( /* EndRastPattern signature 1 */ |
| 4600 |
|
| 4601 |
HP_StreamHandleType pStream) /* stream handle */ |
| 4602 |
{ |
| 4603 |
HP_Operator(pStream, HP_EndRastPattern); |
| 4604 |
} |
| 4605 |
|
| 4606 |
|
| 4607 |
|
| 4608 |
|
| 4609 |
HP_StdFuncPrefix HP_EndScan_1( /* EndScan signature 1 */ |
| 4610 |
|
| 4611 |
HP_StreamHandleType pStream) /* stream handle */ |
| 4612 |
{ |
| 4613 |
HP_Operator(pStream, HP_EndScan); |
| 4614 |
|
| 4615 |
} |
| 4616 |
|
| 4617 |
|
| 4618 |
HP_StdFuncPrefix HP_EndStream_1( /* EndStream signature 1 */ |
| 4619 |
|
| 4620 |
HP_StreamHandleType pStream) /* stream handle */ |
| 4621 |
{ |
| 4622 |
HP_Operator(pStream, HP_EndStream); |
| 4623 |
|
| 4624 |
} |
| 4625 |
|
| 4626 |
|
| 4627 |
HP_StdFuncPrefix HP_EndSession_1( /* EndSession signature 1 */ |
| 4628 |
|
| 4629 |
HP_StreamHandleType pStream) /* stream handle */ |
| 4630 |
{ |
| 4631 |
HP_Operator(pStream,HP_EndSession); |
| 4632 |
} |
| 4633 |
|
| 4634 |
|
| 4635 |
HP_StdFuncPrefix HP_LinePath_1( /* LinePath signature 1 */ |
| 4636 |
|
| 4637 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4638 |
HP_UInt16 numberOfPoints, /* number of points */ |
| 4639 |
HP_UByte pointTypeEnum) /* enum for data type of points */ |
| 4640 |
|
| 4641 |
{ |
| 4642 |
HP_AttrUInt16(pStream, numberOfPoints); |
| 4643 |
HP_AttrId(pStream, HP_NumberOfPoints); |
| 4644 |
HP_AttrUByte(pStream, pointTypeEnum); |
| 4645 |
HP_AttrId(pStream, HP_PointType); |
| 4646 |
HP_Operator(pStream, HP_LinePath); |
| 4647 |
} |
| 4648 |
|
| 4649 |
|
| 4650 |
|
| 4651 |
|
| 4652 |
HP_StdFuncPrefix HP_LinePath_2( /* LinePath signature 2 */ |
| 4653 |
|
| 4654 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4655 |
HP_SInt16 EndPointX, /* ending point x */ |
| 4656 |
HP_SInt16 EndPointY) /* ending point y */ |
| 4657 |
|
| 4658 |
{ |
| 4659 |
HP_AttrXySInt16(pStream, EndPointX, EndPointY); |
| 4660 |
HP_AttrId(pStream, HP_EndPoint); |
| 4661 |
HP_Operator(pStream, HP_LinePath); |
| 4662 |
} |
| 4663 |
|
| 4664 |
|
| 4665 |
|
| 4666 |
|
| 4667 |
HP_StdFuncPrefix HP_LinePath_3( /* LinePath signature 3 */ |
| 4668 |
|
| 4669 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4670 |
HP_UInt16 EndPointX, /* ending point x */ |
| 4671 |
HP_UInt16 EndPointY) /* ending point y */ |
| 4672 |
|
| 4673 |
{ |
| 4674 |
HP_AttrXyUInt16(pStream, EndPointX, EndPointY); |
| 4675 |
HP_AttrId(pStream, HP_EndPoint); |
| 4676 |
HP_Operator(pStream, HP_LinePath); |
| 4677 |
} |
| 4678 |
|
| 4679 |
|
| 4680 |
|
| 4681 |
|
| 4682 |
HP_StdFuncPrefix HP_LinePath_4( /* LinePath signature 4 */ |
| 4683 |
|
| 4684 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4685 |
HP_SInt32 EndPointX, /* ending point x */ |
| 4686 |
HP_SInt32 EndPointY) /* ending point y */ |
| 4687 |
|
| 4688 |
{ |
| 4689 |
HP_AttrXySInt32(pStream, EndPointX, EndPointY); |
| 4690 |
HP_AttrId(pStream, HP_EndPoint); |
| 4691 |
HP_Operator(pStream, HP_LinePath); |
| 4692 |
} |
| 4693 |
|
| 4694 |
|
| 4695 |
|
| 4696 |
|
| 4697 |
HP_StdFuncPrefix HP_LinePath_5( /* LinePath signature 5 */ |
| 4698 |
|
| 4699 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4700 |
HP_Real32 EndPointX, /* ending point x */ |
| 4701 |
HP_Real32 EndPointY) /* ending point y */ |
| 4702 |
|
| 4703 |
{ |
| 4704 |
HP_AttrXyReal32(pStream, EndPointX, EndPointY); |
| 4705 |
HP_AttrId(pStream, HP_EndPoint); |
| 4706 |
HP_Operator(pStream, HP_LinePath); |
| 4707 |
} |
| 4708 |
|
| 4709 |
|
| 4710 |
|
| 4711 |
|
| 4712 |
HP_StdFuncPrefix HP_LineRelPath_1( /* LineRelPath signature 1 */ |
| 4713 |
|
| 4714 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4715 |
HP_UInt16 numberOfPoints, /* number of points */ |
| 4716 |
HP_UByte pointTypeEnum) /* enum for data type of points */ |
| 4717 |
|
| 4718 |
{ |
| 4719 |
HP_AttrUInt16(pStream, numberOfPoints); |
| 4720 |
HP_AttrId(pStream, HP_NumberOfPoints); |
| 4721 |
HP_AttrUByte(pStream, pointTypeEnum); |
| 4722 |
HP_AttrId(pStream, HP_PointType); |
| 4723 |
HP_Operator(pStream, HP_LineRelPath); |
| 4724 |
} |
| 4725 |
|
| 4726 |
|
| 4727 |
|
| 4728 |
|
| 4729 |
HP_StdFuncPrefix HP_LineRelPath_2( /* LineRelPath signature 2 */ |
| 4730 |
|
| 4731 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4732 |
HP_SInt16 EndPointX, /* ending point x */ |
| 4733 |
HP_SInt16 EndPointY) /* ending point y */ |
| 4734 |
|
| 4735 |
{ |
| 4736 |
HP_AttrXySInt16(pStream, EndPointX, EndPointY); |
| 4737 |
HP_AttrId(pStream, HP_EndPoint); |
| 4738 |
HP_Operator(pStream, HP_LineRelPath); |
| 4739 |
} |
| 4740 |
|
| 4741 |
|
| 4742 |
|
| 4743 |
|
| 4744 |
HP_StdFuncPrefix HP_LineRelPath_3( /* LineRelPath signature 3 */ |
| 4745 |
|
| 4746 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4747 |
HP_UInt16 EndPointX, /* ending point x */ |
| 4748 |
HP_UInt16 EndPointY) /* ending point y */ |
| 4749 |
|
| 4750 |
{ |
| 4751 |
HP_AttrXyUInt16(pStream, EndPointX, EndPointY); |
| 4752 |
HP_AttrId(pStream, HP_EndPoint); |
| 4753 |
HP_Operator(pStream, HP_LineRelPath); |
| 4754 |
} |
| 4755 |
|
| 4756 |
|
| 4757 |
|
| 4758 |
|
| 4759 |
HP_StdFuncPrefix HP_LineRelPath_4( /* LineRelPath signature 4 */ |
| 4760 |
|
| 4761 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4762 |
HP_SInt32 EndPointX, /* ending point x */ |
| 4763 |
HP_SInt32 EndPointY) /* ending point y */ |
| 4764 |
|
| 4765 |
{ |
| 4766 |
HP_AttrXySInt32(pStream, EndPointX, EndPointY); |
| 4767 |
HP_AttrId(pStream, HP_EndPoint); |
| 4768 |
HP_Operator(pStream, HP_LineRelPath); |
| 4769 |
} |
| 4770 |
|
| 4771 |
|
| 4772 |
|
| 4773 |
|
| 4774 |
HP_StdFuncPrefix HP_LineRelPath_5( /* LineRelPath signature 5 */ |
| 4775 |
|
| 4776 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4777 |
HP_Real32 EndPointX, /* ending point x */ |
| 4778 |
HP_Real32 EndPointY) /* ending point y */ |
| 4779 |
|
| 4780 |
{ |
| 4781 |
HP_AttrXyReal32(pStream, EndPointX, EndPointY); |
| 4782 |
HP_AttrId(pStream, HP_EndPoint); |
| 4783 |
HP_Operator(pStream, HP_LineRelPath); |
| 4784 |
} |
| 4785 |
|
| 4786 |
|
| 4787 |
|
| 4788 |
|
| 4789 |
HP_StdFuncPrefix HP_NewPath_1( /* NewPath signature 1 */ |
| 4790 |
|
| 4791 |
HP_StreamHandleType pStream) /* stream handle */ |
| 4792 |
{ |
| 4793 |
HP_Operator(pStream, HP_NewPath); |
| 4794 |
} |
| 4795 |
|
| 4796 |
|
| 4797 |
/* This is a temporary API until the firmware catches up to the Vol. 2 spec */ |
| 4798 |
|
| 4799 |
HP_StdFuncPrefix HP_OpenDataSource_Temp1( /* OpenDataSource signature Temp1 */ |
| 4800 |
|
| 4801 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4802 |
HP_UByte dataSourceEnum) /* dataSourceEnumeration */ |
| 4803 |
{ |
| 4804 |
HP_AttrUByte(pStream, dataSourceEnum); |
| 4805 |
HP_AttrId(pStream, HP_SourceType); |
| 4806 |
HP_Operator(pStream,HP_OpenDataSource); |
| 4807 |
} |
| 4808 |
|
| 4809 |
|
| 4810 |
HP_StdFuncPrefix HP_OpenDataSource_1( /* OpenDataSource signature 1 */ |
| 4811 |
|
| 4812 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4813 |
HP_UByte dataSourceEnum, /* dataSourceEnumeration */ |
| 4814 |
HP_UByte dataOrgEnum) /* dataOrgEnumeration */ |
| 4815 |
{ |
| 4816 |
HP_AttrUByte(pStream, dataSourceEnum); |
| 4817 |
HP_AttrId(pStream, HP_SourceType); |
| 4818 |
HP_AttrUByte(pStream, dataOrgEnum); |
| 4819 |
HP_AttrId(pStream, HP_DataOrg); |
| 4820 |
HP_Operator(pStream,HP_OpenDataSource); |
| 4821 |
} |
| 4822 |
|
| 4823 |
|
| 4824 |
|
| 4825 |
HP_StdFuncPrefix HP_PaintPath_1( /* PaintPath signature 1 */ |
| 4826 |
|
| 4827 |
HP_StreamHandleType pStream) /* stream handle */ |
| 4828 |
{ |
| 4829 |
HP_Operator(pStream, HP_PaintPath); |
| 4830 |
} |
| 4831 |
|
| 4832 |
|
| 4833 |
|
| 4834 |
|
| 4835 |
HP_StdFuncPrefix HP_Pie_1( /* Pie signature 1 */ |
| 4836 |
|
| 4837 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4838 |
HP_SInt16 x1Val, /* bounding box top left x */ |
| 4839 |
HP_SInt16 y1Val, /* bounding box top left y */ |
| 4840 |
HP_SInt16 x2Val, /* bounding box bottom right x */ |
| 4841 |
HP_SInt16 y2Val, /* bounding box bottom right y */ |
| 4842 |
HP_SInt16 StartPointX, /* starting point x */ |
| 4843 |
HP_SInt16 StartPointY, /* starting point y */ |
| 4844 |
HP_SInt16 EndPointX, /* ending point x */ |
| 4845 |
HP_SInt16 EndPointY) /* ending point y */ |
| 4846 |
{ |
| 4847 |
HP_AttrBoxSInt16(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4848 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4849 |
HP_AttrXySInt16(pStream, StartPointX, StartPointY); |
| 4850 |
HP_AttrId(pStream, HP_StartPoint); |
| 4851 |
HP_AttrXySInt16(pStream, EndPointX, EndPointY); |
| 4852 |
HP_AttrId(pStream, HP_EndPoint); |
| 4853 |
HP_Operator(pStream, HP_Pie); |
| 4854 |
} |
| 4855 |
|
| 4856 |
|
| 4857 |
|
| 4858 |
|
| 4859 |
HP_StdFuncPrefix HP_Pie_2( /* Pie signature 2 */ |
| 4860 |
|
| 4861 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4862 |
HP_UInt16 x1Val, /* bounding box top left x */ |
| 4863 |
HP_UInt16 y1Val, /* bounding box top left y */ |
| 4864 |
HP_UInt16 x2Val, /* bounding box bottom right x */ |
| 4865 |
HP_UInt16 y2Val, /* bounding box bottom right y */ |
| 4866 |
HP_UInt16 StartPointX, /* starting point x */ |
| 4867 |
HP_UInt16 StartPointY, /* starting point y */ |
| 4868 |
HP_UInt16 EndPointX, /* ending point x */ |
| 4869 |
HP_UInt16 EndPointY) /* ending point y */ |
| 4870 |
{ |
| 4871 |
HP_AttrBoxUInt16(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4872 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4873 |
HP_AttrXyUInt16(pStream, StartPointX, StartPointY); |
| 4874 |
HP_AttrId(pStream, HP_StartPoint); |
| 4875 |
HP_AttrXyUInt16(pStream, EndPointX, EndPointY); |
| 4876 |
HP_AttrId(pStream, HP_EndPoint); |
| 4877 |
HP_Operator(pStream, HP_Pie); |
| 4878 |
} |
| 4879 |
|
| 4880 |
|
| 4881 |
|
| 4882 |
HP_StdFuncPrefix HP_Pie_3( /* Pie signature 3 */ |
| 4883 |
|
| 4884 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4885 |
HP_SInt32 x1Val, /* bounding box top left x */ |
| 4886 |
HP_SInt32 y1Val, /* bounding box top left y */ |
| 4887 |
HP_SInt32 x2Val, /* bounding box bottom right x */ |
| 4888 |
HP_SInt32 y2Val, /* bounding box bottom right y */ |
| 4889 |
HP_SInt32 StartPointX, /* starting point x */ |
| 4890 |
HP_SInt32 StartPointY, /* starting point y */ |
| 4891 |
HP_SInt32 EndPointX, /* ending point x */ |
| 4892 |
HP_SInt32 EndPointY) /* ending point y */ |
| 4893 |
{ |
| 4894 |
HP_AttrBoxSInt32(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4895 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4896 |
HP_AttrXySInt32(pStream, StartPointX, StartPointY); |
| 4897 |
HP_AttrId(pStream, HP_StartPoint); |
| 4898 |
HP_AttrXySInt32(pStream, EndPointX, EndPointY); |
| 4899 |
HP_AttrId(pStream, HP_EndPoint); |
| 4900 |
HP_Operator(pStream, HP_Pie); |
| 4901 |
} |
| 4902 |
|
| 4903 |
|
| 4904 |
|
| 4905 |
|
| 4906 |
HP_StdFuncPrefix HP_Pie_4( /* Pie signature 4 */ |
| 4907 |
|
| 4908 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4909 |
HP_Real32 x1Val, /* bounding box top left x */ |
| 4910 |
HP_Real32 y1Val, /* bounding box top left y */ |
| 4911 |
HP_Real32 x2Val, /* bounding box bottom right x */ |
| 4912 |
HP_Real32 y2Val, /* bounding box bottom right y */ |
| 4913 |
HP_Real32 StartPointX, /* starting point x */ |
| 4914 |
HP_Real32 StartPointY, /* starting point y */ |
| 4915 |
HP_Real32 EndPointX, /* ending point x */ |
| 4916 |
HP_Real32 EndPointY) /* ending point y */ |
| 4917 |
{ |
| 4918 |
HP_AttrBoxReal32(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4919 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4920 |
HP_AttrXyReal32(pStream, StartPointX, StartPointY); |
| 4921 |
HP_AttrId(pStream, HP_StartPoint); |
| 4922 |
HP_AttrXyReal32(pStream, EndPointX, EndPointY); |
| 4923 |
HP_AttrId(pStream, HP_EndPoint); |
| 4924 |
HP_Operator(pStream, HP_Pie); |
| 4925 |
} |
| 4926 |
|
| 4927 |
|
| 4928 |
|
| 4929 |
|
| 4930 |
HP_StdFuncPrefix HP_PiePath_1( /* PiePath signature 1 */ |
| 4931 |
|
| 4932 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4933 |
HP_SInt16 x1Val, /* bounding box top left x */ |
| 4934 |
HP_SInt16 y1Val, /* bounding box top left y */ |
| 4935 |
HP_SInt16 x2Val, /* bounding box bottom right x */ |
| 4936 |
HP_SInt16 y2Val, /* bounding box bottom right y */ |
| 4937 |
HP_SInt16 StartPointX, /* starting point x */ |
| 4938 |
HP_SInt16 StartPointY, /* starting point y */ |
| 4939 |
HP_SInt16 EndPointX, /* ending point x */ |
| 4940 |
HP_SInt16 EndPointY) /* ending point y */ |
| 4941 |
{ |
| 4942 |
HP_AttrBoxSInt16(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4943 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4944 |
HP_AttrXySInt16(pStream, StartPointX, StartPointY); |
| 4945 |
HP_AttrId(pStream, HP_StartPoint); |
| 4946 |
HP_AttrXySInt16(pStream, EndPointX, EndPointY); |
| 4947 |
HP_AttrId(pStream, HP_EndPoint); |
| 4948 |
HP_Operator(pStream, HP_PiePath); |
| 4949 |
} |
| 4950 |
|
| 4951 |
|
| 4952 |
|
| 4953 |
|
| 4954 |
HP_StdFuncPrefix HP_PiePath_2( /* PiePath signature 2 */ |
| 4955 |
|
| 4956 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4957 |
HP_UInt16 x1Val, /* bounding box top left x */ |
| 4958 |
HP_UInt16 y1Val, /* bounding box top left y */ |
| 4959 |
HP_UInt16 x2Val, /* bounding box bottom right x */ |
| 4960 |
HP_UInt16 y2Val, /* bounding box bottom right y */ |
| 4961 |
HP_UInt16 StartPointX, /* starting point x */ |
| 4962 |
HP_UInt16 StartPointY, /* starting point y */ |
| 4963 |
HP_UInt16 EndPointX, /* ending point x */ |
| 4964 |
HP_UInt16 EndPointY) /* ending point y */ |
| 4965 |
{ |
| 4966 |
HP_AttrBoxUInt16(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4967 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4968 |
HP_AttrXyUInt16(pStream, StartPointX, StartPointY); |
| 4969 |
HP_AttrId(pStream, HP_StartPoint); |
| 4970 |
HP_AttrXyUInt16(pStream, EndPointX, EndPointY); |
| 4971 |
HP_AttrId(pStream, HP_EndPoint); |
| 4972 |
HP_Operator(pStream, HP_PiePath); |
| 4973 |
} |
| 4974 |
|
| 4975 |
|
| 4976 |
|
| 4977 |
HP_StdFuncPrefix HP_PiePath_3( /* PiePath signature 3 */ |
| 4978 |
|
| 4979 |
HP_StreamHandleType pStream, /* stream handle */ |
| 4980 |
HP_SInt32 x1Val, /* bounding box top left x */ |
| 4981 |
HP_SInt32 y1Val, /* bounding box top left y */ |
| 4982 |
HP_SInt32 x2Val, /* bounding box bottom right x */ |
| 4983 |
HP_SInt32 y2Val, /* bounding box bottom right y */ |
| 4984 |
HP_SInt32 StartPointX, /* starting point x */ |
| 4985 |
HP_SInt32 StartPointY, /* starting point y */ |
| 4986 |
HP_SInt32 EndPointX, /* ending point x */ |
| 4987 |
HP_SInt32 EndPointY) /* ending point y */ |
| 4988 |
{ |
| 4989 |
HP_AttrBoxSInt32(pStream, x1Val, y1Val,x2Val,y2Val); |
| 4990 |
HP_AttrId(pStream, HP_BoundingBox); |
| 4991 |
HP_AttrXySInt32(pStream, StartPointX, StartPointY); |
| 4992 |
HP_AttrId(pStream, HP_StartPoint); |
| 4993 |
HP_AttrXySInt32(pStream, EndPointX, EndPointY); |
| 4994 |
HP_AttrId(pStream, HP_EndPoint); |
| 4995 |
HP_Operator(pStream, HP_PiePath); |
| 4996 |
} |
| 4997 |
|
| 4998 |
|
| 4999 |
|
| 5000 |
|
| 5001 |
HP_StdFuncPrefix HP_PiePath_4( /* PiePath signature 4 */ |
| 5002 |
|
| 5003 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5004 |
HP_Real32 x1Val, /* bounding box top left x */ |
| 5005 |
HP_Real32 y1Val, /* bounding box top left y */ |
| 5006 |
HP_Real32 x2Val, /* bounding box bottom right x */ |
| 5007 |
HP_Real32 y2Val, /* bounding box bottom right y */ |
| 5008 |
HP_Real32 StartPointX, /* starting point x */ |
| 5009 |
HP_Real32 StartPointY, /* starting point y */ |
| 5010 |
HP_Real32 EndPointX, /* ending point x */ |
| 5011 |
HP_Real32 EndPointY) /* ending point y */ |
| 5012 |
{ |
| 5013 |
HP_AttrBoxReal32(pStream, x1Val, y1Val,x2Val,y2Val); |
| 5014 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5015 |
HP_AttrXyReal32(pStream, StartPointX, StartPointY); |
| 5016 |
HP_AttrId(pStream, HP_StartPoint); |
| 5017 |
HP_AttrXyReal32(pStream, EndPointX, EndPointY); |
| 5018 |
HP_AttrId(pStream, HP_EndPoint); |
| 5019 |
HP_Operator(pStream, HP_PiePath); |
| 5020 |
} |
| 5021 |
|
| 5022 |
|
| 5023 |
|
| 5024 |
|
| 5025 |
HP_StdFuncPrefix HP_PopGS_1( /* PopGS signature 1 */ |
| 5026 |
|
| 5027 |
HP_StreamHandleType pStream) /* stream handle */ |
| 5028 |
{ |
| 5029 |
HP_Operator(pStream,HP_PopGS); |
| 5030 |
} |
| 5031 |
|
| 5032 |
|
| 5033 |
|
| 5034 |
|
| 5035 |
HP_StdFuncPrefix HP_PushGS_1( /* PushGS signature 1 */ |
| 5036 |
|
| 5037 |
HP_StreamHandleType pStream) /* stream handle */ |
| 5038 |
{ |
| 5039 |
HP_Operator(pStream,HP_PushGS); |
| 5040 |
} |
| 5041 |
|
| 5042 |
|
| 5043 |
HP_StdFuncPrefix HP_Query_1( /* Query signature 1 */ |
| 5044 |
|
| 5045 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5046 |
HP_pUByte queryKey, /* array for query string */ |
| 5047 |
HP_UInt16 queryKeyLen) /* length of query string array */ |
| 5048 |
{ |
| 5049 |
|
| 5050 |
HP_AttrUByteArray(pStream, queryKey, (HP_UInt32) queryKeyLen); |
| 5051 |
HP_AttrId(pStream, HP_QueryKey); |
| 5052 |
HP_Operator(pStream,HP_Query); |
| 5053 |
} |
| 5054 |
|
| 5055 |
|
| 5056 |
HP_StdFuncPrefix HP_ReadChar_1( /* ReadChar signature 1 */ |
| 5057 |
|
| 5058 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5059 |
HP_UInt16 CharCodeData, /* character code value */ |
| 5060 |
HP_UInt32 CharSize) /* length of char code data */ |
| 5061 |
{ |
| 5062 |
HP_AttrUInt16(pStream, CharCodeData); |
| 5063 |
HP_AttrId(pStream, HP_CharCode); |
| 5064 |
HP_AttrUInt32(pStream, CharSize); |
| 5065 |
HP_AttrId(pStream, HP_CharDataSize); |
| 5066 |
HP_Operator(pStream,HP_ReadChar); |
| 5067 |
} |
| 5068 |
|
| 5069 |
|
| 5070 |
HP_StdFuncPrefix HP_ReadFontHeader_1( /* ReadFontHeader signature 1 */ |
| 5071 |
|
| 5072 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5073 |
HP_UInt16 FontHeaderLen) /* font header length */ |
| 5074 |
{ |
| 5075 |
HP_AttrUInt16(pStream, FontHeaderLen); |
| 5076 |
HP_AttrId(pStream, HP_FontHeaderLength); |
| 5077 |
HP_Operator(pStream,HP_ReadFontHeader); |
| 5078 |
} |
| 5079 |
|
| 5080 |
|
| 5081 |
HP_StdFuncPrefix HP_ReadImage_1( /* ReadImage signature 1 */ |
| 5082 |
|
| 5083 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5084 |
HP_UInt16 startLine, /* start line for reading raster */ |
| 5085 |
HP_UInt16 blockHeight, /* line height of block */ |
| 5086 |
HP_UByte compressionEnum) /* compression mode enumeration */ |
| 5087 |
{ |
| 5088 |
HP_AttrUInt16(pStream, startLine); |
| 5089 |
HP_AttrId(pStream,HP_StartLine); |
| 5090 |
HP_AttrUInt16(pStream, blockHeight); |
| 5091 |
HP_AttrId(pStream, HP_BlockHeight); |
| 5092 |
HP_AttrUByte(pStream,compressionEnum); |
| 5093 |
HP_AttrId(pStream, HP_CompressMode); |
| 5094 |
HP_Operator(pStream, HP_ReadImage); |
| 5095 |
} |
| 5096 |
|
| 5097 |
|
| 5098 |
|
| 5099 |
HP_StdFuncPrefix HP_ReadImage_2( /* ReadImage signature 2 */ |
| 5100 |
|
| 5101 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5102 |
HP_UInt32 startLine, /* start line for reading raster */ |
| 5103 |
HP_UInt32 blockHeight, /* line height of block */ |
| 5104 |
HP_UByte compressionEnum) /* compression mode enumeration */ |
| 5105 |
{ |
| 5106 |
HP_AttrUInt32(pStream, startLine); |
| 5107 |
HP_AttrId(pStream,HP_StartLine); |
| 5108 |
HP_AttrUInt32(pStream, blockHeight); |
| 5109 |
HP_AttrId(pStream, HP_BlockHeight); |
| 5110 |
HP_AttrUByte(pStream,compressionEnum); |
| 5111 |
HP_AttrId(pStream, HP_CompressMode); |
| 5112 |
HP_Operator(pStream, HP_ReadImage); |
| 5113 |
} |
| 5114 |
|
| 5115 |
|
| 5116 |
|
| 5117 |
HP_StdFuncPrefix HP_ReadRastPattern_1( /* ReadRastPattern signature 1 */ |
| 5118 |
|
| 5119 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5120 |
HP_UInt16 startLine, /* start line for reading raster */ |
| 5121 |
HP_UInt16 blockHeight, /* line height of block */ |
| 5122 |
HP_UByte compressionEnum) /* compression mode enumeration */ |
| 5123 |
{ |
| 5124 |
HP_AttrUInt16(pStream, startLine); |
| 5125 |
HP_AttrId(pStream,HP_StartLine); |
| 5126 |
HP_AttrUInt16(pStream, blockHeight); |
| 5127 |
HP_AttrId(pStream, HP_BlockHeight); |
| 5128 |
HP_AttrUByte(pStream,compressionEnum); |
| 5129 |
HP_AttrId(pStream, HP_CompressMode); |
| 5130 |
HP_Operator(pStream, HP_ReadRastPattern); |
| 5131 |
} |
| 5132 |
|
| 5133 |
|
| 5134 |
|
| 5135 |
|
| 5136 |
HP_StdFuncPrefix HP_ReadRastPattern_2( /* ReadRastPattern signature 2 */ |
| 5137 |
|
| 5138 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5139 |
HP_UInt32 startLine, /* start line for reading raster */ |
| 5140 |
HP_UInt32 blockHeight, /* line height of block */ |
| 5141 |
HP_UByte compressionEnum) /* compression mode enumeration */ |
| 5142 |
{ |
| 5143 |
HP_AttrUInt32(pStream, startLine); |
| 5144 |
HP_AttrId(pStream,HP_StartLine); |
| 5145 |
HP_AttrUInt32(pStream, blockHeight); |
| 5146 |
HP_AttrId(pStream, HP_BlockHeight); |
| 5147 |
HP_AttrUByte(pStream,compressionEnum); |
| 5148 |
HP_AttrId(pStream, HP_CompressMode); |
| 5149 |
HP_Operator(pStream, HP_ReadRastPattern); |
| 5150 |
} |
| 5151 |
|
| 5152 |
|
| 5153 |
HP_StdFuncPrefix HP_ReadStream_1( /* ReadStream signature 1 */ |
| 5154 |
|
| 5155 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5156 |
HP_UInt32 streamDataLength) /* stream data length */ |
| 5157 |
{ |
| 5158 |
|
| 5159 |
HP_AttrUInt32(pStream, streamDataLength); |
| 5160 |
HP_AttrId(pStream, HP_StreamDataLength); |
| 5161 |
HP_Operator(pStream, HP_ReadStream); |
| 5162 |
|
| 5163 |
} |
| 5164 |
|
| 5165 |
|
| 5166 |
HP_StdFuncPrefix HP_ExecStream_1( /* ExecStream signature 1 */ |
| 5167 |
|
| 5168 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5169 |
HP_UInt32 streamDataLength) /* stream data length */ |
| 5170 |
{ |
| 5171 |
|
| 5172 |
HP_AttrUInt32(pStream, streamDataLength); |
| 5173 |
HP_AttrId(pStream, HP_StreamDataLength); |
| 5174 |
HP_Operator(pStream, HP_ExecStream); |
| 5175 |
} |
| 5176 |
|
| 5177 |
|
| 5178 |
HP_StdFuncPrefix HP_RemoveStream_1( /* RemoveStream signature 1 */ |
| 5179 |
|
| 5180 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5181 |
HP_UInt32 streamDataLength) /* stream data length */ |
| 5182 |
{ |
| 5183 |
|
| 5184 |
HP_AttrUInt32(pStream, streamDataLength); |
| 5185 |
HP_AttrId(pStream, HP_StreamDataLength); |
| 5186 |
HP_Operator(pStream, HP_RemoveStream); |
| 5187 |
|
| 5188 |
} |
| 5189 |
|
| 5190 |
|
| 5191 |
HP_StdFuncPrefix HP_Rectangle_1( /* Rectangle signature 1 */ |
| 5192 |
|
| 5193 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5194 |
HP_SInt16 x1Val, /* bounding box top left x */ |
| 5195 |
HP_SInt16 y1Val, /* bounding box top left y */ |
| 5196 |
HP_SInt16 x2Val, /* bounding box bottom right x */ |
| 5197 |
HP_SInt16 y2Val) /* bounding box bottom right y */ |
| 5198 |
{ |
| 5199 |
HP_AttrBoxSInt16(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5200 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5201 |
HP_Operator(pStream, HP_Rectangle); |
| 5202 |
} |
| 5203 |
|
| 5204 |
|
| 5205 |
|
| 5206 |
HP_StdFuncPrefix HP_Rectangle_2( /* Rectangle signature 2 */ |
| 5207 |
|
| 5208 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5209 |
HP_UInt16 x1Val, /* bounding box top left x */ |
| 5210 |
HP_UInt16 y1Val, /* bounding box top left y */ |
| 5211 |
HP_UInt16 x2Val, /* bounding box bottom right x */ |
| 5212 |
HP_UInt16 y2Val) /* bounding box bottom right y */ |
| 5213 |
{ |
| 5214 |
HP_AttrBoxUInt16(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5215 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5216 |
HP_Operator(pStream, HP_Rectangle); |
| 5217 |
} |
| 5218 |
|
| 5219 |
|
| 5220 |
|
| 5221 |
HP_StdFuncPrefix HP_Rectangle_3( /* Rectangle signature 3 */ |
| 5222 |
|
| 5223 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5224 |
HP_SInt32 x1Val, /* bounding box top left x */ |
| 5225 |
HP_SInt32 y1Val, /* bounding box top left y */ |
| 5226 |
HP_SInt32 x2Val, /* bounding box bottom right x */ |
| 5227 |
HP_SInt32 y2Val) /* bounding box bottom right y */ |
| 5228 |
{ |
| 5229 |
HP_AttrBoxSInt32(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5230 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5231 |
HP_Operator(pStream, HP_Rectangle); |
| 5232 |
} |
| 5233 |
|
| 5234 |
HP_StdFuncPrefix HP_Rectangle_4( /* Rectangle signature 4 */ |
| 5235 |
|
| 5236 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5237 |
HP_Real32 x1Val, /* bounding box top left x */ |
| 5238 |
HP_Real32 y1Val, /* bounding box top left y */ |
| 5239 |
HP_Real32 x2Val, /* bounding box bottom right x */ |
| 5240 |
HP_Real32 y2Val) /* bounding box bottom right y */ |
| 5241 |
{ |
| 5242 |
HP_AttrBoxReal32(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5243 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5244 |
HP_Operator(pStream, HP_Rectangle); |
| 5245 |
} |
| 5246 |
|
| 5247 |
|
| 5248 |
|
| 5249 |
HP_StdFuncPrefix HP_RectanglePath_1( /* RectanglePath signature 1 */ |
| 5250 |
|
| 5251 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5252 |
HP_SInt16 x1Val, /* bounding box top left x */ |
| 5253 |
HP_SInt16 y1Val, /* bounding box top left y */ |
| 5254 |
HP_SInt16 x2Val, /* bounding box bottom right x */ |
| 5255 |
HP_SInt16 y2Val) /* bounding box bottom right y */ |
| 5256 |
{ |
| 5257 |
HP_AttrBoxSInt16(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5258 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5259 |
HP_Operator(pStream, HP_RectanglePath); |
| 5260 |
} |
| 5261 |
|
| 5262 |
|
| 5263 |
|
| 5264 |
HP_StdFuncPrefix HP_RectanglePath_2( /* RectanglePath signature 2 */ |
| 5265 |
|
| 5266 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5267 |
HP_UInt16 x1Val, /* bounding box top left x */ |
| 5268 |
HP_UInt16 y1Val, /* bounding box top left y */ |
| 5269 |
HP_UInt16 x2Val, /* bounding box bottom right x */ |
| 5270 |
HP_UInt16 y2Val) /* bounding box bottom right y */ |
| 5271 |
{ |
| 5272 |
HP_AttrBoxUInt16(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5273 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5274 |
HP_Operator(pStream, HP_RectanglePath); |
| 5275 |
} |
| 5276 |
|
| 5277 |
|
| 5278 |
|
| 5279 |
HP_StdFuncPrefix HP_RectanglePath_3( /* RectanglePath signature 3 */ |
| 5280 |
|
| 5281 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5282 |
HP_SInt32 x1Val, /* bounding box top left x */ |
| 5283 |
HP_SInt32 y1Val, /* bounding box top left y */ |
| 5284 |
HP_SInt32 x2Val, /* bounding box bottom right x */ |
| 5285 |
HP_SInt32 y2Val) /* bounding box bottom right y */ |
| 5286 |
{ |
| 5287 |
HP_AttrBoxSInt32(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5288 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5289 |
HP_Operator(pStream, HP_RectanglePath); |
| 5290 |
} |
| 5291 |
|
| 5292 |
|
| 5293 |
|
| 5294 |
HP_StdFuncPrefix HP_RectanglePath_4( /* RectanglePath signature 4 */ |
| 5295 |
|
| 5296 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5297 |
HP_Real32 x1Val, /* bounding box top left x */ |
| 5298 |
HP_Real32 y1Val, /* bounding box top left y */ |
| 5299 |
HP_Real32 x2Val, /* bounding box bottom right x */ |
| 5300 |
HP_Real32 y2Val) /* bounding box bottom right y */ |
| 5301 |
{ |
| 5302 |
HP_AttrBoxReal32(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5303 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5304 |
HP_Operator(pStream, HP_RectanglePath); |
| 5305 |
} |
| 5306 |
|
| 5307 |
|
| 5308 |
|
| 5309 |
HP_StdFuncPrefix HP_RemoveFont_1( /* RemoveFont signature 1 */ |
| 5310 |
|
| 5311 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5312 |
HP_pUByte fontName, /* array for font name */ |
| 5313 |
HP_UInt16 fontNameLen) /* length of font name array */ |
| 5314 |
{ |
| 5315 |
HP_AttrUByteArray(pStream, fontName, (HP_UInt32) fontNameLen); |
| 5316 |
HP_AttrId(pStream, HP_FontName); |
| 5317 |
HP_Operator(pStream,HP_RemoveFont); |
| 5318 |
} |
| 5319 |
|
| 5320 |
|
| 5321 |
|
| 5322 |
|
| 5323 |
HP_StdFuncPrefix HP_RoundRectangle_1( /* RoundRectangle signature 1 */ |
| 5324 |
|
| 5325 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5326 |
HP_SInt16 x1Val, /* bounding box top left x */ |
| 5327 |
HP_SInt16 y1Val, /* bounding box top left y */ |
| 5328 |
HP_SInt16 x2Val, /* bounding box bottom right x */ |
| 5329 |
HP_SInt16 y2Val, /* bounding box bottom right y */ |
| 5330 |
HP_UInt16 xEllipse, /* ellipse x dimension */ |
| 5331 |
HP_UInt16 yEllipse) /* ellipse y dimension */ |
| 5332 |
{ |
| 5333 |
HP_AttrBoxSInt16(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5334 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5335 |
HP_AttrXyUInt16(pStream, xEllipse, yEllipse); |
| 5336 |
HP_AttrId(pStream, HP_EllipseDimension); |
| 5337 |
HP_Operator(pStream, HP_RoundRectangle); |
| 5338 |
} |
| 5339 |
|
| 5340 |
|
| 5341 |
|
| 5342 |
HP_StdFuncPrefix HP_RoundRectangle_2( /* RoundRectangle signature 2 */ |
| 5343 |
|
| 5344 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5345 |
HP_UInt16 x1Val, /* bounding box top left x */ |
| 5346 |
HP_UInt16 y1Val, /* bounding box top left y */ |
| 5347 |
HP_UInt16 x2Val, /* bounding box bottom right x */ |
| 5348 |
HP_UInt16 y2Val, /* bounding box bottom right y */ |
| 5349 |
HP_UInt16 xEllipse, /* ellipse x dimension */ |
| 5350 |
HP_UInt16 yEllipse) /* ellipse y dimension */ |
| 5351 |
{ |
| 5352 |
HP_AttrBoxUInt16(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5353 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5354 |
HP_AttrXyUInt16(pStream, xEllipse, yEllipse); |
| 5355 |
HP_AttrId(pStream, HP_EllipseDimension); |
| 5356 |
HP_Operator(pStream, HP_RoundRectangle); |
| 5357 |
} |
| 5358 |
|
| 5359 |
|
| 5360 |
|
| 5361 |
|
| 5362 |
HP_StdFuncPrefix HP_RoundRectangle_3( /* RoundRectangle signature 2 */ |
| 5363 |
|
| 5364 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5365 |
HP_SInt32 x1Val, /* bounding box top left x */ |
| 5366 |
HP_SInt32 y1Val, /* bounding box top left y */ |
| 5367 |
HP_SInt32 x2Val, /* bounding box bottom right x */ |
| 5368 |
HP_SInt32 y2Val, /* bounding box bottom right y */ |
| 5369 |
HP_UInt32 xEllipse, /* ellipse x dimension */ |
| 5370 |
HP_UInt32 yEllipse) /* ellipse y dimension */ |
| 5371 |
{ |
| 5372 |
HP_AttrBoxSInt32(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5373 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5374 |
HP_AttrXyUInt32(pStream, xEllipse, yEllipse); |
| 5375 |
HP_AttrId(pStream, HP_EllipseDimension); |
| 5376 |
HP_Operator(pStream, HP_RoundRectangle); |
| 5377 |
} |
| 5378 |
|
| 5379 |
|
| 5380 |
|
| 5381 |
|
| 5382 |
HP_StdFuncPrefix HP_RoundRectangle_4( /* RoundRectangle signature 2 */ |
| 5383 |
|
| 5384 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5385 |
HP_Real32 x1Val, /* bounding box top left x */ |
| 5386 |
HP_Real32 y1Val, /* bounding box top left y */ |
| 5387 |
HP_Real32 x2Val, /* bounding box bottom right x */ |
| 5388 |
HP_Real32 y2Val, /* bounding box bottom right y */ |
| 5389 |
HP_Real32 xEllipse, /* ellipse x dimension */ |
| 5390 |
HP_Real32 yEllipse) /* ellipse y dimension */ |
| 5391 |
{ |
| 5392 |
HP_AttrBoxReal32(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5393 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5394 |
HP_AttrXyReal32(pStream, xEllipse, yEllipse); |
| 5395 |
HP_AttrId(pStream, HP_EllipseDimension); |
| 5396 |
HP_Operator(pStream, HP_RoundRectangle); |
| 5397 |
} |
| 5398 |
|
| 5399 |
|
| 5400 |
|
| 5401 |
HP_StdFuncPrefix HP_RoundRectanglePath_1( /* RoundRectanglePath signature 1 */ |
| 5402 |
|
| 5403 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5404 |
HP_SInt16 x1Val, /* bounding box top left x */ |
| 5405 |
HP_SInt16 y1Val, /* bounding box top left y */ |
| 5406 |
HP_SInt16 x2Val, /* bounding box bottom right x */ |
| 5407 |
HP_SInt16 y2Val, /* bounding box bottom right y */ |
| 5408 |
HP_UInt16 xEllipse, /* ellipse x dimension */ |
| 5409 |
HP_UInt16 yEllipse) /* ellipse y dimension */ |
| 5410 |
{ |
| 5411 |
HP_AttrBoxSInt16(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5412 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5413 |
HP_AttrXyUInt16(pStream, xEllipse, yEllipse); |
| 5414 |
HP_AttrId(pStream, HP_EllipseDimension); |
| 5415 |
HP_Operator(pStream, HP_RoundRectanglePath); |
| 5416 |
} |
| 5417 |
|
| 5418 |
|
| 5419 |
|
| 5420 |
HP_StdFuncPrefix HP_RoundRectanglePath_2( /* RoundRectanglePath signature 2 */ |
| 5421 |
|
| 5422 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5423 |
HP_UInt16 x1Val, /* bounding box top left x */ |
| 5424 |
HP_UInt16 y1Val, /* bounding box top left y */ |
| 5425 |
HP_UInt16 x2Val, /* bounding box bottom right x */ |
| 5426 |
HP_UInt16 y2Val, /* bounding box bottom right y */ |
| 5427 |
HP_UInt16 xEllipse, /* ellipse x dimension */ |
| 5428 |
HP_UInt16 yEllipse) /* ellipse y dimension */ |
| 5429 |
{ |
| 5430 |
HP_AttrBoxUInt16(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5431 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5432 |
HP_AttrXyUInt16(pStream, xEllipse, yEllipse); |
| 5433 |
HP_AttrId(pStream, HP_EllipseDimension); |
| 5434 |
HP_Operator(pStream, HP_RoundRectanglePath); |
| 5435 |
} |
| 5436 |
|
| 5437 |
|
| 5438 |
|
| 5439 |
|
| 5440 |
HP_StdFuncPrefix HP_RoundRectanglePath_3( /* RoundRectanglePath signature 2 */ |
| 5441 |
|
| 5442 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5443 |
HP_SInt32 x1Val, /* bounding box top left x */ |
| 5444 |
HP_SInt32 y1Val, /* bounding box top left y */ |
| 5445 |
HP_SInt32 x2Val, /* bounding box bottom right x */ |
| 5446 |
HP_SInt32 y2Val, /* bounding box bottom right y */ |
| 5447 |
HP_SInt32 xEllipse, /* ellipse x dimension */ |
| 5448 |
HP_SInt32 yEllipse) /* ellipse y dimension */ |
| 5449 |
{ |
| 5450 |
HP_AttrBoxSInt32(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5451 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5452 |
HP_AttrXySInt32(pStream, xEllipse, yEllipse); |
| 5453 |
HP_AttrId(pStream, HP_EllipseDimension); |
| 5454 |
HP_Operator(pStream, HP_RoundRectanglePath); |
| 5455 |
} |
| 5456 |
|
| 5457 |
|
| 5458 |
|
| 5459 |
|
| 5460 |
HP_StdFuncPrefix HP_RoundRectanglePath_4( /* RoundRectanglePath signature 2 */ |
| 5461 |
|
| 5462 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5463 |
HP_Real32 x1Val, /* bounding box top left x */ |
| 5464 |
HP_Real32 y1Val, /* bounding box top left y */ |
| 5465 |
HP_Real32 x2Val, /* bounding box bottom right x */ |
| 5466 |
HP_Real32 y2Val, /* bounding box bottom right y */ |
| 5467 |
HP_Real32 xEllipse, /* ellipse x dimension */ |
| 5468 |
HP_Real32 yEllipse) /* ellipse y dimension */ |
| 5469 |
{ |
| 5470 |
HP_AttrBoxReal32(pStream, x1Val, y1Val, x2Val, y2Val); |
| 5471 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5472 |
HP_AttrXyReal32(pStream, xEllipse, yEllipse); |
| 5473 |
HP_AttrId(pStream, HP_EllipseDimension); |
| 5474 |
HP_Operator(pStream, HP_RoundRectanglePath); |
| 5475 |
} |
| 5476 |
|
| 5477 |
|
| 5478 |
#define HP_EMBEDDED_SCAN_PREFIX_LEN 7 /* 7 bytes of prefix in embedded |
| 5479 |
* data per scan line */ |
| 5480 |
#define HP_SCAN_BUFFER_PREFIX_LEN 4 /* 4 words of prefix in buffer per |
| 5481 |
* scan line */ |
| 5482 |
|
| 5483 |
HP_StdFuncPrefix HP_ScanLineRel_1( /* ScanLineRel signature 1 */ |
| 5484 |
|
| 5485 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5486 |
HP_SInt16 yStart, /* y start for scan line */ |
| 5487 |
HP_SInt16 xStart, /* x start for scan line */ |
| 5488 |
HP_UInt16 *XPairArray, /* array of x pairs */ |
| 5489 |
HP_UInt16 numberOfXPairs) /* number of x pairs in scan line */ |
| 5490 |
{ |
| 5491 |
int useByteArray = 1; |
| 5492 |
|
| 5493 |
{ |
| 5494 |
HP_UInt16 i = 0; |
| 5495 |
|
| 5496 |
/* check to see if all x-pairs may be expressed as ubytes: */ |
| 5497 |
for (i=0; (i < (numberOfXPairs*2)) && (useByteArray); i++) |
| 5498 |
{ |
| 5499 |
if (XPairArray[i]>255) useByteArray = 0; |
| 5500 |
} |
| 5501 |
|
| 5502 |
} |
| 5503 |
|
| 5504 |
/* do ScanLineRel operator: */ |
| 5505 |
HP_Operator(pStream, HP_ScanLineRel); |
| 5506 |
|
| 5507 |
/* format embedded data length: */ |
| 5508 |
HP_EmbeddedDataPrefix(pStream, |
| 5509 |
HP_EMBEDDED_SCAN_PREFIX_LEN + 1 /* XStart, YStart data type */ + |
| 5510 |
((useByteArray) ? (numberOfXPairs * 2) : (numberOfXPairs * 4))); |
| 5511 |
|
| 5512 |
HP_RawUByte(pStream, HP_eSInt16); /* type of XStart, YStart */ |
| 5513 |
|
| 5514 |
/* output one scan line: */ |
| 5515 |
HP_RawUInt16(pStream, (HP_UInt16) xStart); |
| 5516 |
HP_RawUInt16(pStream, (HP_UInt16) yStart); |
| 5517 |
HP_RawUInt16(pStream, numberOfXPairs); |
| 5518 |
HP_RawUByte(pStream, (HP_UByte) ((useByteArray) ? (HP_eUByte) : (HP_eUInt16))); |
| 5519 |
|
| 5520 |
if (useByteArray) |
| 5521 |
{ |
| 5522 |
HP_RawUInt16ToByteArray(pStream, XPairArray, numberOfXPairs * 2); |
| 5523 |
} |
| 5524 |
else |
| 5525 |
{ |
| 5526 |
HP_RawUInt16Array(pStream, XPairArray, numberOfXPairs * 2); |
| 5527 |
} |
| 5528 |
|
| 5529 |
|
| 5530 |
} |
| 5531 |
#define HP_SCAN_BUFF_LEN_POS 0 |
| 5532 |
#define HP_SCAN_BUFF_INDEX_POS 1 |
| 5533 |
#define HP_SCAN_BUFF_START_POS 2 |
| 5534 |
#define HP_SCAN_BUFF_DATALEN_POS 3 |
| 5535 |
#define HP_SCAN_BUFF_LINES_POS 4 |
| 5536 |
|
| 5537 |
#define HP_SCAN_BUFF_GetBuffLen(scanLineBuff) \ |
| 5538 |
scanLineBuff[HP_SCAN_BUFF_LEN_POS] |
| 5539 |
#define HP_SCAN_BUFF_GetIndex(scanLineBuff) \ |
| 5540 |
scanLineBuff[HP_SCAN_BUFF_INDEX_POS] |
| 5541 |
#define HP_SCAN_BUFF_SetIndex(scanLineBuff, value) \ |
| 5542 |
scanLineBuff[HP_SCAN_BUFF_INDEX_POS] = value |
| 5543 |
#define HP_SCAN_BUFF_GetStartPosition(scanLineBuff) \ |
| 5544 |
scanLineBuff[HP_SCAN_BUFF_START_POS] |
| 5545 |
#define HP_SCAN_BUFF_GetDataLength(scanLineBuff) \ |
| 5546 |
scanLineBuff[HP_SCAN_BUFF_DATALEN_POS] |
| 5547 |
#define HP_SCAN_BUFF_SetDataLength(scanLineBuff, value) \ |
| 5548 |
scanLineBuff[HP_SCAN_BUFF_DATALEN_POS] = value |
| 5549 |
#define HP_SCAN_BUFF_SetNumberOfLines(scanLineBuff, value) \ |
| 5550 |
scanLineBuff[HP_SCAN_BUFF_LINES_POS] = value |
| 5551 |
#define HP_SCAN_BUFF_GetNumberOfLines(scanLineBuff) \ |
| 5552 |
scanLineBuff[HP_SCAN_BUFF_LINES_POS] |
| 5553 |
#define HP_SCAN_BUFF_IncrementNumberOfLines(scanLineBuff) \ |
| 5554 |
scanLineBuff[HP_SCAN_BUFF_LINES_POS] = scanLineBuff[HP_SCAN_BUFF_LINES_POS] + 1 |
| 5555 |
#define HP_SCAN_BUFF_SetElement(scanLineBuff, value, index) \ |
| 5556 |
scanLineBuff[index] = value |
| 5557 |
#define HP_SCAN_BUFF_GetElement(scanLineBuff, index) \ |
| 5558 |
scanLineBuff[index] |
| 5559 |
#define HP_SCAN_BUFF_IncrementIndex(scanLineBuff) \ |
| 5560 |
scanLineBuff[HP_SCAN_BUFF_INDEX_POS] = scanLineBuff[HP_SCAN_BUFF_INDEX_POS] + 1 |
| 5561 |
|
| 5562 |
HP_StdFuncPrefix HP_ScanLineRelBuffInit_1( /* ScanLineRelBuffInit signature 1 */ |
| 5563 |
|
| 5564 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5565 |
HP_UInt16 *scanLineBuff, /* scan line buffer */ |
| 5566 |
HP_UInt16 scanLineBuffLen) /* scan line buffer len */ |
| 5567 |
{ |
| 5568 |
#define HP_SCAN_BUFF_SetStartPosition(scanLineBuff) scanLineBuff[2] = 5 |
| 5569 |
#define HP_SCAN_BUFF_SetBuffLen(scanLineBuff, value) scanLineBuff[0] = value |
| 5570 |
#define HP_SCAN_BUFF_MIN_LEN 10 |
| 5571 |
|
| 5572 |
if (scanLineBuffLen >= HP_SCAN_BUFF_MIN_LEN) |
| 5573 |
{ |
| 5574 |
HP_SCAN_BUFF_SetBuffLen(scanLineBuff, scanLineBuffLen); |
| 5575 |
|
| 5576 |
HP_SCAN_BUFF_SetStartPosition(scanLineBuff); |
| 5577 |
|
| 5578 |
HP_SCAN_BUFF_SetIndex(scanLineBuff, |
| 5579 |
HP_SCAN_BUFF_GetStartPosition(scanLineBuff)); |
| 5580 |
|
| 5581 |
HP_SCAN_BUFF_SetDataLength(scanLineBuff, 1 /* XStart, YStart type */); |
| 5582 |
|
| 5583 |
HP_SCAN_BUFF_SetNumberOfLines(scanLineBuff, 0); |
| 5584 |
} |
| 5585 |
else |
| 5586 |
{ |
| 5587 |
scanLineBuff[0] = 0; |
| 5588 |
} |
| 5589 |
|
| 5590 |
#undef HP_SCAN_BUFF_MIN_LEN |
| 5591 |
#undef HP_SCAN_BUFF_SetStartPosition |
| 5592 |
} |
| 5593 |
|
| 5594 |
HP_StdFuncPrefix HP_ScanLineRelBuffFlush_1( /* ScanLineRelBuffFlush signature 1 */ |
| 5595 |
|
| 5596 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5597 |
HP_UInt16 *scanLineBuff) /* scan line buffer */ |
| 5598 |
{ |
| 5599 |
|
| 5600 |
HP_UInt16 position = HP_SCAN_BUFF_GetStartPosition(scanLineBuff); |
| 5601 |
HP_UInt16 lastPosition = HP_SCAN_BUFF_GetIndex(scanLineBuff); |
| 5602 |
HP_UInt16 dataLength = HP_SCAN_BUFF_GetDataLength(scanLineBuff); |
| 5603 |
HP_UInt16 numberOfLines = HP_SCAN_BUFF_GetNumberOfLines(scanLineBuff); |
| 5604 |
HP_UInt16 XPairType; |
| 5605 |
HP_UInt16 numberOfXPairs; |
| 5606 |
|
| 5607 |
if (numberOfLines && scanLineBuff[0]/*scan line buff initialized?*/) |
| 5608 |
{ |
| 5609 |
HP_UInt16 XStart; |
| 5610 |
HP_UInt16 YStart; |
| 5611 |
|
| 5612 |
/* do BeginScan operator: */ |
| 5613 |
HP_Operator(pStream, HP_BeginScan); |
| 5614 |
|
| 5615 |
/* do NumberOfLines attribute if more than one scan line: */ |
| 5616 |
if (numberOfLines > 1) |
| 5617 |
{ |
| 5618 |
HP_AttrUInt16(pStream, numberOfLines); |
| 5619 |
HP_AttrId(pStream, HP_NumberOfScanLines); |
| 5620 |
} |
| 5621 |
|
| 5622 |
/* do ScanLineRel operator: */ |
| 5623 |
HP_Operator(pStream, HP_ScanLineRel); |
| 5624 |
|
| 5625 |
/* do embedded data tag: */ |
| 5626 |
HP_EmbeddedDataPrefix(pStream, dataLength); |
| 5627 |
|
| 5628 |
HP_RawUByte(pStream, HP_eSInt16); /* data type of XStart, YStart */ |
| 5629 |
|
| 5630 |
/* scan line data: */ |
| 5631 |
while (position < lastPosition) |
| 5632 |
{ |
| 5633 |
XStart = HP_SCAN_BUFF_GetElement(scanLineBuff, position++); |
| 5634 |
HP_RawUInt16(pStream, XStart); |
| 5635 |
|
| 5636 |
YStart = HP_SCAN_BUFF_GetElement(scanLineBuff, position++); |
| 5637 |
HP_RawUInt16(pStream, YStart); |
| 5638 |
|
| 5639 |
numberOfXPairs = HP_SCAN_BUFF_GetElement(scanLineBuff, position++); |
| 5640 |
HP_RawUInt16(pStream, numberOfXPairs); |
| 5641 |
|
| 5642 |
XPairType = HP_SCAN_BUFF_GetElement(scanLineBuff, position++); |
| 5643 |
HP_RawUByte(pStream, (HP_UByte) XPairType); |
| 5644 |
|
| 5645 |
if (XPairType == HP_eUByte) |
| 5646 |
{ |
| 5647 |
HP_RawUInt16ToByteArray(pStream, &(scanLineBuff[position]), |
| 5648 |
numberOfXPairs * 2); |
| 5649 |
} |
| 5650 |
else |
| 5651 |
{ |
| 5652 |
HP_RawUInt16Array(pStream, &(scanLineBuff[position]), |
| 5653 |
numberOfXPairs * 2); |
| 5654 |
} |
| 5655 |
|
| 5656 |
position = position + (numberOfXPairs * 2); |
| 5657 |
|
| 5658 |
} |
| 5659 |
|
| 5660 |
HP_ScanLineRelBuffInit_1(pStream, scanLineBuff, |
| 5661 |
HP_SCAN_BUFF_GetBuffLen(scanLineBuff)); |
| 5662 |
|
| 5663 |
/* do EndScan operator: */ |
| 5664 |
HP_Operator(pStream, HP_EndScan); |
| 5665 |
|
| 5666 |
} |
| 5667 |
|
| 5668 |
} |
| 5669 |
|
| 5670 |
HP_StdFuncPrefix HP_ScanLineRelBuffAdd_1( /* ScanLineRelBuffAdd signature 1 */ |
| 5671 |
|
| 5672 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5673 |
HP_UInt16 yStart, /* y start for scan line */ |
| 5674 |
HP_UInt16 xStart, /* x start for scan line */ |
| 5675 |
HP_UInt16 *XPairArray, /* x pair array */ |
| 5676 |
HP_UInt16 numberOfXPairs, /* number of x pairs in scan line */ |
| 5677 |
HP_UInt16 *scanLineBuff) /* scan line buffer */ |
| 5678 |
{ |
| 5679 |
|
| 5680 |
HP_UInt16 saveIndex = 0; |
| 5681 |
HP_UInt16 scanLineBuffLen = HP_SCAN_BUFF_GetBuffLen(scanLineBuff); |
| 5682 |
|
| 5683 |
if ((scanLineBuffLen - HP_SCAN_BUFF_GetIndex(scanLineBuff)) <= |
| 5684 |
(HP_SCAN_BUFFER_PREFIX_LEN + (numberOfXPairs * 2))) |
| 5685 |
{ |
| 5686 |
HP_ScanLineRelBuffFlush_1(pStream, scanLineBuff); |
| 5687 |
} |
| 5688 |
|
| 5689 |
if ((scanLineBuffLen - HP_SCAN_BUFF_GetIndex(scanLineBuff)) > |
| 5690 |
(HP_SCAN_BUFFER_PREFIX_LEN + (numberOfXPairs * 2))) |
| 5691 |
{ |
| 5692 |
HP_UInt16 position = HP_SCAN_BUFF_GetIndex(scanLineBuff); |
| 5693 |
|
| 5694 |
HP_SCAN_BUFF_SetElement(scanLineBuff, (HP_UInt16) xStart, position++); |
| 5695 |
HP_SCAN_BUFF_SetElement(scanLineBuff, (HP_UInt16) yStart, position++); |
| 5696 |
HP_SCAN_BUFF_SetElement(scanLineBuff, |
| 5697 |
(HP_UInt16) numberOfXPairs, position++); |
| 5698 |
saveIndex = position++; /* save index for setting x-pair type */ |
| 5699 |
|
| 5700 |
{ |
| 5701 |
HP_UInt16 i; |
| 5702 |
int useBytes = 1; |
| 5703 |
|
| 5704 |
for (i=0; i<(numberOfXPairs*2); i++) |
| 5705 |
{ |
| 5706 |
HP_SCAN_BUFF_SetElement(scanLineBuff, |
| 5707 |
(HP_UInt16) XPairArray[i], position++); |
| 5708 |
|
| 5709 |
if (XPairArray[i] > 255) useBytes = 0; |
| 5710 |
} |
| 5711 |
|
| 5712 |
if (useBytes) |
| 5713 |
{ |
| 5714 |
/* set the type of x-pairs to the saved index */ |
| 5715 |
HP_SCAN_BUFF_SetElement(scanLineBuff, HP_eUByte, saveIndex); |
| 5716 |
/* increment the embedded data length field for byte pairs */ |
| 5717 |
HP_SCAN_BUFF_SetDataLength(scanLineBuff, |
| 5718 |
(HP_EMBEDDED_SCAN_PREFIX_LEN + |
| 5719 |
(numberOfXPairs * 2)) + |
| 5720 |
HP_SCAN_BUFF_GetDataLength(scanLineBuff)); |
| 5721 |
} |
| 5722 |
else |
| 5723 |
{ |
| 5724 |
/* set the type of x-pairs to the saved index */ |
| 5725 |
HP_SCAN_BUFF_SetElement(scanLineBuff, HP_eUInt16, saveIndex); |
| 5726 |
/* increment the embedded data length field for uint16 pairs */ |
| 5727 |
HP_SCAN_BUFF_SetDataLength(scanLineBuff, |
| 5728 |
(HP_EMBEDDED_SCAN_PREFIX_LEN + |
| 5729 |
(numberOfXPairs * 4)) + |
| 5730 |
HP_SCAN_BUFF_GetDataLength(scanLineBuff)); |
| 5731 |
} |
| 5732 |
|
| 5733 |
} |
| 5734 |
|
| 5735 |
HP_SCAN_BUFF_SetIndex(scanLineBuff, position); |
| 5736 |
|
| 5737 |
HP_SCAN_BUFF_IncrementNumberOfLines(scanLineBuff); |
| 5738 |
|
| 5739 |
} |
| 5740 |
else |
| 5741 |
{ |
| 5742 |
/* do BeginScan operator: */ |
| 5743 |
HP_Operator(pStream, HP_BeginScan); |
| 5744 |
|
| 5745 |
/* scan line buffer not large enough, just output as single scan line */ |
| 5746 |
HP_ScanLineRel_1(pStream, xStart, yStart, XPairArray, numberOfXPairs); |
| 5747 |
|
| 5748 |
/* do EndScan operator: */ |
| 5749 |
HP_Operator(pStream, HP_EndScan); |
| 5750 |
|
| 5751 |
} |
| 5752 |
|
| 5753 |
} |
| 5754 |
|
| 5755 |
#undef HP_EMBEDDED_SCAN_PREFIX_LEN |
| 5756 |
|
| 5757 |
HP_StdFuncPrefix HP_SetBrushSource_Gray1( /* SetBrushSource Gray sig. 1 */ |
| 5758 |
|
| 5759 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5760 |
HP_Real32 grayLevel) /* gray level value (0-1.0) */ |
| 5761 |
{ |
| 5762 |
HP_AttrReal32(pStream, grayLevel); |
| 5763 |
HP_AttrId(pStream, HP_GrayLevel); |
| 5764 |
HP_Operator(pStream, HP_SetBrushSource); |
| 5765 |
|
| 5766 |
} |
| 5767 |
|
| 5768 |
|
| 5769 |
HP_StdFuncPrefix HP_SetBrushSource_Gray2( /* SetBrushSource Gray sig. 2 */ |
| 5770 |
|
| 5771 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5772 |
HP_UByte grayLevel) /* gray level value (0-255) */ |
| 5773 |
{ |
| 5774 |
HP_AttrUByte(pStream, grayLevel); |
| 5775 |
HP_AttrId(pStream, HP_GrayLevel); |
| 5776 |
HP_Operator(pStream, HP_SetBrushSource); |
| 5777 |
|
| 5778 |
} |
| 5779 |
|
| 5780 |
|
| 5781 |
HP_StdFuncPrefix HP_SetBrushSource_Null1( /* SetBrushSource Null sig. 1 */ |
| 5782 |
|
| 5783 |
HP_StreamHandleType pStream) /* stream handle */ |
| 5784 |
{ |
| 5785 |
HP_AttrUByte(pStream, 0); |
| 5786 |
HP_AttrId(pStream, HP_NullBrush); |
| 5787 |
HP_Operator(pStream, HP_SetBrushSource); |
| 5788 |
} |
| 5789 |
|
| 5790 |
|
| 5791 |
|
| 5792 |
HP_StdFuncPrefix HP_SetBrushSource_Patt1( /* SetBrushSource Pattern sig. 1 */ |
| 5793 |
|
| 5794 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5795 |
HP_SInt16 patternSelectID) /* pattern select identifier */ |
| 5796 |
{ |
| 5797 |
HP_AttrSInt16(pStream, patternSelectID); |
| 5798 |
HP_AttrId(pStream, HP_PatternSelectID); |
| 5799 |
HP_Operator(pStream, HP_SetBrushSource); |
| 5800 |
|
| 5801 |
} |
| 5802 |
|
| 5803 |
|
| 5804 |
|
| 5805 |
HP_StdFuncPrefix HP_SetBrushSource_Patt2( /* SetBurshSource Pattern sig. 1 */ |
| 5806 |
|
| 5807 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5808 |
HP_SInt16 xExtent, /* pattern dest x extent */ |
| 5809 |
HP_SInt16 yExtent, /* pattern dest y extent */ |
| 5810 |
HP_SInt16 patternSelectID) /* pattern select identifier */ |
| 5811 |
{ |
| 5812 |
HP_AttrXyUInt16(pStream, xExtent, yExtent); |
| 5813 |
HP_AttrId(pStream, HP_NewDestinationSize); |
| 5814 |
HP_AttrSInt16(pStream, patternSelectID); |
| 5815 |
HP_AttrId(pStream, HP_PatternSelectID); |
| 5816 |
HP_Operator(pStream, HP_SetBrushSource); |
| 5817 |
|
| 5818 |
} |
| 5819 |
|
| 5820 |
|
| 5821 |
HP_StdFuncPrefix HP_SetBrushSource_RGB1( /* SetBrushSource RGB sig. 1 */ |
| 5822 |
|
| 5823 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5824 |
HP_Real32 redValue, /* red value */ |
| 5825 |
HP_Real32 greenValue, /* green value */ |
| 5826 |
HP_Real32 blueValue) /* blue value */ |
| 5827 |
{ |
| 5828 |
#define HP_RGB_COLOR_LEN 3 |
| 5829 |
|
| 5830 |
HP_Real32 RGB_Array[HP_RGB_COLOR_LEN]; |
| 5831 |
|
| 5832 |
RGB_Array[0] = redValue; |
| 5833 |
RGB_Array[1] = greenValue; |
| 5834 |
RGB_Array[2] = blueValue; |
| 5835 |
|
| 5836 |
HP_AttrReal32Array(pStream, RGB_Array, HP_RGB_COLOR_LEN); |
| 5837 |
HP_AttrId(pStream, HP_RGBColor); |
| 5838 |
HP_Operator(pStream, HP_SetBrushSource); |
| 5839 |
|
| 5840 |
#undef HP_RGB_COLOR_LEN |
| 5841 |
} |
| 5842 |
|
| 5843 |
HP_StdFuncPrefix HP_SetBrushSource_RGB2( /* SetBrushSource RGB sig. 2 */ |
| 5844 |
|
| 5845 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5846 |
HP_UByte redValue, /* red value */ |
| 5847 |
HP_UByte greenValue, /* green value */ |
| 5848 |
HP_UByte blueValue) /* blue value */ |
| 5849 |
{ |
| 5850 |
#define HP_RGB_COLOR_LEN 3 |
| 5851 |
|
| 5852 |
HP_UByte RGB_Array[HP_RGB_COLOR_LEN]; |
| 5853 |
|
| 5854 |
RGB_Array[0] = redValue; |
| 5855 |
RGB_Array[1] = greenValue; |
| 5856 |
RGB_Array[2] = blueValue; |
| 5857 |
|
| 5858 |
HP_AttrUByteArray(pStream, RGB_Array, HP_RGB_COLOR_LEN); |
| 5859 |
HP_AttrId(pStream, HP_RGBColor); |
| 5860 |
HP_Operator(pStream, HP_SetBrushSource); |
| 5861 |
|
| 5862 |
#undef HP_RGB_COLOR_LEN |
| 5863 |
} |
| 5864 |
|
| 5865 |
/* PCL XL 2.0 */ |
| 5866 |
|
| 5867 |
HP_StdFuncPrefix HP_SetBrushSource_Primary( /* SetBrushSource Primary */ |
| 5868 |
|
| 5869 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5870 |
HP_UByte colorSpaceEnum, /* Primary Depth */ |
| 5871 |
HP_pUByte colorData, /* array for color data */ |
| 5872 |
HP_UInt16 colorDataLen) /* length of color data array in bytes */ |
| 5873 |
{ |
| 5874 |
|
| 5875 |
HP_AttrUByte(pStream, colorSpaceEnum); |
| 5876 |
HP_AttrId(pStream, HP_PrimaryDepth); /* PrimaryDepth */ |
| 5877 |
HP_AttrUByteArray(pStream, colorData, (HP_UInt32) colorDataLen); |
| 5878 |
HP_AttrId(pStream,HP_PrimaryArray); /* PrimaryArray */ |
| 5879 |
HP_Operator(pStream,HP_SetBrushSource); |
| 5880 |
} |
| 5881 |
|
| 5882 |
|
| 5883 |
HP_StdFuncPrefix HP_SetCharAngle_1( /* SetCharAngle signature 1 */ |
| 5884 |
|
| 5885 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5886 |
HP_SInt16 charAngle) /* character angle */ |
| 5887 |
{ |
| 5888 |
HP_AttrSInt16(pStream, charAngle); |
| 5889 |
HP_AttrId(pStream, HP_CharAngle); |
| 5890 |
HP_Operator(pStream, HP_SetCharAngle); |
| 5891 |
} |
| 5892 |
|
| 5893 |
|
| 5894 |
|
| 5895 |
|
| 5896 |
HP_StdFuncPrefix HP_SetCharAngle_2( /* SetCharAngle signature 2 */ |
| 5897 |
|
| 5898 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5899 |
HP_Real32 charAngle) /* character angle */ |
| 5900 |
{ |
| 5901 |
HP_AttrReal32(pStream, charAngle); |
| 5902 |
HP_AttrId(pStream, HP_CharAngle); |
| 5903 |
HP_Operator(pStream, HP_SetCharAngle); |
| 5904 |
} |
| 5905 |
|
| 5906 |
|
| 5907 |
|
| 5908 |
|
| 5909 |
HP_StdFuncPrefix HP_SetCharScale_1( /* SetCharScale signature 1 */ |
| 5910 |
|
| 5911 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5912 |
HP_Real32 xVal, /* character x scale value */ |
| 5913 |
HP_Real32 yVal) /* character y scale value */ |
| 5914 |
{ |
| 5915 |
HP_AttrXyReal32(pStream, xVal, yVal); |
| 5916 |
HP_AttrId(pStream, HP_CharScale); |
| 5917 |
HP_Operator(pStream, HP_SetCharScale); |
| 5918 |
} |
| 5919 |
|
| 5920 |
|
| 5921 |
|
| 5922 |
|
| 5923 |
HP_StdFuncPrefix HP_SetCharShear_1( /* SetCharShear signature 1 */ |
| 5924 |
|
| 5925 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5926 |
HP_SInt16 xVal, /* character x shear value */ |
| 5927 |
HP_SInt16 yVal) /* character y shear value */ |
| 5928 |
{ |
| 5929 |
HP_AttrXySInt16(pStream, xVal, yVal); |
| 5930 |
HP_AttrId(pStream, HP_CharShear); |
| 5931 |
HP_Operator(pStream, HP_SetCharShear); |
| 5932 |
} |
| 5933 |
|
| 5934 |
|
| 5935 |
|
| 5936 |
|
| 5937 |
HP_StdFuncPrefix HP_SetCharShear_2( /* SetCharShear signature 2 */ |
| 5938 |
|
| 5939 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5940 |
HP_Real32 xVal, /* character x shear value */ |
| 5941 |
HP_Real32 yVal) /* character y shear value */ |
| 5942 |
{ |
| 5943 |
HP_AttrXyReal32(pStream, xVal, yVal); |
| 5944 |
HP_AttrId(pStream, HP_CharShear); |
| 5945 |
HP_Operator(pStream, HP_SetCharShear); |
| 5946 |
} |
| 5947 |
|
| 5948 |
HP_StdFuncPrefix HP_SetCharAttribute_1( /* SetCharAttribute signature 1 */ |
| 5949 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5950 |
HP_UByte writingMode) |
| 5951 |
{ |
| 5952 |
HP_AttrUByte(pStream, writingMode); |
| 5953 |
HP_AttrId(pStream, HP_WritingMode); |
| 5954 |
HP_Operator(pStream, HP_SetCharAttribute); |
| 5955 |
} |
| 5956 |
|
| 5957 |
HP_StdFuncPrefix HP_SetClipIntersect_1( /* SetClipIntersect signature 1 */ |
| 5958 |
|
| 5959 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5960 |
HP_UByte clipRegionEnum) /* clip region enumeration */ |
| 5961 |
{ |
| 5962 |
HP_AttrUByte(pStream, clipRegionEnum); |
| 5963 |
HP_AttrId(pStream, HP_ClipRegion); |
| 5964 |
HP_Operator(pStream, HP_SetClipIntersect); |
| 5965 |
} |
| 5966 |
|
| 5967 |
|
| 5968 |
|
| 5969 |
HP_StdFuncPrefix HP_SetClipMode_1( /* SetClipMode signature 1 */ |
| 5970 |
|
| 5971 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5972 |
HP_UByte clipModeEnum ) /* clip mode enumeration */ |
| 5973 |
{ |
| 5974 |
HP_AttrUByte(pStream, clipModeEnum); |
| 5975 |
HP_AttrId(pStream, HP_ClipMode); |
| 5976 |
HP_Operator(pStream, HP_SetClipMode); |
| 5977 |
} |
| 5978 |
|
| 5979 |
|
| 5980 |
|
| 5981 |
HP_StdFuncPrefix HP_SetClipRectangle_1( /* SetClipRectangle signature 1 */ |
| 5982 |
|
| 5983 |
HP_StreamHandleType pStream, /* stream handle */ |
| 5984 |
HP_SInt16 x1Val, /* bounding box top left x */ |
| 5985 |
HP_SInt16 y1Val, /* bounding box top left y */ |
| 5986 |
HP_SInt16 x2Val, /* bounding box bottom right x */ |
| 5987 |
HP_SInt16 y2Val, /* bounding box bottom right y */ |
| 5988 |
HP_UByte clipRegionEnum) /* clip region enumeration */ |
| 5989 |
{ |
| 5990 |
HP_AttrBoxSInt16(pStream, x1Val, y1Val,x2Val,y2Val); |
| 5991 |
HP_AttrId(pStream, HP_BoundingBox); |
| 5992 |
HP_AttrUByte(pStream, clipRegionEnum); |
| 5993 |
HP_AttrId(pStream, HP_ClipRegion); |
| 5994 |
HP_Operator(pStream, HP_SetClipRectangle); |
| 5995 |
} |
| 5996 |
|
| 5997 |
|
| 5998 |
|
| 5999 |
|
| 6000 |
HP_StdFuncPrefix HP_SetClipRectangle_2( /* SetClipRectangle signature 2 */ |
| 6001 |
|
| 6002 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6003 |
HP_UInt16 x1Val, /* bounding box top left x */ |
| 6004 |
HP_UInt16 y1Val, /* bounding box top left y */ |
| 6005 |
HP_UInt16 x2Val, /* bounding box bottom right x */ |
| 6006 |
HP_UInt16 y2Val, /* bounding box bottom right y */ |
| 6007 |
HP_UByte clipRegionEnum) /* clip region enumeration */ |
| 6008 |
{ |
| 6009 |
HP_AttrBoxUInt16(pStream, x1Val, y1Val,x2Val,y2Val); |
| 6010 |
HP_AttrId(pStream, HP_BoundingBox); |
| 6011 |
HP_AttrUByte(pStream, clipRegionEnum); |
| 6012 |
HP_AttrId(pStream, HP_ClipRegion); |
| 6013 |
HP_Operator(pStream, HP_SetClipRectangle); |
| 6014 |
} |
| 6015 |
|
| 6016 |
|
| 6017 |
|
| 6018 |
|
| 6019 |
HP_StdFuncPrefix HP_SetClipRectangle_3( /* SetClipRectangle signature 3 */ |
| 6020 |
|
| 6021 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6022 |
HP_SInt32 x1Val, /* bounding box top left x */ |
| 6023 |
HP_SInt32 y1Val, /* bounding box top left y */ |
| 6024 |
HP_SInt32 x2Val, /* bounding box bottom right x */ |
| 6025 |
HP_SInt32 y2Val, /* bounding box bottom right y */ |
| 6026 |
HP_UByte clipRegionEnum) /* clip region enumeration */ |
| 6027 |
{ |
| 6028 |
HP_AttrBoxSInt32(pStream, x1Val, y1Val,x2Val,y2Val); |
| 6029 |
HP_AttrId(pStream, HP_BoundingBox); |
| 6030 |
HP_AttrUByte(pStream, clipRegionEnum); |
| 6031 |
HP_AttrId(pStream, HP_ClipRegion); |
| 6032 |
HP_Operator(pStream, HP_SetClipRectangle); |
| 6033 |
} |
| 6034 |
|
| 6035 |
|
| 6036 |
|
| 6037 |
|
| 6038 |
HP_StdFuncPrefix HP_SetClipRectangle_4( /* SetClipRectangle signature 4 */ |
| 6039 |
|
| 6040 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6041 |
HP_Real32 x1Val, /* bounding box top left x */ |
| 6042 |
HP_Real32 y1Val, /* bounding box top left y */ |
| 6043 |
HP_Real32 x2Val, /* bounding box bottom right x */ |
| 6044 |
HP_Real32 y2Val, /* bounding box bottom right y */ |
| 6045 |
HP_UByte clipRegionEnum) /* clip region enumeration */ |
| 6046 |
{ |
| 6047 |
HP_AttrBoxReal32(pStream, x1Val, y1Val,x2Val,y2Val); |
| 6048 |
HP_AttrId(pStream, HP_BoundingBox); |
| 6049 |
HP_AttrUByte(pStream, clipRegionEnum); |
| 6050 |
HP_AttrId(pStream, HP_ClipRegion); |
| 6051 |
HP_Operator(pStream, HP_SetClipRectangle); |
| 6052 |
} |
| 6053 |
|
| 6054 |
|
| 6055 |
HP_StdFuncPrefix HP_SetClipReplace_1( /* SetClipReplace signature 1 */ |
| 6056 |
|
| 6057 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6058 |
HP_UByte clipRegionEnum) /* clip region enumeration */ |
| 6059 |
{ |
| 6060 |
HP_AttrUByte(pStream, clipRegionEnum); |
| 6061 |
HP_AttrId(pStream, HP_ClipRegion); |
| 6062 |
HP_Operator(pStream, HP_SetClipReplace); |
| 6063 |
} |
| 6064 |
|
| 6065 |
|
| 6066 |
|
| 6067 |
HP_StdFuncPrefix HP_SetClipToPage_1( /* SetClipToPage signature 1 */ |
| 6068 |
|
| 6069 |
HP_StreamHandleType pStream) /* stream handle */ |
| 6070 |
{ |
| 6071 |
HP_Operator(pStream, HP_SetClipToPage); |
| 6072 |
} |
| 6073 |
|
| 6074 |
|
| 6075 |
|
| 6076 |
HP_StdFuncPrefix HP_SetColorSpace_1( /* SetColorSpace signature 1 */ |
| 6077 |
|
| 6078 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6079 |
HP_UByte colorSpaceEnum) /* color space enumeration */ |
| 6080 |
{ |
| 6081 |
|
| 6082 |
HP_AttrUByte(pStream, colorSpaceEnum); |
| 6083 |
HP_AttrId(pStream, HP_ColorSpace); |
| 6084 |
HP_Operator(pStream,HP_SetColorSpace); |
| 6085 |
} |
| 6086 |
|
| 6087 |
|
| 6088 |
|
| 6089 |
HP_StdFuncPrefix HP_SetColorSpace_2( /* SetColorSpace signature 2 */ |
| 6090 |
|
| 6091 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6092 |
HP_UByte colorSpaceEnum, /* color space enumeration */ |
| 6093 |
HP_UByte paletteDepthEnum, /* palette depth enumeration */ |
| 6094 |
HP_pUByte array, /* palette data array */ |
| 6095 |
HP_UInt32 arrayLen) /* palette data array length */ |
| 6096 |
{ |
| 6097 |
|
| 6098 |
HP_AttrUByte(pStream, colorSpaceEnum); |
| 6099 |
HP_AttrId(pStream, HP_ColorSpace); |
| 6100 |
HP_AttrUByte(pStream, paletteDepthEnum); |
| 6101 |
HP_AttrId(pStream, HP_PaletteDepth); |
| 6102 |
HP_AttrUByteArray(pStream, array, arrayLen); |
| 6103 |
HP_AttrId(pStream, HP_PaletteData); |
| 6104 |
HP_Operator(pStream,HP_SetColorSpace); |
| 6105 |
} |
| 6106 |
|
| 6107 |
#if 0 |
| 6108 |
/* |
| 6109 |
sint16 -10 Lightness |
| 6110 |
sint16 20 Saturation |
| 6111 |
SetColorAdjustment |
| 6112 |
*/ |
| 6113 |
|
| 6114 |
HP_StdFuncPrefix HP_SetColorAdjustment_1( /* SetColorAdjustment Signature 6 */ |
| 6115 |
|
| 6116 |
HP_StreamHandleType pStream, /* Stream handle */ |
| 6117 |
HP_SInt16 lightness, |
| 6118 |
HP_SInt16 saturation) |
| 6119 |
{ |
| 6120 |
HP_AttrSInt16(pStream, lightness); |
| 6121 |
HP_AttrSInt16(pStream, saturation); |
| 6122 |
HP_Operator(pStream,HP_SetColorAdjustment); |
| 6123 |
} |
| 6124 |
#endif |
| 6125 |
|
| 6126 |
/* |
| 6127 |
ubyte eInch Measure |
| 6128 |
sint16_xy 600 600 UnitsPerMeasure |
| 6129 |
SetUserUnits |
| 6130 |
*/ |
| 6131 |
|
| 6132 |
HP_StdFuncPrefix HP_SetUserUnits_1( /* SetUserUnits signature 1 */ |
| 6133 |
|
| 6134 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6135 |
HP_UByte measure, |
| 6136 |
HP_Real32 xVal, /* absolute x location */ |
| 6137 |
HP_Real32 yVal) /* absolute y location */ |
| 6138 |
|
| 6139 |
{ |
| 6140 |
HP_AttrUByte(pStream, measure); |
| 6141 |
HP_AttrId(pStream, HP_Measure); |
| 6142 |
HP_AttrXyReal32(pStream, xVal, yVal); |
| 6143 |
HP_AttrId(pStream, HP_UnitsPerMeasure); |
| 6144 |
HP_Operator(pStream,HP_SetCursor); |
| 6145 |
} |
| 6146 |
|
| 6147 |
|
| 6148 |
HP_StdFuncPrefix HP_SetCursor_1( /* SetCursor signature 1 */ |
| 6149 |
|
| 6150 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6151 |
HP_SInt16 xVal, /* absolute x location */ |
| 6152 |
HP_SInt16 yVal) /* absolute y location */ |
| 6153 |
|
| 6154 |
{ |
| 6155 |
HP_AttrXySInt16(pStream, xVal, yVal); |
| 6156 |
HP_AttrId(pStream, HP_Point); |
| 6157 |
HP_Operator(pStream,HP_SetCursor); |
| 6158 |
} |
| 6159 |
|
| 6160 |
|
| 6161 |
HP_StdFuncPrefix HP_SetCursor_2( /* SetCursor signature 2 */ |
| 6162 |
|
| 6163 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6164 |
HP_UInt16 xVal, /* absolute x location */ |
| 6165 |
HP_UInt16 yVal) /* absolute y location */ |
| 6166 |
|
| 6167 |
{ |
| 6168 |
HP_AttrXyUInt16(pStream, xVal, yVal); |
| 6169 |
HP_AttrId(pStream, HP_Point); |
| 6170 |
HP_Operator(pStream,HP_SetCursor); |
| 6171 |
} |
| 6172 |
|
| 6173 |
|
| 6174 |
|
| 6175 |
|
| 6176 |
HP_StdFuncPrefix HP_SetCursor_3( /* SetCursor signature 3 */ |
| 6177 |
|
| 6178 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6179 |
HP_SInt32 xVal, /* absolute x location */ |
| 6180 |
HP_SInt32 yVal) /* absolute y location */ |
| 6181 |
|
| 6182 |
{ |
| 6183 |
HP_AttrXySInt32(pStream, xVal, yVal); |
| 6184 |
HP_AttrId(pStream, HP_Point); |
| 6185 |
HP_Operator(pStream,HP_SetCursor); |
| 6186 |
} |
| 6187 |
|
| 6188 |
|
| 6189 |
|
| 6190 |
|
| 6191 |
HP_StdFuncPrefix HP_SetCursor_4( /* SetCursor signature 4 */ |
| 6192 |
|
| 6193 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6194 |
HP_Real32 xVal, /* absolute x location */ |
| 6195 |
HP_Real32 yVal) /* absolute y location */ |
| 6196 |
|
| 6197 |
{ |
| 6198 |
HP_AttrXyReal32(pStream, xVal, yVal); |
| 6199 |
HP_AttrId(pStream, HP_Point); |
| 6200 |
HP_Operator(pStream,HP_SetCursor); |
| 6201 |
} |
| 6202 |
|
| 6203 |
|
| 6204 |
|
| 6205 |
|
| 6206 |
HP_StdFuncPrefix HP_SetCursorRel_1( /* SetCursorRel signature 1 */ |
| 6207 |
|
| 6208 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6209 |
HP_SInt16 xVal, /* absolute x location */ |
| 6210 |
HP_SInt16 yVal) /* absolute y location */ |
| 6211 |
|
| 6212 |
{ |
| 6213 |
HP_AttrXySInt16(pStream, xVal, yVal); |
| 6214 |
HP_AttrId(pStream, HP_Point); |
| 6215 |
HP_Operator(pStream,HP_SetCursorRel); |
| 6216 |
} |
| 6217 |
|
| 6218 |
|
| 6219 |
|
| 6220 |
|
| 6221 |
HP_StdFuncPrefix HP_SetCursorRel_2( /* SetCursorRel signature 2 */ |
| 6222 |
|
| 6223 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6224 |
HP_UInt16 xVal, /* absolute x location */ |
| 6225 |
HP_UInt16 yVal) /* absolute y location */ |
| 6226 |
|
| 6227 |
{ |
| 6228 |
HP_AttrXyUInt16(pStream, xVal, yVal); |
| 6229 |
HP_AttrId(pStream, HP_Point); |
| 6230 |
HP_Operator(pStream,HP_SetCursorRel); |
| 6231 |
} |
| 6232 |
|
| 6233 |
|
| 6234 |
|
| 6235 |
|
| 6236 |
HP_StdFuncPrefix HP_SetCursorRel_3( /* SetCursorRel signature 3 */ |
| 6237 |
|
| 6238 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6239 |
HP_SInt32 xVal, /* absolute x location */ |
| 6240 |
HP_SInt32 yVal) /* absolute y location */ |
| 6241 |
|
| 6242 |
{ |
| 6243 |
HP_AttrXySInt32(pStream, xVal, yVal); |
| 6244 |
HP_AttrId(pStream, HP_Point); |
| 6245 |
HP_Operator(pStream,HP_SetCursorRel); |
| 6246 |
} |
| 6247 |
|
| 6248 |
|
| 6249 |
|
| 6250 |
|
| 6251 |
HP_StdFuncPrefix HP_SetCursorRel_4( /* SetCursorRel signature 4 */ |
| 6252 |
|
| 6253 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6254 |
HP_Real32 xVal, /* absolute x location */ |
| 6255 |
HP_Real32 yVal) /* absolute y location */ |
| 6256 |
|
| 6257 |
{ |
| 6258 |
HP_AttrXyReal32(pStream, xVal, yVal); |
| 6259 |
HP_AttrId(pStream, HP_Point); |
| 6260 |
HP_Operator(pStream,HP_SetCursorRel); |
| 6261 |
} |
| 6262 |
|
| 6263 |
|
| 6264 |
|
| 6265 |
|
| 6266 |
HP_StdFuncPrefix HP_SetHalftoneMethod_1( /* SetHalftoneMethod signature 1 */ |
| 6267 |
|
| 6268 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6269 |
HP_UByte ditherMatrixEnum) /* dither matrix enumeration */ |
| 6270 |
{ |
| 6271 |
HP_AttrUByte(pStream, ditherMatrixEnum); |
| 6272 |
HP_AttrId(pStream, HP_DeviceMatrix); |
| 6273 |
HP_Operator(pStream, HP_SetHalftoneMethod); |
| 6274 |
} |
| 6275 |
|
| 6276 |
|
| 6277 |
|
| 6278 |
|
| 6279 |
HP_StdFuncPrefix HP_SetHalftoneMethod_2( /* SetHalftoneMethod signature 2 */ |
| 6280 |
|
| 6281 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6282 |
HP_UInt16 matrixSizeX, /* Number of matrix X entries */ |
| 6283 |
HP_UInt16 matrixSizeY, /* Number of matrix Y entries */ |
| 6284 |
HP_UByte ditherMatrixDepth, /* depth of the dither matrix */ |
| 6285 |
HP_UByte ditherMatrixDataType) /* dither matrix data type */ |
| 6286 |
{ |
| 6287 |
HP_AttrXyUInt16(pStream, matrixSizeX, matrixSizeY); |
| 6288 |
HP_AttrId(pStream, HP_DitherMatrixSize); |
| 6289 |
HP_AttrUByte(pStream, ditherMatrixDepth); |
| 6290 |
HP_AttrId(pStream, HP_DitherMatrixDepth); |
| 6291 |
HP_AttrUByte(pStream, ditherMatrixDataType); |
| 6292 |
HP_AttrId(pStream, HP_DitherMatrixDataType); |
| 6293 |
HP_Operator(pStream, HP_SetHalftoneMethod); |
| 6294 |
} |
| 6295 |
|
| 6296 |
|
| 6297 |
|
| 6298 |
|
| 6299 |
HP_StdFuncPrefix HP_SetHalftoneMethod_3( /* SetHalftoneMethod signature 3 */ |
| 6300 |
|
| 6301 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6302 |
HP_UInt16 matrixSizeX, /* Number of matrix X entries */ |
| 6303 |
HP_UInt16 matrixSizeY, /* Number of matrix Y entries */ |
| 6304 |
HP_UByte ditherMatrixDepth, /* depth of the dither matrix */ |
| 6305 |
HP_UInt16 xVal, /* dither matrix origin x */ |
| 6306 |
HP_UInt16 yVal, /* dither matrix origin x */ |
| 6307 |
HP_UByte ditherMatrixDataType) /* dither matrix data type */ |
| 6308 |
{ |
| 6309 |
HP_AttrXyUInt16(pStream, matrixSizeX, matrixSizeY); |
| 6310 |
HP_AttrId(pStream, HP_DitherMatrixSize); |
| 6311 |
HP_AttrUByte(pStream, ditherMatrixDepth); |
| 6312 |
HP_AttrId(pStream, HP_DitherMatrixDepth); |
| 6313 |
HP_AttrUByte(pStream, ditherMatrixDataType); |
| 6314 |
HP_AttrId(pStream, HP_DitherMatrixDataType); |
| 6315 |
HP_AttrXyUInt16(pStream, xVal, yVal); |
| 6316 |
HP_AttrId(pStream, HP_DitherOrigin); |
| 6317 |
HP_Operator(pStream, HP_SetHalftoneMethod); |
| 6318 |
} |
| 6319 |
|
| 6320 |
|
| 6321 |
HP_StdFuncPrefix HP_SetFillMode_1( /* SetFillMode signature 1 */ |
| 6322 |
|
| 6323 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6324 |
HP_UByte fillModeEnum) /* fill mode enumeration */ |
| 6325 |
{ |
| 6326 |
HP_AttrUByte(pStream, fillModeEnum); |
| 6327 |
HP_AttrId(pStream, HP_FillMode); |
| 6328 |
HP_Operator(pStream, HP_SetFillMode); |
| 6329 |
} |
| 6330 |
|
| 6331 |
|
| 6332 |
HP_StdFuncPrefix HP_SetFont_1( /* SetFont signature 1 */ |
| 6333 |
|
| 6334 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6335 |
HP_pUByte fontName, /* font name array */ |
| 6336 |
HP_UInt16 fontNameLen, /* font name array length */ |
| 6337 |
HP_Real32 charSize, /* char size in user units */ |
| 6338 |
HP_UInt16 symbolSetEnum) /* symbol set enumeration */ |
| 6339 |
{ |
| 6340 |
HP_AttrUByteArray(pStream, fontName, fontNameLen); |
| 6341 |
HP_AttrId(pStream, HP_FontName); |
| 6342 |
HP_AttrReal32(pStream, charSize); |
| 6343 |
HP_AttrId(pStream, HP_CharSize); |
| 6344 |
HP_AttrUInt16(pStream, symbolSetEnum); |
| 6345 |
HP_AttrId(pStream, HP_SymbolSet); |
| 6346 |
HP_Operator(pStream, HP_SetFont); |
| 6347 |
} |
| 6348 |
|
| 6349 |
HP_StdFuncPrefix HP_SetCharSubMode_1( /* SetCharSubMode signature 1 */ |
| 6350 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6351 |
HP_pUByte pSubModeArray, /* substitution modes array */ |
| 6352 |
HP_UByte subModeArrayLength) /* substitution modes array length */ |
| 6353 |
{ |
| 6354 |
HP_AttrUByteArray(pStream, pSubModeArray, (HP_UInt32)subModeArrayLength); |
| 6355 |
HP_AttrId(pStream, HP_CharSubModeArray); |
| 6356 |
HP_Operator(pStream, HP_SetCharSubMode); |
| 6357 |
} |
| 6358 |
|
| 6359 |
HP_StdFuncPrefix HP_SetLineCap_1( /* SetLineCap signature 1 */ |
| 6360 |
|
| 6361 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6362 |
HP_UByte lineCapEnum) /* line cap enumeration */ |
| 6363 |
{ |
| 6364 |
HP_AttrUByte(pStream, lineCapEnum); |
| 6365 |
HP_AttrId(pStream, HP_LineCapStyle); |
| 6366 |
HP_Operator(pStream, HP_SetLineCap); |
| 6367 |
} |
| 6368 |
|
| 6369 |
|
| 6370 |
|
| 6371 |
|
| 6372 |
HP_StdFuncPrefix HP_SetLineDash_1( /* SetLineDash signature 1 */ |
| 6373 |
|
| 6374 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6375 |
HP_pUInt16 array, /* line dash units array */ |
| 6376 |
HP_UInt16 arrayLen) /* line dash array length */ |
| 6377 |
{ |
| 6378 |
HP_AttrUInt16Array(pStream, array, arrayLen); |
| 6379 |
HP_AttrId(pStream, HP_LineDashStyle); |
| 6380 |
HP_Operator(pStream, HP_SetLineDash); |
| 6381 |
} |
| 6382 |
|
| 6383 |
|
| 6384 |
|
| 6385 |
|
| 6386 |
HP_StdFuncPrefix HP_SetLineDash_2( /* SetLineDash signature 2 */ |
| 6387 |
|
| 6388 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6389 |
HP_pUInt16 array, /* line dash units array */ |
| 6390 |
HP_UInt16 arrayLen, /* line dash array length */ |
| 6391 |
HP_UInt16 dashOffset) /* offset into line dash array */ |
| 6392 |
{ |
| 6393 |
HP_AttrUInt16Array(pStream, array, arrayLen); |
| 6394 |
HP_AttrId(pStream, HP_LineDashStyle); |
| 6395 |
HP_AttrUInt16(pStream, dashOffset); |
| 6396 |
HP_AttrId(pStream, HP_DashOffset); |
| 6397 |
HP_Operator(pStream, HP_SetLineDash); |
| 6398 |
} |
| 6399 |
|
| 6400 |
|
| 6401 |
|
| 6402 |
|
| 6403 |
HP_StdFuncPrefix HP_SetLineDash_Solid1( /* SetLineDash signature Solid1 */ |
| 6404 |
|
| 6405 |
HP_StreamHandleType pStream) /* stream handle */ |
| 6406 |
{ |
| 6407 |
HP_AttrUByte(pStream, 0); |
| 6408 |
HP_AttrId(pStream, HP_SolidLine); |
| 6409 |
HP_Operator(pStream, HP_SetLineDash); |
| 6410 |
} |
| 6411 |
|
| 6412 |
|
| 6413 |
|
| 6414 |
|
| 6415 |
HP_StdFuncPrefix HP_SetLineJoin_1( /* SetLineJoin signature 1 */ |
| 6416 |
|
| 6417 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6418 |
HP_UByte lineJoinEnum) /* line join enumeration */ |
| 6419 |
{ |
| 6420 |
HP_AttrUByte(pStream, lineJoinEnum); |
| 6421 |
HP_AttrId(pStream, HP_LineJoinStyle); |
| 6422 |
HP_Operator(pStream,HP_SetLineJoin); |
| 6423 |
} |
| 6424 |
|
| 6425 |
|
| 6426 |
|
| 6427 |
|
| 6428 |
HP_StdFuncPrefix HP_SetMiterLimit_1( /* SetMiterLimit signature 1 */ |
| 6429 |
|
| 6430 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6431 |
HP_UInt16 miterLength) /* maximum miter shape length */ |
| 6432 |
{ |
| 6433 |
HP_AttrUInt16(pStream, miterLength); |
| 6434 |
HP_AttrId(pStream, HP_MiterLength); |
| 6435 |
HP_Operator(pStream, HP_SetMiterLimit); |
| 6436 |
} |
| 6437 |
|
| 6438 |
|
| 6439 |
|
| 6440 |
HP_StdFuncPrefix HP_SetMiterLimit_2( /* SetMiterLimit signature 2 */ |
| 6441 |
|
| 6442 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6443 |
HP_Real32 miterLength) /* maximum miter shape length */ |
| 6444 |
{ |
| 6445 |
HP_AttrReal32(pStream, miterLength); |
| 6446 |
HP_AttrId(pStream, HP_MiterLength); |
| 6447 |
HP_Operator(pStream, HP_SetMiterLimit); |
| 6448 |
} |
| 6449 |
|
| 6450 |
|
| 6451 |
|
| 6452 |
|
| 6453 |
HP_StdFuncPrefix HP_SetPageDefaultCTM_1( /* SetPageDefault signature 1 */ |
| 6454 |
|
| 6455 |
HP_StreamHandleType pStream) /* stream handle */ |
| 6456 |
{ |
| 6457 |
HP_Operator(pStream, HP_SetPageDefaultCTM); |
| 6458 |
} |
| 6459 |
|
| 6460 |
|
| 6461 |
|
| 6462 |
|
| 6463 |
HP_StdFuncPrefix HP_SetPageOrigin_1( /* SetPageOrigin signature 1 */ |
| 6464 |
|
| 6465 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6466 |
HP_SInt16 xVal, /* new origin x value */ |
| 6467 |
HP_SInt16 yVal) /* new origin y value */ |
| 6468 |
{ |
| 6469 |
HP_AttrXySInt16(pStream, xVal, yVal); |
| 6470 |
HP_AttrId(pStream, HP_PageOrigin); |
| 6471 |
HP_Operator(pStream, HP_SetPageOrigin); |
| 6472 |
} |
| 6473 |
|
| 6474 |
|
| 6475 |
|
| 6476 |
|
| 6477 |
HP_StdFuncPrefix HP_SetPageOrigin_2( /* SetPageOrigin signature 2 */ |
| 6478 |
|
| 6479 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6480 |
HP_UInt16 xVal, /* new origin x value */ |
| 6481 |
HP_UInt16 yVal) /* new origin y value */ |
| 6482 |
{ |
| 6483 |
HP_AttrXyUInt16(pStream, xVal, yVal); |
| 6484 |
HP_AttrId(pStream, HP_PageOrigin); |
| 6485 |
HP_Operator(pStream, HP_SetPageOrigin); |
| 6486 |
} |
| 6487 |
|
| 6488 |
|
| 6489 |
|
| 6490 |
|
| 6491 |
HP_StdFuncPrefix HP_SetPageOrigin_3( /* SetPageOrigin signature 3 */ |
| 6492 |
|
| 6493 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6494 |
HP_SInt32 xVal, /* new origin x value */ |
| 6495 |
HP_SInt32 yVal) /* new origin y value */ |
| 6496 |
{ |
| 6497 |
HP_AttrXySInt32(pStream, xVal, yVal); |
| 6498 |
HP_AttrId(pStream, HP_PageOrigin); |
| 6499 |
HP_Operator(pStream, HP_SetPageOrigin); |
| 6500 |
} |
| 6501 |
|
| 6502 |
|
| 6503 |
|
| 6504 |
|
| 6505 |
HP_StdFuncPrefix HP_SetPageOrigin_4( /* SetPageOrigin signature 4 */ |
| 6506 |
|
| 6507 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6508 |
HP_Real32 xVal, /* new origin x value */ |
| 6509 |
HP_Real32 yVal) /* new origin y value */ |
| 6510 |
{ |
| 6511 |
HP_AttrXyReal32(pStream, xVal, yVal); |
| 6512 |
HP_AttrId(pStream, HP_PageOrigin); |
| 6513 |
HP_Operator(pStream, HP_SetPageOrigin); |
| 6514 |
} |
| 6515 |
|
| 6516 |
|
| 6517 |
|
| 6518 |
|
| 6519 |
HP_StdFuncPrefix HP_SetPageRotation_1( /* SetPageRotation signature 1 */ |
| 6520 |
|
| 6521 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6522 |
HP_SInt16 pageAngle) /* page angle value */ |
| 6523 |
{ |
| 6524 |
HP_AttrSInt16(pStream, pageAngle); |
| 6525 |
HP_AttrId(pStream, HP_PageAngle); |
| 6526 |
HP_Operator(pStream, HP_SetPageRotation); |
| 6527 |
} |
| 6528 |
|
| 6529 |
|
| 6530 |
|
| 6531 |
|
| 6532 |
HP_StdFuncPrefix HP_SetPageRotation_2( /* SetPageRotation signature 2 */ |
| 6533 |
|
| 6534 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6535 |
HP_Real32 pageAngle) /* page angle value */ |
| 6536 |
{ |
| 6537 |
HP_AttrReal32(pStream, pageAngle); |
| 6538 |
HP_AttrId(pStream, HP_PageAngle); |
| 6539 |
HP_Operator(pStream, HP_SetPageRotation); |
| 6540 |
} |
| 6541 |
|
| 6542 |
|
| 6543 |
|
| 6544 |
|
| 6545 |
HP_StdFuncPrefix HP_SetPageScale_1( /* SetPageScale signature 1 */ |
| 6546 |
|
| 6547 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6548 |
HP_Real32 xVal, /* x scale factor */ |
| 6549 |
HP_Real32 yVal) /* y scale factor */ |
| 6550 |
{ |
| 6551 |
HP_AttrXyReal32(pStream, xVal, yVal); |
| 6552 |
HP_AttrId(pStream, HP_PageScale); |
| 6553 |
HP_Operator(pStream, HP_SetPageScale); |
| 6554 |
} |
| 6555 |
|
| 6556 |
|
| 6557 |
|
| 6558 |
|
| 6559 |
HP_StdFuncPrefix HP_SetPathToClip_1( /* SetPathToClip signature 1 */ |
| 6560 |
|
| 6561 |
HP_StreamHandleType pStream) /* stream handle */ |
| 6562 |
{ |
| 6563 |
HP_Operator(pStream, HP_SetPathToClip); |
| 6564 |
} |
| 6565 |
|
| 6566 |
|
| 6567 |
|
| 6568 |
HP_StdFuncPrefix HP_SetPaintTxMode_1( /* SetPaintTxMode signature 1 */ |
| 6569 |
|
| 6570 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6571 |
HP_UByte transparancyEnum) /* transparency mode enumeration */ |
| 6572 |
{ |
| 6573 |
HP_AttrUByte(pStream, transparancyEnum); |
| 6574 |
HP_AttrId(pStream, HP_TxMode); |
| 6575 |
HP_Operator(pStream, HP_SetPaintTxMode); |
| 6576 |
} |
| 6577 |
|
| 6578 |
|
| 6579 |
|
| 6580 |
|
| 6581 |
HP_StdFuncPrefix HP_SetPenSource_Gray1( /* SetPenSource Gray sig. 1 */ |
| 6582 |
|
| 6583 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6584 |
HP_Real32 grayLevel) /* gray level value (0-1.0) */ |
| 6585 |
{ |
| 6586 |
HP_AttrReal32(pStream, grayLevel); |
| 6587 |
HP_AttrId(pStream, HP_GrayLevel); |
| 6588 |
HP_Operator(pStream, HP_SetPenSource); |
| 6589 |
|
| 6590 |
} |
| 6591 |
|
| 6592 |
|
| 6593 |
HP_StdFuncPrefix HP_SetPenSource_Gray2( /* SetPenSource Gray sig. 2 */ |
| 6594 |
|
| 6595 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6596 |
HP_UByte grayLevel) /* gray level value (0-255) */ |
| 6597 |
{ |
| 6598 |
HP_AttrUByte(pStream, grayLevel); |
| 6599 |
HP_AttrId(pStream, HP_GrayLevel); |
| 6600 |
HP_Operator(pStream, HP_SetPenSource); |
| 6601 |
|
| 6602 |
} |
| 6603 |
|
| 6604 |
/* PCL XL 2.0 */ |
| 6605 |
|
| 6606 |
HP_StdFuncPrefix HP_SetPenSource_Primary( /* SetPenSource Primary */ |
| 6607 |
|
| 6608 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6609 |
HP_UByte colorSpaceEnum, /* Primary Depth */ |
| 6610 |
HP_pUByte colorData, /* array for color data */ |
| 6611 |
HP_UInt16 colorDataLen) /* length of color data array in bytes */ |
| 6612 |
{ |
| 6613 |
|
| 6614 |
HP_AttrUByte(pStream, colorSpaceEnum); |
| 6615 |
HP_AttrId(pStream, HP_PrimaryDepth); /* PrimaryDepth */ |
| 6616 |
HP_AttrUByteArray(pStream, colorData, (HP_UInt32) colorDataLen); |
| 6617 |
HP_AttrId(pStream,HP_PrimaryArray); /* PrimaryArray */ |
| 6618 |
HP_Operator(pStream,HP_SetPenSource); |
| 6619 |
} |
| 6620 |
|
| 6621 |
HP_StdFuncPrefix HP_SetPenSource_Null1( /* SetPenSource Null sig. 1 */ |
| 6622 |
|
| 6623 |
HP_StreamHandleType pStream) /* stream handle */ |
| 6624 |
{ |
| 6625 |
HP_AttrUByte(pStream, 0); |
| 6626 |
HP_AttrId(pStream, HP_NullPen); |
| 6627 |
HP_Operator(pStream, HP_SetPenSource); |
| 6628 |
} |
| 6629 |
|
| 6630 |
|
| 6631 |
|
| 6632 |
|
| 6633 |
HP_StdFuncPrefix HP_SetPenSource_Patt1( /* SetPenSource Pattern sig. 1 */ |
| 6634 |
|
| 6635 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6636 |
HP_SInt16 patternSelectID) /* pattern select identifier */ |
| 6637 |
{ |
| 6638 |
HP_AttrSInt16(pStream, patternSelectID); |
| 6639 |
HP_AttrId(pStream, HP_PatternSelectID); |
| 6640 |
HP_Operator(pStream, HP_SetPenSource); |
| 6641 |
|
| 6642 |
} |
| 6643 |
|
| 6644 |
HP_StdFuncPrefix HP_SetPenSource_Patt2( /* SetPenSource Pattern sig. 1 */ |
| 6645 |
|
| 6646 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6647 |
HP_SInt16 xExtent, /* pattern dest x extent */ |
| 6648 |
HP_SInt16 yExtent, /* pattern dest y extent */ |
| 6649 |
HP_SInt16 patternSelectID) /* pattern select identifier */ |
| 6650 |
{ |
| 6651 |
HP_AttrXyUInt16(pStream, xExtent, yExtent); |
| 6652 |
HP_AttrId(pStream, HP_NewDestinationSize); |
| 6653 |
HP_AttrSInt16(pStream, patternSelectID); |
| 6654 |
HP_AttrId(pStream, HP_PatternSelectID); |
| 6655 |
HP_Operator(pStream, HP_SetPenSource); |
| 6656 |
|
| 6657 |
} |
| 6658 |
|
| 6659 |
HP_StdFuncPrefix HP_SetPenSource_RGB1( /* SetPenSource RGB sig. 1 */ |
| 6660 |
|
| 6661 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6662 |
HP_Real32 redValue, /* red value */ |
| 6663 |
HP_Real32 greenValue, /* green value */ |
| 6664 |
HP_Real32 blueValue) /* blue value */ |
| 6665 |
{ |
| 6666 |
#define HP_RGB_COLOR_LEN 3 |
| 6667 |
|
| 6668 |
HP_Real32 RGB_Array[HP_RGB_COLOR_LEN]; |
| 6669 |
|
| 6670 |
RGB_Array[0] = redValue; |
| 6671 |
RGB_Array[1] = greenValue; |
| 6672 |
RGB_Array[2] = blueValue; |
| 6673 |
|
| 6674 |
HP_AttrReal32Array(pStream, RGB_Array, HP_RGB_COLOR_LEN); |
| 6675 |
HP_AttrId(pStream, HP_RGBColor); |
| 6676 |
HP_Operator(pStream, HP_SetPenSource); |
| 6677 |
|
| 6678 |
#undef HP_RGB_COLOR_LEN |
| 6679 |
} |
| 6680 |
|
| 6681 |
HP_StdFuncPrefix HP_SetPenSource_RGB2( /* SetPenSource RGB sig. 2 */ |
| 6682 |
|
| 6683 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6684 |
HP_UByte redValue, /* red value */ |
| 6685 |
HP_UByte greenValue, /* green value */ |
| 6686 |
HP_UByte blueValue) /* blue value */ |
| 6687 |
{ |
| 6688 |
#define HP_RGB_COLOR_LEN 3 |
| 6689 |
|
| 6690 |
HP_UByte RGB_Array[HP_RGB_COLOR_LEN]; |
| 6691 |
|
| 6692 |
RGB_Array[0] = redValue; |
| 6693 |
RGB_Array[1] = greenValue; |
| 6694 |
RGB_Array[2] = blueValue; |
| 6695 |
|
| 6696 |
HP_AttrUByteArray(pStream, RGB_Array, HP_RGB_COLOR_LEN); |
| 6697 |
HP_AttrId(pStream, HP_RGBColor); |
| 6698 |
HP_Operator(pStream, HP_SetPenSource); |
| 6699 |
|
| 6700 |
#undef HP_RGB_COLOR_LEN |
| 6701 |
} |
| 6702 |
|
| 6703 |
|
| 6704 |
|
| 6705 |
HP_StdFuncPrefix HP_SetPenWidth_1( /* SetPenWidth signature 1 */ |
| 6706 |
|
| 6707 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6708 |
HP_UInt16 penWidth) /* pen width */ |
| 6709 |
{ |
| 6710 |
HP_AttrUInt16(pStream, penWidth); |
| 6711 |
HP_AttrId(pStream, HP_PenWidth); |
| 6712 |
HP_Operator(pStream, HP_SetPenWidth); |
| 6713 |
} |
| 6714 |
|
| 6715 |
|
| 6716 |
|
| 6717 |
HP_StdFuncPrefix HP_SetPenWidth_2( /* SetPenWidth signature 2 */ |
| 6718 |
|
| 6719 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6720 |
HP_Real32 penWidth) /* pen width */ |
| 6721 |
{ |
| 6722 |
HP_AttrReal32(pStream, penWidth); |
| 6723 |
HP_AttrId(pStream, HP_PenWidth); |
| 6724 |
HP_Operator(pStream, HP_SetPenWidth); |
| 6725 |
} |
| 6726 |
|
| 6727 |
|
| 6728 |
|
| 6729 |
|
| 6730 |
HP_StdFuncPrefix HP_SetROP_1( /* SetROP signature 1 */ |
| 6731 |
|
| 6732 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6733 |
HP_UByte rop3) /* rop 3 value */ |
| 6734 |
{ |
| 6735 |
HP_AttrUByte(pStream, rop3); |
| 6736 |
HP_AttrId(pStream, HP_ROP3); |
| 6737 |
HP_Operator(pStream, HP_SetROP); |
| 6738 |
} |
| 6739 |
|
| 6740 |
|
| 6741 |
|
| 6742 |
|
| 6743 |
HP_StdFuncPrefix HP_SetSourceTxMode_1( /* SetSourceTxMode signature 1 */ |
| 6744 |
|
| 6745 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6746 |
HP_UByte transparancyEnum) /* transparency mode enumeration */ |
| 6747 |
{ |
| 6748 |
HP_AttrUByte(pStream, transparancyEnum); |
| 6749 |
HP_AttrId(pStream, HP_TxMode); |
| 6750 |
HP_Operator(pStream, HP_SetSourceTxMode); |
| 6751 |
} |
| 6752 |
|
| 6753 |
|
| 6754 |
HP_StdFuncPrefix HP_Text_1( /* Text signature 1 */ |
| 6755 |
|
| 6756 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6757 |
HP_pUByte charArray, /* character array containing text */ |
| 6758 |
HP_UInt32 charArrayLen, /* length of character array */ |
| 6759 |
HP_pSInt16 xSpaceArray, /* x escapement array */ |
| 6760 |
HP_UInt32 xSpaceArrayLen) /* x escapement array length */ |
| 6761 |
{ |
| 6762 |
HP_AttrUByteArray(pStream, charArray, charArrayLen); |
| 6763 |
HP_AttrId(pStream, HP_TextData); |
| 6764 |
|
| 6765 |
{ |
| 6766 |
int useByteArray = 1; |
| 6767 |
HP_UInt32 i = 0; |
| 6768 |
|
| 6769 |
/* check to see of all escapements may be expressed as ubytes: */ |
| 6770 |
for (i=0; (i < xSpaceArrayLen) && (useByteArray); i++) |
| 6771 |
{ |
| 6772 |
if ((xSpaceArray[i]>255) || (xSpaceArray[i]<0)) |
| 6773 |
useByteArray = 0; |
| 6774 |
} |
| 6775 |
|
| 6776 |
if (useByteArray) |
| 6777 |
{ |
| 6778 |
HP_AttrSInt16ToByteArray(pStream, xSpaceArray, xSpaceArrayLen); |
| 6779 |
} |
| 6780 |
else |
| 6781 |
{ |
| 6782 |
HP_AttrSInt16Array(pStream, xSpaceArray, xSpaceArrayLen); |
| 6783 |
} |
| 6784 |
} |
| 6785 |
|
| 6786 |
HP_AttrId(pStream, HP_XSpacingData); |
| 6787 |
HP_Operator(pStream, HP_Text); |
| 6788 |
} |
| 6789 |
|
| 6790 |
HP_StdFuncPrefix HP_Text_2( /* Text signature 2 */ |
| 6791 |
|
| 6792 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6793 |
HP_pUByte charArray, /* character array containing text */ |
| 6794 |
HP_UInt32 charArrayLen, /* length of character array */ |
| 6795 |
HP_pSInt16 ySpaceArray, /* y escapement array */ |
| 6796 |
HP_UInt32 ySpaceArrayLen) /* y escapement array length */ |
| 6797 |
{ |
| 6798 |
HP_AttrUByteArray(pStream, charArray, charArrayLen); |
| 6799 |
HP_AttrId(pStream, HP_TextData); |
| 6800 |
|
| 6801 |
{ |
| 6802 |
int useByteArray = 1; |
| 6803 |
HP_UInt32 i = 0; |
| 6804 |
|
| 6805 |
/* check to see of all escapements may be expressed as ubytes: */ |
| 6806 |
for (i=0; (i < ySpaceArrayLen) && (useByteArray); i++) |
| 6807 |
{ |
| 6808 |
if ((ySpaceArray[i]>255) || (ySpaceArray[i]<0)) |
| 6809 |
useByteArray = 0; |
| 6810 |
} |
| 6811 |
|
| 6812 |
if (useByteArray) |
| 6813 |
{ |
| 6814 |
HP_AttrSInt16ToByteArray(pStream, ySpaceArray, ySpaceArrayLen); |
| 6815 |
} |
| 6816 |
else |
| 6817 |
{ |
| 6818 |
HP_AttrSInt16Array(pStream, ySpaceArray, ySpaceArrayLen); |
| 6819 |
} |
| 6820 |
} |
| 6821 |
HP_AttrId(pStream, HP_YSpacingData); |
| 6822 |
HP_Operator(pStream, HP_Text); |
| 6823 |
} |
| 6824 |
|
| 6825 |
HP_StdFuncPrefix HP_Text_3( /* Text signature 3 */ |
| 6826 |
|
| 6827 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6828 |
HP_pUByte charArray, /* character array containing text */ |
| 6829 |
HP_UInt32 charArrayLen, /* length of character array */ |
| 6830 |
HP_pSInt16 xSpaceArray, /* x escapement array */ |
| 6831 |
HP_UInt32 xSpaceArrayLen, /* x escapement array length */ |
| 6832 |
HP_pSInt16 ySpaceArray, /* y escapement array */ |
| 6833 |
HP_UInt32 ySpaceArrayLen) /* y escapement array length */ |
| 6834 |
|
| 6835 |
{ |
| 6836 |
HP_AttrUByteArray(pStream, charArray, charArrayLen); |
| 6837 |
HP_AttrId(pStream, HP_TextData); |
| 6838 |
HP_AttrSInt16Array(pStream, xSpaceArray, xSpaceArrayLen); |
| 6839 |
HP_AttrId(pStream, HP_XSpacingData); |
| 6840 |
HP_AttrSInt16Array(pStream, ySpaceArray, ySpaceArrayLen); |
| 6841 |
HP_AttrId(pStream, HP_YSpacingData); |
| 6842 |
HP_Operator(pStream, HP_Text); |
| 6843 |
} |
| 6844 |
|
| 6845 |
HP_StdFuncPrefix HP_Text_4( /* Text signature 4 */ |
| 6846 |
|
| 6847 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6848 |
HP_pUInt16 charArray, /* character array containing text */ |
| 6849 |
HP_UInt32 charArrayLen, /* length of character array */ |
| 6850 |
HP_pSInt16 xSpaceArray, /* x escapement array */ |
| 6851 |
HP_UInt32 xSpaceArrayLen) /* x escapement array length */ |
| 6852 |
{ |
| 6853 |
HP_AttrUInt16Array(pStream, charArray, charArrayLen); |
| 6854 |
HP_AttrId(pStream, HP_TextData); |
| 6855 |
|
| 6856 |
{ |
| 6857 |
int useByteArray = 1; |
| 6858 |
HP_UInt32 i = 0; |
| 6859 |
|
| 6860 |
/* check to see of all escapements may be expressed as ubytes: */ |
| 6861 |
for (i=0; (i < xSpaceArrayLen) && (useByteArray); i++) |
| 6862 |
{ |
| 6863 |
if ((xSpaceArray[i]>255) || (xSpaceArray[i]<0)) |
| 6864 |
useByteArray = 0; |
| 6865 |
} |
| 6866 |
|
| 6867 |
if (useByteArray) |
| 6868 |
{ |
| 6869 |
HP_AttrSInt16ToByteArray(pStream, xSpaceArray, xSpaceArrayLen); |
| 6870 |
} |
| 6871 |
else |
| 6872 |
{ |
| 6873 |
HP_AttrSInt16Array(pStream, xSpaceArray, xSpaceArrayLen); |
| 6874 |
} |
| 6875 |
} |
| 6876 |
|
| 6877 |
HP_AttrId(pStream, HP_XSpacingData); |
| 6878 |
HP_Operator(pStream, HP_Text); |
| 6879 |
} |
| 6880 |
|
| 6881 |
HP_StdFuncPrefix HP_Text_5( /* Text signature 5 */ |
| 6882 |
|
| 6883 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6884 |
HP_pUInt16 charArray, /* character array containing text */ |
| 6885 |
HP_UInt32 charArrayLen, /* length of character array */ |
| 6886 |
HP_pSInt16 ySpaceArray, /* y escapement array */ |
| 6887 |
HP_UInt32 ySpaceArrayLen) /* y escapement array length */ |
| 6888 |
{ |
| 6889 |
HP_AttrUInt16Array(pStream, charArray, charArrayLen); |
| 6890 |
HP_AttrId(pStream, HP_TextData); |
| 6891 |
|
| 6892 |
{ |
| 6893 |
int useByteArray = 1; |
| 6894 |
HP_UInt32 i = 0; |
| 6895 |
|
| 6896 |
/* check to see of all escapements may be expressed as ubytes: */ |
| 6897 |
for (i=0; (i < ySpaceArrayLen) && (useByteArray); i++) |
| 6898 |
{ |
| 6899 |
if ((ySpaceArray[i]>255) || (ySpaceArray[i]<0)) |
| 6900 |
useByteArray = 0; |
| 6901 |
} |
| 6902 |
|
| 6903 |
if (useByteArray) |
| 6904 |
{ |
| 6905 |
HP_AttrSInt16ToByteArray(pStream, ySpaceArray, ySpaceArrayLen); |
| 6906 |
} |
| 6907 |
else |
| 6908 |
{ |
| 6909 |
HP_AttrSInt16Array(pStream, ySpaceArray, ySpaceArrayLen); |
| 6910 |
} |
| 6911 |
} |
| 6912 |
HP_AttrId(pStream, HP_YSpacingData); |
| 6913 |
HP_Operator(pStream, HP_Text); |
| 6914 |
} |
| 6915 |
|
| 6916 |
HP_StdFuncPrefix HP_Text_6( /* Text signature 6 */ |
| 6917 |
|
| 6918 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6919 |
HP_pUInt16 charArray, /* character array containing text */ |
| 6920 |
HP_UInt32 charArrayLen, /* length of character array */ |
| 6921 |
HP_pSInt16 xSpaceArray, /* x escapement array */ |
| 6922 |
HP_UInt32 xSpaceArrayLen, /* x escapement array length */ |
| 6923 |
HP_pSInt16 ySpaceArray, /* y escapement array */ |
| 6924 |
HP_UInt32 ySpaceArrayLen) /* y escapement array length */ |
| 6925 |
|
| 6926 |
{ |
| 6927 |
HP_AttrUInt16Array(pStream, charArray, charArrayLen); |
| 6928 |
HP_AttrId(pStream, HP_TextData); |
| 6929 |
HP_AttrSInt16Array(pStream, xSpaceArray, xSpaceArrayLen); |
| 6930 |
HP_AttrId(pStream, HP_XSpacingData); |
| 6931 |
HP_AttrSInt16Array(pStream, ySpaceArray, ySpaceArrayLen); |
| 6932 |
HP_AttrId(pStream, HP_YSpacingData); |
| 6933 |
HP_Operator(pStream, HP_Text); |
| 6934 |
} |
| 6935 |
|
| 6936 |
HP_StdFuncPrefix HP_Text_7( /* Text signature 7 */ |
| 6937 |
|
| 6938 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6939 |
HP_pUByte charArray, /* character array containing text */ |
| 6940 |
HP_UInt32 charArrayLen) /* y escapement array length */ |
| 6941 |
{ |
| 6942 |
HP_AttrUByteArray(pStream, charArray, charArrayLen); |
| 6943 |
HP_AttrId(pStream, HP_TextData); |
| 6944 |
HP_Operator(pStream, HP_Text); |
| 6945 |
} |
| 6946 |
|
| 6947 |
HP_StdFuncPrefix HP_Text_8( /* Text signature 8 */ |
| 6948 |
|
| 6949 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6950 |
HP_pUInt16 charArray, /* character array containing text */ |
| 6951 |
HP_UInt32 charArrayLen) /* x escapement array length */ |
| 6952 |
{ |
| 6953 |
HP_AttrUInt16Array(pStream, charArray, charArrayLen); |
| 6954 |
HP_AttrId(pStream, HP_TextData); |
| 6955 |
HP_Operator(pStream, HP_Text); |
| 6956 |
} |
| 6957 |
|
| 6958 |
HP_StdFuncPrefix HP_TextPath_1( /* TextPath signature 1 */ |
| 6959 |
|
| 6960 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6961 |
HP_pUByte charArray, /* character array containing text */ |
| 6962 |
HP_UInt32 charArrayLen, /* length of character array */ |
| 6963 |
HP_pSInt16 xSpaceArray, /* x escapement array */ |
| 6964 |
HP_UInt32 xSpaceArrayLen) /* x escapement array length */ |
| 6965 |
{ |
| 6966 |
HP_AttrUByteArray(pStream, charArray, charArrayLen); |
| 6967 |
HP_AttrId(pStream, HP_TextData); |
| 6968 |
|
| 6969 |
{ |
| 6970 |
int useByteArray = 1; |
| 6971 |
HP_UInt32 i = 0; |
| 6972 |
|
| 6973 |
/* check to see of all escapements may be expressed as ubytes: */ |
| 6974 |
for (i=0; (i < xSpaceArrayLen) && (useByteArray); i++) |
| 6975 |
{ |
| 6976 |
if ((xSpaceArray[i]>255) || (xSpaceArray[i]<0)) |
| 6977 |
useByteArray = 0; |
| 6978 |
} |
| 6979 |
|
| 6980 |
if (useByteArray) |
| 6981 |
{ |
| 6982 |
HP_AttrSInt16ToByteArray(pStream, xSpaceArray, xSpaceArrayLen); |
| 6983 |
} |
| 6984 |
else |
| 6985 |
{ |
| 6986 |
HP_AttrSInt16Array(pStream, xSpaceArray, xSpaceArrayLen); |
| 6987 |
} |
| 6988 |
} |
| 6989 |
|
| 6990 |
HP_AttrId(pStream, HP_XSpacingData); |
| 6991 |
HP_Operator(pStream, HP_TextPath); |
| 6992 |
} |
| 6993 |
|
| 6994 |
HP_StdFuncPrefix HP_TextPath_2( /* TextPath signature 2 */ |
| 6995 |
|
| 6996 |
HP_StreamHandleType pStream, /* stream handle */ |
| 6997 |
HP_pUByte charArray, /* character array containing text */ |
| 6998 |
HP_UInt32 charArrayLen, /* length of character array */ |
| 6999 |
HP_pSInt16 ySpaceArray, /* y escapement array */ |
| 7000 |
HP_UInt32 ySpaceArrayLen) /* y escapement array length */ |
| 7001 |
{ |
| 7002 |
HP_AttrUByteArray(pStream, charArray, charArrayLen); |
| 7003 |
HP_AttrId(pStream, HP_TextData); |
| 7004 |
|
| 7005 |
{ |
| 7006 |
int useByteArray = 1; |
| 7007 |
HP_UInt32 i = 0; |
| 7008 |
|
| 7009 |
/* check to see of all escapements may be expressed as ubytes: */ |
| 7010 |
for (i=0; (i < ySpaceArrayLen) && (useByteArray); i++) |
| 7011 |
{ |
| 7012 |
if ((ySpaceArray[i]>255) || (ySpaceArray[i]<0)) |
| 7013 |
useByteArray = 0; |
| 7014 |
} |
| 7015 |
|
| 7016 |
if (useByteArray) |
| 7017 |
{ |
| 7018 |
HP_AttrSInt16ToByteArray(pStream, ySpaceArray, ySpaceArrayLen); |
| 7019 |
} |
| 7020 |
else |
| 7021 |
{ |
| 7022 |
HP_AttrSInt16Array(pStream, ySpaceArray, ySpaceArrayLen); |
| 7023 |
} |
| 7024 |
} |
| 7025 |
|
| 7026 |
HP_AttrId(pStream, HP_YSpacingData); |
| 7027 |
HP_Operator(pStream, HP_TextPath); |
| 7028 |
} |
| 7029 |
|
| 7030 |
HP_StdFuncPrefix HP_TextPath_3( /* TextPath signature 3 */ |
| 7031 |
|
| 7032 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7033 |
HP_pUByte charArray, /* character array containing text */ |
| 7034 |
HP_UInt32 charArrayLen, /* length of character array */ |
| 7035 |
HP_pSInt16 xSpaceArray, /* x escapement array */ |
| 7036 |
HP_UInt32 xSpaceArrayLen, /* x escapement array length */ |
| 7037 |
HP_pSInt16 ySpaceArray, /* y escapement array */ |
| 7038 |
HP_UInt32 ySpaceArrayLen) /* y escapement array length */ |
| 7039 |
|
| 7040 |
{ |
| 7041 |
HP_AttrUByteArray(pStream, charArray, charArrayLen); |
| 7042 |
HP_AttrId(pStream, HP_TextData); |
| 7043 |
HP_AttrSInt16Array(pStream, xSpaceArray, xSpaceArrayLen); |
| 7044 |
HP_AttrId(pStream, HP_XSpacingData); |
| 7045 |
HP_AttrSInt16Array(pStream, ySpaceArray, ySpaceArrayLen); |
| 7046 |
HP_AttrId(pStream, HP_YSpacingData); |
| 7047 |
HP_Operator(pStream, HP_TextPath); |
| 7048 |
} |
| 7049 |
|
| 7050 |
HP_StdFuncPrefix HP_TextPath_4( /* TextPath signature 4 */ |
| 7051 |
|
| 7052 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7053 |
HP_pUInt16 charArray, /* character array containing text */ |
| 7054 |
HP_UInt32 charArrayLen, /* length of character array */ |
| 7055 |
HP_pSInt16 xSpaceArray, /* x escapement array */ |
| 7056 |
HP_UInt32 xSpaceArrayLen) /* x escapement array length */ |
| 7057 |
{ |
| 7058 |
HP_AttrUInt16Array(pStream, charArray, charArrayLen); |
| 7059 |
HP_AttrId(pStream, HP_TextData); |
| 7060 |
|
| 7061 |
{ |
| 7062 |
int useByteArray = 1; |
| 7063 |
HP_UInt32 i = 0; |
| 7064 |
|
| 7065 |
/* check to see of all escapements may be expressed as ubytes: */ |
| 7066 |
for (i=0; (i < xSpaceArrayLen) && (useByteArray); i++) |
| 7067 |
{ |
| 7068 |
if ((xSpaceArray[i]>255) || (xSpaceArray[i]<0)) |
| 7069 |
useByteArray = 0; |
| 7070 |
} |
| 7071 |
|
| 7072 |
if (useByteArray) |
| 7073 |
{ |
| 7074 |
HP_AttrSInt16ToByteArray(pStream, xSpaceArray, xSpaceArrayLen); |
| 7075 |
} |
| 7076 |
else |
| 7077 |
{ |
| 7078 |
HP_AttrSInt16Array(pStream, xSpaceArray, xSpaceArrayLen); |
| 7079 |
} |
| 7080 |
} |
| 7081 |
|
| 7082 |
HP_AttrId(pStream, HP_XSpacingData); |
| 7083 |
HP_Operator(pStream, HP_TextPath); |
| 7084 |
} |
| 7085 |
|
| 7086 |
HP_StdFuncPrefix HP_TextPath_5( /* TextPath signature 5 */ |
| 7087 |
|
| 7088 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7089 |
HP_pUInt16 charArray, /* character array containing text */ |
| 7090 |
HP_UInt32 charArrayLen, /* length of character array */ |
| 7091 |
HP_pSInt16 ySpaceArray, /* y escapement array */ |
| 7092 |
HP_UInt32 ySpaceArrayLen) /* y escapement array length */ |
| 7093 |
{ |
| 7094 |
HP_AttrUInt16Array(pStream, charArray, charArrayLen); |
| 7095 |
HP_AttrId(pStream, HP_TextData); |
| 7096 |
|
| 7097 |
{ |
| 7098 |
int useByteArray = 1; |
| 7099 |
HP_UInt32 i = 0; |
| 7100 |
|
| 7101 |
/* check to see of all escapements may be expressed as ubytes: */ |
| 7102 |
for (i=0; (i < ySpaceArrayLen) && (useByteArray); i++) |
| 7103 |
{ |
| 7104 |
if ((ySpaceArray[i]>255) || (ySpaceArray[i]<0)) |
| 7105 |
useByteArray = 0; |
| 7106 |
} |
| 7107 |
|
| 7108 |
if (useByteArray) |
| 7109 |
{ |
| 7110 |
HP_AttrSInt16ToByteArray(pStream, ySpaceArray, ySpaceArrayLen); |
| 7111 |
} |
| 7112 |
else |
| 7113 |
{ |
| 7114 |
HP_AttrSInt16Array(pStream, ySpaceArray, ySpaceArrayLen); |
| 7115 |
} |
| 7116 |
} |
| 7117 |
|
| 7118 |
HP_AttrId(pStream, HP_YSpacingData); |
| 7119 |
HP_Operator(pStream, HP_TextPath); |
| 7120 |
} |
| 7121 |
|
| 7122 |
HP_StdFuncPrefix HP_TextPath_6( /* TextPath signature 6 */ |
| 7123 |
|
| 7124 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7125 |
HP_pUInt16 charArray, /* character array containing text */ |
| 7126 |
HP_UInt32 charArrayLen, /* length of character array */ |
| 7127 |
HP_pSInt16 xSpaceArray, /* x escapement array */ |
| 7128 |
HP_UInt32 xSpaceArrayLen, /* x escapement array length */ |
| 7129 |
HP_pSInt16 ySpaceArray, /* y escapement array */ |
| 7130 |
HP_UInt32 ySpaceArrayLen) /* y escapement array length */ |
| 7131 |
|
| 7132 |
{ |
| 7133 |
HP_AttrUInt16Array(pStream, charArray, charArrayLen); |
| 7134 |
HP_AttrId(pStream, HP_TextData); |
| 7135 |
HP_AttrSInt16Array(pStream, xSpaceArray, xSpaceArrayLen); |
| 7136 |
HP_AttrId(pStream, HP_XSpacingData); |
| 7137 |
HP_AttrSInt16Array(pStream, ySpaceArray, ySpaceArrayLen); |
| 7138 |
HP_AttrId(pStream, HP_YSpacingData); |
| 7139 |
HP_Operator(pStream, HP_TextPath); |
| 7140 |
} |
| 7141 |
|
| 7142 |
HP_StdFuncPrefix HP_SetCharBoldValue_1( /* SetCharBoldValue */ |
| 7143 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7144 |
HP_Real32 boldValue) /* Bold Value Real */ |
| 7145 |
{ |
| 7146 |
HP_AttrReal32(pStream, boldValue); |
| 7147 |
HP_AttrId(pStream, HP_CharBoldValue); |
| 7148 |
HP_Operator(pStream, HP_SetCharBoldValue); |
| 7149 |
} |
| 7150 |
|
| 7151 |
HP_StdFuncPrefix HP_TextPath_7( /* TextPath signature 7 */ |
| 7152 |
|
| 7153 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7154 |
HP_pUByte charArray, /* character array containing text */ |
| 7155 |
HP_UInt32 charArrayLen) /* y escapement array length */ |
| 7156 |
{ |
| 7157 |
HP_AttrUByteArray(pStream, charArray, charArrayLen); |
| 7158 |
HP_AttrId(pStream, HP_TextData); |
| 7159 |
HP_Operator(pStream, HP_TextPath); |
| 7160 |
} |
| 7161 |
|
| 7162 |
HP_StdFuncPrefix HP_TextPath_8( /* TextPath signature 8 */ |
| 7163 |
|
| 7164 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7165 |
HP_pUInt16 charArray, /* character array containing text */ |
| 7166 |
HP_UInt32 charArrayLen) /* x escapement array length */ |
| 7167 |
{ |
| 7168 |
HP_AttrUInt16Array(pStream, charArray, charArrayLen); |
| 7169 |
HP_AttrId(pStream, HP_TextData); |
| 7170 |
HP_Operator(pStream, HP_TextPath); |
| 7171 |
} |
| 7172 |
|
| 7173 |
/***************************************************************************** |
| 7174 |
|
| 7175 |
functions: VendorUnique related |
| 7176 |
|
| 7177 |
purpose: Add vendor unique attributes and operators to the binary stream |
| 7178 |
|
| 7179 |
*****************************************************************************/ |
| 7180 |
|
| 7181 |
#define hp_PAINT_SETCOLORTREATMENT 0x68701001 |
| 7182 |
#define hp_PAINT_SETHALFTONEMETHOD 0x68701002 |
| 7183 |
#define hp_PAINT_DOWNLOADCOLORTABLE 0x68701003 |
| 7184 |
#define hp_MEDIA_SELECTMEDIASOURCE 0x68702001 |
| 7185 |
#define hp_MEDIA_SELECTMEDIAFINISH 0x68702002 |
| 7186 |
|
| 7187 |
#ifdef XL_MET |
| 7188 |
#define hp_MET 0x68703000 |
| 7189 |
#endif |
| 7190 |
|
| 7191 |
HP_StdFuncPrefix HP_media_SelectMediaFinish(/* SelectMediaFinish */ |
| 7192 |
|
| 7193 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7194 |
HP_UByte mediaFinish) /* color space enumeration */ |
| 7195 |
{ |
| 7196 |
|
| 7197 |
HP_AttrUInt32(pStream, hp_MEDIA_SELECTMEDIAFINISH); |
| 7198 |
HP_AttrId(pStream, HP_VUExtension); |
| 7199 |
HP_AttrUByte(pStream, mediaFinish); |
| 7200 |
HP_AttrId(pStream, HP_VUMediaFinish); |
| 7201 |
HP_Operator(pStream,HP_VendorUnique); |
| 7202 |
} |
| 7203 |
|
| 7204 |
HP_StdFuncPrefix HP_media_SelectMediaSource(/* SelectMediaSource */ |
| 7205 |
|
| 7206 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7207 |
HP_UByte mediaSource, |
| 7208 |
HP_UByte mediaType) /* color space enumeration */ |
| 7209 |
{ |
| 7210 |
|
| 7211 |
HP_AttrUInt32(pStream, hp_MEDIA_SELECTMEDIASOURCE); |
| 7212 |
HP_AttrId(pStream, HP_VUExtension); |
| 7213 |
HP_AttrUByte(pStream, mediaSource); |
| 7214 |
HP_AttrId(pStream, HP_VUMediaSource); |
| 7215 |
HP_AttrUByte(pStream, mediaType); |
| 7216 |
HP_AttrId(pStream, HP_VUMediaType); |
| 7217 |
HP_Operator(pStream,HP_VendorUnique); |
| 7218 |
} |
| 7219 |
|
| 7220 |
HP_StdFuncPrefix HP_paint_SetColorTreatment (/* SetColorTreatment */ |
| 7221 |
|
| 7222 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7223 |
HP_UByte colorTreatment, |
| 7224 |
HP_UInt16 colorID) /* color space enumeration */ |
| 7225 |
{ |
| 7226 |
|
| 7227 |
HP_AttrUInt32(pStream, hp_PAINT_SETCOLORTREATMENT); |
| 7228 |
HP_AttrId(pStream, HP_VUExtension); |
| 7229 |
HP_AttrUByte(pStream, colorTreatment); |
| 7230 |
HP_AttrId(pStream, HP_VUColorTreatment); |
| 7231 |
HP_AttrUInt16(pStream, colorID); |
| 7232 |
HP_AttrId(pStream, HP_VUColorTreatmentByID); |
| 7233 |
HP_Operator(pStream,HP_VendorUnique); |
| 7234 |
} |
| 7235 |
|
| 7236 |
|
| 7237 |
HP_StdFuncPrefix HP_paint_SetHalftoneMethod (/* SetHalftoneMethod */ |
| 7238 |
|
| 7239 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7240 |
HP_UByte matrix, |
| 7241 |
HP_UInt16 matrixID) /* color space enumeration */ |
| 7242 |
{ |
| 7243 |
|
| 7244 |
HP_AttrUInt32(pStream, hp_PAINT_SETHALFTONEMETHOD); |
| 7245 |
HP_AttrId(pStream, HP_VUExtension); |
| 7246 |
HP_AttrUByte(pStream, matrix); |
| 7247 |
HP_AttrId(pStream, HP_VUDeviceMatrix); |
| 7248 |
HP_AttrUInt16(pStream, matrixID); |
| 7249 |
HP_AttrId(pStream, HP_VUDeviceMatrixByID); |
| 7250 |
HP_Operator(pStream,HP_VendorUnique); |
| 7251 |
} |
| 7252 |
|
| 7253 |
HP_StdFuncPrefix HP_paint_DownloadColorTable (/* DownloadColorTable */ |
| 7254 |
|
| 7255 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7256 |
HP_UByte tableType, |
| 7257 |
HP_UInt16 tableID, |
| 7258 |
HP_UInt32 tableSize, |
| 7259 |
HP_pUByte table) /* color space enumeration */ |
| 7260 |
{ |
| 7261 |
HP_UInt32 index=0; |
| 7262 |
|
| 7263 |
HP_AttrUInt32(pStream, hp_PAINT_DOWNLOADCOLORTABLE); |
| 7264 |
HP_AttrId(pStream, HP_VUExtension); |
| 7265 |
HP_AttrUByte(pStream, tableType); |
| 7266 |
HP_AttrId(pStream, HP_VUTypeOfTable); |
| 7267 |
HP_AttrUInt16(pStream, tableID); |
| 7268 |
HP_AttrId(pStream, HP_VUColorTableID); |
| 7269 |
HP_AttrUInt32(pStream, tableSize); |
| 7270 |
HP_AttrId(pStream, HP_VUDataLength); |
| 7271 |
HP_Operator(pStream,HP_VendorUnique); |
| 7272 |
|
| 7273 |
while ((HP_NoErrors(pStream)) && (index < tableSize)) |
| 7274 |
{ |
| 7275 |
HP_AddToListByte(pStream, (HP_UByte) table[index++]); |
| 7276 |
} |
| 7277 |
} |
| 7278 |
|
| 7279 |
#ifdef XL_30 |
| 7280 |
/* |
| 7281 |
HP_SetDefaultGS |
| 7282 |
HP_SetColorTreatment |
| 7283 |
HP_SetNeutralAxis |
| 7284 |
HP_SetColorTrapping |
| 7285 |
HP_SetAdaptiveHalftoning |
| 7286 |
HP_PassThrough |
| 7287 |
|
| 7288 |
#define HP_AllObjectTypes 29 |
| 7289 |
#define HP_TextObjects 30 |
| 7290 |
#define HP_VectorObjects 31 |
| 7291 |
#define HP_RasterObjects 32 |
| 7292 |
|
| 7293 |
*/ |
| 7294 |
|
| 7295 |
HP_StdFuncPrefix HP_SetColorTreatment_1 (/* SetColorTreatment */ |
| 7296 |
|
| 7297 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7298 |
HP_UByte colorTreatment) /* color treatment */ |
| 7299 |
{ |
| 7300 |
HP_AttrUByte(pStream, colorTreatment); |
| 7301 |
HP_AttrId(pStream, HP_ColorTreatment); |
| 7302 |
HP_Operator(pStream,HP_SetColorTreatment); |
| 7303 |
} |
| 7304 |
|
| 7305 |
HP_StdFuncPrefix HP_SetHalftoneMethod_2 (/* SetHalftoneMethod */ |
| 7306 |
|
| 7307 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7308 |
HP_UByte deviceMatrix, |
| 7309 |
HP_UInt16 xVal, /* dither matrix origin x */ |
| 7310 |
HP_UInt16 yVal) /* dither matrix origin x */ |
| 7311 |
{ |
| 7312 |
HP_AttrXyUInt16(pStream, xVal, yVal); |
| 7313 |
HP_AttrId(pStream, HP_DitherOrigin); |
| 7314 |
HP_AttrUByte(pStream, deviceMatrix); |
| 7315 |
HP_AttrId(pStream, HP_DeviceMatrix); |
| 7316 |
HP_Operator(pStream, HP_SetHalftoneMethod); |
| 7317 |
} |
| 7318 |
|
| 7319 |
HP_StdFuncPrefix HP_SetHalftoneMethod_3 (/* SetHalftoneMethod */ |
| 7320 |
|
| 7321 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7322 |
HP_UByte textMethod, |
| 7323 |
HP_UByte vectorMethod, |
| 7324 |
HP_UByte rasterMethod) |
| 7325 |
{ |
| 7326 |
HP_AttrUByte(pStream, textMethod); |
| 7327 |
HP_AttrId(pStream, HP_TextObjects); |
| 7328 |
|
| 7329 |
HP_AttrUByte(pStream, vectorMethod); |
| 7330 |
HP_AttrId(pStream, HP_VectorObjects); |
| 7331 |
|
| 7332 |
HP_AttrUByte(pStream, rasterMethod); |
| 7333 |
HP_AttrId(pStream, HP_RasterObjects); |
| 7334 |
|
| 7335 |
HP_Operator(pStream, HP_SetHalftoneMethod); |
| 7336 |
} |
| 7337 |
|
| 7338 |
HP_StdFuncPrefix HP_SetHalftoneMethod_4 (/* SetHalftoneMethod */ |
| 7339 |
|
| 7340 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7341 |
HP_UByte textMethod, |
| 7342 |
HP_UByte vectorMethod, |
| 7343 |
HP_UByte rasterMethod, |
| 7344 |
HP_UInt16 xVal, /* dither matrix origin x */ |
| 7345 |
HP_UInt16 yVal) /* dither matrix origin x */ |
| 7346 |
{ |
| 7347 |
HP_AttrUByte(pStream, textMethod); |
| 7348 |
HP_AttrId(pStream, HP_TextObjects); |
| 7349 |
|
| 7350 |
HP_AttrUByte(pStream, vectorMethod); |
| 7351 |
HP_AttrId(pStream, HP_VectorObjects); |
| 7352 |
|
| 7353 |
HP_AttrUByte(pStream, rasterMethod); |
| 7354 |
HP_AttrId(pStream, HP_RasterObjects); |
| 7355 |
|
| 7356 |
HP_AttrXyUInt16(pStream, xVal, yVal); |
| 7357 |
HP_AttrId(pStream, HP_DitherOrigin); |
| 7358 |
HP_Operator(pStream, HP_SetHalftoneMethod); |
| 7359 |
} |
| 7360 |
|
| 7361 |
HP_StdFuncPrefix HP_SetColorTrapping_1 (/* SetHalftoneMethod */ |
| 7362 |
|
| 7363 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7364 |
HP_UByte textMethod, |
| 7365 |
HP_UByte vectorMethod, |
| 7366 |
HP_UByte rasterMethod) |
| 7367 |
{ |
| 7368 |
HP_AttrUByte(pStream, textMethod); |
| 7369 |
HP_AttrId(pStream, HP_TextObjects); |
| 7370 |
|
| 7371 |
HP_AttrUByte(pStream, vectorMethod); |
| 7372 |
HP_AttrId(pStream, HP_VectorObjects); |
| 7373 |
|
| 7374 |
HP_AttrUByte(pStream, rasterMethod); |
| 7375 |
HP_AttrId(pStream, HP_RasterObjects); |
| 7376 |
|
| 7377 |
HP_Operator(pStream, HP_SetColorTrapping); |
| 7378 |
} |
| 7379 |
|
| 7380 |
HP_StdFuncPrefix HP_SetSetAdaptiveHalftoning_1 (/* SetHalftoneMethod */ |
| 7381 |
|
| 7382 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7383 |
HP_UByte textMethod, |
| 7384 |
HP_UByte vectorMethod, |
| 7385 |
HP_UByte rasterMethod) |
| 7386 |
{ |
| 7387 |
HP_AttrUByte(pStream, textMethod); |
| 7388 |
HP_AttrId(pStream, HP_TextObjects); |
| 7389 |
|
| 7390 |
HP_AttrUByte(pStream, vectorMethod); |
| 7391 |
HP_AttrId(pStream, HP_VectorObjects); |
| 7392 |
|
| 7393 |
HP_AttrUByte(pStream, rasterMethod); |
| 7394 |
HP_AttrId(pStream, HP_RasterObjects); |
| 7395 |
|
| 7396 |
HP_Operator(pStream, HP_SetAdaptiveHalftoning); |
| 7397 |
} |
| 7398 |
|
| 7399 |
HP_StdFuncPrefix HP_SetNeutralAxis_1 (/* SetHalftoneMethod */ |
| 7400 |
|
| 7401 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7402 |
HP_UByte textMethod, |
| 7403 |
HP_UByte vectorMethod, |
| 7404 |
HP_UByte rasterMethod) |
| 7405 |
{ |
| 7406 |
HP_AttrUByte(pStream, textMethod); |
| 7407 |
HP_AttrId(pStream, HP_TextObjects); |
| 7408 |
|
| 7409 |
HP_AttrUByte(pStream, vectorMethod); |
| 7410 |
HP_AttrId(pStream, HP_VectorObjects); |
| 7411 |
|
| 7412 |
HP_AttrUByte(pStream, rasterMethod); |
| 7413 |
HP_AttrId(pStream, HP_RasterObjects); |
| 7414 |
|
| 7415 |
HP_Operator(pStream, HP_SetNeutralAxis); |
| 7416 |
} |
| 7417 |
|
| 7418 |
|
| 7419 |
HP_StdFuncPrefix HP_PassThrough_1 (/* SetHalftoneMethod */ |
| 7420 |
|
| 7421 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7422 |
HP_pUByte array, HP_UInt32 arrayLen) |
| 7423 |
{ |
| 7424 |
HP_Operator(pStream, HP_PassThrough); |
| 7425 |
HP_DataUByteArray(pStream, array, arrayLen); |
| 7426 |
} |
| 7427 |
|
| 7428 |
#endif |
| 7429 |
|
| 7430 |
#ifdef XL_MET |
| 7431 |
HP_MET_OPERATORS MetOperators[] = |
| 7432 |
{ |
| 7433 |
hp_MET_NEXT_OP, 5, |
| 7434 |
hp_MET_STOP_OP, 5, |
| 7435 |
hp_MET_START_CHAR, 5, |
| 7436 |
hp_MET_STOP_CHAR, 5, |
| 7437 |
hp_MET_THRESHOLD_OP, 4, |
| 7438 |
hp_MET_CLIP_SOURCE_OP, 4, |
| 7439 |
hp_MET_DECOMP_BUFF_OP, 4, |
| 7440 |
hp_MET_PIXEL_CENTER_OP, 4, |
| 7441 |
hp_MET_WINDOW_OP, 4, |
| 7442 |
hp_MET_LOGICAL_OP, 4, |
| 7443 |
hp_MET_PATTERN_OP, 4, |
| 7444 |
hp_MET_RACE_BUFF_OP, 4, |
| 7445 |
hp_MET_IMAGE_16_OP, 3, |
| 7446 |
hp_MET_IMAGE_32_OP, 2, |
| 7447 |
hp_MET_OR_IMAGE_32_OP, 3, |
| 7448 |
hp_MET_SCALE_IMAGE_OP, 1, |
| 7449 |
hp_MET_IMAGE_BLOCK_OP, 2, |
| 7450 |
hp_MET_UIP_IMAGE_OP, 1, |
| 7451 |
hp_MET_HT_IMAGE_OP, 1, |
| 7452 |
hp_MET_POINT_OP, 3, |
| 7453 |
hp_MET_XLINE_OP, 3, |
| 7454 |
hp_MET_YLINE_OP, 3, |
| 7455 |
hp_MET_RUN_OP, 3, |
| 7456 |
hp_MET_RULE_OP, 3, |
| 7457 |
hp_MET_PATTERN_RULE_OP, 3, |
| 7458 |
hp_MET_THIN_VECTOR_OP, 3, |
| 7459 |
hp_MET_TRIANGLE_OP, 3, |
| 7460 |
hp_MET_VECTOR_OP, 3, |
| 7461 |
hp_MET_TRAPEZOID_OP, 3, |
| 7462 |
hp_MET_DECOMP_STRIP_OP, 5 |
| 7463 |
}; |
| 7464 |
|
| 7465 |
HP_StdFuncPrefix HP_met(/* Met Type 4 Operators */ |
| 7466 |
|
| 7467 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7468 |
HP_UByte Operator, /* Operator Number */ |
| 7469 |
HP_SInt16 Xcoord, |
| 7470 |
HP_SInt16 Ycoord, |
| 7471 |
HP_SInt16 Height, |
| 7472 |
HP_SInt16 Width, |
| 7473 |
HP_UInt32 Count, |
| 7474 |
HP_UByte CompType, |
| 7475 |
HP_Real32 HorizScale, |
| 7476 |
HP_Real32 VertScale, |
| 7477 |
HP_UInt16 Terms) /* color space enumeration */ |
| 7478 |
{ |
| 7479 |
|
| 7480 |
HP_AttrUInt32(pStream, MetOperators[Operator].Op); |
| 7481 |
HP_AttrId(pStream, HP_VUExtension); |
| 7482 |
|
| 7483 |
if (MetOperators[Operator].Type < 5) /* 4, 3, 2, 1 */ |
| 7484 |
{ |
| 7485 |
HP_AttrUInt32(pStream, Count); |
| 7486 |
HP_AttrId(pStream, HP_VUCount); |
| 7487 |
} |
| 7488 |
|
| 7489 |
if (MetOperators[Operator].Type < 4) /* 3, 2, 1 */ |
| 7490 |
{ |
| 7491 |
HP_AttrUInt16(pStream, Width); |
| 7492 |
HP_AttrId(pStream, HP_VUWidth); |
| 7493 |
HP_AttrUInt16(pStream, Height); |
| 7494 |
HP_AttrId(pStream, HP_VUHeight); |
| 7495 |
HP_AttrUInt16(pStream, Ycoord); |
| 7496 |
HP_AttrId(pStream, HP_VUYcoord); |
| 7497 |
HP_AttrUInt16(pStream, Xcoord); |
| 7498 |
HP_AttrId(pStream, HP_VUXcoord); |
| 7499 |
} |
| 7500 |
|
| 7501 |
if (MetOperators[Operator].Type < 3) /* 2, 1 */ |
| 7502 |
{ |
| 7503 |
HP_AttrUByte(pStream, CompType); |
| 7504 |
HP_AttrId(pStream, HP_VUCompType); |
| 7505 |
} |
| 7506 |
|
| 7507 |
if (MetOperators[Operator].Type < 2) /* 1 */ |
| 7508 |
{ |
| 7509 |
HP_AttrReal32(pStream, VertScale); |
| 7510 |
HP_AttrId(pStream, HP_VUVertScale); |
| 7511 |
HP_AttrReal32(pStream, HorizScale); |
| 7512 |
HP_AttrId(pStream, HP_VUHorizScale); |
| 7513 |
} |
| 7514 |
|
| 7515 |
if (MetOperators[Operator].Type == 2) |
| 7516 |
{ |
| 7517 |
HP_AttrUInt16(pStream, Terms); |
| 7518 |
HP_AttrId(pStream, HP_VUTerms); |
| 7519 |
} |
| 7520 |
|
| 7521 |
HP_Operator(pStream,HP_VendorUnique); |
| 7522 |
} |
| 7523 |
#endif /* XL_MET */ |
| 7524 |
|
| 7525 |
#endif |
| 7526 |
|
| 7527 |
#define FALSE 0 |
| 7528 |
#define TRUE 1 |
| 7529 |
|
| 7530 |
HP_StdFuncPrefix HP_M2TIFF_CalcCompression( |
| 7531 |
HP_pCharHuge lpbytes, /* Pointer to the buffer of bytes to Calculate. */ |
| 7532 |
HP_SInt32 len, /* Length of the buffer of bytes. */ |
| 7533 |
HP_pUInt32 CompSize /* Memory location to return amount of compression, |
| 7534 |
this will be initialized to zero with each call */ |
| 7535 |
) |
| 7536 |
{ |
| 7537 |
|
| 7538 |
HP_pCharHuge lpfirst; |
| 7539 |
HP_pCharHuge lpchar; |
| 7540 |
HP_BOOL in_run, FourByteWordPad; |
| 7541 |
register HP_UByte count; |
| 7542 |
register HP_SInt16 state; |
| 7543 |
HP_UByte padCount; |
| 7544 |
HP_pUByte lpEnd; |
| 7545 |
|
| 7546 |
lpfirst = lpbytes; |
| 7547 |
lpEnd = lpbytes + len; |
| 7548 |
in_run = FALSE; |
| 7549 |
state = START; |
| 7550 |
FourByteWordPad = FALSE; |
| 7551 |
|
| 7552 |
*CompSize = 0; |
| 7553 |
padCount = (HP_UByte) (4 - (len % 4)); |
| 7554 |
|
| 7555 |
if(padCount != 4) |
| 7556 |
FourByteWordPad = TRUE; |
| 7557 |
else |
| 7558 |
padCount = 0; |
| 7559 |
|
| 7560 |
for (;;) { /* do this until we are DONE */ |
| 7561 |
|
| 7562 |
switch (state) { |
| 7563 |
|
| 7564 |
case IN_RUN: |
| 7565 |
|
| 7566 |
if ((lpchar + 1) >= lpEnd) { /* off the end? */ |
| 7567 |
state = COMP_DONE; |
| 7568 |
break; |
| 7569 |
} |
| 7570 |
|
| 7571 |
if (*lpchar != *(lpchar + 1)) { |
| 7572 |
state = TERM; |
| 7573 |
break; |
| 7574 |
} |
| 7575 |
|
| 7576 |
lpchar++; |
| 7577 |
|
| 7578 |
count++; |
| 7579 |
|
| 7580 |
if (count >= RUN_LEN) |
| 7581 |
state = TERM; |
| 7582 |
break; |
| 7583 |
|
| 7584 |
case IN_NON_RUN: |
| 7585 |
|
| 7586 |
if ((lpchar + 1) >= lpEnd) { /* off the end? */ |
| 7587 |
state = COMP_DONE; |
| 7588 |
break; |
| 7589 |
} |
| 7590 |
|
| 7591 |
if (*lpchar == *(lpchar + 1)) { |
| 7592 |
lpchar--; /* back up to give */ |
| 7593 |
count--; /* upcomming run more */ |
| 7594 |
state = TERM; |
| 7595 |
break; |
| 7596 |
} |
| 7597 |
|
| 7598 |
lpchar++; |
| 7599 |
count++; |
| 7600 |
|
| 7601 |
if (count >= NON_RUN_LEN) |
| 7602 |
state = TERM; |
| 7603 |
break; |
| 7604 |
|
| 7605 |
|
| 7606 |
case START: |
| 7607 |
|
| 7608 |
/* special case, one char (last in string) */ |
| 7609 |
if ((lpfirst + 1) >= lpEnd) { |
| 7610 |
count = 1; /* minimal case */ |
| 7611 |
in_run = FALSE; |
| 7612 |
state = COMP_DONE; |
| 7613 |
} else { |
| 7614 |
|
| 7615 |
lpchar = lpfirst + 1; |
| 7616 |
|
| 7617 |
count = 2; /* start with strings of 2 */ |
| 7618 |
|
| 7619 |
if (*lpchar == *lpfirst){ |
| 7620 |
in_run = TRUE; |
| 7621 |
state = IN_RUN;} |
| 7622 |
else{ |
| 7623 |
in_run = FALSE; |
| 7624 |
state = IN_NON_RUN;} |
| 7625 |
} |
| 7626 |
break; |
| 7627 |
|
| 7628 |
case TERM: |
| 7629 |
case COMP_DONE: |
| 7630 |
if (state == COMP_DONE) { |
| 7631 |
if(FourByteWordPad) |
| 7632 |
*CompSize += 2; |
| 7633 |
|
| 7634 |
if (in_run){ |
| 7635 |
|
| 7636 |
*CompSize += 2; |
| 7637 |
return; |
| 7638 |
} else { |
| 7639 |
|
| 7640 |
*CompSize = *CompSize + (count + 1); |
| 7641 |
return; |
| 7642 |
} |
| 7643 |
} else { |
| 7644 |
if (in_run) |
| 7645 |
*CompSize += 2; |
| 7646 |
else |
| 7647 |
*CompSize = *CompSize + (count + 1); |
| 7648 |
|
| 7649 |
lpfirst = lpchar + 1; |
| 7650 |
if(lpfirst >= lpEnd) |
| 7651 |
{ |
| 7652 |
if(FourByteWordPad) |
| 7653 |
*CompSize += 2; |
| 7654 |
return; |
| 7655 |
} |
| 7656 |
state = START; |
| 7657 |
} |
| 7658 |
break; |
| 7659 |
} |
| 7660 |
} |
| 7661 |
return; |
| 7662 |
} |
| 7663 |
|
| 7664 |
|
| 7665 |
HP_StdFuncPrefix HP_M2TIFF_Compress( |
| 7666 |
HP_StreamHandleType lpdv, /* Pointer to the output buffer */ |
| 7667 |
HP_UInt32 outputLen, /* Length of the output buffer in bytes. */ |
| 7668 |
HP_pCharHuge lpBits, /* Pointer to the buffer of bytes to Compress */ |
| 7669 |
HP_SInt32 inputLen, /* Length of the input buffer of bytes. */ |
| 7670 |
HP_pUInt32 CompSize /* Memory location to return amount of compression, |
| 7671 |
this will be initialized to zero with each call */ |
| 7672 |
) |
| 7673 |
{ |
| 7674 |
HP_pCharHuge lpfirst; |
| 7675 |
HP_pCharHuge lpchar; |
| 7676 |
HP_BOOL in_run,FourByteWordPad; |
| 7677 |
register HP_UByte count; |
| 7678 |
register HP_SInt16 state; |
| 7679 |
HP_pCharHuge lpEnd; |
| 7680 |
HP_UByte padCount; |
| 7681 |
|
| 7682 |
lpfirst = lpBits; |
| 7683 |
lpEnd = lpBits + inputLen; |
| 7684 |
in_run = FALSE; |
| 7685 |
state = START; |
| 7686 |
*CompSize = 0; |
| 7687 |
FourByteWordPad = FALSE; |
| 7688 |
|
| 7689 |
padCount = (HP_UByte) (4 - (inputLen % 4)); |
| 7690 |
if(padCount != 4) |
| 7691 |
FourByteWordPad = TRUE; |
| 7692 |
else |
| 7693 |
padCount = 0; |
| 7694 |
|
| 7695 |
for (;;) { /* do this until we are DONE */ |
| 7696 |
|
| 7697 |
|
| 7698 |
switch (state) { |
| 7699 |
|
| 7700 |
case IN_RUN: |
| 7701 |
|
| 7702 |
if ((lpchar + 1) >= lpEnd) { /* off the end? */ |
| 7703 |
state = COMP_DONE; |
| 7704 |
break; |
| 7705 |
} |
| 7706 |
|
| 7707 |
if (*lpchar != *(lpchar + 1)) { |
| 7708 |
state = TERM; |
| 7709 |
break; |
| 7710 |
} |
| 7711 |
|
| 7712 |
lpchar++; |
| 7713 |
|
| 7714 |
count++; |
| 7715 |
|
| 7716 |
if (count >= RUN_LEN) |
| 7717 |
state = TERM; |
| 7718 |
break; |
| 7719 |
|
| 7720 |
case IN_NON_RUN: |
| 7721 |
|
| 7722 |
if ((lpchar + 1) >= lpEnd) { /* off the end? */ |
| 7723 |
state = COMP_DONE; |
| 7724 |
break; |
| 7725 |
} |
| 7726 |
|
| 7727 |
if (*lpchar == *(lpchar + 1)) { |
| 7728 |
lpchar--; /* back up to give */ |
| 7729 |
count--; /* upcomming run more */ |
| 7730 |
state = TERM; |
| 7731 |
break; |
| 7732 |
} |
| 7733 |
|
| 7734 |
lpchar++; |
| 7735 |
count++; |
| 7736 |
|
| 7737 |
if (count >= NON_RUN_LEN) |
| 7738 |
state = TERM; |
| 7739 |
break; |
| 7740 |
|
| 7741 |
|
| 7742 |
case START: |
| 7743 |
|
| 7744 |
/* special case, one char (last in string) */ |
| 7745 |
if ((lpfirst + 1) >= lpEnd) { |
| 7746 |
count = 1; /* minimal case */ |
| 7747 |
in_run = FALSE; |
| 7748 |
state = COMP_DONE; |
| 7749 |
} else { |
| 7750 |
|
| 7751 |
lpchar = lpfirst + 1; |
| 7752 |
|
| 7753 |
/* in_run = FALSE; */ |
| 7754 |
count = 2; /* start with strings of 2 */ |
| 7755 |
|
| 7756 |
if (*lpchar == *lpfirst){ |
| 7757 |
in_run = TRUE; |
| 7758 |
state = IN_RUN;} |
| 7759 |
else{ |
| 7760 |
in_run = FALSE; |
| 7761 |
state = IN_NON_RUN;} |
| 7762 |
} |
| 7763 |
break; |
| 7764 |
|
| 7765 |
case TERM: |
| 7766 |
case COMP_DONE: |
| 7767 |
if (state == COMP_DONE) { |
| 7768 |
if(FourByteWordPad) |
| 7769 |
*CompSize +=2; |
| 7770 |
|
| 7771 |
if (in_run){ |
| 7772 |
*CompSize += 2; |
| 7773 |
|
| 7774 |
if((outputLen > 0) && (*CompSize >= outputLen)){ |
| 7775 |
*CompSize = 0; |
| 7776 |
return; |
| 7777 |
} |
| 7778 |
|
| 7779 |
|
| 7780 |
HP_RawUByte(lpdv,(HP_UByte)(0 - (count -1))); |
| 7781 |
HP_RawUByte(lpdv,(HP_UByte)*lpfirst); |
| 7782 |
|
| 7783 |
if(FourByteWordPad) |
| 7784 |
{ |
| 7785 |
if(padCount == 1) |
| 7786 |
{ |
| 7787 |
HP_RawUByte(lpdv,0); |
| 7788 |
HP_RawUByte(lpdv,0x00); |
| 7789 |
} |
| 7790 |
else |
| 7791 |
{ |
| 7792 |
HP_RawUByte(lpdv,(HP_UByte)(0 - (padCount - 1))); |
| 7793 |
HP_RawUByte(lpdv,0x00); |
| 7794 |
} |
| 7795 |
} |
| 7796 |
return; |
| 7797 |
} else { |
| 7798 |
|
| 7799 |
*CompSize = (*CompSize +(count+1)); |
| 7800 |
|
| 7801 |
if((outputLen > 0) && (*CompSize >= outputLen)){ |
| 7802 |
*CompSize = 0; |
| 7803 |
return; |
| 7804 |
} |
| 7805 |
|
| 7806 |
HP_RawUByte(lpdv,(HP_UByte)(count -1)); |
| 7807 |
HP_RawUByteArray(lpdv,lpfirst,(HP_UInt32)count); |
| 7808 |
|
| 7809 |
if(FourByteWordPad) |
| 7810 |
{ |
| 7811 |
if(padCount == 1) |
| 7812 |
{ |
| 7813 |
HP_RawUByte(lpdv,0); |
| 7814 |
HP_RawUByte(lpdv,0x00); |
| 7815 |
} |
| 7816 |
else |
| 7817 |
{ |
| 7818 |
HP_RawUByte(lpdv,(HP_UByte)(0 - (padCount - 1))); |
| 7819 |
HP_RawUByte(lpdv,0x00); |
| 7820 |
} |
| 7821 |
} |
| 7822 |
|
| 7823 |
|
| 7824 |
return; |
| 7825 |
} |
| 7826 |
} else { |
| 7827 |
if (in_run) { |
| 7828 |
*CompSize +=2; |
| 7829 |
|
| 7830 |
if((outputLen > 0) && (*CompSize >= outputLen)){ |
| 7831 |
*CompSize = 0; |
| 7832 |
return; |
| 7833 |
} |
| 7834 |
HP_RawUByte(lpdv,(HP_UByte)(0 - (count - 1))); |
| 7835 |
HP_RawUByte(lpdv, *lpfirst); |
| 7836 |
|
| 7837 |
|
| 7838 |
} else { |
| 7839 |
*CompSize = (*CompSize +(count + 1)); |
| 7840 |
if((outputLen > 0) && (*CompSize >= outputLen)){ |
| 7841 |
*CompSize = 0; |
| 7842 |
return; |
| 7843 |
} |
| 7844 |
HP_RawUByte(lpdv,(HP_UByte)(count -1)); |
| 7845 |
HP_RawUByteArray(lpdv,lpfirst,(HP_UInt32)count); |
| 7846 |
|
| 7847 |
} |
| 7848 |
|
| 7849 |
lpfirst = lpchar + 1; |
| 7850 |
if(lpfirst >= lpEnd) |
| 7851 |
{ |
| 7852 |
if(FourByteWordPad) |
| 7853 |
{ |
| 7854 |
*CompSize += 2; |
| 7855 |
if(padCount == 1) |
| 7856 |
{ |
| 7857 |
HP_RawUByte(lpdv,0); |
| 7858 |
HP_RawUByte(lpdv,0x00); |
| 7859 |
} |
| 7860 |
else |
| 7861 |
{ |
| 7862 |
HP_RawUByte(lpdv,(HP_UByte)(0 - (padCount - 1))); |
| 7863 |
HP_RawUByte(lpdv,0x00); |
| 7864 |
} |
| 7865 |
} |
| 7866 |
return; |
| 7867 |
} |
| 7868 |
state = START; |
| 7869 |
} |
| 7870 |
break; |
| 7871 |
} |
| 7872 |
} |
| 7873 |
return; |
| 7874 |
} |
| 7875 |
|
| 7876 |
#ifdef FAX_10 |
| 7877 |
/* Add new fax function definitions here */ |
| 7878 |
|
| 7879 |
HP_StdFuncPrefix HP_BeginSession_4( /* BeginSession signature 4 */ |
| 7880 |
|
| 7881 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7882 |
HP_UInt16 xValue, /* x units of measure */ |
| 7883 |
HP_UInt16 yValue, /* y units of measure */ |
| 7884 |
HP_UByte MeasureEnum, /* measure enumeration */ |
| 7885 |
HP_UByte errorReportingEnum, /* error reporting enumeration */ |
| 7886 |
HP_UByte eSendType) /* send type (Fax, E-Mail etc) */ |
| 7887 |
{ |
| 7888 |
|
| 7889 |
HP_AttrXyUInt16(pStream,xValue,yValue); |
| 7890 |
HP_AttrId(pStream,HP_UnitsPerMeasure); |
| 7891 |
HP_AttrUByte(pStream, MeasureEnum); |
| 7892 |
HP_AttrId(pStream,HP_Measure); |
| 7893 |
HP_AttrUByte(pStream, errorReportingEnum); |
| 7894 |
HP_AttrId(pStream,HP_ErrorReport); |
| 7895 |
HP_AttrUByte(pStream, eSendType); |
| 7896 |
HP_AttrId(pStream,HP_SendType); |
| 7897 |
HP_Operator(pStream,HP_BeginSession); |
| 7898 |
|
| 7899 |
} |
| 7900 |
|
| 7901 |
HP_StdFuncPrefix HP_JR3BeginImage_1( /* JR3BeginImage signature 1 */ |
| 7902 |
|
| 7903 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7904 |
HP_UInt16 sourceWidth, /* source image width */ |
| 7905 |
HP_UInt16 sourceHeight, /* source image height */ |
| 7906 |
HP_UInt16 stripCount, /* strip count*/ |
| 7907 |
HP_UInt16 destHeight, /* destination (strip) height in user units */ |
| 7908 |
HP_UInt32 JetReadyVersion, /* JetReady version */ |
| 7909 |
HP_UByte colorConfigEnum, /* color config enumeration */ |
| 7910 |
HP_UInt32 dataLength /* length of data to be read by the Vendor Unique operator */ |
| 7911 |
) |
| 7912 |
{ |
| 7913 |
HP_AttrUInt32(pStream, hp_JR3BeginImage); |
| 7914 |
HP_AttrId(pStream, HP_VUExtension); |
| 7915 |
HP_AttrUInt32(pStream, dataLength); |
| 7916 |
HP_AttrId(pStream, HP_VUDataLength); |
| 7917 |
HP_AttrUInt16(pStream, sourceWidth); |
| 7918 |
HP_AttrId(pStream,HP_SourceWidth); |
| 7919 |
HP_AttrUInt16(pStream, sourceHeight); |
| 7920 |
HP_AttrId(pStream, HP_SourceHeight); |
| 7921 |
HP_AttrUInt16(pStream, stripCount); |
| 7922 |
HP_AttrId(pStream, HP_VUStripCount); |
| 7923 |
HP_AttrUInt16(pStream, destHeight); |
| 7924 |
HP_AttrId(pStream, HP_VUStripHeight); |
| 7925 |
HP_AttrUInt32(pStream, JetReadyVersion); |
| 7926 |
HP_AttrId(pStream, HP_VUJetReadyVersion); |
| 7927 |
HP_AttrUByte(pStream, colorConfigEnum); |
| 7928 |
HP_AttrId(pStream, HP_VUJR3ColorConfig); |
| 7929 |
HP_Operator(pStream,HP_VendorUnique); |
| 7930 |
} |
| 7931 |
|
| 7932 |
HP_StdFuncPrefix HP_JR3ReadImage_1( /* JR3ReadImage signature 1 */ |
| 7933 |
|
| 7934 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7935 |
HP_UInt16 startLine, /* start line */ |
| 7936 |
HP_UInt16 blockHeight, /* block height in user units */ |
| 7937 |
HP_UInt32 JetReadyVersion, /* JetReady version */ |
| 7938 |
HP_UByte objectTypeEnum, /* object type enumeration */ |
| 7939 |
HP_UInt32 dataLength /* length of data to be read by the Vendor Unique operator */ |
| 7940 |
) |
| 7941 |
{ |
| 7942 |
HP_AttrUInt32(pStream, hp_JR3ReadImage); |
| 7943 |
HP_AttrId(pStream, HP_VUExtension); |
| 7944 |
HP_AttrUInt32(pStream, dataLength); |
| 7945 |
HP_AttrId(pStream, HP_VUDataLength); |
| 7946 |
HP_AttrUInt16(pStream, startLine); |
| 7947 |
HP_AttrId(pStream, HP_StartLine); |
| 7948 |
HP_AttrUInt16(pStream, blockHeight); |
| 7949 |
HP_AttrId(pStream, HP_BlockHeight); |
| 7950 |
HP_AttrUInt32(pStream, JetReadyVersion); |
| 7951 |
HP_AttrId(pStream, HP_VUJetReadyVersion); |
| 7952 |
HP_AttrUByte(pStream, objectTypeEnum); |
| 7953 |
HP_AttrId(pStream, HP_VUObjectType); |
| 7954 |
HP_Operator(pStream,HP_VendorUnique); |
| 7955 |
} |
| 7956 |
|
| 7957 |
HP_StdFuncPrefix HP_SetJobAttribute_1( /* SetJobAttribute signature 1 */ |
| 7958 |
|
| 7959 |
HP_StreamHandleType pStream, /* stream handle */ |
| 7960 |
HP_UInt16 JobAttributeNameLen, /* length of the JobAttributeName data packet */ |
| 7961 |
HP_pUByte JobAttributeNameData, /* actual JobAttributeName data packet */ |
| 7962 |
HP_UInt16 JobAttributeValueLen, /* length of the JobAttributeValue data packet */ |
| 7963 |
HP_pUByte JobAttributeValueData, /* actual JobAttributeValue data packet */ |
| 7964 |
HP_UInt16 JobAttributeTypeLen, /* length of the JobAttributeType data packet */ |
| 7965 |
HP_pUByte JobAttributeTypeData /* actual JobAttributeType data packet */ |
| 7966 |
) |
| 7967 |
{ |
| 7968 |
HP_AttrUByteArray(pStream, JobAttributeNameData, JobAttributeNameLen); |
| 7969 |
HP_AttrId(pStream, HP_JobAttributeName); |
| 7970 |
|
| 7971 |
HP_AttrUByteArray(pStream, JobAttributeValueData, JobAttributeValueLen); |
| 7972 |
HP_AttrId(pStream, HP_JobAttributeValue); |
| 7973 |
|
| 7974 |
HP_AttrUByteArray(pStream, JobAttributeTypeData, JobAttributeTypeLen); |
| 7975 |
HP_AttrId(pStream, HP_JobAttributeType); |
| 7976 |
|
| 7977 |
HP_Operator(pStream,HP_SetJobAttribute); |
| 7978 |
} |
| 7979 |
|
| 7980 |
|
| 7981 |
#endif //FAX_10 |
| 7982 |
|
| 7983 |
#undef TRUE |
| 7984 |
#undef FALSE |