]> git.saurik.com Git - wxWidgets.git/blame - utils/hhp2cached/hhp2cached.cpp
Tried to prevent scrollbars from scrolling as
[wxWidgets.git] / utils / hhp2cached / hhp2cached.cpp
CommitLineData
d572bb75
VS
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
14class MyApp : public wxApp
15{
16public:
17 virtual bool OnInit();
18};
19
20IMPLEMENT_APP(MyApp);
21
22bool 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}