/**** * * Implementation of file.h. * * This is mostly stubbed implementation, for GUI testing purposes. The only * non-stubbed function is QuitMenuItme::Dp, which throws a QuitException. * */ #include "file.h" #ifndef OLD_EXCEPTION_HANDLING #include "quit-exception.h" #else extern exception QuitException; #endif #include File::File(View* v) { printf("In File::File\n"); } File::~File() { printf("In File::~File\n"); } void File::New() { printf("In File::New\n"); } void File::Open(Name* n) { printf("In File::Open\n"); } void File::Save() { printf("In File::Save\n"); } void File::SaveAs(Name* n) { printf("In File::SaveAs\n"); } void File::Print() { printf("In File::Print\n"); } void File::Quit() { #ifndef OLD_EXCEPTION_HANDLING throw (new QuitException); #else throw(QuitException, NULL); #endif }