Example #1
0
 /// <summary>
 /// Creates a new instance off <see cref="DocumentEventArgs"/>
 /// </summary>
 public DocumentEventArgs(VXmlDocument document, int offset, int length, string text)
 {
     this.document = document;
     this.offset   = offset;
     this.length   = length;
     this.text     = text;
 }
Example #2
0
        public VXmlNode(string nodeName, VXmlDocument doc)
            : this(doc)
        {
            Name = nodeName;

            CreateTextLine();
        }
Example #3
0
		internal static bool SelectionIsReadOnly(VXmlDocument document, ISelection sel)
		{
			//if (document.EditorProperties.SupportReadOnlySegments)
			//    return document.MarkerStrategy.GetMarkers(sel.Offset, sel.Length).Exists(m => m.IsReadOnly);
			//else
				return false;
		}
Example #4
0
        public VXmlHeader(VXmlDocument doc) : base(doc)
        {
            Version    = "1.0";
            Encoding   = "utf-8";
            Standalone = "";

            CreateTextLine();
        }
Example #5
0
		public void Dispose()
		{
			if (this.document != null)
			{
				document.DocumentChanged -= new DocumentEventHandler(DocumentChanged);
				this.document = null;
			}
		}
Example #6
0
 /// <summary>
 /// Creates a new instance of <see cref="DefaultSelection"/>
 /// </summary>
 public DefaultSelection(VXmlDocument document, TextLocation startPosition, TextLocation endPosition)
 {
     //DefaultDocument.ValidatePosition(document, startPosition);
     //DefaultDocument.ValidatePosition(document, endPosition);
     Debug.Assert(startPosition <= endPosition);
     this.document      = document;
     this.startPosition = startPosition;
     this.endPosition   = endPosition;
 }
Example #7
0
        //public Line[] Lines
        //{
        //    get { return _lstLine.ToArray(); }
        //}

        #endregion

        public VXmlNode(VXmlDocument doc)
        {
            _lstAttributes  = new List <VXmlAttribute>();
            _lstChildNode   = new List <VXmlNode>();
            _lstLineText    = null;
            _lstLineSegment = new List <LineSegment>();
            Layer           = 0;
            Document        = doc;
        }
Example #8
0
        public VXmlHeader(VXmlDocument doc, System.Xml.XmlNode header) : this(doc)
        {
            if (header.NodeType == System.Xml.XmlNodeType.XmlDeclaration)
            {
                System.Xml.XmlDeclaration dec = header as System.Xml.XmlDeclaration;
                Version    = dec.Version;
                Encoding   = dec.Encoding;
                Standalone = dec.Standalone;

                CreateTextLine();
            }
        }
Example #9
0
 public Bookmark(VXmlDocument document, TextLocation location, bool isEnabled)
 {
     this.document  = document;
     this.isEnabled = isEnabled;
     this.Location  = location;
 }
Example #10
0
 public Bookmark(VXmlDocument document, TextLocation location) : this(document, location, true)
 {
 }
Example #11
0
 /// <summary>
 /// Creates a new instance of <see cref="BookmarkManager"/>
 /// </summary>
 internal BookmarkManager(VXmlDocument document)
 {
     this.document = document;
 }
Example #12
0
        public static VXmlDmRefNode CreateFromString(string xml, VXmlDocument doc)
        {
            VXmlDmRefNode node = new VXmlDmRefNode(doc);

            return(node);
        }
Example #13
0
 public VXmlDmRefNode(VXmlDocument doc)
     : base(doc)
 {
 }
Example #14
0
 public VXmlTextNode(VXmlDocument doc) : base(doc)
 {
 }
Example #15
0
 /// <summary>
 /// Creates a new instance off <see cref="DocumentEventArgs"/>
 /// </summary>
 public DocumentEventArgs(VXmlDocument document)
     : this(document, -1, -1, null)
 {
 }
Example #16
0
 public VXmlComment(VXmlDocument doc)
     : base(doc)
 {
 }
Example #17
0
		/// <summary>
		/// Creates a new instance of <see cref="SelectionManager"/>
		/// </summary>
		public SelectionManager(VXmlDocument document, TextBoxControl textArea)
		{
			this.document = document;
			this.textArea = textArea;
			document.DocumentChanged += new DocumentEventHandler(DocumentChanged);
		}
Example #18
0
		/// <summary>
		/// Creates a new instance of <see cref="SelectionManager"/>
		/// </summary>
		public SelectionManager(VXmlDocument document)
		{
			this.document = document;
			document.DocumentChanged += new DocumentEventHandler(DocumentChanged);
		}
Example #19
0
 /// <summary>
 /// Creates a new instance off <see cref="DocumentEventArgs"/>
 /// </summary>
 public DocumentEventArgs(VXmlDocument document, int offset)
     : this(document, offset, -1, null)
 {
 }
Example #20
0
 /// <summary>
 /// Creates a new instance off <see cref="DocumentEventArgs"/>
 /// </summary>
 public DocumentEventArgs(VXmlDocument document, int offset, int length)
     : this(document, offset, length, null)
 {
 }
Example #21
0
 public VXmlCDataSection(VXmlDocument doc)
     : base(doc)
 {
 }
Example #22
0
 public VXmlTableNode(VXmlDocument doc)
     : base(doc)
 {
 }