Programmer's Guide > Interfaces > ADocument interface > CloneFlags enumeration
  
CloneFlags enumeration
The following bit constants are used with the flags argument of the cloneDocument() method.
The CloneFlags enumeration has the following constants of type int.
CLONE_NO_CONTENT = 0x01
No content will be cloned. This will result in an empty document.
CLONE_RESOLVE_CT = 0x02
Resolve any change tracking markup according to the value of the viewchangetracking option for the current view of the source document. If there is no view setting associated with the source document, the global value of the viewchangetracking option will be used.
The viewchangetracking option interacts with this function in the following way:
original — The cloned document will have the original markup (changes not applied) but no change tracking markup.
changesapplied — The cloned document will have the latest markup (changes applied) but no change tracking markup.
changeshighlighted — The cloned document will be as if CLONE_RESOLVE_CT were not set. It will have the change tracking markup (no data is lost; changes are still tracked).
CLONE_NO_ENT_DECLS = 0x04
Makes the empty document not inherit entity declarations from the source document. Only obeyed if CLONE_NO_CONTENT is also specified.
CLONE_XML = 0x08
Force clone to be XML even if the source is SGML. Only obeyed if source document is made up of markup (not pure text).
CLONE_CARET = 0x10
Include the source document's caret position in the cloned content. Only obeyed if CLONE_NO_CONTENT is not specified.
CLONE_LOCATION = 0x20
Include every block oid in the source document as a pi in the cloned content. Only obeyed if CLONE_NO_CONTENT is not specified. The PI has the format of <?APTCOMP EPIC _OID_?> where _OLD_ = (dfid, generate_no, docid)
CLONE_NAME = 0x40
Sets the name of the cloned documnt to the name of the source document.