home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / Papers / aSEPiA example source / Application / source / CTextView.h < prev    next >
Encoding:
Text File  |  1999-06-25  |  984 b   |  32 lines  |  [TEXT/CWIE]

  1. // =================================================================================
  2. //    CTextView.h                        ©1996-1998 Metrowerks Inc. All rights reserved.
  3. // =================================================================================
  4.  
  5. #pragma once
  6.  
  7. #include <LTextEditView.h>
  8.  
  9. class CTextView : public PP_PowerPlant::LTextEditView {
  10.  
  11. public:
  12.     enum { class_ID = 'TxtV' };
  13.     
  14.                             CTextView( PP_PowerPlant::LStream *inStream );
  15.     virtual                    ~CTextView();
  16.     
  17.     // This method is called when the contents of the LTextEditView are altered
  18.     virtual void            UserChangedText();
  19.     
  20.     // Methods to read and write update data for LTextEditView derived classes
  21.     virtual void            SavePlace( PP_PowerPlant::LStream *outPlace );
  22.     virtual void            RestorePlace( PP_PowerPlant::LStream *inPlace );
  23.  
  24.     // Inline methods to set and test "dirtyness" of document
  25.     Boolean                    IsDirty() const {return mIsDirty;};
  26.     void                    SetDirty( Boolean inDirty ) {mIsDirty = inDirty;};
  27.  
  28. protected:
  29.  
  30.     bool                    mIsDirty;
  31. };
  32.