Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXDocument Class Reference

Abstract base class for documents. More...

#include <FXDocument.h>

Inheritance diagram for FX::FXDocument:
FX::FXObject

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 FXStringgetTitle () const
 Get document title.
 
void setFilename (const FXString &path)
 Set document filename.
 
const FXStringgetFilename () 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.
 

Detailed Description

Abstract base class for documents.


The documentation for this class was generated from the following file:

Copyright © 1997-2022 Jeroen van der Zijp