private static IDocumentBrowser CreateLegacyDocumentBrowser( ServiceProvider serviceProvider )
        {
            var browser = new LegacyDocumentBrowser();
            browser.Init( serviceProvider );

            browser.DownloadController.Options = BrowserOptions.NoActiveXDownload |
                BrowserOptions.NoBehaviors | BrowserOptions.NoJava | BrowserOptions.NoScripts |
                BrowserOptions.Utf8;

            return browser;
        }
Beispiel #2
0
        public BrowserForm()
        {
            InitializeComponent();

            myDocumentBrowser = new LegacyDocumentBrowser( myBrowser );
            myDocumentBrowser.Browser.Navigating += myBrowser_Navigating;
            myDocumentBrowser.Browser.DocumentCompleted += myBrowser_DocumentCompleted;

            // disable links
            // TODO: we cannot use this, it disables navigation in general (Navigate() too)
            //myBrowser.AllowNavigation = false;

            // TODO: how to disable images in browser

            myMarkupDocument = new MarkupDocument();
            myMarkupDocument.ValidationChanged += SeriesName_ValidationChanged;

            myDimension.DataSource = Enum.GetValues( typeof( CellDimension ) );
        }