1 \section{\class{wxPrivateDataObject
}}\label{wxprivatedataobject
}
3 wxPrivateDataObject is a specialization of wxDataObject for application-specific or standard
4 format data. The format of the data contained in an instance of this class must be identified
5 with a string literal corresponding to the mime-type of the data. Typically this would be
6 "image/png" or "text/html" or "application/word".
8 \wxheading{Derived from
}
10 \helpref{wxDataObject
}{wxdataobject
}
12 \wxheading{Include files
}
18 \helpref{wxDataObject
}{wxdataobject
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
22 \membersection{wxPrivateDataObject::wxPrivateDataObject
}\label{wxprivatedataobjectwxprivatedataobject
}
24 \func{}{wxPrivateDataObject
}{\void}
26 \membersection{wxPrivateDataObject::
\destruct{wxPrivateDataObject
}}\label{wxprivatedataobjectdtor
}
28 \func{}{\destruct{wxPrivateDataObject
}}{\void}
30 \membersection{wxPrivateDataObject::SetId
}\label{wxprivatedataobjectsetid
}
32 \func{virtual void
}{SetId
}{\param{const wxString\&
}{id
}}
34 The string ID identifies the format of clipboard or DnD data. A word
35 processor would e.g. add a wxTextDataObject and a wxPrivateDataObject
36 to the clipboard - the latter with the Id "application/word".
38 \membersection{wxPrivateDataObject::GetId
}\label{wxprivatedataobjectgetid
}
40 \constfunc{virtual wxString
}{GetId
}{\void}
42 Returns the ID of the clipboard or DnD data format.
44 \membersection{wxPrivateDataObject::SetData
}\label{wxprivatedataobjectsetdata
}
46 \func{virtual void
}{SetData
}{\param{const char
}{*data
},
\param{size
\_t }{size
}}
48 Set the data. The data object will make an internal copy.
50 \membersection{wxPrivateDataObject::GetSize
}\label{wxprivatedataobjectgetsize
}
52 \constfunc{virtual size
\_t}{GetDataSize
}{\void}
54 Returns the data size.
56 \membersection{wxPrivateDataObject::GetData
}\label{wxprivatedataobjectgetdata
}
58 \func{virtual char*
}{GetData
}{\void}
60 Returns a pointer to the data.
62 \membersection{wxPrivateDataObject::WriteData
}\label{wxprivatedataobjectwritedata
}
64 \constfunc{virtual void
}{WriteData
}{\param{void
}{*dest
} }
66 Write the data owned by this class to
{\it dest
}. By default, this
67 calls
\helpref{WriteData
}{wxprivatedataobjectwritedata2
} with data
68 set using
\helpref{SetData
}{wxprivatedataobjectsetdata
}.
69 This can be overridden to provide data on-demand; in this case
70 \helpref{WriteData(data,dest)
}{wxprivatedataobjectwritedata2
} (see below) must be called from
71 within the overriding WriteData() method.
73 \membersection{wxPrivateDataObject::WriteData
}\label{wxprivatedataobjectwritedata2
}
75 \constfunc{void
}{WriteData
}{\param{const char*
}{data
},
\param{void
}{*dest
} }
77 Writes the data
{\it data
} to
{\it dest
}. This method must be called
78 from
\helpref{WriteData
}{wxprivatedataobjectwritedata
}.