diff --git a/include/wx/docview.h b/include/wx/docview.h index 49be65f1bb..cbac9175ea 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -73,6 +73,8 @@ public: void SetDocumentName(const wxString& name) { m_documentTypeName = name; } wxString GetDocumentName() const { return m_documentTypeName; } + // access the flag indicating whether this document had been already saved, + // SetDocumentSaved() is only used internally, don't call it bool GetDocumentSaved() const { return m_savedYet; } void SetDocumentSaved(bool saved = true) { m_savedYet = saved; } diff --git a/interface/wx/docview.h b/interface/wx/docview.h index 76e84f8341..55effdd85c 100644 --- a/interface/wx/docview.h +++ b/interface/wx/docview.h @@ -1043,6 +1043,13 @@ public: */ wxString GetDocumentName() const; + /** + Return true if this document had been already saved. + + @see IsModified() + */ + bool GetDocumentSaved() const; + /** Gets a pointer to the template that created the document. */