Files correlati : Commento : Spostamento in libraries delle librerie esterne di Campo per una maggiore pulizia e organizzazione git-svn-id: svn://10.65.10.50/branches/R_10_00@24150 c028cbd2-c16b-5b4b-a496-9718f37d4682
43 lines
732 B
C++
43 lines
732 B
C++
/*
|
|
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"
|
|
|
|
#ifdef __BORLANDC__
|
|
#pragma hdrstop
|
|
#endif
|
|
|
|
#ifndef WX_PRECOMP
|
|
#include "wx/wx.h"
|
|
#endif
|
|
|
|
#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(_T("Processing %s...\n"), argv[i]);
|
|
data.SetTempDir(wxPathOnly(argv[i]));
|
|
data.AddBook(argv[i]);
|
|
}
|
|
|
|
return false;
|
|
}
|