typedef <integral type> NativeFormat;
wxDataFormat(NativeFormat format = wxDF_INVALID);
- wxDataFormat(const wxChar *format);
+ wxDataFormat(const wxString& format);
wxDataFormat& operator=(NativeFormat format);
wxDataFormat& operator=(const wxDataFormat& format);
NativeFormat GetType() const;
wxString GetId() const;
- void SetId(const wxChar *format);
+ void SetId(const wxString& format);
};
*/
// one if preferred == true
void Add(wxDataObjectSimple *dataObject, bool preferred = false);
+ // 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.
+ wxDataFormat GetReceivedFormat() const;
+
// implement base class pure virtuals
// ----------------------------------
virtual wxDataFormat GetPreferredFormat(wxDataObjectBase::Direction dir = Get) const;
// one is the preferred)
size_t m_preferred;
+ wxDataFormat m_receivedFormat;
+
DECLARE_NO_COPY_CLASS(wxDataObjectComposite)
};
class WXDLLEXPORT wxURLDataObject : public wxTextDataObject
{
public:
+ wxURLDataObject(const wxString& url = wxEmptyString)
+ : wxTextDataObject(url)
+ {
+ }
+
wxString GetURL() const { return GetText(); }
void SetURL(const wxString& url) { SetText(url); }
};