Home   |   Products   |   Documentation
 

dev net revision
29 July 2008
 

 
 

GetDocFlags Method

int CMarkup::GetDocFlags() const;

The GetDocFlags method returns the flags that pertain to the entire document object. See also the SetDocFlags method.

The MDF_IGNORECASE bit controls whether CMarkup is case sensitive when finding element tag names and attribute names.

The MDF_UTF16LEFILE, MDF_UTF8PREAMBLE and MDF_MODIFIED flags described below are only in CMarkup Developer.

If the MDF_UTF16LEFILE bit is on, the file is encoded in UTF-16. See UTF-16 Files and the Byte Order Mark (BOM).

The MDF_UTF8PREAMBLE bit is set, when a 3-byte UTF-8 preamble (BOM) is used in the file. This flag is set on reading a file which has a UTF-8 preamble. The preamble itself is not kept in the document in memory, it is only in the file. The flag can also be set to force a preamble to be used when the file is saved to UTF-8. See UTF-8 Files and the Preamble.

The MDF_MODIFIED bit indicates whether the document has been modified, like a "dirty" indicator. CMarkup sets this bit whenever the document content itself is modified.

 
 

Question or comment about this article?

©Copyright 2008 First Objective Software, Inc. All rights reserved.