示例#1
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Controller objects
            automation = new Automation();
            navigation = new Navigation();
            htmlDoc    = new HTMLDoc();
            dataGrid   = new Controller.DataGrid();
            webMiner   = new WebMiner();
            rnd        = new Random();

            // Layered prediction
            statisticalPrediction = new StatisticalPrediction();
            uIComponent           = new UIContexter();
            userRule = new UserRule();

            // Model Objects
            browserData = new BrowserData();
            dBAccess    = new SQLiteAccess();
            formData    = new FormData();

            // View objects
            //browserView = new BrowserView();

            Application.Run(formNavi = new FormNavi());
        }
示例#2
0
        private static void CreateChapterFile(string p_inputPath, ref HTMLDoc p_html, ref string p_fileName)
        {
            // read in original files contents

            List<string> lines = InstantReader.ReadHTML_Static(p_inputPath);

            string outPath = HTMLfromWord.GetOutPath(p_inputPath);

            // prepare html document data

            HTMLDoc doc = new HTMLDoc();
            doc.RawLines = lines;
            doc.FilePath = outPath;

            doc.ParseContents();

            // remove unwanted Word nodes

            doc.RemoveIfDefs();

            doc.RemoveDeadLinks();

               //         string summaryPath = outPath.Replace(".inc.php", "_summary.txt");
               //         doc.PrintNodeSummary(summaryPath);

            // modify remaining nodes

            doc.FormatHyperlinks();

            doc.IncreaseFontSize();

              //      doc.FixImageLocation(true);

            doc.AddSectionLinks();

            doc.EnforceSmallCaps();

            doc.LiberateTables();

            doc.FixBulletList();

            doc.RemoveDoubleColon("b");
            doc.RemoveDoubleColon("u");

            // output new file contents to php-include file

            lines = doc.ToLines();

            TextRight.WriteFullFile(outPath, lines);

            p_html = doc;
            p_fileName = outPath;
        }
示例#3
0
 public IHTMLElementCollection FindElementsByName(string name)
 {
     return(HTMLDoc.getElementsByName(name));
 }