X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f59d80ca00e0ef9963c771a26decd605a85d5596..8a7f3379ba1f91b3374448626d8469f1439f9d20:/docs/latex/wx/dataobj.tex?ds=inline diff --git a/docs/latex/wx/dataobj.tex b/docs/latex/wx/dataobj.tex index 55e03819b7..5a62f8532e 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} @@ -33,7 +33,7 @@ enum Direction }; \end{verbatim} -which allows to distinguish between them. See +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 @@ -42,8 +42,8 @@ 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 -which derive from wxDataObject: \helpref{wxDataObjectSimple}{wxdataobjectsimple} and -\helpref{wxDataObjectComposite}{wxdataobjectcomposite}. +which derive from wxDataObject: \helpref{wxDataObjectSimple}{wxdataobjectsimple} and +\helpref{wxDataObjectComposite}{wxdataobjectcomposite}. \helpref{wxDataObjectSimple}{wxdataobjectsimple} is the simplest wxDataObject possible and only holds data in a single format (such as HTML or text) and \helpref{wxDataObjectComposite}{wxdataobjectcomposite} is @@ -54,18 +54,18 @@ So, you have several solutions when you need a wxDataObject class (and you need one as soon as you want to transfer data via the clipboard or drag and drop): \begin{twocollist}\itemsep=1cm -\twocolitem{{\bf 0. Use one of built-in classes}}{You may use wxTextDataObject, +\twocolitem{{\bf 1. Use one of the built-in classes}}{You may use wxTextDataObject, wxBitmapDataObject or wxFileDataObject in the simplest cases when you only need to support one format and your data is either text, bitmap or list of files.} -\twocolitem{{\bf 1. Use wxDataObjectSimple}}{Deriving from wxDataObjectSimple is the simplest +\twocolitem{{\bf 2. Use wxDataObjectSimple}}{Deriving from wxDataObjectSimple is the simplest solution for custom data - you will only support one format and so probably won't be able to communicate with other programs, but data transfer will work in your program (or between different copies of it).} -\twocolitem{{\bf 2. Use wxDataObjectComposite}}{This is a simple but powerful +\twocolitem{{\bf 3. Use wxDataObjectComposite}}{This is a simple but powerful solution which allows you to support any number of formats (either standard or custom if you combine it with the previous solution).} -\twocolitem{{\bf 3. Use wxDataObject directly}}{This is the solution for -maximal flexibility and efficiency, but it also is the most difficult to +\twocolitem{{\bf 4. Use wxDataObject directly}}{This is the solution for +maximal flexibility and efficiency, but it is also is the most difficult to implement.} \end{twocollist} @@ -86,12 +86,12 @@ clipboard after having pressed 'Copy' - in reality it is only declared to be available. There are several predefined data object classes derived from -wxDataObjectSimple: \helpref{wxFileDataObject}{wxfiledataobject}, -\helpref{wxTextDataObject}{wxtextdataobject} and +wxDataObjectSimple: \helpref{wxFileDataObject}{wxfiledataobject}, +\helpref{wxTextDataObject}{wxtextdataobject} and \helpref{wxBitmapDataObject}{wxbitmapdataobject} which can be used without change. -You may also derive your own data object classes from +You may also derive your own data object classes from \helpref{wxCustomDataObject}{wxcustomdataobject} for user-defined types. The format of user-defined data is given as mime-type string literal, such as "application/word" or "image/png". These strings are used as they are under @@ -101,7 +101,7 @@ and from the clipboard and for drag and drop). Note that the format string translation under Windows is not yet finished. \pythonnote{At this time this class is not directly usable from wxPython. -Derive a class from \helpref{wxPyDataObjectSimple}{wxdataobjectsimple} +Derive a class from \helpref{wxPyDataObjectSimple}{wxdataobjectsimple} instead.} \wxheading{Virtual functions to override} @@ -110,7 +110,7 @@ Each class derived directly from wxDataObject must override and implement all of its functions which are pure virtual in the base class. The data objects which only render their data or only set it (i.e. work in -only one direction), should return 0 from +only one direction), should return 0 from \helpref{GetFormatCount}{wxdataobjectgetformatcount}. \wxheading{Derived from} @@ -123,15 +123,15 @@ None \wxheading{See also} -\helpref{Clipboard and drag and drop overview}{wxdndoverview}, -\helpref{DnD sample}{samplednd}, -\helpref{wxFileDataObject}{wxfiledataobject}, -\helpref{wxTextDataObject}{wxtextdataobject}, -\helpref{wxBitmapDataObject}{wxbitmapdataobject}, -\helpref{wxCustomDataObject}{wxcustomdataobject}, -\helpref{wxDropTarget}{wxdroptarget}, -\helpref{wxDropSource}{wxdropsource}, -\helpref{wxTextDropTarget}{wxtextdroptarget}, +\helpref{Clipboard and drag and drop overview}{wxdndoverview}, +\helpref{DnD sample}{samplednd}, +\helpref{wxFileDataObject}{wxfiledataobject}, +\helpref{wxTextDataObject}{wxtextdataobject}, +\helpref{wxBitmapDataObject}{wxbitmapdataobject}, +\helpref{wxCustomDataObject}{wxcustomdataobject}, +\helpref{wxDropTarget}{wxdroptarget}, +\helpref{wxDropSource}{wxdropsource}, +\helpref{wxTextDropTarget}{wxtextdroptarget}, \helpref{wxFileDropTarget}{wxfiledroptarget} \latexignore{\rtfignore{\wxheading{Members}}} @@ -152,7 +152,7 @@ Destructor. \constfunc{virtual void}{GetAllFormats}{ \param{wxDataFormat *}{formats}, \param{Direction}{ dir = Get}} -Copy all supported formats in the given direction to the array pointed to by +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. \membersection{wxDataObject::GetDataHere}\label{wxdataobjectgetdatahere}