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 94 95 96 97 98
|
/************************************************************************/
/* */
/* Section Properties. */
/* */
/************************************************************************/
# ifndef DOC_SECT_PROP_H
# define DOC_SECT_PROP_H
# include <appGeo.h>
# include "docParaNumber.h"
typedef enum SectionBreak
{
DOCsbkNONE= 0,
DOCsbkCOL,
DOCsbkPAGE,
DOCsbkEVEN,
DOCsbkODD,
DOCsbk_COUNT
} SectionBreak;
typedef enum PageNumberStyle
{
DOCpgnDEC= 0,
DOCpgnUCRM,
DOCpgnLCRM,
DOCpgnUCLTR,
DOCpgnLCLTR,
DOCpgn_COUNT
} PageNumberStyle;
typedef struct SectionProperties
{
DocumentGeometry spDocumentGeometry;
int spStyle;
int spColumnCount;
int spColumnSpacingTwips;
int spColumnWidthTwips;
unsigned int spHasTitlePage:1;
unsigned int spBreakKind:3;
unsigned int spPageNumberStyle:3;
unsigned int spRestartPageNumbers:1;
int spStartPageNumber;
ParagraphNumber * spParagraphNumbers;
int spParagraphNumberCount;
} SectionProperties;
typedef enum SectionProperty
{
SPprop_NONE= -1,
/* document geometry */
SPpropSTYLE= DGprop_COUNT,
SPpropTITLEPG,
SPpropBREAK_KIND,
SPpropNUMBER_STYLE,
SPpropPAGE_RESTART,
SPpropSTART_PAGE,
SPpropCOLUMN_COUNT,
SPpropCOLUMN_SPACING,
SPpropCOLUMN_WIDTH,
SPprop_COUNT
} SectionProperty;
/************************************************************************/
/* */
/* Routine declarations. */
/* */
/************************************************************************/
extern void docInitSectionProperties( SectionProperties * sp );
extern void docCleanSectionProperties( SectionProperties * sp );
extern int docCopySectionProperties( SectionProperties * to,
const SectionProperties * from );
extern void docSectPropertyDifference(
PropertyMask * pChgMask,
const SectionProperties * sp1,
const SectionProperties * sp2,
const PropertyMask * updMask );
extern int docUpdSectProperties( PropertyMask * pSpChgMask,
SectionProperties * to,
const PropertyMask * spUpdMask,
const SectionProperties * from );
# endif /* DOC_SECT_PROP_H */
|