From d7b3a73d0717f12c9045916f903bc13833a6183e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 29 Oct 2008 16:15:03 +0000 Subject: [PATCH] document wxDocument::GetDocumentSaved() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/docview.h | 2 ++ interface/wx/docview.h | 7 +++++++ 2 files changed, 9 insertions(+) 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. */ -- 2.45.2