Enhanced HTML Help output.
1. Full-text-search is enabled 2. Additional buttons on the help window 3. The root page (contents) is now added to the tree 4. etc. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3041,12 +3041,17 @@ void GenerateHTMLWorkshopFiles(char *fname)
|
|||||||
f = fopen(buf, "wt");
|
f = fopen(buf, "wt");
|
||||||
fprintf(f,
|
fprintf(f,
|
||||||
"[OPTIONS]\n"
|
"[OPTIONS]\n"
|
||||||
"Compatibility=1.1 or later\n"
|
"Compatibility=1.1\n"
|
||||||
|
"Full-text search=Yes\n"
|
||||||
"Contents file=%s.hhc\n"
|
"Contents file=%s.hhc\n"
|
||||||
|
"Compiled file=%s.chm\n"
|
||||||
|
"Default Window=%sHelp\n"
|
||||||
"Default topic=%s\n"
|
"Default topic=%s\n"
|
||||||
"Index file=%s.hhk\n"
|
"Index file=%s.hhk\n"
|
||||||
"Title=",
|
"Title=",
|
||||||
FileNameFromPath(fname),
|
FileNameFromPath(fname),
|
||||||
|
FileNameFromPath(fname),
|
||||||
|
FileNameFromPath(fname),
|
||||||
FileNameFromPath(TitlepageName),
|
FileNameFromPath(TitlepageName),
|
||||||
FileNameFromPath(fname)
|
FileNameFromPath(fname)
|
||||||
);
|
);
|
||||||
@@ -3057,6 +3062,14 @@ void GenerateHTMLWorkshopFiles(char *fname)
|
|||||||
}
|
}
|
||||||
else fprintf(f, "(unknown)");
|
else fprintf(f, "(unknown)");
|
||||||
|
|
||||||
|
fprintf(f, "\n\n[WINDOWS]\n"
|
||||||
|
"%sHelp=,\"%s.hhc\",\"%s.hhk\",\"%s\",,,,,,0x2420,,0x380e,,,,,0,,,",
|
||||||
|
FileNameFromPath(fname),
|
||||||
|
FileNameFromPath(fname),
|
||||||
|
FileNameFromPath(fname),
|
||||||
|
FileNameFromPath(TitlepageName));
|
||||||
|
|
||||||
|
|
||||||
fprintf(f, "\n\n[FILES]\n");
|
fprintf(f, "\n\n[FILES]\n");
|
||||||
fprintf(f, "%s\n", FileNameFromPath(TitlepageName));
|
fprintf(f, "%s\n", FileNameFromPath(TitlepageName));
|
||||||
for (int i = 1; i <= fileId; i++) {
|
for (int i = 1; i <= fileId; i++) {
|
||||||
@@ -3159,7 +3172,13 @@ void HTMLWorkshopStartContents()
|
|||||||
"<OBJECT type=\"text/site properties\">\n"
|
"<OBJECT type=\"text/site properties\">\n"
|
||||||
" <param name=\"ImageType\" value=\"Folder\">\n"
|
" <param name=\"ImageType\" value=\"Folder\">\n"
|
||||||
"</OBJECT>\n"
|
"</OBJECT>\n"
|
||||||
"<UL>\n");
|
"<UL>\n"
|
||||||
|
"<LI> <OBJECT type=\"text/sitemap\">\n"
|
||||||
|
"<param name=\"Local\" value=\"%s\">\n"
|
||||||
|
"<param name=\"Name\" value=\"Contents\">\n</OBJECT>\n",
|
||||||
|
FileNameFromPath(TitlepageName)
|
||||||
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user