added utils/hhp2cached
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
33
utils/hhp2cached/hhp2cached.cpp
Normal file
33
utils/hhp2cached/hhp2cached.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
Converts hhp (HTML Help Workshop) files into cached
|
||||
version for faster reading
|
||||
|
||||
Usage: hhp2cached file.hhp [file2.hhp ...]
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/html/helpdata.h>
|
||||
|
||||
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user