// RCS-ID: $Id$
// Copyright: (c) 1998 Julian Smart
// (c) 2008 Vadim Zeitlin
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ----------------------------------------------------------------------------
#else
#include "wx/txtstrm.h"
#endif
+#include "wx/wfstream.h"
#include "doc.h"
#include "view.h"
wxView* view = GetFirstView();
return view ? wxStaticCast(view, TextEditView)->GetText() : NULL;
}
+
+// ----------------------------------------------------------------------------
+// ImageDocument and wxImageDetailsDocument implementation
+// ----------------------------------------------------------------------------
+
+IMPLEMENT_DYNAMIC_CLASS(ImageDocument, wxDocument)
+
+bool ImageDocument::DoOpenDocument(const wxString& file)
+{
+ return m_image.LoadFile(file);
+}
+