X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92de61e4295f385a6fe3be1a01aa94187a8dde2a..35f6f71b19d8c2f714fa8600322470367cb7b4c6:/interface/wx/dataobj.h?ds=sidebyside diff --git a/interface/wx/dataobj.h b/interface/wx/dataobj.h index b5614303d0..3e33e4e3b2 100644 --- a/interface/wx/dataobj.h +++ b/interface/wx/dataobj.h @@ -34,9 +34,7 @@ @itemdef{wxDF_FILENAME, A list of filenames.} @itemdef{wxDF_HTML, - An HTML string. This is only valid when passed to - wxSetClipboardData when compiled with Visual C++ in non-Unicode - mode.} + An HTML string. This is currently only valid on Mac and MSW.} @endDefList As mentioned above, these standard formats may be passed to any function @@ -56,7 +54,7 @@ necessary initialisations and so an attempt to do clipboard format registration at this time will usually lead to a crash! - @library{wxbase} + @library{wxcore} @category{dnd} @see @ref overview_dnd, @ref page_samples_dnd, wxDataObject @@ -789,4 +787,31 @@ public: const wxArrayString& GetFilenames() const; }; +/** + @class wxHTMLDataObject + + wxHTMLDataObject is used for working with HTML-formatted text. + + @library{wxcore} + @category{dnd} + @see wxDataObject, wxDataObjectSimple +*/ +class wxHTMLDataObject : public wxDataObjectSimple +{ +public: + /** + Constructor. + */ + wxHTMLDataObject(const wxString& html = wxEmptyString); + + /** + Returns the HTML string. + */ + virtual wxString GetHTML() const; + + /** + Sets the HTML string. + */ + virtual void SetHTML(const wxString& html); +};