2
2
// LenMus project: free software for music theory and language
3
3
// Copyright (c) 2002-2009 Cecilio Salmeron
5
// This program is free software; you can redistribute it and/or modify it under the
5
// This program is free software; you can redistribute it and/or modify it under the
6
6
// terms of the GNU General Public License as published by the Free Software Foundation;
7
7
// either version 3 of the License, or (at your option) any later version.
9
// This program is distributed in the hope that it will be useful, but WITHOUT ANY
10
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
9
// This program is distributed in the hope that it will be useful, but WITHOUT ANY
10
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
11
// PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License along with this
14
// program. If not, see <http://www.gnu.org/licenses/>.
17
// For any comment, suggestion or feature request, please contact the manager of
13
// You should have received a copy of the GNU General Public License along with this
14
// program. If not, see <http://www.gnu.org/licenses/>.
17
// For any comment, suggestion or feature request, please contact the manager of
18
18
// the project at cecilios@users.sourceforge.net
20
20
//-------------------------------------------------------------------------------------
22
#pragma implementation ebook_processor.h
22
#pragma implementation "ebook_processor.h"
25
25
// for (compilers that support precompilation, includes "wx/wx.h".
58
bool ltHelpProcessor::GenerateHelpFile(wxString sSrcPath, wxString sLangCode,
58
bool ltHelpProcessor::GenerateHelpFile(wxString sSrcPath, wxString sLangCode,
59
59
wxString sCharCode, int nOptions)
61
61
// returns true if success
188
188
wxFFileInputStream inFile( sFilename, _T("rb") );
189
189
if (!inFile.IsOk()) {
190
wxLogMessage(_T("*** Error: File %s can not be included in help"), sFilename);
190
wxLogMessage(_T("*** Error: File %s can not be included in help"), sFilename.c_str());
193
193
wxFileName oFN(sFilename);
194
194
wxString sEntryName = sZipFolder + oFN.GetFullName();
195
195
m_pZipFile->PutNextEntry( sEntryName );
196
196
m_pZipFile->Write( inFile );
197
m_pZipFile->CloseEntry();
197
m_pZipFile->CloseEntry();