|
Public Member Functions |
| FileBase (const std::string &path) |
| FileBase constructor.
|
virtual | ~FileBase () |
std::string | getFileName () |
| FileBase getFileName().
|
virtual void | open (const std::string &path)=0 |
virtual bool | isOpen ()=0 |
virtual bool | hasChanged () |
virtual void | setWindowTitle (const CFStringRef aTitle)=0 |
virtual void | prepChange () |
| when the file is to be changed for the first time copy it to a temporary file//////////////////////////////////////////////////////////////////////////////
|
void | closeFile () |
| Close the current file - force derived class to define close (see also closeWindow() ).
|
OSErr | save () |
| Save changed file.
|
OSErr | deleteDirtyFile () |
| delete changed file
|
void | startSaveChanges () |
| Save most current file as determined by Nav dialog.
|
void | startSaveAs () |
void | completeSaveAs (NavReplyRecord *reply) |
Static Public Member Functions |
OSErr | stringPathToFSRef (const std::string &aPath, FSRef &aFileRef) |
OSErr | FSRefToStringPath (const FSRef &aFileRef, std::string &aPath) |
Public Attributes |
std::string | path_ |
Protected Member Functions |
void | activated_ () |
| update file menus to indicate associated window is activated
|
void | deActivated_ () |
| update file menus to indicate associated window is deactivated
|
Protected Attributes |
bool | dirty_ |
std::string | dirtyPath_ |