1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
/************************************************************************/
/* */
/* Border properties. */
/* */
/************************************************************************/
# ifndef DOC_BORDER_PROP_H
# define DOC_BORDER_PROP_H
# include "utilPropMask.h"
# include "docPropVal.h"
/************************************************************************/
/* */
/* Border Styles: How they are drawn. */
/* */
/************************************************************************/
typedef enum BorderStyle
{
DOCbsNONE= 0,
DOCbsS,
DOCbsTH,
DOCbsSH,
DOCbsDB,
DOCbsHAIR,
DOCbsDOT,
DOCbsDASH,
DOCbsDASHD,
DOCbsDASHDD,
DOCbsTRIPLE,
DOCbsTNTHSG,
DOCbsTHTNSG,
DOCbsTNTHTNSG,
DOCbsTNTHMG,
DOCbsTHTNMG,
DOCbsTNTHTNMG,
DOCbsTNTHLG,
DOCbsTHTNLG,
DOCbsTNTHTNLG,
DOCbsWAVY,
DOCbsWAVYDB,
DOCbsDASHSM,
DOCbsDASHDOTSTR,
DOCbsEMBOSS,
DOCbsENGRAVE,
DOCbs_COUNT
} BorderStyle;
typedef struct BorderProperties
{
unsigned int bpColor:8;
unsigned int bpSpacingTwips:16;
unsigned int bpPenWideTwips:8;
unsigned int bpStyle:5; /* (enum) */
} BorderProperties;
typedef enum BorderProperty
{
BRDRprop_NONE= -1,
BRDRpropCOLOR= 0,
BRDRpropSPACING,
BRDRpropPEN_WIDE,
BRDRpropSTYLE,
BRDRprop_COUNT
} BorderProperty;
# define docCopyBorderProperties( bp1, bp2 ) *(bp1)= *(bp2)
/************************************************************************/
/* */
/* Routine Declarations. */
/* */
/************************************************************************/
extern void docInitBorderProperties( BorderProperties * bp );
extern void docBorderPropertyDifference(
PropertyMask * pBpChgMask,
const BorderProperties * bp1,
const BorderProperties * bp2,
const PropertyMask * bpUpdMask );
extern int docBordersDiffer( const BorderProperties * bp1,
const BorderProperties * bp2 );
# endif /* DOC_BORDER_PROP_H */
|