home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Text / Textension / Include / TSMRun.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-21  |  1.4 KB  |  65 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TSMRun.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    Essam Zaky
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>      1/4/94    EZ        clean up
  13.          <1>      1/4/94    EZ        first checked in
  14.  
  15. */
  16.  
  17. #ifndef _TSMRun_
  18. #define _TSMRun_
  19.  
  20. #ifndef _QDTextRun_
  21. #include "QDTextRun.h"
  22. #endif
  23. //***************************************************************************************************
  24.  
  25. //•TSMRun constants
  26. //constants for additional values for QDTextRun->fFace
  27. const long kRawTextFace = 1 << 8;
  28. const long kSelectedRawTextFace = 1 << 9;
  29. const long kConvertedTextFace = 1 << 10;
  30. const long kSelectedConvertedTextFace = 1 << 11;
  31.  
  32. const long kTSMSumFaces = kRawTextFace+kSelectedRawTextFace+kConvertedTextFace+kSelectedConvertedTextFace;
  33.  
  34. const short kCountTSMFaces = 4;
  35.  
  36. //***************************************************************************************************
  37.  
  38. class    CTSMRun    :    public CQDTextRun {
  39. public:
  40. //-----
  41.     CTSMRun();
  42.         
  43.     inline void ITSMRun() {this->IQDTextRun();}
  44.     
  45.     //•override
  46.     
  47.     virtual CAttrObject* CreateNew() const;
  48.     
  49.     virtual TObjFlags GetObjFlags();
  50.     
  51.     //••we don't override "GetFaceAttrFlags" ==> all "kTSMSumFaces" don't affect both h and v formatting
  52.     
  53.     virtual void DoDrawJust(DrawJustPb* paramPb);
  54.  
  55. protected:
  56. //--------
  57.  
  58. private:
  59. //--------
  60. };
  61. //***************************************************************************************************
  62.  
  63.  
  64. #endif
  65.