Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Abstract base class for documents. More...
#include <FXDocument.h>
Public Types | |
enum | { ID_TITLE =10000, ID_FILENAME, ID_LAST } |
Public Member Functions | |
long | onUpdTitle (FXObject *, FXSelector, void *) |
long | onUpdFilename (FXObject *, FXSelector, void *) |
FXDocument () | |
Constructor. | |
FXbool | isModified () const |
Return true if document is modified. | |
void | setModified (FXbool mdfy=true) |
Set its modified state. | |
void | setTitle (const FXString &name) |
Set document title. | |
const FXString & | getTitle () const |
Get document title. | |
void | setFilename (const FXString &path) |
Set document filename. | |
const FXString & | getFilename () const |
Get document filename. | |
virtual void | save (FXStream &store) const |
Save document to a stream. | |
virtual void | load (FXStream &store) |
Load document from a stream. | |
virtual | ~FXDocument () |
Destructor. | |
Public Member Functions inherited from FX::FXObject | |
const FXchar * | getClassName () const |
Get class name of some object. | |
FXbool | isMemberOf (const FXMetaClass *metaclass) const |
Check if object is member of metaclass. | |
virtual long | tryHandle (FXObject *sender, FXSelector sel, void *ptr) |
Try handle message safely, catching certain exceptions. | |
virtual long | onDefault (FXObject *, FXSelector, void *) |
Called for unhandled messages. | |
virtual | ~FXObject () |
Virtual destructor. | |
Abstract base class for documents.
Copyright © 1997-2022 Jeroen van der Zijp |