From: Václav Slavík Date: Wed, 19 Jan 2000 23:04:33 +0000 (+0000) Subject: added utils/hhp2cached X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d572bb7513361b8f761e66e2559774bad7a62b02 added utils/hhp2cached git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure.in b/configure.in index 29b62e2374..59b5c34504 100644 --- a/configure.in +++ b/configure.in @@ -3369,6 +3369,7 @@ AC_OUTPUT([ utils/HelpGen/src/Makefile utils/tex2rtf/Makefile utils/tex2rtf/src/Makefile + utils/hhp2cached/Makefile utils/dialoged/Makefile utils/dialoged/src/Makefile ], diff --git a/utils/Makefile.in b/utils/Makefile.in index a35d448206..66dec7e528 100644 --- a/utils/Makefile.in +++ b/utils/Makefile.in @@ -4,6 +4,7 @@ all: cd tex2rtf; make + cd hhp2cached; make cd makegen; make cd HelpGen; make cd dialoged; make @@ -13,6 +14,7 @@ all: clean: cd tex2rtf; make clean + cd hhp2cached; make clean cd makegen; make clean cd HelpGen; make clean cd dialoged; make clean diff --git a/utils/hhp2cached/Makefile.in b/utils/hhp2cached/Makefile.in new file mode 100644 index 0000000000..fe5e0c07e4 --- /dev/null +++ b/utils/hhp2cached/Makefile.in @@ -0,0 +1,15 @@ +# Purpose: makefile for hhp2cached (UNIX). +# Created: 2000-01-19 + +top_srcdir = @top_srcdir@ +top_builddir = ../.. +program_dir = utils/hhp2cached + +PROGRAM=hhp2cached + + +OBJECTS=$(PROGRAM).o + +include ../../src/makeprog.env + + diff --git a/utils/hhp2cached/hhp2cached.cpp b/utils/hhp2cached/hhp2cached.cpp new file mode 100644 index 0000000000..4c6f30c52c --- /dev/null +++ b/utils/hhp2cached/hhp2cached.cpp @@ -0,0 +1,33 @@ +/* + Converts hhp (HTML Help Workshop) files into cached + version for faster reading + + Usage: hhp2cached file.hhp [file2.hhp ...] + +*/ + + +#include +#include + + +class MyApp : public wxApp +{ +public: + virtual bool OnInit(); +}; + +IMPLEMENT_APP(MyApp); + +bool MyApp::OnInit() +{ + for (int i = 1; i < argc; i++) + { + wxHtmlHelpData data; + wxPrintf("Processing %s...\n", argv[i]); + data.SetTempDir(wxPathOnly(argv[i])); + data.AddBook(argv[i]); + } + + return FALSE; +}