33 #include <wx/docview.h>
65 wxDocument* doc = wxGetApp().docManager()->GetCurrentDocument();
73 wxString currentDocFilename = doc->GetFilename();
74 if (doc->GetFilename().Find(
'.') == -1) {
75 wxCommandEvent
dummy(wxID_SAVE, 0);
76 wxGetApp().docManager()->OnFileSave(
dummy);
78 doc->OnSaveDocument(currentDocFilename);
138 wxDocument* doc = wxGetApp().docManager()->GetCurrentDocument();
139 if (doc != NULL && doc->IsModified()) {