include/ax/ax_document.h

Go to the documentation of this file.
00001 
00002 // Name:        ax_document.h
00003 // Purpose:     Accessibility classes: AxDocument
00004 // Author:      Julian Smart
00005 // Modified by:
00006 // Created:     2009-03-20
00007 // RCS-ID:
00008 // Copyright:   (c) Julian Smart
00009 // Licence:     New BSD License
00011 
00012 #ifndef _AX_DOCUMENT_H_
00013 #define _AX_DOCUMENT_H_
00014 
00023 class AxDocument: public wxEvtHandler
00024 {
00025     DECLARE_DYNAMIC_CLASS( AxDocument )
00026 
00027 public:
00028 // Constructors
00029 
00030     AxDocument(const AxDocument& doc) { Init(); Copy(doc); }
00031     AxDocument() { Init(); }
00032     ~AxDocument();
00033 
00034 // Operations
00035 
00036     void Init();
00037 
00039     void Copy(const AxDocument& doc);
00040 
00042     void operator=(const AxDocument& doc) { Copy(doc); }
00043 
00045     bool Eq(const AxDocument& doc) const;
00046 
00048     virtual AxDocument* Clone() const { return new AxDocument(*this); }
00049 
00051     virtual bool GetModified() const { return m_modified; }
00052 
00054     virtual void SetModified(bool mod) { m_modified = mod; }
00055 
00056 protected:
00057 
00058     bool                    m_modified;
00059 };
00060 
00061 #endif
00062     // _AX_DOCUMENT_H_

Generated on Wed May 6 19:20:18 2009 for AxTk by  doxygen 1.5.1