Exemplo n.º 1
0
        internal HtmlWindow(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLWindow2 win)
        {
            this.htmlWindow2 = win;
            Debug.Assert(this.NativeHtmlWindow != null, "The window object should implement IHTMLWindow2");

            this.shimManager = shimManager;
        }
Exemplo n.º 2
0
        internal HtmlElement(HtmlShimManager shimManager, IHTMLElement element)
        {
            htmlElement = element;
            Debug.Assert(NativeHtmlElement != null, "The element object should implement IHTMLElement");

            this.shimManager = shimManager;
        }
Exemplo n.º 3
0
        internal HtmlDocument(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLDocument doc)
        {
            this.htmlDocument2 = (UnsafeNativeMethods.IHTMLDocument2)doc;
            Debug.Assert(this.NativeHtmlDocument2 != null, "The document should implement IHtmlDocument2");

            this.shimManager = shimManager;
        }
Exemplo n.º 4
0
        internal HtmlElement(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLElement element)
        {
            this.htmlElement = element;
            Debug.Assert(this.NativeHtmlElement != null, "The element object should implement IHTMLElement");

            this.shimManager = shimManager;
        }
Exemplo n.º 5
0
        internal HtmlElementEventArgs(HtmlShimManager shimManager, IHTMLEventObj eventObj)
        {
            NativeHTMLEventObj = eventObj;
            Debug.Assert(NativeHTMLEventObj is not null, "The event object should implement IHTMLEventObj");

            _shimManager = shimManager;
        }
Exemplo n.º 6
0
        internal HtmlWindow(HtmlShimManager shimManager, IHTMLWindow2 win)
        {
            htmlWindow2 = win;
            Debug.Assert(NativeHtmlWindow != null, "The window object should implement IHTMLWindow2");

            this.shimManager = shimManager;
        }
Exemplo n.º 7
0
        internal HtmlElementEventArgs(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLEventObj eventObj)
        {
            NativeHTMLEventObj = eventObj;
            Debug.Assert(NativeHTMLEventObj != null, "The event object should implement IHTMLEventObj");

            _shimManager = shimManager;
        }
Exemplo n.º 8
0
        internal HtmlWindowCollection(HtmlShimManager shimManager, IHTMLFramesCollection2 collection)
        {
            htmlFramesCollection2 = collection;
            this.shimManager      = shimManager;

            Debug.Assert(NativeHTMLFramesCollection2 is not null, "The window collection object should implement IHTMLFramesCollection2");
        }
Exemplo n.º 9
0
        internal HtmlWindowCollection(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLFramesCollection2 collection)
        {
            this.htmlFramesCollection2 = collection;
            this.shimManager           = shimManager;

            Debug.Assert(this.NativeHTMLFramesCollection2 != null, "The window collection object should implement IHTMLFramesCollection2");
        }
        internal HtmlElementCollection(HtmlShimManager shimManager)
        {
            this.htmlElementCollection = null;
            this.elementsArray         = null;

            this.shimManager = shimManager;
        }
Exemplo n.º 11
0
        internal HtmlDocument(HtmlShimManager shimManager, IHTMLDocument doc)
        {
            htmlDocument2 = (IHTMLDocument2)doc;
            Debug.Assert(NativeHtmlDocument2 != null, "The document should implement IHtmlDocument2");

            this.shimManager = shimManager;
        }
 internal HtmlElementCollection(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLElementCollection elements)
 {
     this.htmlElementCollection = elements;
     this.elementsArray         = null;
     this.shimManager           = shimManager;
     Debug.Assert(this.NativeHtmlElementCollection != null, "The element collection object should implement IHTMLElementCollection");
 }
Exemplo n.º 13
0
 internal HtmlElementCollection(HtmlShimManager shimManager, IHTMLElementCollection elements)
 {
     htmlElementCollection = elements;
     elementsArray         = null;
     this.shimManager      = shimManager;
     Debug.Assert(NativeHtmlElementCollection != null, "The element collection object should implement IHTMLElementCollection");
 }
Exemplo n.º 14
0
        internal HtmlWindow(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLWindow2 win)
        {
            this.htmlWindow2 = win;
            Debug.Assert(this.NativeHtmlWindow != null, "The window object should implement IHTMLWindow2");

            this.shimManager = shimManager;
        }
Exemplo n.º 15
0
        internal HtmlDocument(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLDocument doc)
        {
            this.htmlDocument2 = (UnsafeNativeMethods.IHTMLDocument2)doc;
            Debug.Assert(this.NativeHtmlDocument2 != null, "The document should implement IHtmlDocument2");

            this.shimManager = shimManager;

        }
Exemplo n.º 16
0
        internal HtmlElement(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLElement element)
        {
            this.htmlElement = element;
            Debug.Assert(this.NativeHtmlElement != null, "The element object should implement IHTMLElement");

            this.shimManager = shimManager;

        }
Exemplo n.º 17
0
            public object GetService(Type service)
            {
                if (service == typeof(HtmlDocument))
                {
                    int hr = _clientSite.GetContainer(out UnsafeNativeMethods.IOleContainer iOlecontainer);

                    if (NativeMethods.Succeeded(hr) &&
                        (iOlecontainer is Interop.Mshtml.IHTMLDocument))
                    {
                        if (_shimManager == null)
                        {
                            _shimManager = new HtmlShimManager();
                        }

                        return(new HtmlDocument(_shimManager, iOlecontainer as Interop.Mshtml.IHTMLDocument));
                    }
                }
                else if (_clientSite.GetType().IsAssignableFrom(service))
                {
                    return(_clientSite);
                }

                return(null);
            }
 internal HtmlElementCollection(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLElementCollection elements)
 {
     this.htmlElementCollection = elements;
     this.elementsArray         = null;
     this.shimManager           = shimManager;
 }
 internal HtmlDocument(HtmlShimManager shimManager, System.Windows.Forms.UnsafeNativeMethods.IHTMLDocument doc)
 {
     this.htmlDocument2 = (System.Windows.Forms.UnsafeNativeMethods.IHTMLDocument2)doc;
     this.shimManager   = shimManager;
 }
 internal HtmlElement(HtmlShimManager shimManager, System.Windows.Forms.UnsafeNativeMethods.IHTMLElement element)
 {
     this.htmlElement = element;
     this.shimManager = shimManager;
 }
Exemplo n.º 21
0
 internal HtmlElementCollection(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLElementCollection elements) {
     this.htmlElementCollection = elements;
     this.elementsArray = null;
     this.shimManager = shimManager;
     Debug.Assert(this.NativeHtmlElementCollection != null, "The element collection object should implement IHTMLElementCollection");
 }
Exemplo n.º 22
0
 internal HtmlElementCollection(HtmlShimManager shimManager, HtmlElement[] array) {
     this.htmlElementCollection = null;
     this.elementsArray = array;
     this.shimManager = shimManager;
 }
Exemplo n.º 23
0
 internal HtmlWindow(HtmlShimManager shimManager, System.Windows.Forms.UnsafeNativeMethods.IHTMLWindow2 win)
 {
     this.htmlWindow2 = win;
     this.shimManager = shimManager;
 }
 internal HtmlWindowCollection(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLFramesCollection2 collection)
 {
     this.htmlFramesCollection2 = collection;
     this.shimManager = shimManager;
 }
Exemplo n.º 25
0
 internal HtmlElementCollection(HtmlShimManager shimManager, HtmlElement[] array)
 {
     htmlElementCollection = null;
     elementsArray         = array;
     this.shimManager      = shimManager;
 }
Exemplo n.º 26
0
 internal HtmlWindowCollection(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLFramesCollection2 collection)
 {
     this.htmlFramesCollection2 = collection;
     this.shimManager           = shimManager;
 }
Exemplo n.º 27
0
 internal HtmlElement(HtmlShimManager shimManager, System.Windows.Forms.UnsafeNativeMethods.IHTMLElement element)
 {
     this.htmlElement = element;
     this.shimManager = shimManager;
 }
 internal HtmlWindowCollection(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLFramesCollection2 collection) {
     this.htmlFramesCollection2 = collection;
     this.shimManager = shimManager;
     
     Debug.Assert(this.NativeHTMLFramesCollection2 != null, "The window collection object should implement IHTMLFramesCollection2");
 }
 internal HtmlElementEventArgs(HtmlShimManager shimManager, System.Windows.Forms.UnsafeNativeMethods.IHTMLEventObj eventObj)
 {
     this.htmlEventObj = eventObj;
     this.shimManager  = shimManager;
 }
 internal HtmlElementEventArgs(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLEventObj eventObj) {
     this.htmlEventObj = eventObj;
     Debug.Assert(this.NativeHTMLEventObj != null, "The event object should implement IHTMLEventObj");
     
     this.shimManager = shimManager;
 }
 internal HtmlWindow(HtmlShimManager shimManager, System.Windows.Forms.UnsafeNativeMethods.IHTMLWindow2 win)
 {
     this.htmlWindow2 = win;
     this.shimManager = shimManager;
 }
 internal HtmlElementCollection(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLElementCollection elements)
 {
     this.htmlElementCollection = elements;
     this.elementsArray = null;
     this.shimManager = shimManager;
 }
 internal HtmlDocument(HtmlShimManager shimManager, System.Windows.Forms.UnsafeNativeMethods.IHTMLDocument doc)
 {
     this.htmlDocument2 = (System.Windows.Forms.UnsafeNativeMethods.IHTMLDocument2) doc;
     this.shimManager = shimManager;
 }