Пример #1
0
 /// ------------------------------------------------------------------------------------
 public static bool ToWordXml(PaProject project, CVChartType chartType,
                              string outputFileName, CVChartGrid grid, bool openAfterExport)
 {
     return(Process(project, chartType, outputFileName, OutputFormat.WordXml, grid,
                    openAfterExport, Properties.Settings.Default.AppThatOpensWordXml, true,
                    Pipeline.ProcessType.ExportToWord));
 }
        /// ------------------------------------------------------------------------------------
        protected CVChartBuilder(PaProject project, CVChartType chartType) : base(project)
        {
            _chartType = chartType;

            _outputFileName = (chartType == CVChartType.Consonant ?
                               _project.ConsonantChartLayoutFile : _project.VowelChartLayoutFile);
        }
Пример #3
0
 /// ------------------------------------------------------------------------------------
 public static bool ToHtml(PaProject project, CVChartType chartType,
                           string outputFileName, CVChartGrid grid, bool openAfterExport,
                           bool showExportProgress)
 {
     return(Process(project, chartType, outputFileName, OutputFormat.XHTML, grid,
                    openAfterExport, Properties.Settings.Default.AppThatOpensHtml, showExportProgress,
                    Pipeline.ProcessType.ExportToXHTML));
 }
Пример #4
0
        /// ------------------------------------------------------------------------------------
        private static bool Process(PaProject project, CVChartType chartType,
                                    string outputFileName, OutputFormat outputFormat, DataGridView grid,
                                    bool openAfterExport, string appToOpenOutput, bool showExportProgress,
                                    Pipeline.ProcessType finalPipeline)

        {
            return(Process(project, chartType, outputFileName, outputFormat, grid,
                           openAfterExport, appToOpenOutput, showExportProgress,
                           Pipeline.ProcessType.ExportCVChart, finalPipeline));
        }
        /// ------------------------------------------------------------------------------------
        public static bool Process(PaProject project, CVChartType chartType)
        {
            if (project == null)
            {
                return(false);
            }

            App.MsgMediator.SendMessage("BeforeBuildCVChart", new object[] { project, chartType });
            var bldr        = new CVChartBuilder(project, chartType);
            var buildResult = bldr.InternalProcess();

            App.MsgMediator.SendMessage("AfterBuildCVChart", new object[] { project, chartType, buildResult });

            return(buildResult);
        }
Пример #6
0
        /// ------------------------------------------------------------------------------------
        private static bool Process(PaProject project, CVChartType chartType,
                                    string outputFileName, OutputFormat outputFormat, DataGridView grid,
                                    bool openAfterExport, string appToOpenOutput, bool showExportProgress,
                                    params Pipeline.ProcessType[] pipeline)
        {
            var exporter = new CVChartExporter(project, chartType, outputFileName, outputFormat, grid);

            exporter.m_showExportProgress = showExportProgress;

            bool result = exporter.InternalProcess(Properties.Settings.Default.KeepTempCVChartExportFile, pipeline);

            if (result && openAfterExport)
            {
                CallAppToExportedFile(appToOpenOutput, outputFileName);
            }

            return(result);
        }
Пример #7
0
 /// ------------------------------------------------------------------------------------
 protected CVChartExporter(PaProject project, CVChartType chartType,
                           string outputFileName, OutputFormat outputFormat, DataGridView grid)
     : base(project, outputFileName, outputFormat, grid)
 {
     m_chartType = chartType;
 }
Пример #8
0
 /// ------------------------------------------------------------------------------------
 public static bool ToHtml(PaProject project, CVChartType chartType,
                           string outputFileName, CVChartGrid grid, bool openAfterExport)
 {
     return(ToHtml(project, chartType, outputFileName, grid, openAfterExport, true));
 }