//--------------------------------------------------------------------// // 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() { ToolImageBitmapPersist.saveDataCommon(_indxPDL, _bitmapFilename, (Int32)(_destPosX * 100), (Int32)(_destPosY * 100), _destScalePercentX, _destScalePercentY, _indxRasterResolutionPCL); ToolImageBitmapPersist.saveDataPCL("PCL", _indxOrientationPCL, _indxPaperSizePCL, _indxPaperTypePCL); ToolImageBitmapPersist.saveDataPCL("PCLXL", _indxOrientationPCLXL, _indxPaperSizePCLXL, _indxPaperTypePCLXL); }
//--------------------------------------------------------------------// // M e t h o d // // m e t r i c s S a v e F i l e C a p t // //--------------------------------------------------------------------// // // // Store current target File capture metrics data. // // // //--------------------------------------------------------------------// public static void metricsSaveFileCapt( ToolCommonData.eToolIds crntToolId, ToolCommonData.eToolSubIds crntToolSubId, ToolCommonData.ePrintLang crntPDL, String saveFilename) { _targetType = eTarget.File; _saveFilename = saveFilename; TargetPersist.saveDataCommon((Int32)_targetType); //----------------------------------------------------------------// if (crntToolId == ToolCommonData.eToolIds.FontSample) { ToolFontSamplePersist.saveDataCapture(crntPDL, saveFilename); } else if (crntToolId == ToolCommonData.eToolIds.FormSample) { ToolFormSamplePersist.saveDataCapture(crntPDL, saveFilename); } else if (crntToolId == ToolCommonData.eToolIds.ImageBitmap) { ToolImageBitmapPersist.saveDataCapture(crntPDL, saveFilename); } else if (crntToolId == ToolCommonData.eToolIds.PrintArea) { ToolPrintAreaPersist.saveDataCapture(crntPDL, saveFilename); } else if (crntToolId == ToolCommonData.eToolIds.PrnPrint) { ToolPrnPrintPersist.saveDataCapture(crntPDL, saveFilename); } else if (crntToolId == ToolCommonData.eToolIds.StatusReadback) { ToolStatusReadbackPersist.saveDataCapture(crntPDL, saveFilename); } else if (crntToolId == ToolCommonData.eToolIds.TrayMap) { ToolTrayMapPersist.saveDataCapture(crntPDL, saveFilename); } //----------------------------------------------------------------// else if (crntToolId == ToolCommonData.eToolIds.MiscSamples) { ToolMiscSamplesPersist.saveDataCapture(crntToolSubId, crntPDL, saveFilename); } //----------------------------------------------------------------// // else // Tool MakeOverlay // ***** Do DUMMY procs ? ***** // // Tool PrintLang // Tool PrnAnalyse // Tool SoftFontGen // Tool SymbolSetGen // Tool XXXDiags }
//--------------------------------------------------------------------// // M e t h o d // // m e t r i c s L o a d F i l e C a p t // //--------------------------------------------------------------------// // // // Load current target File capture metrics data. // // // //--------------------------------------------------------------------// public static void metricsLoadFileCapt( ToolCommonData.eToolIds crntToolId, ToolCommonData.eToolSubIds crntToolSubId, ToolCommonData.ePrintLang crntPDL) { //----------------------------------------------------------------// if (crntToolId == ToolCommonData.eToolIds.FontSample) { ToolFontSamplePersist.loadDataCapture(crntPDL, ref _saveFilename); } else if (crntToolId == ToolCommonData.eToolIds.FormSample) { ToolFormSamplePersist.loadDataCapture(crntPDL, ref _saveFilename); } else if (crntToolId == ToolCommonData.eToolIds.ImageBitmap) { ToolImageBitmapPersist.loadDataCapture(crntPDL, ref _saveFilename); } else if (crntToolId == ToolCommonData.eToolIds.PrintArea) { ToolPrintAreaPersist.loadDataCapture(crntPDL, ref _saveFilename); } else if (crntToolId == ToolCommonData.eToolIds.PrnPrint) { ToolPrnPrintPersist.loadDataCapture(crntPDL, ref _saveFilename); } else if (crntToolId == ToolCommonData.eToolIds.StatusReadback) { ToolStatusReadbackPersist.loadDataCapture(crntPDL, ref _saveFilename); } else if (crntToolId == ToolCommonData.eToolIds.TrayMap) { ToolTrayMapPersist.loadDataCapture(crntPDL, ref _saveFilename); } //----------------------------------------------------------------// else if (crntToolId == ToolCommonData.eToolIds.MiscSamples) { ToolMiscSamplesPersist.loadDataCapture( crntToolSubId, crntPDL, ref _saveFilename); } //----------------------------------------------------------------// else { // Tool MakeOverlay // ***** Do DUMMY procs ? ***** // // Tool PrintLang // Tool PrnAnalyse // Tool SoftFontGen // Tool SymbolSetGen // Tool XXXDiags _saveFilename = ""; } }
//--------------------------------------------------------------------// // 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() { Int32 tempPosX = 100, tempPosY = 100; Int32 tempRasterRes = 0; ToolImageBitmapPersist.loadDataCommon(ref _indxPDL, ref _bitmapFilename, ref tempPosX, ref tempPosY, ref _destScalePercentX, ref _destScalePercentY, ref tempRasterRes); if ((_indxPDL < 0) || (_indxPDL >= _ctPDLs)) { _indxPDL = 0; } _crntPDL = (ToolCommonData.ePrintLang)_subsetPDLs[_indxPDL]; _destPosX = (Single)(tempPosX / 100); _destPosY = (Single)(tempPosY / 100); if ((tempRasterRes < 0) || (tempRasterRes >= _ctRasterResolutions)) { _indxRasterResolutionPCL = 0; } else { _indxRasterResolutionPCL = tempRasterRes; } ToolImageBitmapPersist.loadDataPCL("PCL", ref _indxOrientationPCL, ref _indxPaperSizePCL, ref _indxPaperTypePCL); if ((_indxOrientationPCL < 0) || (_indxOrientationPCL >= _ctOrientations)) { _indxOrientationPCL = 0; } if ((_indxPaperSizePCL < 0) || (_indxPaperSizePCL >= _ctPaperSizes)) { _indxPaperSizePCL = 0; } if ((_indxPaperTypePCL < 0) || (_indxPaperTypePCL >= _ctPaperTypes)) { _indxPaperTypePCL = 0; } ToolImageBitmapPersist.loadDataPCL("PCLXL", ref _indxOrientationPCLXL, ref _indxPaperSizePCLXL, ref _indxPaperTypePCLXL); if ((_indxOrientationPCLXL < 0) || (_indxOrientationPCLXL >= _ctOrientations)) { _indxOrientationPCLXL = 0; } if ((_indxPaperSizePCLXL < 0) || (_indxPaperSizePCLXL >= _ctPaperSizes)) { _indxPaperSizePCLXL = 0; } if ((_indxPaperTypePCLXL < 0) || (_indxPaperTypePCLXL >= _ctPaperTypes)) { _indxPaperTypePCLXL = 0; } }