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 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729
|
{
Copyright 1998-2018 PasDoc developers.
This file is part of "PasDoc".
"PasDoc" is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
"PasDoc" is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with "PasDoc"; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
----------------------------------------------------------------------------
}
{ @abstract(Generate HtmlHelp output.) }
unit PasDoc_GenHtmlHelp;
{$I pasdoc_defines.inc}
interface
uses PasDoc_GenHtml, PasDoc_Utils, PasDoc_SortSettings;
type
THTMLHelpDocGenerator = class(TGenericHTMLDocGenerator)
private
FContentsFile: string;
{ Writes the topic files for Html Help Generation }
procedure WriteHtmlHelpProject;
public
procedure WriteDocumentation; override;
published
{ Contains Name of a file to read HtmlHelp Contents from.
If empty, create default contents file. }
property ContentsFile: string read FContentsFile write FContentsFile;
end;
implementation
uses SysUtils, PasDoc_Types, PasDoc_StringVector, PasDoc_Base, PasDoc_Items,
PasDoc_Languages, PasDoc_Gen, PasDoc_Versions;
{ HtmlHelp Content Generation inspired by Wim van der Vegt <wvd_vegt@knoware.nl> }
function BeforeEqualChar(const s: string): string;
var
i: Cardinal;
begin
Result := s;
i := Pos('=', Result);
if i <> 0 then
SetLength(Result, i - 1);
end;
function AfterEqualChar(const s: string): string;
var
i: Cardinal;
begin
Result := s;
i := Pos('=', Result);
if i <> 0 then
Delete(Result, 1, i)
else
Result := '';
end;
function GetLevel(var s: string): Integer;
var
l: Cardinal;
p: PChar;
begin
Result := 0;
p := Pointer(s);
l := Length(s);
while (l > 0) and IsCharInSet(p^, [' ', #9]) do begin
Inc(Result);
Inc(p);
Dec(l);
end;
Delete(s, 1, Result);
end;
{ THTMLHelpDocGenerator ------------------------------------------------------ }
procedure THTMLHelpDocGenerator.WriteDocumentation;
begin
inherited;
WriteHtmlHelpProject;
end;
procedure THTMLHelpDocGenerator.WriteHtmlHelpProject;
var
DefaultContentsWritten: Boolean;
DefaultTopic: string;
procedure WriteLiObject(const Name, Local: string);
begin
WriteDirectLine('<li><object type="text/sitemap">');
WriteDirectLine('<param name="Name" value="' + Name + '">');
if Local <> '' then begin
WriteDirectLine('<param name="Local" value="' + Local + '">');
if DefaultTopic = '' then
DefaultTopic := Local;
end;
WriteDirectLine('</object>');
end;
{ ---------- }
procedure WriteItemCollection(const _Filename: string; const c: TPasItems);
var
i: Integer;
Item: TPasItem;
begin
if Assigned(c) then begin
WriteDirectLine('<ul>');
for i := 0 to c.Count - 1 do begin
Item := c.PasItemAt[i];
WriteLiObject(Item.Name, _Filename + '#' + Item.Name);
end;
WriteDirectLine('</ul>');
end;
end;
{ ---------- }
procedure WriteItemHeadingCollection(const Title, ParentLink, Anchor: string; const
c: TPasItems);
begin
if Assigned(c) and (c.Count > 0) then begin
WriteLiObject(Title, ParentLink + '#' + Anchor);
WriteItemCollection(ParentLink, c);
end;
end;
{ ---------- }
procedure NestedWriteCIO(const ClassItem: TPasCio);
var
I: Integer;
begin
WriteLiObject(ClassItem.Name, ClassItem.FullLink);
WriteDirectLine('<ul>');
if ClassItem.Cios.Count > 0 then
begin
WriteLiObject(FLanguage.Translation[trNestedCR], ClassItem.FullLink + '#@NestedCRs');
ClassItem.Cios.SortShallow;
WriteDirectLine('<ul>');
for I := 0 to ClassItem.Cios.Count - 1 do
begin
TPasCio(ClassItem.Cios.PasItemAt[I]).Sort([ssRecordFields,
ssNonRecordFields, ssMethods, ssProperties]);
NestedWriteCIO(TPasCio(ClassItem.Cios.PasItemAt[I]));
end;
WriteDirectLine('</ul>');
end;
WriteItemHeadingCollection(fLanguage.Translation[trNestedTypes], ClassItem.FullLink, '@NestedTypes', ClassItem.Types);
WriteItemHeadingCollection(fLanguage.Translation[trFields], ClassItem.FullLink, '@Fields', ClassItem.Fields);
WriteItemHeadingCollection(fLanguage.Translation[trProperties], ClassItem.FullLink, '@Properties', ClassItem.Properties);
WriteItemHeadingCollection(fLanguage.Translation[trMethods], ClassItem.FullLink, '@Methods', ClassItem.Methods);
WriteDirectLine('</ul>');
end;
{ ---------- }
procedure ContentWriteUnits(const Text: string);
var
c: TPasItems;
j, k: Integer;
PU: TPasUnit;
begin
if Text <> '' then
WriteLiObject(Text, OverviewFilesInfo[ofUnits].BaseFileName + GetFileExtension)
else
WriteLiObject(FLanguage.Translation[trUnits], OverviewFilesInfo[ofUnits].BaseFileName +
GetFileExtension);
WriteDirectLine('<ul>');
// Iterate all Units
for j := 0 to Units.Count - 1 do begin
PU := Units.UnitAt[j];
WriteLiObject(PU.Name, PU.FullLink);
WriteDirectLine('<ul>');
// For each unit, write classes (if there are any).
c := PU.CIOs;
if Assigned(c) then begin
WriteLiObject(FLanguage.Translation[trClasses], PU.FullLink + '#@Classes');
WriteDirectLine('<ul>');
for k := 0 to c.Count - 1 do
NestedWriteCIO(TPasCio(c.PasItemAt[k]));
WriteDirectLine('</ul>');
end;
// For each unit, write Functions & Procedures.
WriteItemHeadingCollection(FLanguage.Translation[trFunctionsAndProcedures],
PU.FullLink, '@FuncsProcs', PU.FuncsProcs);
// For each unit, write Types.
WriteItemHeadingCollection(FLanguage.Translation[trTypes], PU.FullLink,
'@Types', PU.Types);
// For each unit, write Constants.
WriteItemHeadingCollection(FLanguage.Translation[trConstants], PU.FullLink,
'@Constants', PU.Constants);
WriteDirectLine('</ul>');
end;
WriteDirectLine('</ul>');
end;
{ ---------- }
procedure ContentWriteClasses(const Text: string);
var
c: TPasItems;
j: Integer;
PU: TPasUnit;
FileName: string;
begin
FileName := OverviewFilesInfo[ofCios].BaseFileName + GetFileExtension;
// Write Classes to Contents
if Text <> '' then
WriteLiObject(Text, FileName) else
WriteLiObject(FLanguage.Translation[trClasses], FileName);
WriteDirectLine('<ul>');
c := TPasItems.Create(False);
// First collect classes
for j := 0 to Units.Count - 1 do begin
PU := Units.UnitAt[j];
c.CopyItems(PU.CIOs);
end;
// Output sorted classes
// TODO: Sort by sort settings rather than const values
c.SortShallow;
for j := 0 to c.Count - 1 do
begin
TPasCio(c.PasItemAt[j]).Sort([ssRecordFields, ssNonRecordFields,
ssMethods, ssProperties]);
NestedWriteCIO(TPasCio(c.PasItemAt[j]));
end;
c.Free;
WriteDirectLine('</ul>');
end;
{ ---------- }
procedure ContentWriteClassHierarchy(const Text: string);
var
FileName: string;
begin
FileName := OverviewFilesInfo[ofClassHierarchy].BaseFileName +
GetFileExtension;
if Text <> '' then
WriteLiObject(Text, FileName) else
WriteLiObject(FLanguage.Translation[trClassHierarchy], FileName);
end;
{ ---------- }
procedure ContentWriteOverview(const Text: string);
procedure WriteParam(Id: TTranslationId);
begin
WriteDirect('<param name="Name" value="');
WriteConverted(FLanguage.Translation[Id]);
WriteDirectLine('">');
end;
var
Overview: TCreatedOverviewFile;
begin
if Text <> '' then
WriteLiObject(Text, '')
else
WriteLiObject(FLanguage.Translation[trOverview], '');
WriteDirectLine('<ul>');
for Overview := LowCreatedOverviewFile to HighCreatedOverviewFile do
begin
WriteDirectLine('<li><object type="text/sitemap">');
WriteParam(OverviewFilesInfo[Overview].TranslationHeadlineId);
WriteDirect('<param name="Local" value="');
WriteConverted(OverviewFilesInfo[Overview].BaseFileName + GetFileExtension);
WriteDirectLine('">');
WriteDirectLine('</object>');
end;
WriteDirectLine('</ul>');
end;
{ ---------- }
procedure ContentWriteLegend(const Text: string);
var
FileName: string;
begin
FileName := 'Legend' + GetFileExtension;
if Text <> '' then
WriteLiObject(Text, FileName) else
WriteLiObject(FLanguage.Translation[trLegend], FileName);
end;
{ ---------- }
procedure ContentWriteGVUses();
var
FileName: string;
begin
FileName := OverviewFilesInfo[ofGraphVizUses].BaseFileName +
'.' + LinkGraphVizUses;
if LinkGraphVizUses <> '' then
WriteLiObject(FLanguage.Translation[trGvUses], FileName);
end;
{ ---------- }
procedure ContentWriteGVClasses();
var
FileName: string;
begin
FileName := OverviewFilesInfo[ofGraphVizClasses].BaseFileName +
'.' + LinkGraphVizClasses;
if LinkGraphVizClasses <> '' then
WriteLiObject(FLanguage.Translation[trGvClasses], FileName);
end;
{ ---------- }
procedure ContentWriteCustom(const Text, Link: string);
begin
if CompareText('@Classes', Link) = 0 then begin
DefaultContentsWritten := True;
ContentWriteClasses(Text);
end
else
if CompareText('@ClassHierarchy', Link) = 0 then begin
DefaultContentsWritten := True;
ContentWriteClassHierarchy(Text);
end
else
if CompareText('@Units', Link) = 0 then begin
DefaultContentsWritten := True;
ContentWriteUnits(Text);
end
else
if CompareText('@Overview', Link) = 0 then begin
DefaultContentsWritten := True;
ContentWriteOverview(Text);
end
else
if CompareText('@Legend', Link) = 0 then begin
DefaultContentsWritten := True;
ContentWriteLegend(Text);
end
else
WriteLiObject(Text, Link);
end;
{ ---------- }
Procedure ContentWriteIntroduction;
begin
if Introduction <> nil then
begin
WriteLiObject(Introduction.ShortTitle, Introduction.FullLink);
end;
end;
{ ---------- }
Procedure ContentWriteConclusion;
begin
if Conclusion <> nil then
begin
WriteLiObject(Conclusion.ShortTitle, Conclusion.FullLink);
end;
end;
{ ---------- }
Procedure ContentWriteAdditionalFiles;
var
i: Integer;
begin
if (AdditionalFiles <> nil) and (AdditionalFiles.Count > 0) then
begin
for i := 0 to AdditionalFiles.Count - 1 do
begin
WriteLiObject(AdditionalFiles.Get(i).ShortTitle, AdditionalFiles.Get(i).FullLink);
end;
end;
end;
{ ---------- }
procedure IndexWriteItem(const Item, PreviousItem, NextItem: TPasItem);
{ Item is guaranteed to be assigned, i.e. not to be nil. }
begin
if Assigned(Item.MyObject) then begin
if (Assigned(NextItem) and Assigned(NextItem.MyObject) and
(CompareText(Item.MyObject.Name, NextItem.MyObject.Name) = 0)) or
(Assigned(PreviousItem) and Assigned(PreviousItem.MyObject) and
(CompareText(Item.MyObject.Name, PreviousItem.MyObject.Name) = 0))
then
WriteLiObject(Item.MyObject.Name + ' - ' + Item.MyUnit.Name + #32 +
FLanguage.Translation[trUnit], Item.FullLink)
else
WriteLiObject(Item.MyObject.Name, Item.FullLink);
end
else begin
WriteLiObject(Item.MyUnit.Name + #32 + FLanguage.Translation[trUnit],
Item.FullLink);
end;
end;
{ ---------- }
procedure CopyCiosRecursively(ADst: TPasItems; ACios: TPasItems);
procedure AddRecursive(ACio: TPasCio);
begin
ADst.Add(ACio);
ADst.CopyItems(ACio.Fields);
ADst.CopyItems(ACio.Properties);
ADst.CopyItems(ACio.Methods);
ADst.CopyItems(ACio.Types);
if ACio.Cios.Count > 0 then
CopyCiosRecursively(ADst, ACio.Cios);
end;
var
I: Integer;
begin
for I := 0 to ACios.Count - 1 do
AddRecursive(TPasCio(ACios.PasItemAt[I]));
end;
{ -------------------------------------------------------------------------- }
var
i, j, k, l: Integer;
CurrentLevel, Level: Integer;
PU: TPasUnit;
c: TPasItems;
Item, NextItem, PreviousItem: TPasItem;
Item2: TPasCio;
s, Text, Link: string;
SL: TStringVector;
Overview: TCreatedOverviewFile;
begin
{ At this point, at least one unit has been parsed:
Units is assigned and Units.Count > 0
No need to test this again. }
if not CreateStream(ProjectName + '.hhc') then Exit;
DoMessage(2, pmtInformation, 'Writing HtmlHelp Content file "' + ProjectName
+ '"...', []);
// File Header
WriteDirectLine('<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">');
WriteDirectLine('<html>');
WriteDirectLine('<head>');
if not ExcludeGenerator then
WriteDirect('<meta name="GENERATOR" content="' +
PASDOC_NAME_AND_VERSION + '">', true);
WriteDirectLine('</head><body>');
WriteDirectLine('<ul>');
DefaultContentsWritten := False;
DefaultTopic := '';
if ContentsFile <> '' then begin
SL := NewStringVector;
try
SL.LoadFromTextFileAdd(ContentsFile);
except
on e: Exception do
DoMessage(1, pmtError, e.Message +
'. Writing default HtmlHelp contents.', []);
end;
CurrentLevel := 0;
for j := 0 to SL.Count - 1 do begin
s := SL[j];
Text := BeforeEqualChar(s);
Level := GetLevel(Text);
Link := AfterEqualChar(s);
if Level = CurrentLevel then
ContentWriteCustom(Text, Link)
else
if CurrentLevel = (Level - 1) then begin
WriteDirectLine('<ul>');
Inc(CurrentLevel);
ContentWriteCustom(Text, Link)
end
else
if CurrentLevel > Level then begin
WriteDirectLine('</ul>');
Dec(CurrentLevel);
while CurrentLevel > Level do begin
WriteDirectLine('</ul>');
Dec(CurrentLevel);
end;
ContentWriteCustom(Text, Link)
end
else begin
DoMessage(1, pmtError, 'Invalid level ' + IntToStr(Level) +
'in Content file (line ' + IntToStr(j) + ').', []);
Exit;
end;
end;
SL.Free;
end;
if not DefaultContentsWritten then begin
ContentWriteIntroduction;
ContentWriteUnits('');
ContentWriteClassHierarchy(FLanguage.Translation[trClassHierarchy]);
ContentWriteClasses('');
ContentWriteOverview('');
ContentWriteLegend('');
ContentWriteGVClasses();
ContentWriteGVUses();
ContentWriteAdditionalFiles;
ContentWriteConclusion;
end;
// End of File
WriteDirectLine('</ul>');
WriteDirectLine('</body></html>');
CloseStream;
// Create Keyword Index
// First collect all Items
c := TPasItems.Create(False); // Don't free Items when freeing the container
for j := 0 to Units.Count - 1 do begin
PU := Units.UnitAt[j];
if Assigned(PU.CIOs) then
CopyCiosRecursively(c, PU.CIOs);
c.CopyItems(PU.Types);
c.CopyItems(PU.Variables);
c.CopyItems(PU.Constants);
c.CopyItems(PU.FuncsProcs);
end;
if not CreateStream(ProjectName + '.hhk') then Exit;
DoMessage(2, pmtInformation, 'Writing HtmlHelp Index file "%s"...',
[ProjectName]);
WriteDirectLine('<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">');
WriteDirectLine('<html>');
WriteDirectLine('<head>');
if not ExcludeGenerator then
WriteDirectLine('<meta name="GENERATOR" content="' +
PASDOC_NAME_AND_VERSION + '">');
WriteDirectLine('</head><body>');
WriteDirectLine('<ul>');
// Write all Items to KeyWord Index
c.SortShallow;
if c.Count > 0 then begin
Item := c.PasItemAt[0];
j := 1;
while j < c.Count do begin
NextItem := c.PasItemAt[j];
// Does the next Item have a different name?
if CompareText(Item.Name, NextItem.Name) <> 0 then begin
WriteLiObject(Item.Name, Item.FullLink);
Item := NextItem;
end
else begin
// Write the Item. It acts as a header for the subitems to follow.
WriteLiObject(Item.Name, Item.FullLink);
// Indent by one.
WriteDirectLine('<ul>');
// No previous Item as we start.
PreviousItem := nil;
// Keep on writing Items with the same name as subitems.
repeat
IndexWriteItem(Item, PreviousItem, NextItem);
PreviousItem := Item;
Item := NextItem;
Inc(j);
if j >= c.Count then Break;
NextItem := c.PasItemAt[j];
// Break as soon Items' names are different.
until CompareText(Item.Name, NextItem.Name) <> 0;
// No NextItem as we write the last one of the same Items.
IndexWriteItem(Item, PreviousItem, nil);
Item := NextItem;
WriteDirectLine('</ul>');
end;
Inc(j);
end;
// Don't forget to write the last item. Can it ever by nil?
WriteLiObject(Item.Name, Item.FullLink);
end;
c.Free;
WriteDirectLine('</ul>');
WriteDirectLine('</body></html>');
CloseStream;
// Create a HTML Help Project File
if not CreateStream(ProjectName + '.hhp') then Exit;
DoMessage(3, pmtInformation, 'Writing Html Help Project file "%s"...',
[ProjectName]);
WriteDirectLine('[OPTIONS]');
WriteDirectLine('Binary TOC=Yes');
WriteDirectLine('Compatibility=1.1 or later');
WriteDirectLine('Compiled file=' + ProjectName + '.chm');
WriteDirectLine('Contents file=' + ProjectName + '.hhc');
WriteDirectLine('Default Window=Default');
WriteDirectLine('Default topic=' + DefaultTopic);
WriteDirectLine('Display compile progress=Yes');
WriteDirectLine('Error log file=' + ProjectName + '.log');
WriteDirectLine('Full-text search=Yes');
WriteDirectLine('Index file=' + ProjectName + '.hhk');
if Title <> '' then
WriteDirectLine('Title=' + Title)
else
WriteDirectLine('Title=' + ProjectName);
WriteDirectLine('');
WriteDirectLine('[WINDOWS]');
if Title <> '' then
WriteDirect('Default="' + Title + '","' + ProjectName +
'.hhc","' + ProjectName + '.hhk",,,,,,,0x23520,,0x300e,,,,,,,,0', true)
else
WriteDirect('Default="' + ProjectName + '","' +
ProjectName + '.hhc","' + ProjectName +
'.hhk",,,,,,,0x23520,,0x300e,,,,,,,,0', true);
WriteDirectLine('');
WriteDirectLine('[FILES]');
{ HHC seems to know about the files by reading the Content and Index.
So there is no need to specify them in the FILES section. }
WriteDirectLine('Legend.html');
If Introduction <> nil then
begin
WriteDirectLine(Introduction.FullLink);
end;
if (LinkGraphVizClasses <> '') then
WriteDirectLine(OverviewFilesInfo[ofGraphVizClasses].BaseFileName + '.' +
LinkGraphVizClasses);
if LinkGraphVizUses <> '' then
WriteDirectLine(OverviewFilesInfo[ofGraphVizUses].BaseFileName + '.' +
LinkGraphVizUses);
for Overview := LowCreatedOverviewFile to HighCreatedOverviewFile do
WriteDirectLine(OverviewFilesInfo[Overview].BaseFileName + '.html');
if Assigned(Units) then
for k := 0 to units.Count - 1 do
begin
Item := units.PasItemAt[k];
PU := TPasUnit(units.PasItemAt[k]);
WriteDirectLine(Item.FullLink);
c := PU.CIOs;
if Assigned(c) then
for l := 0 to c.Count - 1 do
begin
Item2 := TPasCio(c.PasItemAt[l]);
WriteDirectLine(Item2.OutputFilename);
end;
end;
If (AdditionalFiles <> nil) and (AdditionalFiles.Count > 0) then
begin
for i := 0 to AdditionalFiles.Count - 1 do
begin
WriteDirectLine(AdditionalFiles.Get(i).FullLink);
end;
end;
If Conclusion <> nil then
begin
WriteDirectLine(Conclusion.FullLink);
end;
WriteDirectLine('');
WriteDirectLine('[INFOTYPES]');
WriteDirectLine('');
WriteDirectLine('[MERGE FILES]');
CloseStream;
end;
end.
|