4
4
%% Author: wxWidgets Team
7
%% RCS-ID: $Id: docmanag.tex 33428 2005-04-08 14:34:30Z MW $
7
%% RCS-ID: $Id: docmanag.tex 53699 2008-05-22 06:34:00Z BP $
8
8
%% Copyright: (c) wxWidgets Team
9
9
%% License: wxWindows license
10
10
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
325
325
\func{bool}{MakeDefaultName}{\param{const wxString\& }{buf}}
327
Copies a suitable default name into {\it buf}. This is implemented by
328
appending an integer counter to the string {\bf unnamed} and incrementing
327
This method is preserved for backwards compatibility in wxWidgets 2.8 but is
328
renamed to \helpref{MakeNewDocumentName}{wxdocmanagermakenewdocumentname} in
329
wxWidgets 3.0, please see its description for the details.
331
This function simply copies the value returned by MakeNewDocumentName() into
332
the provided \arg{buf} and returns \true.
331
334
\perlnote{In wxPerl this function must return the modified name rather
332
335
than just modifying the argument.}
338
\membersection{wxDocManager::MakeNewDocumentName}\label{wxdocmanagermakenewdocumentname}
340
\func{wxString}{MakeNewDocumentName}{\void}
342
Returns the name to be used for a new document. The default implementation
343
appends an integer counter to the string {\bf unnamed} and increments the
344
counter. To customize this behaviour, you need to override the virtual
345
\helpref{MakeNewDocumentName}{wxdocmanagermakedefaultname} method but if you
346
only need to call this method, an not to override it, please use this method
347
which is forward-compatible with wxWidgets 3.0.
335
352
\membersection{wxDocManager::OnCreateFileHistory}\label{wxdocmanageroncreatefilehistory}
337
354
\func{wxFileHistory *}{OnCreateFileHistory}{\void}