Exemplo n.º 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;
 }
Exemplo n.º 2
0
        public VXmlNode(string nodeName, VXmlDocument doc)
            : this(doc)
        {
            Name = nodeName;

            CreateTextLine();
        }
Exemplo n.º 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;
		}
Exemplo n.º 4
0
        public VXmlHeader(VXmlDocument doc) : base(doc)
        {
            Version    = "1.0";
            Encoding   = "utf-8";
            Standalone = "";

            CreateTextLine();
        }
Exemplo n.º 5
0
		public void Dispose()
		{
			if (this.document != null)
			{
				document.DocumentChanged -= new DocumentEventHandler(DocumentChanged);
				this.document = null;
			}
		}
Exemplo n.º 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;
 }
Exemplo n.º 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;
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 9
0
 public Bookmark(VXmlDocument document, TextLocation location, bool isEnabled)
 {
     this.document  = document;
     this.isEnabled = isEnabled;
     this.Location  = location;
 }
Exemplo n.º 10
0
 public Bookmark(VXmlDocument document, TextLocation location) : this(document, location, true)
 {
 }
Exemplo n.º 11
0
 /// <summary>
 /// Creates a new instance of <see cref="BookmarkManager"/>
 /// </summary>
 internal BookmarkManager(VXmlDocument document)
 {
     this.document = document;
 }
Exemplo n.º 12
0
        public static VXmlDmRefNode CreateFromString(string xml, VXmlDocument doc)
        {
            VXmlDmRefNode node = new VXmlDmRefNode(doc);

            return(node);
        }
Exemplo n.º 13
0
 public VXmlDmRefNode(VXmlDocument doc)
     : base(doc)
 {
 }
Exemplo n.º 14
0
 public VXmlTextNode(VXmlDocument doc) : base(doc)
 {
 }
Exemplo n.º 15
0
 /// <summary>
 /// Creates a new instance off <see cref="DocumentEventArgs"/>
 /// </summary>
 public DocumentEventArgs(VXmlDocument document)
     : this(document, -1, -1, null)
 {
 }
Exemplo n.º 16
0
 public VXmlComment(VXmlDocument doc)
     : base(doc)
 {
 }
Exemplo n.º 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);
		}
Exemplo n.º 18
0
		/// <summary>
		/// Creates a new instance of <see cref="SelectionManager"/>
		/// </summary>
		public SelectionManager(VXmlDocument document)
		{
			this.document = document;
			document.DocumentChanged += new DocumentEventHandler(DocumentChanged);
		}
Exemplo n.º 19
0
 /// <summary>
 /// Creates a new instance off <see cref="DocumentEventArgs"/>
 /// </summary>
 public DocumentEventArgs(VXmlDocument document, int offset)
     : this(document, offset, -1, null)
 {
 }
Exemplo n.º 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)
 {
 }
Exemplo n.º 21
0
 public VXmlCDataSection(VXmlDocument doc)
     : base(doc)
 {
 }
Exemplo n.º 22
0
 public VXmlTableNode(VXmlDocument doc)
     : base(doc)
 {
 }