23 #include "wxgis/framework/framework.h"
25 #ifdef wxUSE_DRAG_AND_DROP
34 class WXDLLIMPEXP_GIS_FRW wxGISStringDataObject :
public wxDataObjectSimple
38 wxGISStringDataObject(
const wxDataFormat &format = wxFormatInvalid);
41 const wxArrayString& GetStrings()
const {
return m_oaStrings; }
43 virtual bool SetData(
size_t len,
const void *buf);
44 virtual size_t GetDataSize()
const;
45 virtual bool GetDataHere(
void *pData)
const;
46 virtual void AddString(
const wxString& sStr);
49 wxArrayString m_oaStrings;
51 static const size_t sizeOfChar =
sizeof(wxChar);
52 static const size_t sizeOfsize_t =
sizeof(size_t);
55 wxDECLARE_NO_COPY_CLASS(wxGISStringDataObject);
65 class WXDLLIMPEXP_GIS_FRW wxGISDecimalDataObject :
public wxDataObjectSimple
69 wxGISDecimalDataObject(
const wxDataFormat &format = wxFormatInvalid);
72 const wxArrayLong& GetDecimals()
const {
return m_oaDecimals; }
74 virtual bool SetData(
size_t len,
const void *buf);
75 virtual size_t GetDataSize()
const;
76 virtual bool GetDataHere(
void *pData)
const;
78 virtual void AddDecimal(
long nValue);
81 wxArrayLong m_oaDecimals;
83 static const size_t sizeOfLong =
sizeof(long);
84 static const size_t sizeOfsize_t =
sizeof(size_t);
87 wxDECLARE_NO_COPY_CLASS(wxGISDecimalDataObject);
98 class WXDLLIMPEXP_GIS_FRW wxGISTaskDataObject :
public wxGISDecimalDataObject
102 wxGISTaskDataObject(
long nParentPointer,
const wxDataFormat &format = wxFormatInvalid);
104 virtual bool SetData(
size_t len,
const void *buf);
105 virtual size_t GetDataSize()
const;
106 virtual bool GetDataHere(
void *pData)
const;
108 const long GetParentPointer()
const {
return m_nParentPointer; }
112 long m_nParentPointer;
115 wxDECLARE_NO_COPY_CLASS(wxGISTaskDataObject);
118 #endif // wxUSE_DRAG_AND_DROP