void UWord::SaveNow() { if(SaveFile(filename, editor.GetQTF())) { lrufile().NewEntry(filename); statusbar.Temporary("File " + filename + " was saved."); ClearModify(); } else Exclamation("Error saving the file [* " + DeQtf(filename) + "]!"); } void UWord::Save() { if(!editor.IsModified()) return; if(filename.IsEmpty()) SaveAs(); else SaveNow(); } void UWord::SaveAs() { FileSel& fs = UWordFs(); if(fs.ExecuteSaveAs()) { filename = fs; Title(filename); SaveNow(); } }
void UWord::SaveNow() { if(SaveFile(filename, editor.GetQTF())) { lrufile().NewEntry(filename); statusbar.Temporary("File " + filename + " was saved."); ClearModify(); } else Exclamation("Error saving the file [* " + DeQtf(filename) + "]!"); } void UWord::Save() { if(!editor.IsModified()) return; if(filename.IsEmpty()) SaveAs(); else SaveNow(); } void UWord::SaveAs() { FileSel& fs = UWordFs(); if(fs.ExecuteSaveAs()) { filename = fs; Title(filename); SaveNow(); } }