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

Public Types | |
| enum | Encoding { kTxtExpEncodingInvalid = -1, kTxtExpEncodingASCII, kTxtExpEncodingUNICODE, kTxtExpEncodingShiftJIS, kTxtExpEncodingJIS, kTxtExpEncodingEUC } |
| enum | { kDefaultIID = IID_ITXTEXPFILEWRITER } |
Public Member Functions | |
| virtual int32 | WriteTextCharBuffer (IPMStream *stream, const textchar *tcbuf, const int32 bufSize)=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 to help write characters to a text file. To implement ITxtExpFileWriter, you can use the partial implementation, CTxtExpFileWriter, which is also part of this sample.
| pure virtual |
Writes the textchar data to the given file stream.
| stream | Stream to write to. |
| tcbuf | Pointer to a buffer of textchars to write. |
| bufSize | Number of textchars to write. |
Implemented in JISFileWriter, CTxtExpFileWriter, UNICODEFileWriter, ShiftJISFileWriter, and ASCIIFileWriter.