Document wxDocManager::CloseDocument().

CloseDocuments() was documented but not CloseDocument(), this probably wasn't
intentional.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2010-05-21 15:25:43 +00:00
parent efb0918296
commit ea58481248

View File

@ -363,8 +363,27 @@ public:
*/
void AssociateTemplate(wxDocTemplate* temp);
/**
Closes the specified document.
If @a force is @true, the document is closed even if it has unsaved
changes.
@param doc
The document to close, must be non-@NULL.
@param force
If @true, close the document even if wxDocument::Close() returns
@false.
@return
@true if the document was closed or @false if closing it was
cancelled by user (only in @a force = @false case).
*/
bool CloseDocument(wxDocument *doc, bool force = false);
/**
Closes all currently opened documents.
@see CloseDocument()
*/
bool CloseDocuments(bool force = true);