This class creates a document on the first call to GetNavigator(), and returns a Navigator from it. On subsequent calls, Navigators from the same document are returned (no new document is created).
예제 #1
0
        /// <summary>
        /// Position this navigator to the same position as the "other" navigator.  If the "other" navigator
        /// is not of the same type as this navigator, then return false.
        /// </summary>
        public override bool MoveTo(XPathNavigator other)
        {
            RtfTextNavigator?that = other as RtfTextNavigator;

            if (that != null)
            {
                _text    = that._text;
                _baseUri = that._baseUri;
                _constr  = that._constr;
                return(true);
            }
            return(false);
        }
        /// <summary>
        /// Position this navigator to the same position as the "other" navigator.  If the "other" navigator
        /// is not of the same type as this navigator, then return false.
        /// </summary>
        public override bool MoveTo(XPathNavigator other)
        {
            RtfTextNavigator that = other as RtfTextNavigator;

            if (that != null)
            {
                this.text    = that.text;
                this.baseUri = that.baseUri;
                this.constr  = that.constr;
                return(true);
            }
            return(false);
        }
예제 #3
0
        /// <summary>
        /// Position this navigator to the same position as the "other" navigator.  If the "other" navigator
        /// is not of the same type as this navigator, then return false.
        /// </summary>
        public override bool MoveTo(XPathNavigator other)
        {
            RtfTreeNavigator?that = other as RtfTreeNavigator;

            if (that != null)
            {
                _events    = that._events;
                _constr    = that._constr;
                _nameTable = that._nameTable;
                return(true);
            }
            return(false);
        }
        /// <summary>
        /// Position this navigator to the same position as the "other" navigator.  If the "other" navigator
        /// is not of the same type as this navigator, then return false.
        /// </summary>
        public override bool MoveTo(XPathNavigator other)
        {
            RtfTreeNavigator that = other as RtfTreeNavigator;

            if (that != null)
            {
                this.events    = that.events;
                this.constr    = that.constr;
                this.nameTable = that.nameTable;
                return(true);
            }
            return(false);
        }
예제 #5
0
        //-----------------------------------------------
        // Constructors
        //-----------------------------------------------

        /// <summary>
        /// Create a new navigator having a text node with value = "text" string.
        /// </summary>
        public RtfTextNavigator(string text, string baseUri) {
            this.text = text;
            this.baseUri = baseUri;
            this.constr = new NavigatorConstructor();
        }
예제 #6
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that)
 {
     _text    = that._text;
     _baseUri = that._baseUri;
     _constr  = that._constr;
 }
예제 #7
0
        //-----------------------------------------------
        // Constructors
        //-----------------------------------------------

        /// <summary>
        /// Create a new navigator having a text node with value = "text" string.
        /// </summary>
        public RtfTextNavigator(string text, string baseUri)
        {
            _text    = text;
            _baseUri = baseUri;
            _constr  = new NavigatorConstructor();
        }
예제 #8
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTreeNavigator(RtfTreeNavigator that)
 {
     _events    = that._events;
     _constr    = that._constr;
     _nameTable = that._nameTable;
 }
예제 #9
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTreeNavigator(RtfTreeNavigator that)
 {
     _events = that._events;
     _constr = that._constr;
     _nameTable = that._nameTable;
 }
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that)
 {
     this.text    = that.text;
     this.baseUri = that.baseUri;
     this.constr  = that.constr;
 }
예제 #11
0
 /// <summary>
 /// Position this navigator to the same position as the "other" navigator.  If the "other" navigator
 /// is not of the same type as this navigator, then return false.
 /// </summary>
 public override bool MoveTo(XPathNavigator other) {
     RtfTreeNavigator that = other as RtfTreeNavigator;
     if (that != null) {
         this.events = that.events;
         this.constr = that.constr;
         this.nameTable = that.nameTable;
         return true;
     }
     return false;
 }
        //-----------------------------------------------
        // Constructors
        //-----------------------------------------------

        /// <summary>
        /// Create a new navigator over the specified cache of Xml events.
        /// </summary>
        public RtfTreeNavigator(XmlEventCache events, XmlNameTable nameTable)
        {
            this.events    = events;
            this.constr    = new NavigatorConstructor();
            this.nameTable = nameTable;
        }
예제 #13
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTreeNavigator(RtfTreeNavigator that) {
     this.events = that.events;
     this.constr = that.constr;
     this.nameTable = that.nameTable;
 }
예제 #14
0
        //-----------------------------------------------
        // Constructors
        //-----------------------------------------------

        /// <summary>
        /// Create a new navigator over the specified cache of Xml events.
        /// </summary>
        public RtfTreeNavigator(XmlEventCache events, XmlNameTable nameTable) {
            this.events = events;
            this.constr = new NavigatorConstructor();
            this.nameTable = nameTable;
        }
예제 #15
0
 /// <summary>
 /// Position this navigator to the same position as the "other" navigator.  If the "other" navigator
 /// is not of the same type as this navigator, then return false.
 /// </summary>
 public override bool MoveTo(XPathNavigator other)
 {
     RtfTextNavigator that = other as RtfTextNavigator;
     if (that != null)
     {
         _text = that._text;
         _baseUri = that._baseUri;
         _constr = that._constr;
         return true;
     }
     return false;
 }
예제 #16
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that)
 {
     _text = that._text;
     _baseUri = that._baseUri;
     _constr = that._constr;
 }
예제 #17
0
        //-----------------------------------------------
        // Constructors
        //-----------------------------------------------

        /// <summary>
        /// Create a new navigator having a text node with value = "text" string.
        /// </summary>
        public RtfTextNavigator(string text, string baseUri)
        {
            _text = text;
            _baseUri = baseUri;
            _constr = new NavigatorConstructor();
        }
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTreeNavigator(RtfTreeNavigator that)
 {
     this.events    = that.events;
     this.constr    = that.constr;
     this.nameTable = that.nameTable;
 }
예제 #19
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that) {
     this.text = that.text;
     this.baseUri = that.baseUri;
     this.constr = that.constr;
 }
        //-----------------------------------------------
        // Constructors
        //-----------------------------------------------

        /// <summary>
        /// Create a new navigator having a text node with value = "text" string.
        /// </summary>
        public RtfTextNavigator(string text, string baseUri)
        {
            this.text    = text;
            this.baseUri = baseUri;
            this.constr  = new NavigatorConstructor();
        }
예제 #21
0
 /// <summary>
 /// Position this navigator to the same position as the "other" navigator.  If the "other" navigator
 /// is not of the same type as this navigator, then return false.
 /// </summary>
 public override bool MoveTo(XPathNavigator other) {
     RtfTextNavigator that = other as RtfTextNavigator;
     if (that != null) {
         this.text = that.text;
         this.baseUri = that.baseUri;
         this.constr = that.constr;
         return true;
     }
     return false;
 }
예제 #22
0
        //-----------------------------------------------
        // Constructors
        //-----------------------------------------------

        /// <summary>
        /// Create a new navigator over the specified cache of Xml events.
        /// </summary>
        public RtfTreeNavigator(XmlEventCache events, XmlNameTable nameTable)
        {
            _events    = events;
            _constr    = new NavigatorConstructor();
            _nameTable = nameTable;
        }
예제 #23
0
        //-----------------------------------------------
        // Constructors
        //-----------------------------------------------

        /// <summary>
        /// Create a new navigator over the specified cache of Xml events.
        /// </summary>
        public RtfTreeNavigator(XmlEventCache events, XmlNameTable nameTable)
        {
            _events = events;
            _constr = new NavigatorConstructor();
            _nameTable = nameTable;
        }