X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b236c10f77e9ed0bc3c16d1cceb4a62f7048b4f9..dbfb85a7658eb8e6443191c852ac5d39e38d17cf:/docs/latex/wx/docmanag.tex diff --git a/docs/latex/wx/docmanag.tex b/docs/latex/wx/docmanag.tex index e497af8ef4..a7669884ce 100644 --- a/docs/latex/wx/docmanag.tex +++ b/docs/latex/wx/docmanag.tex @@ -92,7 +92,7 @@ Destructor. \membersection{wxDocManager::ActivateView}\label{wxdocmanageractivateview} -\func{void}{ActivateView}{\param{wxView* }{doc}, \param{bool}{ activate}, \param{bool}{ deleting}} +\func{void}{ActivateView}{\param{wxView* }{doc}, \param{bool}{ activate = true}} Sets the current view. @@ -289,58 +289,46 @@ from \helpref{Initialize}{wxdocmanagerinitialize}. \membersection{wxDocManager::OnFileClose}\label{wxdocmanageronfileclose} -\func{void}{OnFileClose}{\void} +\func{void}{OnFileClose}{\param{wxCommandEvent\& }{event}} Closes and deletes the currently active document. \membersection{wxDocManager::OnFileCloseAll}\label{wxdocmanageronfilecloseall} -\func{void}{OnFileCloseAll}{\void} +\func{void}{OnFileCloseAll}{\param{wxCommandEvent\& }{event}} Closes and deletes all the currently opened documents. \membersection{wxDocManager::OnFileNew}\label{wxdocmanageronfilenew} -\func{void}{OnFileNew}{\void} +\func{void}{OnFileNew}{\param{wxCommandEvent\& }{event}} Creates a document from a list of templates (if more than one template). \membersection{wxDocManager::OnFileOpen}\label{wxdocmanageronfileopen} -\func{void}{OnFileOpen}{\void} +\func{void}{OnFileOpen}{\param{wxCommandEvent\& }{event}} Creates a new document and reads in the selected file. +\membersection{wxDocManager::OnFileRevert}\label{wxdocmanageronfilerevert} + +\func{void}{OnFileRevert}{\param{wxCommandEvent\& }{event}} + +Reverts the current document by calling wxDocument::Revert for the current document. + \membersection{wxDocManager::OnFileSave}\label{wxdocmanageronfilesave} -\func{void}{OnFileSave}{\void} +\func{void}{OnFileSave}{\param{wxCommandEvent\& }{event}} Saves the current document by calling wxDocument::Save for the current document. \membersection{wxDocManager::OnFileSaveAs}\label{wxdocmanageronfilesaveas} -\func{void}{OnFileSaveAs}{\void} +\func{void}{OnFileSaveAs}{\param{wxCommandEvent\& }{event}} Calls wxDocument::SaveAs for the current document. -\membersection{wxDocManager::OnMenuCommand}\label{wxdocmanageronmenucommand} - -\func{void}{OnMenuCommand}{\param{int}{ cmd}} - -Processes menu commands routed from child or parent frames. This deals -with the following predefined menu item identifiers: - -\begin{itemize}\itemsep=0pt -\item wxID\_OPEN Creates a new document and opens a file into it. -\item wxID\_CLOSE Closes the current document. -\item wxID\_CLOSE\_ALL Closes all documents. -\item wxID\_NEW Creates a new document. -\item wxID\_SAVE Saves the document. -\item wxID\_SAVE\_AS Saves the document into a specified filename. -\end{itemize} - -Unrecognized commands are routed to the currently active wxView's OnMenuCommand. - \membersection{wxDocManager::RemoveDocument}\label{wxdocmanagerremovedocument} \func{void}{RemoveDocument}{\param{wxDocument *}{doc}} @@ -350,7 +338,7 @@ Removes the document from the list of documents. \membersection{wxDocManager::SelectDocumentPath}\label{wxdocmanagerselectdocumentpath} \func{wxDocTemplate *}{SelectDocumentPath}{\param{wxDocTemplate **}{templates}, - \param{int}{ noTemplates}, \param{const wxString\& }{path}, \param{const wxString\& }{bufSize}, + \param{int}{ noTemplates}, \param{wxString\& }{path}, \param{long}{ flags}, \param{bool}{ save}} Under Windows, pops up a file selector with a list of filters corresponding to document templates.