X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6776a0b25c1122df4e2a29655ed9de2fcde1735f..afbe906abdf9aa69a56571b8b20b095351dd8f34:/docs/latex/wx/document.tex diff --git a/docs/latex/wx/document.tex b/docs/latex/wx/document.tex index 7bb4d774d2..03b3b82240 100644 --- a/docs/latex/wx/document.tex +++ b/docs/latex/wx/document.tex @@ -191,10 +191,15 @@ See also \helpref{Modify}{wxdocumentmodify}. \func{virtual istream\&}{LoadObject}{\param{istream\& }{stream}} +\func{virtual wxInputStream\&}{LoadObject}{\param{wxInputStream\& }{stream}} + Override this function and call it from your own LoadObject before streaming your own data. LoadObject is called by the framework automatically when the document contents need to be loaded. +Note that only one of these forms exists, depending on how wxWindows +was configured. + \membersection{wxDocument::Modify}\label{wxdocumentmodify} \func{virtual void}{Modify}{\param{bool}{ modify}} @@ -297,10 +302,15 @@ Prompts the user for a file to save to, and then calls OnSaveDocument. \func{virtual ostream\&}{SaveObject}{\param{ostream\& }{stream}} +\func{virtual wxOutputStream\&}{SaveObject}{\param{wxOutputStream\& }{stream}} + Override this function and call it from your own SaveObject before streaming your own data. SaveObject is called by the framework automatically when the document contents need to be saved. +Note that only one of these forms exists, depending on how wxWindows +was configured. + \membersection{wxDocument::SetCommandProcessor} \func{virtual void}{SetCommandProcessor}{\param{wxCommandProcessor *}{processor}} @@ -326,10 +336,12 @@ framework. \membersection{wxDocument::SetFilename} -\func{void}{SetFilename}{\param{const wxString\& }{filename}} +\func{void}{SetFilename}{\param{const wxString\& }{filename}, \param{bool}{ notifyViews = FALSE}} Sets the filename for this document. Usually called by the framework. +If {\it notifyViews} is TRUE, wxView::OnChangeFilename is called for all views. + \membersection{wxDocument::SetTitle} \func{void}{SetTitle}{\param{const wxString\& }{title}} @@ -340,7 +352,9 @@ the filename. \membersection{wxDocument::UpdateAllViews}\label{wxdocumentupdateallviews} -\func{void}{UpdateAllViews}{\param{wxView* }{sender = NULL}} +\func{void}{UpdateAllViews}{\param{wxView* }{sender = NULL}, \param{wxObject*}{ hint = NULL}} Updates all views. If {\it sender} is non-NULL, does not update this view. +{\it hint} represents optional information to allow a view to optimize its update. +