Bool OnSaveFile (char *filename, int format)
This method is called just before the buffer is saved to a file. Override it for your own use. If the return value is FALSE, then the file is not saved.