//--------------------------------------------------------------------// // M e t h o d // // m e t r i c s S a v e F i l e R p t // //--------------------------------------------------------------------// // // // Store current target report file metrics data. // // // //--------------------------------------------------------------------// public static void metricsSaveFileRpt( ToolCommonData.eToolIds crntToolId, ReportCore.eRptFileFmt rptFileFmt, ReportCore.eRptChkMarks rptChkMarks, Boolean flagOptRptWrap) { Int32 tmpFmt = (Int32)rptFileFmt; Int32 tmpChkMarks = (Int32)rptChkMarks; if (crntToolId == ToolCommonData.eToolIds.MakeOverlay) { ToolMakeOverlayPersist.saveDataRpt(tmpFmt); } else if (crntToolId == ToolCommonData.eToolIds.PrintLang) { ToolPrintLangPersist.saveDataRpt(tmpFmt, tmpChkMarks, flagOptRptWrap); } else if (crntToolId == ToolCommonData.eToolIds.PrnAnalyse) { ToolPrnAnalysePersist.saveDataRpt(tmpFmt); } else if (crntToolId == ToolCommonData.eToolIds.SoftFontGenerate) { ToolSoftFontGenPersist.saveDataRpt(tmpFmt, tmpChkMarks); } else if (crntToolId == ToolCommonData.eToolIds.StatusReadback) { ToolStatusReadbackPersist.saveDataRpt(tmpFmt); } else if (crntToolId == ToolCommonData.eToolIds.SymbolSetGenerate) { ToolSymbolSetGenPersist.saveDataRpt(tmpFmt); } }
//--------------------------------------------------------------------// // M e t h o d // // m e t r i c s S a v e // //--------------------------------------------------------------------// // // // Save current metrics to persistent storage. // // // //--------------------------------------------------------------------// public void metricsSave() { ToolMakeOverlayPersist.saveDataCommon(_prnFilename); ToolMakeOverlayPersist.saveDataPCL(_ovlFilenamePCL, _flagRestoreCursorPCL, _flagOvlEncPCL, _macroIdPCL); ToolMakeOverlayPersist.saveDataPCLXL(_ovlFilenamePCLXL, _flagRestoreGSPCLXL, _flagOvlEncPCLXL, _streamNamePCLXL); }
//--------------------------------------------------------------------// // M e t h o d // // m e t r i c s L o a d // //--------------------------------------------------------------------// // // // Load metrics from persistent storage. // // // //--------------------------------------------------------------------// private void metricsLoad() { ToolMakeOverlayPersist.loadDataCommon(ref _prnFilename); ToolMakeOverlayPersist.loadDataPCL(ref _ovlFilenamePCL, ref _flagRestoreCursorPCL, ref _flagOvlEncPCL, ref _macroIdPCL); ToolMakeOverlayPersist.loadDataPCLXL(ref _ovlFilenamePCLXL, ref _flagRestoreGSPCLXL, ref _flagOvlEncPCLXL, ref _streamNamePCLXL); }
//--------------------------------------------------------------------// // M e t h o d // // m e t r i c s L o a d F i l e R p t // //--------------------------------------------------------------------// // // // Load current target report file metrics data. // // // //--------------------------------------------------------------------// public static void metricsLoadFileRpt( ToolCommonData.eToolIds crntToolId) { Int32 tmpFmt = 0, tmpChkMarks = 0; Byte indxFmtNA = (Byte)ReportCore.eRptFileFmt.NA; Byte indxOptChkNA = (Byte)ReportCore.eRptChkMarks.NA; Boolean flagNA = false; //----------------------------------------------------------------// if (crntToolId == ToolCommonData.eToolIds.MakeOverlay) { ToolMakeOverlayPersist.loadDataRpt(ref tmpFmt); } else if (crntToolId == ToolCommonData.eToolIds.PrintLang) { ToolPrintLangPersist.loadDataRpt(ref tmpFmt, ref tmpChkMarks, ref _flagOptRptWrap); } else if (crntToolId == ToolCommonData.eToolIds.PrnAnalyse) { ToolPrnAnalysePersist.loadDataRpt(ref tmpFmt); } else if (crntToolId == ToolCommonData.eToolIds.SoftFontGenerate) { ToolSoftFontGenPersist.loadDataRpt(ref tmpFmt, ref tmpChkMarks); } else if (crntToolId == ToolCommonData.eToolIds.StatusReadback) { ToolStatusReadbackPersist.loadDataRpt(ref tmpFmt); } else if (crntToolId == ToolCommonData.eToolIds.SymbolSetGenerate) { ToolSymbolSetGenPersist.loadDataRpt(ref tmpFmt); } else { flagNA = true; } //----------------------------------------------------------------// if (flagNA) { tmpFmt = indxFmtNA; } else { if (tmpFmt >= indxFmtNA) { tmpFmt = 0; } if (tmpChkMarks >= indxOptChkNA) { tmpChkMarks = 0; } } _rptFileFmt = (ReportCore.eRptFileFmt)tmpFmt; _rptChkMarks = (ReportCore.eRptChkMarks)tmpChkMarks; }