+// ----------------------------------------------------------------------------
+// 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 basic image document class
+// ----------------------------------------------------------------------------
+
+class wxImageDocument : public wxDocument
+{
+protected:
+ wxImage m_image;
+public:
+ wxImageDocument();
+
+ wxImage* GetImage() { return &m_image; }
+ const wxImage& GetImage() const { return m_image; }
+
+ bool SaveFile(wxOutputStream*, wxBitmapType) const;
+
+public:
+ virtual ~wxImageDocument();
+ virtual bool DeleteContents();
+
+ virtual bool DoOpenDocument(const wxString& file);
+ virtual bool DoSaveDocument(const wxString& file);
+
+ virtual bool DoOpenDocument(wxInputStream*);
+ virtual bool DoSaveDocument(wxOutputStream*) const;
+
+ wxDECLARE_NO_COPY_CLASS(wxImageDocument);
+ DECLARE_DYNAMIC_CLASS(wxImageDocument)
+};