X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..733399faaa60921b647e6c943346b73a4757cb67:/docs/latex/wx/dataobj.tex diff --git a/docs/latex/wx/dataobj.tex b/docs/latex/wx/dataobj.tex index 5a62f8532e..631c52dc36 100644 --- a/docs/latex/wx/dataobj.tex +++ b/docs/latex/wx/dataobj.tex @@ -5,8 +5,8 @@ %% Modified by: %% Created: 18.10.99 %% RCS-ID: $Id$ -%% Copyright: (c) wxWindows team -%% License: wxWindows license +%% Copyright: (c) wxWidgets team +%% License: wxWidgets license %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{\class{wxDataObject}}\label{wxdataobject} @@ -36,12 +36,12 @@ enum Direction which allows to distinguish between them. See \helpref{wxDataFormat}{wxdataformat} documentation for more about formats. -Not surprizingly, being 'smart' comes at a price of added complexity. This is +Not surprisingly, being 'smart' comes at a price of added complexity. This is reasonable for the situations when you really need to support multiple formats, but may be annoying if you only want to do something simple like cut and paste text. -To provide a solution for both cases, wxWindows has two predefined classes +To provide a solution for both cases, wxWidgets has two predefined classes which derive from wxDataObject: \helpref{wxDataObjectSimple}{wxdataobjectsimple} and \helpref{wxDataObjectComposite}{wxdataobjectcomposite}. \helpref{wxDataObjectSimple}{wxdataobjectsimple} is @@ -104,6 +104,9 @@ translation under Windows is not yet finished. Derive a class from \helpref{wxPyDataObjectSimple}{wxdataobjectsimple} instead.} +\perlnote{This class is not currently usable from wxPerl; you may +use \helpref{Wx::PlDataObjectSimple}{wxdataobjectsimple} instead.} + \wxheading{Virtual functions to override} Each class derived directly from wxDataObject must override and implement all @@ -155,12 +158,16 @@ Destructor. Copy all supported formats in the given direction to the array pointed to by {\it formats}. There is enough space for GetFormatCount(dir) formats in it. +\perlnote{In wxPerl this method only takes the {\tt dir} parameter. +In scalar context it returns the first format, +in list context it returns a list containing all the supported formats.} + \membersection{wxDataObject::GetDataHere}\label{wxdataobjectgetdatahere} \constfunc{virtual bool}{GetDataHere}{\param{const wxDataFormat\&}{ format}, \param{void }{*buf} } The method will write the data of the format {\it format} in the buffer {\it -buf} and return TRUE on success, FALSE on failure. +buf} and return true on success, false on failure. \membersection{wxDataObject::GetDataSize}\label{wxdataobjectgetdatasize} @@ -189,5 +196,5 @@ native format of the wxDataObject. Set the data in the format {\it format} of the length {\it len} provided in the buffer {\it buf}. -Returns TRUE on success, FALSE on failure. +Returns true on success, false on failure.