Added primitive for Crossword Exporting.

Added first exporting function
This commit is contained in:
2015-06-16 16:58:30 +03:00
parent af923b152f
commit b3f8230d07
5 changed files with 39 additions and 14 deletions

View File

@@ -5,4 +5,23 @@
#include "crossbasetypes.hpp"
//wxTextFile::GetEOL()
void exportToString(const FilledCrossword &cross, const bool prn_ans, wxString &str_out){
}
bool exportToFile(const FilledCrossword &cross, const bool prn_ans, const wxString path){
wxTextFile f(path);
if ( f.Exists() )
return false;
f.Create();
wxString cont;
exportToString(cross, prn_ans, cont);
f.AddLine(cont);
f.Write();
f.Close();
return true;
}
#endif // CROSSEXPORT_HPP