X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fa482912e420a40e9f2e55a0f5407562826dd15e..8695c06a6a5a87b80dfe862a7757fc7e06168455:/docs/latex/wx/dataobj.tex diff --git a/docs/latex/wx/dataobj.tex b/docs/latex/wx/dataobj.tex index f38c7c16b6..066447ba1b 100644 --- a/docs/latex/wx/dataobj.tex +++ b/docs/latex/wx/dataobj.tex @@ -6,7 +6,7 @@ %% Created: 18.10.99 %% RCS-ID: $Id$ %% Copyright: (c) wxWindows team -%% Licence: wxWindows licence +%% License: wxWindows license %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{\class{wxDataObject}}\label{wxdataobject} @@ -36,7 +36,7 @@ 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. @@ -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.