![]() | InDesign SDK 20.5 |

Public Types | |
| typedef K2::stack< WideString, K2Vector< WideString > > | TagStack |
Public Member Functions | |
| CXMLOutStream (IPMUnknown *boss) | |
| virtual bool16 | Open (eEncodingType encoding=kUTF16, bool16 stripInvalid=kTrue)=0 |
| virtual void | Close ()=0 |
| virtual ErrorCode | Flush () |
| virtual void | DocHeader (const WideString &version, bool16 standalone) |
| virtual void | TextDeclaration (const WideString &version) |
| virtual void | DocType (const WideString &root, const WideString &URI) |
| virtual void | DocType (const WideString &root, const WideString &name, const WideString &URI) |
| virtual void | BeginDocType (const WideString &root, bool16 newLine) |
| virtual void | BeginDocType (const WideString &root, const WideString &systemIDLiteral, bool16 newLine) |
| virtual void | BeginDocType (const WideString &root, const WideString &publicIDLiteral, const WideString &systemIDLiteral, bool16 newLine) |
| virtual void | EndDocType (bool16 newLine) |
| virtual void | WriteAttributeList (const WideString &elementName, const AttributeDfnList &dfns, bool16 newLine) |
| virtual void | BeginElementTypeDecl (const WideString &elementName, bool16 newLine) |
| virtual void | EndElementTypeDecl (bool16 newLine) |
| virtual void | BeginContentModelDecl (eContentParticleSeparator separator, bool16 newLine) |
| virtual void | EndContentModelDecl (eContentParticleOccurrence occurrence, bool16 newLine) |
| virtual void | BeginMixedContentModelDecl (eContentParticleSeparator separator, bool16 newLine) |
| virtual void | EndMixedContentModelDecl (bool16 writeOccurrence, bool16 newLine) |
| virtual void | WriteSeparator (eContentParticleSeparator separator, bool16 newLine) |
| virtual void | WriteContentParticle (const WideString &contentParticleName, eContentParticleOccurrence occurrence, bool16 newLine) |
| virtual void | WriteKeyword (eKeyword keyword, bool16 newLine) |
| virtual void | BeginAttListDecl (const WideString &elementName, bool16 newLine) |
| virtual void | EndAttListDecl (bool16 newLine) |
| virtual void | WriteName (const WideString &name, bool16 newLine) |
| virtual void | WriteAttributeType (eAttributeType attType, bool16 newLine) |
| virtual void | WriteAttributeValue (const WideString &attValue, bool16 newLine) |
| virtual void | BeginEntityDecl (const WideString &entityName, bool16 generalEntity, bool16 newLine) |
| virtual void | EndEntityDecl (bool16 newLine) |
| virtual void | WriteLiteral (const WideString &literal, bool16 wrapInQuotes, bool16 newLine) |
| virtual void | BeginNotationDecl (const WideString ¬ationName, bool16 newLine) |
| virtual void | EndNotationDecl (bool16 newLine) |
| virtual void | Push (const WideString &tagName, bool16 newLine) |
| virtual void | PushWithAttributes (const WideString &tagName, const AttributeList &attrs, bool16 newLine) |
| virtual ErrorCode | Pop (bool16 newLine) |
| virtual void | Write (const WideString &data, bool16 newLine, bool16 escape) |
| virtual void | WritePlatformText (IPMStream *data, int32 start, int32 count, bool16 newLine=kFalse, bool16 escape=kTrue) |
| virtual void | WriteEmpty (const WideString &tagName, bool16 newLine) |
| virtual void | WriteEmptyWithAttributes (const WideString &tag, const AttributeList &attrs, bool16 newLine) |
| virtual void | Comment (const WideString &comment, bool16 newLine) |
| virtual void | BeginCData (const WideString &data, bool16 escape) |
| virtual void | EndCData (bool16 newLine) |
| virtual void | BeginPI (const WideString &piTarget, const WideString &piData, bool16 newLine, bool16 escape) |
| virtual void | EndPI (bool16 newLine) |
| virtual void | IndentLevel (bool increase) |
| virtual void | Indent (bool on) |
| virtual bool16 | DoIndent (void) const |
| virtual void | WriteIndent (void) |
| virtual void | ResetEntityMap (bool16 addStandardXMLEntity=kTrue) |
| virtual void | AppendEntityMap (EntityMap &map) |
| virtual bool | CheckStatus () |
Public Member Functions inherited from CPMUnknown< IXMLOutStream > | |
| IPMUnknown * | QueryInterface (PMIID interfaceID) const |
| void | AddRef () const |
| void | Release () const |
| void | PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| void | PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| CPMUnknown (const CPMUnknown &)=delete | |
| CPMUnknown & | operator= (const CPMUnknown &)=delete |
Public Member Functions inherited from IXMLOutStream | |
| void | DocHeader (const UTF16TextChar *version, bool16 standalone=kTrue) |
| void | TextDeclaration (const UTF16TextChar *version) |
| void | DocType (const UTF16TextChar *root, const WideString &URI) |
| void | DocType (const WideString &root, const UTF16TextChar *URI) |
| void | DocType (const UTF16TextChar *root, const UTF16TextChar *URI) |
| void | BeginDocType (const UTF16TextChar *root, bool16 newLine=kFalse) |
| void | WriteAttributeList (const UTF16TextChar *elementName, const AttributeDfnList &dfns, bool16 newLine=kFalse) |
| void | BeginElementTypeDecl (const UTF16TextChar *elementName, bool16 newLine=kFalse) |
| void | WriteContentParticle (const UTF16TextChar *contentParticleName, eContentParticleOccurrence occurrence=kExactlyOnce, bool16 newLine=kFalse) |
| void | BeginAttListDecl (const UTF16TextChar *elementName, bool16 newLine=kFalse) |
| void | WriteName (const UTF16TextChar *name, bool16 newLine=kFalse) |
| void | WriteAttributeValue (const UTF16TextChar *attValue, bool16 newLine=kFalse) |
| void | BeginEntityDecl (const UTF16TextChar *entityName, bool16 generalEntity=kTrue, bool16 newLine=kFalse) |
| void | BeginNotationDecl (const UTF16TextChar *notationName, bool16 newLine=kFalse) |
| void | WriteLiteral (const UTF16TextChar *literal, bool16 wrapInQuotes=kFalse, bool16 newLine=kFalse) |
| void | Push (const UTF16TextChar *tagName, bool16 newLine=kFalse) |
| void | PushWithAttributes (const UTF16TextChar *tagName, const AttributeList &attrs, bool16 newLine=kFalse) |
| void | Write (const UTF16TextChar *data, bool16 newLine=kFalse, bool16 escape=kTrue) |
| void | WriteEmpty (const UTF16TextChar *tagName, bool16 newLine=kFalse) |
| void | WriteEmptyWithAttributes (const UTF16TextChar *tag, const AttributeList &attrs, bool16 newLine=kFalse) |
| void | Comment (const UTF16TextChar *comment, bool16 newLine=kFalse) |
| void | BeginCData (const UTF16TextChar *data, bool16 escape=kFalse) |
Protected Member Functions | |
| virtual ErrorCode | Initialize (std::streambuf *destBuf, eEncodingType encoding=kUTF16, bool16 stripInvalid=kTrue, bool16 showCannotEncodeAlert=kFalse) |
| virtual ErrorCode | Terminate () |
| virtual ErrorCode | sputnEsc (const WideString &source, bool16 bJustWriteIt=kFalse) |
Protected Member Functions inherited from CPMUnknown< IXMLOutStream > | |
| CPMUnknown (IPMUnknown *boss) | |
Additional Inherited Members | |
Protected Attributes inherited from CPMUnknown< IXMLOutStream > | |
| HelperInterface | fHelperInterface |
| virtual |
Add character entity mappings ('&' to '&', '<' to '<' etc) New mappings overwrite existing ones for the same character.
Implements IXMLOutStream.
| virtual |
Begin an ATTLIST declaration. i.e. "<!ATTLIST elementName"
| elementName | name of the element for the attributes |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Begin a CData section. Data and subsequent calls to Write() will escape entities or not depending on bool.
| data | content to write into CDATA section |
| escape | kTrue if standard entities to be escaped, kFalse otherwise |
Implements IXMLOutStream.
| virtual |
Begin a content model declaration. i.e. "("
| separator | may optionally prepend a separator. i.e. ", (" Use kNone to add nothing |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Begin definition of an Internal DTD with root element.
| root | name of the root element, e.g. article |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Begin definition of an external SYSTEM DTD with root element
| root | name of the root element, e.g. article |
| systemIDLiteral | SYSTEM ID literal |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Begin definition of an external PUBLIC DTD with root element
| root | name of the root element, e.g. article |
| publicIDLiteral | PUBLIC ID literal |
| systemIDLiteral | SYSTEM ID literal |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Begin an element type declaration. i.e. "<!ELEMENT elementName "
| elementName | specifies name of element |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Begin an ENTITY declaration. i.e. "<!ENTITY entityName " or "<!ENTITY % entityName "
| entityName | name of the entity |
| generalEntity | kTrue to write a general entity; kFalse to write parameter entity |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Begin a mixed content model declaration. i.e. "(#PCDATA"
| separator | may optionally prepend a separator. i.e. ", (#PCDATA" Use kNone to add nothing |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Begin a NOTATION declaration. i.e. "<!NOTATION notationName "
| notationName | name of the notation |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Begin a Processing Instruction section. until EndCdata() is called. NewLine after the tag if necessary.
| piTarget | application to which the instruction is directed |
| piData | data to pass through to target application |
| newLine | whether to write new-line into stream after this content |
| escape | kTrue if standard entities to be escaped, kFalse otherwise |
Implements IXMLOutStream.
| virtual |
Utility method to check status flag on this interface
Implements IXMLOutStream.
| pure virtual |
must be called when done with stream to ensure final flush of stream content
Implements IXMLOutStream.
| virtual |
Comment will output a comment at the current stream position with no escaping of entities.
| comment | specifies comment data to write out |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Write the XML header for this document.
| version | XML version (e.g. 1.0 is expected) |
| standalone | specifies whether the document should be described as standalone="yes" or not |
Implements IXMLOutStream.
| virtual |
Write a SYSTEM DocType with root element and DTD pointed to by URI.
| root | name of the root element, e.g. article |
| URI | identifier for the document type |
Implements IXMLOutStream.
| virtual |
Write a PUBLIC DocType with root element and DTD pointed to by URI and a name of public DTD.
| root | name of the root element, e.g. article |
| name | public identifier |
| URI | identifier for the document type |
Implements IXMLOutStream.
| virtual |
return whether indent is on or not
Implements IXMLOutStream.
| virtual |
End an ATTLIST declaration. i.e. ">"
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
End a CDataSection, with a newLine after if neccesary.
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
End a content model declaration. i.e. ")+"
| occurrence | occurrence of the content model |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Ends definition of an Internal DTD.
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
End an element type declaration. i.e. ">"
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
End an ENTITY declaration. i.e. ">"
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
End a mixed content model declaration. i.e. ")*"
| writeOccurrence | whether to write the "*" occurrence. This should be kFalse only when the PCDATA is the only content particle in a mixed content model |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
End a NOTATION declaration. i.e. ">"
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
End a Processing Instruction, with a newLine after if neccesary
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
force all pending writes
Implements IXMLOutStream.
| virtual |
Formatting related; enable indent. If on, each output operation is indented based on the current indent level
| on | specifies whether to turn indenting on or off |
Implements IXMLOutStream.
| virtual |
Formatting related; indent level will determine how much to indent each write to the output stream, only effective if Indent is on
| increase | specifies whether to increase indent level or not |
Implements IXMLOutStream.
| pure virtual |
Must be called before any other methods to initialize stream.
| encoding | kUTF16 is Big or Litle Endian, depending on platform |
| stripInvalid | determines if invalid Unicode chars are stripped from the output or converted to processing instructions that contain their hexidecimal equivalent |
Implements IXMLOutStream.
| virtual |
Use to write the end tag for the top tag on the stack and to remove it from the stack
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Use to write a new tag.
| tagName | specifies name of tag |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Use to write a new tag with attributes.
| tagName | specifies name of tag |
| attrs | list of its attributes |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Clear the character entity table
| addStandardXMLEntity | specifies whether to add standard XML entity. |
Implements IXMLOutStream.
| virtual |
write the XML text declaration. See XML 1.0 spec 20001006, section 4.3.1
| version | XML version (e.g. 1.0 is expected) |
Implements IXMLOutStream.
| virtual |
Write will output data to stream at current position, and escape the standard 5 entities, unless a CData or PI section has been started with escaping off.
| data | specifies content to write out |
| escape | kTrue if data to be escaped, kFalse otherwise |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Write a declaration for an ATTLIST..
| elementName | name of the element, e.g. document |
| attrDfns | list of its attribute definitions |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Write an attribute type. i.e. " CDATA"
| attType | attribute type to write |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Write an attribute value. i.e. ""true""
| attValue | attribute value to write |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Write a content particle. i.e. "contentParticleName+"
| contentParticleName | content particle name |
| occurrence | content particle occurrence |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Write an empty tag such as '<foo/>'
| tagName | specifies name of tag to write |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Write an empty tag with attributes such as '<foo bar = true/>'.
| tag | specifies tag name |
| attrs | list of attributes to write out |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
output the current indent
Implements IXMLOutStream.
| virtual |
Write a keyword. i.e. "#PCDATA"
| keyword | keyword to write |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Write a literal enclosed in quotes. i.e. ""literal""
| literal | literal to write |
| wrapInQuotes | whether to wrap the literal in quotes |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Write a name. i.e. "name"
| name | name to write |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
WritePlatformText will output data to stream at current position, and escape the standard 5 entities, unless a CData or PI section has been started with escaping off.
| data | stream containing platform characters |
| start | stream offset of the first character to write |
| count | the number of characters to write |
| escape | kTrue if data to be escaped, kFalse otherwise |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.
| virtual |
Write a separator. i.e. " | "
| separator | content particle separator |
| newLine | whether to write new-line into stream after this content |
Implements IXMLOutStream.