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()) {
#define assert(condition)
SimValue dummy(32)
a dummy simvalue which is given for operands that are not bound
static const std::string CMD_SNAME_SAVE_DOC
Command name for the "Save Document" command.
static const std::string CMD_ICON_SAVE_DOC
Icon location for the "Save Document" command.
virtual SaveDocumentCmd * create() const
virtual std::string icon() const
virtual ~SaveDocumentCmd()
virtual std::string shortName() const