/************************************************************************/ /* */ /* Picture Properties. */ /* */ /************************************************************************/ # ifndef DOC_PICTURE_PROPERTIES_H # define DOC_PICTURE_PROPERTIES_H # include /************************************************************************/ /* */ /* Properties of a picture. */ /* */ /************************************************************************/ typedef struct PictureProperties { int pipType:8; int pipMapMode:8; int pip_xWinExt; /* Of metafile picture. */ int pip_yWinExt; /* Of metafile picture. */ /********************************/ int pipTwipsWide; /* Width of object. */ int pipTwipsHigh; /* Height of object. */ /* NOTE: this is a property of */ /* the image. Not of the way */ /* in which it is included. */ /* That is controlled by the */ /* scale. */ /********************************/ int pipScaleXSet; int pipScaleYSet; int pipScaleXUsed; int pipScaleYUsed; int pipTopCropTwips; int pipBottomCropTwips; int pipLeftCropTwips; int pipRightCropTwips; long pipBliptag; int pipMetafileBitmapBpp; int pipBmUnitsPerInch; int pipBmBitsPerPixel; int pipBmPlanes; int pipBmBytesPerRow; unsigned int pipPictureIsWordArt:1; unsigned int pipMetafileIsBitmap:1; unsigned int pipPictIsScaled:1; } PictureProperties; /************************************************************************/ /* */ /* Numbers of picture properies. */ /* */ /************************************************************************/ typedef enum PictureProperty { PIPpropTYPE= 0, PIPpropPICX_WIN_EXT, PIPpropPICY_WIN_EXT, PIPpropPICTWIPS_WIDE, PIPpropPICTWIPS_HIGH, PIPpropPICSCALE_X, PIPpropPICSCALE_Y, PIPpropPICCROP_TOP, PIPpropPICCROP_BOTTOM, PIPpropPICCROP_LEFT, PIPpropPICCROP_RIGHT, PIPpropBLIPTAG, PIPpropPICBPP, PIPpropBLIPUPI, PIPpropWBMBITSPIXEL, PIPpropWBMPLANES, PIPpropWBMWIDTHBYTES, PIPpropDEFSHP, PIPpropPICBMP, PIPpropPICSCALED, PIPprop_COUNT } PictureProperty; /************************************************************************/ /* */ /* Routine declarations. */ /* */ /************************************************************************/ extern void docInitPictureProperties( PictureProperties * pip ); extern int docUpdPictureProperties( PropertyMask * pDoneMask, PictureProperties * pipTo, const PropertyMask * pipUpdMask, const PictureProperties * pipFrom ); # endif /* DOC_PICTURE_PROPERTIES_H */