/************************************************************************/ /* */ /* Various definitions relating to document geometry. */ /* */ /************************************************************************/ # ifndef UTIL_DOCUMENT_GEOMETRY_H # define UTIL_DOCUMENT_GEOMETRY_H # include typedef struct DocumentGeometry { int dgPageWideTwips; int dgPageHighTwips; int dgLeftMarginTwips; int dgTopMarginTwips; int dgRightMarginTwips; int dgBottomMarginTwips; int dgHeaderPositionTwips; int dgFooterPositionTwips; int dgGutterTwips; } DocumentGeometry; /************************************************************************/ /* */ /* Update masks for document geometry. */ /* */ /* NOTE: This range is continued in Ted/docBuf.h for the section and */ /* document properties. Adding a bit here may make it necessary to */ /* shift the masks there as well. */ /* */ /************************************************************************/ typedef enum GeometryProperty { DGprop_NONE= -1, DGpropPAGE_WIDTH= 0, DGpropPAGE_HEIGHT, DGpropLEFT_MARGIN, DGpropRIGHT_MARGIN, DGpropTOP_MARGIN, DGpropBOTTOM_MARGIN, DGpropHEADER_POSITION, DGpropFOOTER_POSITION, DGpropGUTTER, DGprop_COUNT } GeometryProperty; /************************************************************************/ /* */ /* Routine declarations. */ /* */ /************************************************************************/ extern void utilInitDocumentGeometry( DocumentGeometry * dg ); extern void utilUpdDocumentGeometry( DocumentGeometry * dgTo, const DocumentGeometry * dgFrom, PropertyMask * doneMask, const PropertyMask * setMask ); # endif