+// ----------------------------------------------------------------------------
+// A very simple text document class
+// ----------------------------------------------------------------------------
+
+class TextEditDocument : public wxTextDocument
+{
+public:
+ TextEditDocument() : wxTextDocument() { }
+ virtual wxTextCtrl* GetTextCtrl() const;
+
+ wxDECLARE_NO_COPY_CLASS(TextEditDocument);
+ DECLARE_DYNAMIC_CLASS(TextEditDocument)
+};
+
+// ----------------------------------------------------------------------------
+// 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)
+};