⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sgmlreader.cs

📁 Freetextbox是优秀的在线编辑器
💻 CS
📖 第 1 页 / 共 4 页
字号:

        public SgmlDtd Dtd
        {
            get
            {
                this.LazyLoadDtd(this.baseUri);
                return this.dtd;
            }
            set
            {
                this.dtd = value;
            }
        }

        public override bool EOF
        {
            get
            {
                return (this.state == FreeTextBoxControls.Support.Sgml.State.Eof);
            }
        }

        public TextWriter ErrorLog
        {
            get
            {
                return this.log;
            }
            set
            {
                this.log = value;
            }
        }

        public string ErrorLogFile
        {
            get
            {
                return this.errorLogFile;
            }
            set
            {
                this.errorLogFile = value;
                this.ErrorLog = new StreamWriter(value);
            }
        }

        public override bool HasValue
        {
            get
            {
                if ((this.state == FreeTextBoxControls.Support.Sgml.State.Attr) || (this.state == FreeTextBoxControls.Support.Sgml.State.AttrValue))
                {
                    return true;
                }
                return (this.node.Value != null);
            }
        }

        public string Href
        {
            get
            {
                return this.href;
            }
            set
            {
                this.href = value;
                this.Init();
                if (this.baseUri == null)
                {
                    if (this.href.IndexOf("://") > 0)
                    {
                        this.baseUri = new Uri(this.href);
                    }
                    else
                    {
                        this.baseUri = new Uri("file:///" + Directory.GetCurrentDirectory() + "//");
                    }
                }
            }
        }

        public TextReader InputStream
        {
            get
            {
                return this.inputStream;
            }
            set
            {
                this.inputStream = value;
                this.Init();
            }
        }

        public string InternalSubset
        {
            get
            {
                return this.subset;
            }
            set
            {
                this.subset = value;
            }
        }

        public override bool IsDefault
        {
            get
            {
                if ((this.state == FreeTextBoxControls.Support.Sgml.State.Attr) || (this.state == FreeTextBoxControls.Support.Sgml.State.AttrValue))
                {
                    return this.a.IsDefault;
                }
                return false;
            }
        }

        public override bool IsEmptyElement
        {
            get
            {
                if (((this.state == FreeTextBoxControls.Support.Sgml.State.Markup) || (this.state == FreeTextBoxControls.Support.Sgml.State.Attr)) || (this.state == FreeTextBoxControls.Support.Sgml.State.AttrValue))
                {
                    return this.node.IsEmpty;
                }
                return false;
            }
        }

        private bool IsHtml
        {
            get
            {
                return this.isHtml;
            }
        }

        public override string this[int i]
        {
            get
            {
                return this.GetAttribute(i);
            }
        }

        public override string this[string name]
        {
            get
            {
                return this.GetAttribute(name);
            }
        }

        public override string this[string name, string namespaceURI]
        {
            get
            {
                return this.GetAttribute(name, namespaceURI);
            }
        }

        public override string LocalName
        {
            get
            {
                if (this.state == FreeTextBoxControls.Support.Sgml.State.Attr)
                {
                    return this.a.Name;
                }
                if (this.state == FreeTextBoxControls.Support.Sgml.State.AttrValue)
                {
                    return null;
                }
                return this.node.Name;
            }
        }

        public override string Name
        {
            get
            {
                return this.LocalName;
            }
        }

        public override string NamespaceURI
        {
            get
            {
                if ((this.state == FreeTextBoxControls.Support.Sgml.State.Attr) && (this.a.Name == "xmlns"))
                {
                    return "http://www.w3.org/2000/xmlns/";
                }
                return string.Empty;
            }
        }

        public override XmlNameTable NameTable
        {
            get
            {
                return this.nametable;
            }
        }

        public override XmlNodeType NodeType
        {
            get
            {
                if (this.state == FreeTextBoxControls.Support.Sgml.State.Attr)
                {
                    return XmlNodeType.Attribute;
                }
                if (this.state == FreeTextBoxControls.Support.Sgml.State.AttrValue)
                {
                    return XmlNodeType.Text;
                }
                if ((this.state == FreeTextBoxControls.Support.Sgml.State.EndTag) || (this.state == FreeTextBoxControls.Support.Sgml.State.AutoClose))
                {
                    return XmlNodeType.EndElement;
                }
                return this.node.NodeType;
            }
        }

        public override string Prefix
        {
            get
            {
                return string.Empty;
            }
        }

        public string PublicIdentifier
        {
            get
            {
                return this.pubid;
            }
            set
            {
                this.pubid = value;
            }
        }

        public override char QuoteChar
        {
            get
            {
                if (this.a != null)
                {
                    return this.a.QuoteChar;
                }
                return '\0';
            }
        }

        public override System.Xml.ReadState ReadState
        {
            get
            {
                if (this.state == FreeTextBoxControls.Support.Sgml.State.Initial)
                {
                    return System.Xml.ReadState.Initial;
                }
                if (this.state == FreeTextBoxControls.Support.Sgml.State.Eof)
                {
                    return System.Xml.ReadState.EndOfFile;
                }
                return System.Xml.ReadState.Interactive;
            }
        }

        public bool StripDocType
        {
            get
            {
                return this.stripDocType;
            }
            set
            {
                this.stripDocType = value;
            }
        }

        public string SystemLiteral
        {
            get
            {
                return this.syslit;
            }
            set
            {
                this.syslit = value;
            }
        }

        public override string Value
        {
            get
            {
                if ((this.state == FreeTextBoxControls.Support.Sgml.State.Attr) || (this.state == FreeTextBoxControls.Support.Sgml.State.AttrValue))
                {
                    return this.a.Value;
                }
                return this.node.Value;
            }
        }

        public string WebProxy
        {
            get
            {
                return this.proxy;
            }
            set
            {
                this.proxy = value;
            }
        }

        public System.Xml.WhitespaceHandling WhitespaceHandling
        {
            get
            {
                return this.whitespaceHandling;
            }
            set
            {
                this.whitespaceHandling = value;
            }
        }

        public override string XmlLang
        {
            get
            {
                for (int num1 = this.stack.Count - 1; num1 > 1; num1--)
                {
                    Node node1 = (Node) this.stack[num1];
                    string text1 = node1.XmlLang;
                    if (text1 != null)
                    {
                        return text1;
                    }
                }
                return string.Empty;
            }
        }

        public override System.Xml.XmlSpace XmlSpace
        {
            get
            {
                for (int num1 = this.stack.Count - 1; num1 > 1; num1--)
                {
                    Node node1 = (Node) this.stack[num1];
                    System.Xml.XmlSpace space1 = node1.Space;
                    if (space1 != System.Xml.XmlSpace.None)
                    {
                        return space1;
                    }
                }
                return System.Xml.XmlSpace.None;
            }
        }


        private FreeTextBoxControls.Support.Sgml.Attribute a;
        private int apos;
        private static string aterm;
        private static string avterm;
        private Uri baseUri;
        private static string cdataterm;
        private Entity current;
        private static string declterm;
        private string docType;
        private SgmlDtd dtd;
        private static string dtterm;
        private object endTag;
        private string errorLogFile;
        private FreeTextBoxControls.Support.Sgml.CaseFolding folding;
        private string href;
        private TextReader inputStream;
        private bool isHtml;
        private Entity lastError;
        private TextWriter log;
        private StringBuilder name;
        private XmlNameTable nametable;
        private Node newnode;
        private Node node;
        private char partial;
        private static string piterm;
        private int poptodepth;
        private string proxy;
        private string pubid;
        private int rootCount;
        private string rootElementName;
        private StringBuilder sb;
        private FreeTextBoxControls.Support.Sgml.HWStack stack;
        private string startTag;
        private FreeTextBoxControls.Support.Sgml.State state;
        private bool stripDocType;
        private string subset;
        private string syslit;
        private static string tagterm;
        private System.Xml.WhitespaceHandling whitespaceHandling;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -