wxdataobjectcompositewxdataobjectcomposite is the simplest wxdataobject derivation which may be used to support multiple formats. it contains several wxdataobjectsimple objects and supports any format supported by at least one of them. only one of these data objects is preferred (the first one if not explicitly changed by using the second parameter of add) and its format determines the preferred format of the composite data object as well. see wxdataobject documentation for the reasons why you might prefer to use wxdataobject directly instead of wxdataobjectcomposite for efficiency reasons. virtual functions to override none, this class should be used directly. derived from include files <wx/dataobj.h> see also clipboard and drag and drop overview, wxdataobject, wxdataobjectsimple, wxfiledataobject, wxtextdataobject, wxbitmapdataobject members
wxdataobjectcomposite::wxdataobjectcomposite
wxdataobjectcomposite::wxdataobjectcompositewxdataobjectcomposite() the default constructor.
wxdataobjectcomposite::addvoid add( wxdataobjectsimple *dataobject, bool preferred = false) adds the dataobject to the list of supported objects and it becomes the preferred object if preferred is true.
wxdataobjectcomposite::getreceivedformatwxdataformat getreceivedformat() const report the format passed to the setdata method. this should be the format of the data object within the composite that recieved data from the clipboard or the dnd operation. you can use this method to find out what kind of data object was recieved.
|