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 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
/************************************************************************/
/* */
/* Levels in the Lists of the list table of a document. */
/* */
/* O) Word 7.0 == Word 95 compatibility */
/* */
/************************************************************************/
# ifndef DOC_LIST_LEVEL_H
# define DOC_LIST_LEVEL_H
# include <utilPropMask.h>
# include <utilTextAttribute.h>
# include "docTabStop.h"
# include "docParaProperties.h"
# define DLmaxLEVELS 9
typedef enum ListLevelAlignment
{
DOCllaLEFT= 0,
DOCllaCENTERED,
DOCllaRIGHT,
DOClla_COUNT
} ListLevelAlignment;
typedef enum ListLevelFollow
{
DOCllfTAB= 0,
DOCllfSPACE,
DOCllfNONE,
DOCllf_COUNT
} ListLevelFollow;
typedef struct DocumentListLevel
{
int dllStartAt;
unsigned char dllNumberStyle;
unsigned char dllJustification;
unsigned char dllFollow;
unsigned char dllPrevToDigits;
unsigned char dllNoRestart;
int dllPictureNumber:8;
unsigned char dllFontBias;
unsigned char * dllText;
long dllTemplateID;
unsigned char * dllNumbers;
unsigned char dllTextSize;
unsigned char dllNumberSize;
unsigned char dllFromOld; /* O */
unsigned char dllUsePrevText; /* O */
unsigned char dllUsePrevSpace; /* O */
int dllIndent; /* O */
int dllSpace; /* O */
TabStopList dllTabStopList;
int dllLeftIndentTwips;
int dllFirstIndentTwips;
PropertyMask dllParaPropertyMask;
TextAttribute dllTextAttribute;
PropertyMask dllTextAttributeMask;
} DocumentListLevel;
typedef enum ListLevelProperty
{
LLpropSTARTAT,
LLpropSTYLE,
LLpropJUSTIFY,
LLpropFOLLOW,
LLpropLEGAL,
LLpropNORESTART,
LLpropPICTURE,
LLpropFBIAS,
LLpropTEXT,
LLpropTEMPLATEID,
LLpropNUMBERS,
LLpropOLD,
LLpropPREV,
LLpropPREVSPACE,
LLpropINDENT,
LLpropSPACE,
LLprop_COUNT
} ListLevelProperty;
/************************************************************************/
/* */
/* Routine declarations. */
/* */
/************************************************************************/
extern void docInitDocumentListLevel( DocumentListLevel * dll );
extern void docCleanDocumentListLevel( DocumentListLevel * dll );
extern int docCopyDocumentListLevel(
DocumentListLevel * to,
const DocumentListLevel * from,
const int * fontMap,
const int * colorMap );
extern int documentListLevelSetStyle(
DocumentListLevel * dll,
const PropertyMask * paraMask,
const ParagraphProperties * pp,
const PropertyMask * textMask,
const TextAttribute * ta );
# endif
|