]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/prvdatob.tex
Cured some Latex problems; fixed i declaration; fixed filedlg.cpp
[wxWidgets.git] / docs / latex / wx / prvdatob.tex
CommitLineData
dface61c
JS
1\section{\class{wxPrivateDataObject}}\label{wxprivatedataobject}
2
5aa5e35a
RR
3wxPrivateDataObject is a specialization of wxDataObject for application-specific or standard
4format data. The format of the data contained in an instance of this class must be identified
5with a string literal corresponding to the mime-type of the data. Typically this would be
6"image/png" or "text/html" or "application/word".
dface61c
JS
7
8\wxheading{Derived from}
9
10\helpref{wxDataObject}{wxdataobject}
11
130f49d7
JS
12\wxheading{See also}
13
14\helpref{wxDataObject}{wxdataobject}
dface61c
JS
15
16\latexignore{\rtfignore{\wxheading{Members}}}
17
18\membersection{wxPrivateDataObject::wxPrivateDataObject}\label{wxprivatedataobjectwxprivatedataobject}
19
130f49d7 20\func{}{wxPrivateDataObject}{\void}
dface61c
JS
21
22\membersection{wxPrivateDataObject::\destruct{wxPrivateDataObject}}\label{wxprivatedataobjectdtor}
23
130f49d7 24\func{}{\destruct{wxPrivateDataObject}}{\void}
dface61c 25
dface61c
JS
26\membersection{wxPrivateDataObject::SetId}\label{wxprivatedataobjectsetid}
27
130f49d7 28\func{virtual void}{SetId}{\param{const wxString\& }{id}}
dface61c 29
130f49d7
JS
30The string ID identifies the format of clipboard or DnD data. A word
31processor would e.g. add a wxTextDataObject and a wxPrivateDataObject
5aa5e35a 32to the clipboard - the latter with the Id "application/word".
dface61c
JS
33
34\membersection{wxPrivateDataObject::GetId}\label{wxprivatedataobjectgetid}
35
36\constfunc{virtual wxString}{GetId}{\void}
37
130f49d7
JS
38Returns the ID of the clipboard or DnD data format.
39
dface61c
JS
40\membersection{wxPrivateDataObject::SetData}\label{wxprivatedataobjectsetdata}
41
130f49d7 42\func{virtual void}{SetData}{\param{const char }{*data}, \param{size\_t }{size}}
dface61c 43
5aa5e35a 44Set the data. The data object will make an internal copy.
dface61c 45
5aa5e35a 46\membersection{wxPrivateDataObject::GetSize}\label{wxprivatedataobjectgetsize}
dface61c
JS
47
48\constfunc{virtual size\_t}{GetDataSize}{\void}
49
130f49d7
JS
50Returns the data size.
51
dface61c
JS
52\membersection{wxPrivateDataObject::GetData}\label{wxprivatedataobjectgetdata}
53
130f49d7
JS
54\func{virtual char*}{GetData}{\void}
55
5aa5e35a
RR
56Returns a pointer to the data.
57
58\membersection{wxPrivateDataObject::WriteData}\label{wxprivatedataobjectwritedata}
59
60\constfunc{virtual void}{WriteData}{\param{void}{*dest} }
61
62Write the data owned by this class to {\it dest}. By default, this
63calls \helpref{WriteData}{wxprivatedataobjectwritedata2} with data
64set using \helpref{SetData}{wxprivatedataobjectsetdata}.
65This can be overridden to provide data on-demand; in this case
66\helpref{WriteData(data,dest)}{wxprivatedataobjectwritedata2} (see below) must be called from
67within the overriding WriteData() method.
68
69\membersection{wxPrivateDataObject::WriteData}\label{wxprivatedataobjectwritedata2}
70
71\constfunc{void}{WriteData}{\param{const char* }{data}, \param{void}{*dest} }
72
73Writes the data {\it data} to {\it dest}. This method must be called
74from \helpref{WriteData}{wxprivatedataobjectwritedata}.
dface61c 75