Esempio n. 1
0
        /// <summary>
        /// Ensure that config is self consistent.
        /// </summary>
        public virtual void  Adjust()
        {
            if (EncloseBlockText)
            {
                EncloseBodyText = true;
            }

            /* avoid the need to set IndentContent when SmartIndent is set */

            if (SmartIndent)
            {
                IndentContent = true;
            }

            /* disable wrapping */
            if (wraplen == 0)
            {
                wraplen = 0x7FFFFFFF;
            }

            /* Word 2000 needs o:p to be declared as inline */
            if (Word2000)
            {
                tt.DefineInlineTag("o:p");
            }

            /* XHTML is written in lower case */
            if (xHTML)
            {
                XmlOut         = true;
                UpperCaseTags  = false;
                UpperCaseAttrs = false;
            }

            /* if XML in, then XML out */
            if (XmlTags)
            {
                XmlOut = true;
                XmlPIs = true;
            }

            /* XML requires end tags */
            if (XmlOut)
            {
                QuoteAmpersand = true;
                HideEndTags    = false;
            }
        }