예제 #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;
        }
예제 #2
0
        internal HtmlElement(HtmlShimManager shimManager, IHTMLElement element)
        {
            htmlElement = element;
            Debug.Assert(NativeHtmlElement != null, "The element object should implement IHTMLElement");

            this.shimManager = shimManager;
        }
예제 #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;
        }
예제 #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;
        }
예제 #5
0
        internal HtmlElementEventArgs(HtmlShimManager shimManager, IHTMLEventObj eventObj)
        {
            NativeHTMLEventObj = eventObj;
            Debug.Assert(NativeHTMLEventObj is not null, "The event object should implement IHTMLEventObj");

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

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

            _shimManager = shimManager;
        }
예제 #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");
        }
예제 #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;
        }
예제 #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");
 }
예제 #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");
 }
예제 #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;
        }
예제 #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;

        }
예제 #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;

        }
예제 #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;
 }
예제 #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");
 }
예제 #22
0
 internal HtmlElementCollection(HtmlShimManager shimManager, HtmlElement[] array) {
     this.htmlElementCollection = null;
     this.elementsArray = array;
     this.shimManager = shimManager;
 }
예제 #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;
 }
예제 #25
0
 internal HtmlElementCollection(HtmlShimManager shimManager, HtmlElement[] array)
 {
     htmlElementCollection = null;
     elementsArray         = array;
     this.shimManager      = shimManager;
 }
예제 #26
0
 internal HtmlWindowCollection(HtmlShimManager shimManager, UnsafeNativeMethods.IHTMLFramesCollection2 collection)
 {
     this.htmlFramesCollection2 = collection;
     this.shimManager           = shimManager;
 }
예제 #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;
 }