+private:
+ wxString m_url;
+};
+
+wxURLDataObject::wxURLDataObject(const wxString& url) :
+ m_dobjURIList(new wxTextURIListDataObject(url)),
+ m_dobjText(new wxTextDataObject(url))
+{
+ // Use both URL-specific format and a plain text one to ensure that URLs
+ // can be pasted into any application.
+ Add(m_dobjURIList, true /* preferred */);
+ Add(m_dobjText);
+}
+
+void wxURLDataObject::SetURL(const wxString& url)
+{
+ m_dobjURIList->SetURL(url);
+ m_dobjText->SetText(url);