42 enum TFormat { TF_A3, TF_A4, TF_A5, TF_USLETTER, TF_USLEGAL, TF_SCREEN,
43 TF_CUSTOM, TF_B3, TF_USEXECUTIVE };
44 enum TUnit { TU_MM, TU_CM, TU_PT, TU_INCH };
45 enum TOrient { TO_PORTRAIT, TO_LANDSCAPE };
46 enum TColonne { TC_NONE, TC_1, TC_2, TC_MORE };
47 enum THeadfoot { TH_ALL = 0, TH_XXX = 1, TH_FIRST = 2, TH_EVODD = 3 };
48 enum TProcType { TP_NORMAL, TP_DTP };
59 double _columnSpacing;
62 TProcType _processing;
100 TOrient getOrientation ()
const {
return _orientation; }
101 TColonne getColumns ()
const {
return _colonne; }
102 THeadfoot getHeadType ()
const {
return _headType; }
103 THeadfoot getFootType ()
const {
return _footType; }
104 TUnit getUnit ()
const {
return _unite; }
105 TProcType getProcessing ()
const {
return _processing; }
106 int getStandardPge ()
const {
return _standardPage; }
107 bool hasHeader ()
const {
return _hasHeader; }
108 bool hasFooter ()
const {
return _hasFooter; }
109 bool hasTOC ()
const {
return _hasTOC; }
110 bool hasColor ()
const {
return _hasColor; }
111 bool hasUnderline ()
const {
return _hasUnderline; }
112 bool hasEnumerate ()
const {
return _hasEnumerate; }
113 bool hasGraphics ()
const {
return _hasGraphics; }
114 bool hasTable ()
const {
return _hasTable; }
120 void setFormat (
int f) { _format = (TFormat) f; }
121 void setOrientation(TOrient o) { _orientation = o; }
122 void setOrientation(
int o) { _orientation = (TOrient) o; }
123 void setColumns (TColonne c) { _colonne = c; }
124 void setColumns (
int c) { _colonne = (TColonne) c; }
125 void setUnit (
int u) { _unite = (TUnit) u; }
126 void setProcessing (
int p) { _processing = (TProcType) p; }
127 void setStandardPge(
int s) { _standardPage = s; }
128 void setTOC (
int t) { _hasTOC = t; }
129 void setHeadType (
int ht) { _headType = (THeadfoot) ht; }
130 void setFootType (
int ft) { _footType = (THeadfoot) ft; }
131 void useColor () { _hasColor =
true; }
132 void useUnderline () { _hasUnderline =
true; }
133 void useEnumerate () { _hasEnumerate =
true; }
134 void useGraphics () { _hasGraphics =
true; }
135 void useTable () { _hasTable =
true; }
137 void analysePaper (
const TQDomNode);
138 void analyseAttributs (
const TQDomNode);
140 void generate (TQTextStream &);
152 void analysePaperParam(
const TQDomNode);
154 void generatePaper (TQTextStream&);
155 void generateLatinPreambule(TQTextStream&);
156 void generateUnicodePreambule(TQTextStream&);
157 void generatePackage (TQTextStream&);