git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18670
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/wx.h"
#endif
#include "wx/txtstrm.h"
+#ifdef __WXMAC__
+#include "wx/filename.h"
+#endif
#if !wxUSE_DOC_VIEW_ARCHITECTURE
#error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in setup.h!
#include "doc.h"
#include "view.h"
-
IMPLEMENT_DYNAMIC_CLASS(DrawingDocument, wxDocument)
DrawingDocument::DrawingDocument(void)
if (!view->textsw->SaveFile(filename))
return FALSE;
Modify(FALSE);
+#ifdef __WXMAC__
+ wxFileName fn(filename) ;
+ fn.MacSetDefaultTypeAndCreator() ;
+#endif
return TRUE;
}