00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109 #ifndef INC_CXF_TEXT
00110 #define INC_CXF_TEXT
00111
00112 class String_64;
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125 class CXaraFileTxtStory
00126 {
00127 public:
00128 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, TextStory *pStory);
00129 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, TextStory *pStory);
00130
00131 static BOOL CanWriteChildrenWeb(BaseCamelotFilter* pFilter,TextStory *pStory);
00132 static BOOL CanWriteChildrenNative(BaseCamelotFilter* pFilter,TextStory *pStory);
00133
00134 static BOOL WriteBeginChildRecordsWeb(BaseCamelotFilter *pFilter, TextStory *pStory);
00135 static BOOL WriteBeginChildRecordsNative(BaseCamelotFilter *pFilter, TextStory *pStory);
00136 static BOOL WriteEndChildRecordsWeb(BaseCamelotFilter *pFilter, TextStory *pStory);
00137 static BOOL WriteEndChildRecordsNative(BaseCamelotFilter *pFilter, TextStory *pStory);
00138
00139 private:
00140 static BOOL WriteTextStory(BaseCamelotFilter *pFilter, TextStory *pStory);
00141
00142 static BOOL WriteTextStorySimple(BaseCamelotFilter *pFilter, TextStory *pStory);
00143 static BOOL WriteTextStoryComplex(BaseCamelotFilter *pFilter, TextStory *pStory);
00144
00145 static BOOL WriteTextStorySimpleStartLeft(BaseCamelotFilter *pFilter, TextStory *pStory);
00146 static BOOL WriteTextStorySimpleStartRight(BaseCamelotFilter *pFilter, TextStory *pStory);
00147 static BOOL WriteTextStorySimpleEndLeft(BaseCamelotFilter *pFilter, TextStory *pStory);
00148 static BOOL WriteTextStorySimpleEndRight(BaseCamelotFilter *pFilter, TextStory *pStory);
00149 static BOOL WriteTextStoryComplexStartLeft(BaseCamelotFilter *pFilter, TextStory *pStory);
00150 static BOOL WriteTextStoryComplexStartRight(BaseCamelotFilter *pFilter, TextStory *pStory);
00151 static BOOL WriteTextStoryComplexEndLeft(BaseCamelotFilter *pFilter, TextStory *pStory);
00152 static BOOL WriteTextStoryComplexEndRight(BaseCamelotFilter *pFilter, TextStory *pStory);
00153
00154 static BOOL WriteTextStoryWordWrapInfo(BaseCamelotFilter *pFilter, TextStory *pStory);
00155 static BOOL WriteTextStoryIndentInfo(BaseCamelotFilter *pFilter, TextStory *pStory);
00156
00157 static BOOL WriteTextStoryInvalid(BaseCamelotFilter *pFilter, TextStory *pStory);
00158
00159
00160
00161
00162
00163 static BOOL IsGuaranteedFont(BaseCamelotFilter *pFilter,String_64* pFontName);
00164 static BOOL SiblingAndChildTypefaceAttrsAllGuaranteedFonts(BaseCamelotFilter *pFilter,Node* pNode);
00165 static BOOL MustConvertToOutlines(BaseCamelotFilter *pFilter, TextStory *pStory);
00166
00167
00168
00169 protected:
00170 const static double mEpsilon;
00171 };
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184 class CXaraFileTxtLine
00185 {
00186 public:
00187 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, TextLine *pLine);
00188 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, TextLine *pLine);
00189 static BOOL WriteBeginChildRecordsWeb(BaseCamelotFilter *pFilter, TextLine *pLine);
00190 static BOOL WriteBeginChildRecordsNative(BaseCamelotFilter *pFilter, TextLine *pLine);
00191 static BOOL WriteEndChildRecordsWeb(BaseCamelotFilter *pFilter, TextLine *pLine);
00192 static BOOL WriteEndChildRecordsNative(BaseCamelotFilter *pFilter, TextLine *pLine);
00193
00194 private:
00195 static BOOL WriteTextLine(BaseCamelotFilter *pFilter, TextLine *pLine);
00196 static BOOL WriteTextLineInfo(BaseCamelotFilter *pFilter, TextStory *pStory);
00197 };
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210 class CXaraFileTxtChar
00211 {
00212 public:
00213 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, TextChar *pChar);
00214 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, TextChar *pChar);
00215 private:
00216 static BOOL WriteTextChar(BaseCamelotFilter *pFilter, TextChar *pChar);
00217 };
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230 class CXaraFileTxtKern
00231 {
00232 public:
00233 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, KernCode *pKern);
00234 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, KernCode *pKern);
00235 private:
00236 static BOOL WriteTextKern(BaseCamelotFilter *pFilter, KernCode *pKern);
00237 };
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250 class CXaraFileTxtTab
00251 {
00252 public:
00253 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, HorizontalTab *pTab);
00254 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, HorizontalTab *pTab);
00255 private:
00256 static BOOL WriteTextTab(BaseCamelotFilter *pFilter, HorizontalTab* pTab);
00257 };
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270 class CXaraFileTxtCaret
00271 {
00272 public:
00273 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, CaretNode *pCaret);
00274 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, CaretNode *pCaret);
00275 private:
00276 static BOOL WriteTextCaret(BaseCamelotFilter *pFilter, CaretNode *pCaret);
00277 };
00278
00279
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290 class CXaraFileTxtEOL
00291 {
00292 public:
00293 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, EOLNode *pEOL);
00294 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, EOLNode *pEOL);
00295 private:
00296 static BOOL WriteTextEOL(BaseCamelotFilter *pFilter, EOLNode *pEOL);
00297 };
00298
00299
00300
00301
00302
00303
00304
00305
00306
00307
00308
00309
00310 class CXaraFileTxtBold
00311 {
00312 public:
00313 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtBold *pAttr);
00314 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtBold *pAttr);
00315 private:
00316 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtBold *pAttr);
00317 };
00318
00319
00320
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330 class CXaraFileTxtFontTypeface
00331 {
00332 public:
00333 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtFontTypeface *pAttr);
00334 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtFontTypeface *pAttr);
00335 private:
00336 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtFontTypeface *pAttr);
00337 };
00338
00339
00340
00341
00342
00343
00344
00345
00346
00347
00348
00349
00350 class CXaraFileTxtItalic
00351 {
00352 public:
00353 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtItalic *pAttr);
00354 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtItalic *pAttr);
00355 private:
00356 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtItalic *pAttr);
00357 };
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00369
00370 class CXaraFileTxtUnderline
00371 {
00372 public:
00373 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtUnderline *pAttr);
00374 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtUnderline *pAttr);
00375 private:
00376 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtUnderline *pAttr);
00377 };
00378
00379
00380
00381
00382
00383
00384
00385
00386
00387
00388
00389
00390 class CXaraFileTxtAspectRatio
00391 {
00392 public:
00393 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtAspectRatio *pAttr);
00394 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtAspectRatio *pAttr);
00395 private:
00396 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtAspectRatio *pAttr);
00397 };
00398
00399
00400
00401
00402
00403
00404
00405
00406
00407
00408
00409
00410 class CXaraFileTxtJustification
00411 {
00412 public:
00413 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtJustification *pAttr);
00414 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtJustification *pAttr);
00415 private:
00416 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtJustification *pAttr);
00417 };
00418
00419
00420
00421
00422
00423
00424
00425
00426
00427
00428
00429
00430 class CXaraFileTxtTracking
00431 {
00432 public:
00433 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtTracking *pAttr);
00434 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtTracking *pAttr);
00435 private:
00436 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtTracking *pAttr);
00437 };
00438
00439
00440
00441
00442
00443
00444
00445
00446
00447
00448
00449
00450 class CXaraFileTxtFontSize
00451 {
00452 public:
00453 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtFontSize *pAttr);
00454 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtFontSize *pAttr);
00455 private:
00456 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtFontSize *pAttr);
00457 };
00458
00459
00460
00461
00462
00463
00464
00465
00466
00467
00468
00469
00470 class CXaraFileTxtScript
00471 {
00472 public:
00473 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtScript *pAttr);
00474 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtScript *pAttr);
00475 private:
00476 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtScript *pAttr);
00477 };
00478
00479
00480
00481
00482
00483
00484
00485
00486
00487
00488
00489
00490 class CXaraFileTxtBaseLine
00491 {
00492 public:
00493 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtBaseLine *pAttr);
00494 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtBaseLine *pAttr);
00495 private:
00496 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtBaseLine *pAttr);
00497 };
00498
00499
00500
00501
00502
00503
00504
00505
00506
00507
00508
00509
00510 class CXaraFileTxtLeftMargin
00511 {
00512 public:
00513 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtLeftMargin *pAttr);
00514 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtLeftMargin *pAttr);
00515 private:
00516 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtLeftMargin *pAttr);
00517 };
00518
00519
00520
00521
00522
00523
00524
00525
00526
00527
00528
00529
00530 class CXaraFileTxtRightMargin
00531 {
00532 public:
00533 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtRightMargin *pAttr);
00534 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtRightMargin *pAttr);
00535 private:
00536 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtRightMargin *pAttr);
00537 };
00538
00539
00540
00541
00542
00543
00544
00545
00546
00547
00548
00549
00550 class CXaraFileTxtFirstIndent
00551 {
00552 public:
00553 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtFirstIndent *pAttr);
00554 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtFirstIndent *pAttr);
00555 private:
00556 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtFirstIndent *pAttr);
00557 };
00558
00559
00560
00561
00562
00563
00564
00565
00566
00567
00568
00569
00570 class CXaraFileTxtRuler
00571 {
00572 public:
00573 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtRuler *pAttr);
00574 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtRuler *pAttr);
00575 private:
00576 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtRuler *pAttr);
00577 };
00578
00579
00580
00581
00582
00583
00584
00585
00586
00587
00588
00589
00590 class CXaraFileTxtLineSpace
00591 {
00592 public:
00593 static BOOL WritePreChildrenWeb(BaseCamelotFilter *pFilter, AttrTxtLineSpace *pAttr);
00594 static BOOL WritePreChildrenNative(BaseCamelotFilter *pFilter, AttrTxtLineSpace *pAttr);
00595 private:
00596 static BOOL WritePreChildrenAux(BaseCamelotFilter *pFilter, AttrTxtLineSpace *pAttr);
00597 };
00598
00599 #endif