2000-01-19 23:04:33 +00:00
|
|
|
/*
|
|
|
|
Converts hhp (HTML Help Workshop) files into cached
|
|
|
|
version for faster reading
|
|
|
|
|
|
|
|
Usage: hhp2cached file.hhp [file2.hhp ...]
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2000-03-17 10:08:07 +00:00
|
|
|
// For compilers that support precompilation, includes "wx/wx.h".
|
|
|
|
#include "wx/wxprec.h"
|
|
|
|
|
|
|
|
#ifdef __BORLANDC__
|
|
|
|
#pragma hdrstop
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef WX_PRECOMP
|
|
|
|
#include "wx/wx.h"
|
|
|
|
#endif
|
2000-01-19 23:04:33 +00:00
|
|
|
|
2002-01-19 14:50:37 +00:00
|
|
|
#include "wx/html/helpdata.h"
|
2000-01-19 23:04:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
class MyApp : public wxApp
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual bool OnInit();
|
|
|
|
};
|
|
|
|
|
|
|
|
IMPLEMENT_APP(MyApp);
|
|
|
|
|
|
|
|
bool MyApp::OnInit()
|
|
|
|
{
|
|
|
|
for (int i = 1; i < argc; i++)
|
|
|
|
{
|
|
|
|
wxHtmlHelpData data;
|
2009-07-23 20:30:22 +00:00
|
|
|
wxPrintf(wxT("Processing %s...\n"), argv[i]);
|
2000-01-19 23:04:33 +00:00
|
|
|
data.SetTempDir(wxPathOnly(argv[i]));
|
|
|
|
data.AddBook(argv[i]);
|
|
|
|
}
|
|
|
|
|
2004-06-04 17:58:56 +00:00
|
|
|
return false;
|
2000-01-19 23:04:33 +00:00
|
|
|
}
|