X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7f24fdbfeae21875fe73f5aa69aede354baed29b..f2616db56739e4962f683f59ac9e207756efe23c:/docs/latex/wx/tclipbrd.tex diff --git a/docs/latex/wx/tclipbrd.tex b/docs/latex/wx/tclipbrd.tex index 5074b21219..ae3f102ab3 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{wxdndoverview} +\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 @@ -46,7 +35,7 @@ should do. The data provider is responsible for creating a \helpref{wxDataObject}{wxdataobject} containing the data to be -transfered. Then it should either pass it to the clipboard using +transferred. Then it should either pass it to the clipboard using \helpref{SetData}{wxclipboardsetdata} function or to \helpref{wxDropSource}{wxdropsource} and call \helpref{DoDragDrop}{wxdropsourcedodragdrop} function. @@ -73,7 +62,7 @@ create a \helpref{wxDataObject}{wxdataobject} derived class which supports the data formats you need and pass it as argument to \helpref{wxClipboard::GetData}{wxclipboardgetdata}. If it returns {\tt FALSE}, no data in (any of) the supported format(s) is available. If it returns {\tt -TRUE}, the data has been successfully transfered to wxDataObject. +TRUE}, the data has been successfully transferred to wxDataObject. For drag and drop case, the \helpref{wxDropTarget::OnData}{wxdroptargetondata} virtual function will be called when a data object is dropped, from which the