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).
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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();
        }
Exemplo n.º 6
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that)
 {
     _text    = that._text;
     _baseUri = that._baseUri;
     _constr  = that._constr;
 }
Exemplo n.º 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();
        }
Exemplo n.º 8
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTreeNavigator(RtfTreeNavigator that)
 {
     _events    = that._events;
     _constr    = that._constr;
     _nameTable = that._nameTable;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
        }
Exemplo n.º 13
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTreeNavigator(RtfTreeNavigator that) {
     this.events = that.events;
     this.constr = that.constr;
     this.nameTable = that.nameTable;
 }
Exemplo n.º 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;
        }
Exemplo n.º 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;
 }
Exemplo n.º 16
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that)
 {
     _text = that._text;
     _baseUri = that._baseUri;
     _constr = that._constr;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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();
        }
Exemplo n.º 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;
 }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }