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
}
14 \helpref{wxDataObject
}{wxdataobject
}
16 \latexignore{\rtfignore{\wxheading{Members
}}}
18 \membersection{wxPrivateDataObject::wxPrivateDataObject
}\label{wxprivatedataobjectwxprivatedataobject
}
20 \func{}{wxPrivateDataObject
}{\void}
22 \membersection{wxPrivateDataObject::
\destruct{wxPrivateDataObject
}}\label{wxprivatedataobjectdtor
}
24 \func{}{\destruct{wxPrivateDataObject
}}{\void}
26 \membersection{wxPrivateDataObject::SetId
}\label{wxprivatedataobjectsetid
}
28 \func{virtual void
}{SetId
}{\param{const wxString\&
}{id
}}
30 The string ID identifies the format of clipboard or DnD data. A word
31 processor would e.g. add a wxTextDataObject and a wxPrivateDataObject
32 to the clipboard - the latter with the Id "application/word".
34 \membersection{wxPrivateDataObject::GetId
}\label{wxprivatedataobjectgetid
}
36 \constfunc{virtual wxString
}{GetId
}{\void}
38 Returns the ID of the clipboard or DnD data format.
40 \membersection{wxPrivateDataObject::SetData
}\label{wxprivatedataobjectsetdata
}
42 \func{virtual void
}{SetData
}{\param{const char
}{*data
},
\param{size
\_t }{size
}}
44 Set the data. The data object will make an internal copy.
46 \membersection{wxPrivateDataObject::GetSize
}\label{wxprivatedataobjectgetsize
}
48 \constfunc{virtual size
\_t}{GetDataSize
}{\void}
50 Returns the data size.
52 \membersection{wxPrivateDataObject::GetData
}\label{wxprivatedataobjectgetdata
}
54 \func{virtual char*
}{GetData
}{\void}
56 Returns a pointer to the data.
58 \membersection{wxPrivateDataObject::WriteData
}\label{wxprivatedataobjectwritedata
}
60 \constfunc{virtual void
}{WriteData
}{\param{void
}{*dest
} }
62 Write the data owned by this class to
{\it dest
}. By default, this
63 calls
\helpref{WriteData
}{wxprivatedataobjectwritedata2
} with data
64 set using
\helpref{SetData
}{wxprivatedataobjectsetdata
}.
65 This can be overridden to provide data on-demand; in this case
66 \helpref{WriteData(data,dest)
}{wxprivatedataobjectwritedata2
} (see below) must be called from
67 within the overriding WriteData() method.
69 \membersection{wxPrivateDataObject::WriteData
}\label{wxprivatedataobjectwritedata2
}
71 \constfunc{void
}{WriteData
}{\param{const char*
}{data
},
\param{void
}{*dest
} }
73 Writes the data
{\it data
} to
{\it dest
}. This method must be called
74 from
\helpref{WriteData
}{wxprivatedataobjectwritedata
}.