bool GetDocumentSaved() const { return m_savedYet; }
void SetDocumentSaved(bool saved = true) { m_savedYet = saved; }
+ // return true if the document hasn't been modified since the last time it
+ // was saved (implying that it returns false if it was never saved, even if
+ // the document is not modified)
+ bool AlreadySaved() const { return !IsModified() && GetDocumentSaved(); }
+
virtual bool Close();
virtual bool Save();
virtual bool SaveAs();
// modified to false)
virtual bool OnSaveModified();
+ // if you override, remember to call the default
+ // implementation (wxDocument::OnChangeFilename)
+ virtual void OnChangeFilename(bool notifyViews);
+
// Called by framework if created automatically by the default document
// manager: gives document a chance to initialise and (usually) create a
// view
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long type = wxDEFAULT_FRAME_STYLE,
- const wxString& name = wxT("frame"));
+ const wxString& name = wxFrameNameStr);
virtual ~wxDocChildFrame(){}
void OnActivate(wxActivateEvent& event);