![]() | InDesign SDK 20.5 |
#include <ITxtImpFileReader.h>

Public Types | |
| enum | Encoding { kTxtImpEncodingInvalid = -1, kTxtImpEncodingASCII, kTxtImpEncodingRESERVED, kTxtImpEncodingShiftJIS, kTxtImpEncodingJIS, kTxtImpEncodingEUCJP, kTxtImpEncodingUTF16BE, kTxtImpEncodingUTF16LE } |
| enum | { kDefaultIID = IID_ITXTIMPFILEREADER } |
Public Member Functions | |
| virtual void | SetStream (IPMStream *stream)=0 |
| virtual int32 | GetFileSizeInBytes (void)=0 |
| virtual UTF16TextChar | GetNextTextChar (void)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
From SDK sample; interface provides a means to read characters (as UNICODE) out of a text file. To implement ITxtImpFileReader, you can use the partial implementation, CTxtImpFileReader, which is also part of this sample.
Options for the various types of Japanese/Roman text file encodings.
| pure virtual |
Returns the stream (file) size in bytes.
Implemented in CTxtImpFileReader.
| pure virtual |
Returns the next UNICODE char, or kTextChar_Null if EOF.
Implemented in CTxtImpFileReader, ShiftJISFileReader, JISFileReader, ASCIIFileReader, and UNICODEFileReader.
| pure virtual |
Sets the stream to read.
Implemented in CTxtImpFileReader.