InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CTxtImpFileReader.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __CTxtImpFileReader_H__
25 #define __CTxtImpFileReader_H__
26 
27 
28 // General includes
29 #include "K2Assert.h"
30 #include "CPMUnknown.h"
31 #include "TextChar.h"
32 
33 // Interface includes
34 #include "IPMStream.h"
35 #include "ITxtImpFileReader.h"
36 
37 
48 class CTxtImpFileReader: public CPMUnknown<ITxtImpFileReader>
49 {
50  public:
55 
58  virtual ~CTxtImpFileReader(void);
59 
63  virtual void SetStream(IPMStream* stream);
64 
67  virtual int32 GetFileSizeInBytes(void);
68 
74  virtual UTF16TextChar GetNextTextChar(void) = 0;
75 
76  protected:
77 
81  UTF16TextChar* fTCBuf;
83  uchar* fCBuf;
85  int32 fLen;
87  int32 fCurrMarker;
90 
91 };
92 
93 
94 #endif // ifndef __CTxtImpFileReader_H__
95 
96 // End, CTxtImpFileReader.h.
97 
98