internal GeckoDocument(nsIDOMHTMLDocument document) : base(document)
        {
            this.DomDocument = document;

            // since a reference is stored in the base class, we only need a weak reference here
            Marshal.ChangeWrapperHandleStrength(DomDocument, true);
        }
Beispiel #2
0
		public Document (WebBrowser control, nsIDOMHTMLDocument document)
			: base (control, document)
		{
			if (control.platform != control.enginePlatform)
				this.node = nsDOMHTMLDocument.GetProxy (control, document);
			else
				this.node = document;
		}
Beispiel #3
0
		public PropertiesDialog(nsIDOMHTMLDocument doc) : this()
		{
			txtTitle.Text = nsString.Get(doc.GetTitle);
			txtAddress.Text = nsString.Get(doc.GetURL);
			txtReferrer.Text = nsString.Get(doc.GetReferrer);
			
			nsIDOMDocumentType docType = doc.GetDoctype();
			if (docType != null)
				lblDocType.Text = nsString.Get(docType.GetPublicId);
			else
				lblDocType.Text = "(none)";
		}
Beispiel #4
0
 public Document(WebBrowser control, nsIDOMHTMLDocument document)
     : base(control, document)
 {
     if (control.platform != control.enginePlatform)
     {
         this.node = nsDOMHTMLDocument.GetProxy(control, document);
     }
     else
     {
         this.node = document;
     }
 }
Beispiel #5
0
        public PropertiesDialog(nsIDOMHTMLDocument doc) : this()
        {
            txtTitle.Text    = nsString.Get(doc.GetTitle);
            txtAddress.Text  = nsString.Get(doc.GetURL);
            txtReferrer.Text = nsString.Get(doc.GetReferrer);

            nsIDOMDocumentType docType = doc.GetDoctype();

            if (docType != null)
            {
                lblDocType.Text = nsString.Get(docType.GetPublicId);
            }
            else
            {
                lblDocType.Text = "(none)";
            }
        }
 internal static GeckoDocument Create(nsIDOMHTMLDocument document)
 {
     return((document == null) ? null : new GeckoDocument(document));
 }
Beispiel #7
0
 internal GeckoDocument(nsIDOMHTMLDocument document) : base(document)
 {
     this.DomDocument = document;
 }
Beispiel #8
0
 internal GeckoDocument(nsIDOMHTMLDocument document) : base(document)
 {
     this._domHtmlDocument = document;
 }
        public static nsIDOMHTMLDocument GetProxy(Mono.WebBrowser.IWebBrowser control, nsIDOMHTMLDocument obj)
        {
            object o = Base.GetProxyForObject(control, typeof(nsIDOMHTMLDocument).GUID, obj);

            return(o as nsIDOMHTMLDocument);
        }