+void wxURLDataObject::SetURL(const wxString& url)
+{
+ m_dobjURIList->SetURL(url);
+ m_dobjText->SetText(url);
+}
+
+wxString wxURLDataObject::GetURL() const
+{
+ if ( GetReceivedFormat() == g_fileAtom )
+ {
+ // If we received the URL as an URI, use it.
+ return m_dobjURIList->GetURL();
+ }
+ else // Otherwise we either got it as text or didn't get anything yet.
+ {
+ // In either case using the text format should be fine.
+ return m_dobjText->GetText();
+ }
+}