1 /* 2 * Copyright 2005-2009 Gerald Schmidt. 3 * 4 * This file is part of Xml Copy Editor. 5 * 6 * Xml Copy Editor is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 2 9 * of the License, or (at your option) any later version. 10 * 11 * Xml Copy Editor is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with Xml Copy Editor; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 */ 20 21 #ifndef WRAPDAISY_H 22 #define WRAPDAISY_H 23 24 #include <wx/wx.h> 25 #include "xmlcopyeditor.h" 26 27 class WrapDaisy 28 { 29 public: 30 WrapDaisy ( 31 MyFrame *frame, 32 const wxString& daisyDir, 33 const wxString& path ); 34 ~WrapDaisy(); 35 bool run ( 36 wxString& fileIn, 37 wxString& stylesheet, 38 wxString& folder, 39 bool quiet, 40 bool suppressOptional, 41 bool epub, 42 bool rtf, 43 bool doc, 44 bool fullDaisy, 45 bool mp3Album ); 46 const wxString &getLastError(); 47 private: 48 MyFrame *frame; 49 wxString daisyDir, path, blankImage, classPath, commandLineUI, baseCmd, error, 50 memoryCwd, daisyCwd, albumCover; 51 }; 52 53 #endif 54