]> git.saurik.com Git - wxWidgets.git/blob - utils/hhp2cached/hhp2cached.cpp
added CentreOnScreen(), updated the docs to clear this mess a bit
[wxWidgets.git] / utils / hhp2cached / hhp2cached.cpp
1 /*
2 Converts hhp (HTML Help Workshop) files into cached
3 version for faster reading
4
5 Usage: hhp2cached file.hhp [file2.hhp ...]
6
7 */
8
9
10 #include <wx/wx.h>
11 #include <wx/html/helpdata.h>
12
13
14 class MyApp : public wxApp
15 {
16 public:
17 virtual bool OnInit();
18 };
19
20 IMPLEMENT_APP(MyApp);
21
22 bool MyApp::OnInit()
23 {
24 for (int i = 1; i < argc; i++)
25 {
26 wxHtmlHelpData data;
27 wxPrintf("Processing %s...\n", argv[i]);
28 data.SetTempDir(wxPathOnly(argv[i]));
29 data.AddBook(argv[i]);
30 }
31
32 return FALSE;
33 }