backport wxDocManager::MakeNewDocumentName() from the trunk for forward-compatibility

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-05-10 20:16:50 +00:00
parent 7cd3ca16e8
commit b29e8302f4
3 changed files with 36 additions and 4 deletions

View File

@@ -408,8 +408,22 @@ public:
wxList& GetTemplates() { return m_templates; }
// Make a default document name
//
// NB: this method is renamed to MakeNewDocumentName() in wx 3.0, you still
// need to override it if your code needs to customize the default name
// generation but if you just use it from your code, prefer the version
// below which is forward-compatible with wx 3.0
virtual bool MakeDefaultName(wxString& buf);
#if wxABI_VERSION >= 20808
wxString MakeNewDocumentName() const
{
wxString s;
MakeDefaultName(s);
return s;
}
#endif // wx ABI >= 2.8.8
// Make a frame title (override this to do something different)
virtual wxString MakeFrameTitle(wxDocument* doc);