Add wxDocManager::FindDocumentByPath() helper.

Simply refactor the code which already existed inside wxDocManager in a new
public method.

Closes #15126.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-03-27 23:10:20 +00:00
parent 49cfad613b
commit 1127eb3a6a
4 changed files with 35 additions and 11 deletions

View File

@@ -414,6 +414,19 @@ public:
*/
wxDocTemplate* FindTemplate(const wxClassInfo* classinfo);
/**
Search for the document corresponding to the given file.
@param path
Document file path.
@return
Pointer to a wxDocument, or @NULL if none found.
@since 2.9.5
*/
wxDocument* FindDocumentByPath(const wxString& path) const;
/**
Closes the specified document.