home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWString / SLStrRun.idl < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.6 KB  |  80 lines  |  [TEXT/MPS ]

  1. //==============================================================================
  2. //
  3. //    File:        SLStrRun.idl
  4. //
  5. //    Contains:    Interface for OTextRunReader and OTextRunWriter classes
  6. //
  7. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  8. //
  9. //==============================================================================
  10.  
  11. #ifndef SLSTRRUN_IDL
  12. #define SLSTRRUN_IDL
  13.  
  14. #ifndef SLTXTRUN_IDL
  15. #include "SLTxtRun.idl"
  16. #endif
  17.  
  18. //========================================================================================
  19. // Interfaces defined in this unit
  20. //========================================================================================
  21.  
  22. interface   FW_OStringRunWriter;
  23.  
  24. //========================================================================================
  25. // FW_OStringRunWriter
  26. //========================================================================================
  27.  
  28. // typedef somToken FW_HString;
  29.  
  30. interface FW_OStringRunWriter : FW_OTextRunWriter
  31. {
  32.     FW_OStringRunWriter Initialize(in FW_HString theString, in short bufferSize);
  33.  
  34. #ifdef __SOMIDL__
  35.     implementation
  36.     {
  37.         functionprefix = "FW_OStringRunWriter__";
  38.  
  39.         override:
  40.             somInit,
  41.             somUninit,
  42.             GetCurrentRun,
  43.             FlushRun,
  44.             NewRun,
  45.             GetLocale;
  46.  
  47.         releaseorder:
  48.             somInit,
  49.             somUninit,
  50.             GetCurrentRun,
  51.             FlushRun,
  52.             NewRun,
  53.             Initialize,
  54.             GetLocale;
  55.  
  56.         majorversion = 1;
  57.         minorversion = 0;
  58.  
  59.         passthru C_xh =
  60.             "";
  61.             
  62. //        passthru C_xh =
  63. //            "struct FW_SPrivStringRep;";
  64.  
  65.         passthru C_xih =
  66.             "";
  67.  
  68. #ifdef __PRIVATE__    
  69.         // private data members here
  70.         FW_HString            fString;
  71.         short                fBufferSize;
  72.         char*                fBuffer;
  73. #endif
  74.  
  75.     };
  76. #endif
  77. };
  78.  
  79. #endif
  80.