document wxDocument::GetDocumentSaved()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-10-29 16:15:03 +00:00
parent 838dd956a4
commit d7b3a73d07
2 changed files with 9 additions and 0 deletions

View File

@ -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; }

View File

@ -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.
*/