+// ----------------------------------------------------------------------------
+// A document class representing an image
+// ----------------------------------------------------------------------------
+
+class ImageDocument : public wxDocument
+{
+public:
+ ImageDocument() : wxDocument() { }
+
+ wxImage GetImage() const { return m_image; }
+
+protected:
+ virtual bool DoOpenDocument(const wxString& file);
+
+private:
+ wxImage m_image;
+
+ wxDECLARE_NO_COPY_CLASS(ImageDocument);
+ DECLARE_DYNAMIC_CLASS(ImageDocument)
+};
+