Пример #1
0
 public static void InitStepinput(SDProject sdProject, SDTargetFx targetFx, string outputPath, string currentLanguage, ChmStrings docStrings, ChmStrings chmStrings, ChmConfig chmConfig)
 {
     SDProject = sdProject;
     CurrentTargetFx = targetFx;
     OutputPath = outputPath;
     TmpPath = Path.Combine(outputPath, "tmp-" + currentLanguage);
     CurrentLanguage = currentLanguage;
     DocStrings = docStrings;
     ChmStrings = chmStrings;
     ChmConfig = chmConfig;
 }
Пример #2
0
        public override void ProcessStep(ChmExporter chmExporter)
        {
            _tmpFilepath = chmExporter.TmpPath;
            _currentLanguage = chmExporter.CurrentLanguage;
            _repository = chmExporter.Repository;
            _chmConfig = chmExporter.ChmConfig;
            _strings = chmExporter.CurrentStrings;

            chmExporter.ExecuteOnStepProgress(10);
            chmExporter.ExecuteOnStepMessage(chmExporter.ChmStrings.CreateStylesheet);
            CreateStylesheet();

            chmExporter.ExecuteOnStepProgress(15);
            chmExporter.ExecuteOnStepMessage(chmExporter.ChmStrings.CreateIndex);
            CreateIndexFile();

            chmExporter.ExecuteOnStepProgress(20);
            chmExporter.ExecuteOnStepMessage(chmExporter.ChmStrings.CreateToc);
            CreateTocFile();

            chmExporter.ExecuteOnStepProgress(25);
            chmExporter.ExecuteOnStepMessage(chmExporter.ChmStrings.CreateProject);
            CreateProjectFile();

            chmExporter.ExecuteOnStepProgress(30);
            chmExporter.ExecuteOnStepMessage(chmExporter.ChmStrings.CreateArticles);
            CreateArticleFiles();

            chmExporter.ExecuteOnStepProgress(35);
            chmExporter.ExecuteOnStepMessage(chmExporter.ChmStrings.CreateNamespaces);
            CreateNamespaceFiles();

            chmExporter.ExecuteOnStepProgress(40);
            chmExporter.ExecuteOnStepMessage(chmExporter.ChmStrings.CreateTypes);
            CreateTypeFiles();

            chmExporter.ExecuteOnStepProgress(45);
            chmExporter.ExecuteOnStepMessage(chmExporter.ChmStrings.CreateFields);
            CreateFieldFiles();

            chmExporter.ExecuteOnStepProgress(50);
            chmExporter.ExecuteOnStepMessage(chmExporter.ChmStrings.CreateEvents);
            CreateEventFiles();

            chmExporter.ExecuteOnStepProgress(55);
            chmExporter.ExecuteOnStepMessage(chmExporter.ChmStrings.CreateProperties);
            CreatePropertyFiles();

            chmExporter.ExecuteOnStepProgress(60);
            chmExporter.ExecuteOnStepMessage(chmExporter.ChmStrings.CreateMethods);
            CreateMethodFiles();

            chmExporter.CurrentStep = new CompileStep();
        }
Пример #3
0
 public static void InitStepinput(SDProject sdProject, SDTargetFx targetFx, string outputPath, string currentLanguage, ChmStrings docStrings, ChmStrings chmStrings, ChmConfig chmConfig)
 {
     SDProject       = sdProject;
     CurrentTargetFx = targetFx;
     OutputPath      = outputPath;
     TmpPath         = Path.Combine(outputPath, "tmp-" + currentLanguage);
     CurrentLanguage = currentLanguage;
     DocStrings      = docStrings;
     ChmStrings      = chmStrings;
     ChmConfig       = chmConfig;
 }