initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
38
libs/wxWidgets-3.3.1/utils/hhp2cached/hhp2cached.cpp
Normal file
38
libs/wxWidgets-3.3.1/utils/hhp2cached/hhp2cached.cpp
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
Converts hhp (HTML Help Workshop) files into cached
|
||||
version for faster reading
|
||||
|
||||
Usage: hhp2cached file.hhp [file2.hhp ...]
|
||||
|
||||
*/
|
||||
|
||||
// For compilers that support precompilation, includes "wx/wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
#include "wx/html/helpdata.h"
|
||||
|
||||
|
||||
class MyApp : public wxApp
|
||||
{
|
||||
public:
|
||||
virtual bool OnInit();
|
||||
};
|
||||
|
||||
wxIMPLEMENT_APP(MyApp);
|
||||
|
||||
bool MyApp::OnInit()
|
||||
{
|
||||
for (int i = 1; i < argc; i++)
|
||||
{
|
||||
wxHtmlHelpData data;
|
||||
wxPrintf(wxT("Processing %s...\n"), argv[i]);
|
||||
data.SetTempDir(wxPathOnly(argv[i]));
|
||||
data.AddBook(argv[i]);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user