};
// ----------------------------------------------------------------------------
-// A basic image document class
+// A document class representing an image
// ----------------------------------------------------------------------------
-class wxImageDocument : public wxDocument
+class ImageDocument : 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;
+ ImageDocument() : wxDocument() { }
-public:
- virtual ~wxImageDocument();
- virtual bool DeleteContents();
+ wxImage GetImage() const { return m_image; }
+protected:
virtual bool DoOpenDocument(const wxString& file);
- virtual bool DoSaveDocument(const wxString& file);
- virtual bool DoOpenDocument(wxInputStream*);
- virtual bool DoSaveDocument(wxOutputStream*) const;
+private:
+ wxImage m_image;
- wxDECLARE_NO_COPY_CLASS(wxImageDocument);
- DECLARE_DYNAMIC_CLASS(wxImageDocument)
+ wxDECLARE_NO_COPY_CLASS(ImageDocument);
+ DECLARE_DYNAMIC_CLASS(ImageDocument)
};
#endif // _WX_SAMPLES_DOCVIEW_DOC_H_