added code for respecting the creator & types when saving files

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2003-01-10 16:24:01 +00:00
parent 521a2cb154
commit b8afeb4321

View File

@@ -43,6 +43,9 @@
#include "wx/log.h" #include "wx/log.h"
#endif #endif
#ifdef __WXMAC__
#include "wx/filename.h"
#endif
#ifdef __WXGTK__ #ifdef __WXGTK__
#include "wx/mdi.h" #include "wx/mdi.h"
@@ -317,6 +320,10 @@ bool wxDocument::OnSaveDocument(const wxString& file)
Modify(FALSE); Modify(FALSE);
SetFilename(file); SetFilename(file);
SetDocumentSaved(TRUE); SetDocumentSaved(TRUE);
#ifdef __WXMAC__
wxFileName fn(file) ;
fn.MacSetDefaultTypeAndCreator() ;
#endif
return TRUE; return TRUE;
} }