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 List of all members.

Public Types

enum  {
  ID_TITLE = 10000,
  ID_FILENAME,
  ID_LAST
}

Public Member Functions

 FXDocument ()
FXbool isModified () const
void setModified (FXbool mdfy=TRUE)
void setTitle (const FXString &name)
const FXStringgetTitle () const
void setFilename (const FXString &path)
const FXStringgetFilename () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXDocument ()

Detailed Description

Abstract base class for documents.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ID_TITLE  Don't interfere with viewer's message id's.


Constructor & Destructor Documentation

FX::FXDocument::FXDocument  ) 
 

Constructor.

virtual FX::FXDocument::~FXDocument  )  [virtual]
 

Destructor.


Member Function Documentation

FXbool FX::FXDocument::isModified  )  const [inline]
 

Return true if document is modified.

void FX::FXDocument::setModified FXbool  mdfy = TRUE  )  [inline]
 

Set its modified state.

void FX::FXDocument::setTitle const FXString name  ) 
 

Set document title.

const FXString& FX::FXDocument::getTitle  )  const [inline]
 

Get document title.

void FX::FXDocument::setFilename const FXString path  ) 
 

Set document filename.

const FXString& FX::FXDocument::getFilename  )  const [inline]
 

Get document filename.

virtual void FX::FXDocument::save FXStream store  )  const [virtual]
 

Save document to a stream.

Reimplemented from FX::FXObject.

virtual void FX::FXDocument::load FXStream store  )  [virtual]
 

Load document from a stream.

Reimplemented from FX::FXObject.

Copyright © 1997-2005 Jeroen van der Zijp