Programmer's Guide > Interfaces > ADocument interface > SaveFlags enumeration
  
SaveFlags enumeration
The SaveFlags enumerated type is used to construct the flags parameter to the save method, by ORing options from the following list:
The SaveFlags enumeration has the following constants of type int.
SAVE_CT_ORIG = 0x0001
For documents with change tracking markup, save as if all changes are rejected (original view).
SAVE_CT_LATEST = 0x0002
For documents with change tracking markup, save as if all changes are accepted (latest view).
SAVE_CT_ALL = 0x0004
For documents with change tracking markup, save as if all changes are pending (highlighted view).
If none of the SAVE_CT_xxx flags are set, the document is written as specified by the Application.getOption("writechangetracking") setting. If SAVE_CT_ORIG is specified with either of the other options, SAVE_CT_ORIG is obeyed. If SAVE_CT_LATEST and SAVE_CT_ALL are both specified, SAVE_CT_LATEST is obeyed.
SAVE_SGML = 0x0008
Write the document as an SGML document.
SAVE_UNTAGGED = 0x0010
Write a text-only version of the document.
SAVE_XML = 0x0020
Write the document as XML.
If one of the SAVE_SGML, SAVE_UNTAGGED, or SAVE_XML options is not specified, an SGML document is written as SGML and an XML document is written as XML. If more than one option is specified and SAVE_XML is specified, it is obeyed; otherwise, SAVE_SGML is used.
SAVE_NOHEADER = 0x0040
Removes the DOCTYPE header and internal subset including any private ENTITY declarations.
SAVE_NOPI = 0x0080
Removes Arbortext-specific processing instructions.
If not specified, behavior is controlled by the Application.getOption("writepi") setting.
SAVE_EOC = 0x0100
Enables entity output conversion.
SAVE_NOEOC = 0x0200
Suppresses entity output conversion.
If neither SAVE_EOC nor SAVE_NOEC is specified, entity output conversion is controlled by the Application.getOption("entityoutputconvert") setting. If both are specified, entity output conversion is enabled.
SAVE_NAC_ENTREF = 0x0400
Writes non-ASCII characters as character entity references.
SAVE_NAC_CHAR = 0x0800
Writes non-ASCII characters as characters in the target encoding.
SAVE_NAC_NUMREF = 0x1000
Writes non-ASCII characters as numeric character references.
If none of the SAVE_NAC_xxx options are specified, behavior is controlled by the Application.getOption("writenonasciichar") setting. If more than one is specified, SAVE_NAC_ENTREF takes precedence if specified; otherwise SAVE_NAC_CHAR takes precedence if specified.
SAVE_NOBREAK = 0x2000
Used internally for HTML output.
SAVE_FLATTEN_FILE = 0x4000
Expands all file entities recursively.
SAVE_FLATTEN_TEXT = 0x8000
Expands all text entities recursively.
SAVE_NON_FRAGMENT = 0x10000
Writes a non-fragment header if possible.
SAVE_FLATTEN_INCLUDE = 0x20000
Expands all XInclude references recursively.