X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/717a57c2fabb054c8f00dc5dae70df1d03cfe532..df61c0097160f84ba840e6648b147d3fa29141ea:/docs/latex/wx/tclipbrd.tex?ds=sidebyside diff --git a/docs/latex/wx/tclipbrd.tex b/docs/latex/wx/tclipbrd.tex index e22440d9c4..545c46195b 100644 --- a/docs/latex/wx/tclipbrd.tex +++ b/docs/latex/wx/tclipbrd.tex @@ -1,15 +1,4 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% Name: tclipbrd.tex -%% Purpose: Data transfer (clipboard and drag and drop) overview -%% Author: Vadim Zeitlin -%% Modified by: -%% Created: 18.10.99 -%% RCS-ID: $Id$ -%% Copyright: (c) Vadim Zeitlin -%% Licence: wxWindows licence -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\section{Clipboard and drag and drop overview}\label{wxclipboardonfigoverview} +\section{wxDataObject overview}\label{wxdataobjectoverview} Classes: \helpref{wxDataObject}{wxdataobject}, \helpref{wxClipboard}{wxclipboard}, @@ -17,7 +6,7 @@ Classes: \helpref{wxDataObject}{wxdataobject}, \helpref{wxDropSource}{wxdropsource}, \helpref{wxDropTarget}{wxdroptarget} -See also: \helpref{DnD sample}{samplednd} +See also: \helpref{Drag and drop overview}{wxdndoverview} and \helpref{DnD sample}{samplednd} This overview discusses data transfer through clipboard or drag and drop. In wxWindows, these two ways to transfer data (either between different @@ -26,7 +15,7 @@ implement both of them using almost the same code - or, in other words, if you implement drag and drop support for your application, you get clipboard support for free and vice versa. -In the heart of both clipboard and drag and drop operations lies the +At the heart of both clipboard and drag and drop operations lies the \helpref{wxDataObject}{wxdataobject} class. The objects of this class (or, to be precise, classes derived from it) represent the data which is being carried by the mouse during drag and drop operation or copied to or pasted from the @@ -42,7 +31,7 @@ application and even the same window when, for example, you drag some text from one position to another in a word processor. Let us describe what each of them should do. -\subsection{The data provider (source) duties}{wxdataobjectsource} +\subsection{The data provider (source) duties}\label{wxdataobjectsource} The data provider is responsible for creating a \helpref{wxDataObject}{wxdataobject} containing the data to be @@ -66,7 +55,7 @@ deletes) data - in fact, this usually depends on which menu item the user chose. But for drag and drop it can only know it after \helpref{DoDragDrop}{wxdropsourcedodragdrop} returns (from its return value). -\subsection{The data receiver (target) duties}{wxdataobjecttarget} +\subsection{The data receiver (target) duties}\label{wxdataobjecttarget} To receive (paste in usual terminology) data from the clipboard, you should create a \helpref{wxDataObject}{wxdataobject} derived class which supports the @@ -81,4 +70,3 @@ data itself may be requested by calling \helpref{wxDropTarget::GetData}{wxdroptargetwxdroptarget} method which fills the data object. -