9a83f86094
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
43 lines
691 B
C++
43 lines
691 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(wxT("Processing %s...\n"), argv[i]);
|
|
data.SetTempDir(wxPathOnly(argv[i]));
|
|
data.AddBook(argv[i]);
|
|
}
|
|
|
|
return false;
|
|
}
|