-public:
-
- /* see wxTextDataObject for explanation of functions */
-
- wxPrivateDataObject();
- ~wxPrivateDataObject();
-
- /* the string Id identifies the format of clipboard or DnD data. a word
- * processor would e.g. add a wxTextDataObject and a wxPrivateDataObject
- * to the clipboard - the latter with the Id "application/wxword", an
- * image manipulation program would put a wxBitmapDataObject and a
- * wxPrivateDataObject to the clipboard - the latter with "image/png". */
-
- void SetId( const wxString& id );
-
- /* get id */
- wxString GetId() const;
-
- /* set data. will make internal copy. */
- void SetData( const char *data, size_t size );
-
- /* returns pointer to data */
- char* GetData() const;
-
- virtual void WriteData( void *dest ) const;
- virtual size_t GetSize() const;
-
- void WriteData( const char *data, void *dest ) const;
-
- // implementation
-
- size_t m_size;
- char* m_data;
- wxString m_id;