24 #ifndef __CXMLOutStream__ 25 #define __CXMLOutStream__ 27 #include "IXMLOutStream.h" 28 #include "CPMUnknown.h" 32 #include "KeyValuePair.h" 33 #include "UTF16TextCharStreamBuf.h" 54 virtual bool16
Open(
eEncodingType encoding = kUTF16, bool16 stripInvalid = kTrue) = 0;
55 virtual void Close() = 0;
57 virtual ErrorCode
Flush();
128 virtual ErrorCode
Pop(bool16 newLine);
131 virtual void Write(
const WideString& data, bool16 newLine, bool16 escape );
150 virtual void EndCData(bool16 newLine);
156 virtual void EndPI(bool16 newLine);
165 virtual void Indent(
bool on);
167 virtual bool16
DoIndent(
void)
const;
191 virtual ErrorCode Initialize(std::streambuf* destBuf,
eEncodingType encoding = kUTF16, bool16 stripInvalid = kTrue, bool16 showCannotEncodeAlert = kFalse);
193 virtual ErrorCode Terminate();
197 virtual ErrorCode sputnEsc(
const WideString& source, bool16 bJustWriteIt = kFalse);
202 bool16 IsValidXMLChar(UTF16TextChar c);
203 void EncodeChar(UTF16TextChar charToEncode);
204 bool16 SubstituteValidChar(UTF16TextChar& c);
207 void InsertToEscBuf(int32& index, UTF16TextChar c);
212 std::streambuf* fFinalBuf;
218 UTF16TextChar* fEscBuf;
228 bool16 fShowCannotEncodeAlert;
234 #endif //__CXMLOutStream