//--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s L o a d D a t a P a t t e r n                        //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Load current metrics from persistent storage.                      //
        //                                                                    //
        //--------------------------------------------------------------------//

        public void metricsLoadDataPattern()
        {
            Int32 tmpInt = 0;

            ToolMiscSamplesPersist.loadDataTypePattern(
                "PCL",
                ref tmpInt,
                ref _flagPatternFormAsMacroPCL);

            if (tmpInt == (Int32)ePatternType.XHatch)
            {
                _indxPatternTypePCL = ePatternType.XHatch;
            }
            else
            {
                _indxPatternTypePCL = ePatternType.Shading;
            }

            ToolMiscSamplesPersist.loadDataTypePattern(
                "PCLXL",
                ref tmpInt,
                ref _flagPatternFormAsMacroPCLXL);

            if (tmpInt == (Int32)ePatternType.XHatch)
            {
                _indxPatternTypePCLXL = ePatternType.XHatch;
            }
            else
            {
                _indxPatternTypePCLXL = ePatternType.Shading;
            }
        }
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s S a v e D a t a C o l o u r                          //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Save current metrics to persistent storage.                        //
        //                                                                    //
        //--------------------------------------------------------------------//

        public void metricsSaveDataColour()
        {
            ToolMiscSamplesPersist.saveDataTypeColour(
                "PCL",
                (Int32)_indxColourTypePCL,
                _flagColourFormAsMacroPCL,
                _flagColourFmtHexPCL);

            ToolMiscSamplesPersist.saveDataTypeColourSample(
                "PCL",
                "Imaging",
                _sampleCtPCL_CID,
                _samplesPCL_CID);

            ToolMiscSamplesPersist.saveDataTypeColour(
                "PCLXL",
                (Int32)_indxColourTypePCLXL,
                _flagColourFormAsMacroPCLXL,
                _flagColourFmtHexPCLXL);

            ToolMiscSamplesPersist.saveDataTypeColourSample(
                "PCLXL",
                "Gray",
                _sampleCtPCLXL_RGB,
                _samplesPCLXL_Gray);

            ToolMiscSamplesPersist.saveDataTypeColourSample(
                "PCLXL",
                "RGB",
                _sampleCtPCLXL_RGB,
                _samplesPCLXL_RGB);
        }
Ejemplo n.º 3
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s S a v e D a t a L o g P a g e                        //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Save current metrics to persistent storage.                        //
        // Only relevant to PCL.                                             //
        //                                                                    //
        //--------------------------------------------------------------------//

        public void metricsSaveDataLogPage()
        {
            ToolMiscSamplesPersist.saveDataTypeLogPage("PCL",
                                                       _logPageOffLeftDPt,
                                                       _logPageOffTopDPt,
                                                       _logPageHeightDPt,
                                                       _logPageWidthDPt,
                                                       _flagLogPageFormAsMacroPCL,
                                                       _flagLogPageOptStdPagePCL);
        }
Ejemplo n.º 4
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s S a v e D a t a T x t M o d                          //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Save current metrics to persistent storage.                        //
        //                                                                    //
        //--------------------------------------------------------------------//

        public void metricsSaveDataTxtMod()
        {
            ToolMiscSamplesPersist.saveDataTypeTxtMod(
                "PCL",
                (Int32)_indxTxtModTypePCL,
                _flagTxtModFormAsMacroPCL);

            ToolMiscSamplesPersist.saveDataTypeTxtMod(
                "PCLXL",
                (Int32)_indxPatternTypePCLXL,
                _flagTxtModFormAsMacroPCLXL);
        }
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s S a v e D a t a P a t t e r n                        //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Save current metrics to persistent storage.                        //
        //                                                                    //
        //--------------------------------------------------------------------//

        public void metricsSaveDataPattern()
        {
            ToolMiscSamplesPersist.saveDataTypePattern(
                "PCL",
                (Int32)_indxPatternTypePCL,
                _flagPatternFormAsMacroPCL);

            ToolMiscSamplesPersist.saveDataTypePattern(
                "PCLXL",
                (Int32)_indxPatternTypePCLXL,
                _flagPatternFormAsMacroPCLXL);
        }
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s S a v e D a t a U n i c o d e                        //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Save current metrics to persistent storage.                        //
        // Only relevant to PCL.                                             //
        //                                                                    //
        //--------------------------------------------------------------------//

        public void metricsSaveDataUnicode()
        {
            ToolMiscSamplesPersist.saveDataTypeUnicode(
                "PCL",
                _indxUnicodeFontPCL,
                _unicodeFontVarPCL,
                (Int32)_unicodeUCS2PCL,
                _flagUnicodeFormAsMacroPCL);

            ToolMiscSamplesPersist.saveDataTypeUnicode(
                "PCLXL",
                _indxUnicodeFontPCLXL,
                _unicodeFontVarPCLXL,
                (Int32)_unicodeUCS2PCLXL,
                _flagUnicodeFormAsMacroPCLXL);
        }
Ejemplo n.º 7
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s L o a d D a t a T x t M o d                          //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Load current metrics from persistent storage.                      //
        //                                                                    //
        //--------------------------------------------------------------------//

        public void metricsLoadDataTxtMod()
        {
            Int32 tmpInt = 0;

            ToolMiscSamplesPersist.loadDataTypeTxtMod(
                "PCL",
                ref tmpInt,
                ref _flagTxtModFormAsMacroPCL);

            if (tmpInt == (Int32)eTxtModType.Pat)
            {
                _indxTxtModTypePCL = eTxtModType.Pat;
            }
            else if (tmpInt == (Int32)eTxtModType.Rot)
            {
                _indxTxtModTypePCL = eTxtModType.Rot;
            }
            else
            {
                _indxTxtModTypePCL = eTxtModType.Chr;
            }

            ToolMiscSamplesPersist.loadDataTypeTxtMod(
                "PCLXL",
                ref tmpInt,
                ref _flagTxtModFormAsMacroPCLXL);

            if (tmpInt == (Int32)eTxtModType.Pat)
            {
                _indxTxtModTypePCLXL = eTxtModType.Pat;
            }
            else if (tmpInt == (Int32)eTxtModType.Rot)
            {
                _indxTxtModTypePCLXL = eTxtModType.Rot;
            }
            else
            {
                _indxTxtModTypePCLXL = eTxtModType.Chr;
            }
        }
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s L o a d D a t a U n i c o d e                        //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Load current metrics from persistent storage.                      //
        //                                                                    //
        //--------------------------------------------------------------------//

        public void metricsLoadDataUnicode()
        {
            Int32 tmpInt = 0;

            ToolMiscSamplesPersist.loadDataTypeUnicode(
                "PCL",
                ref _indxUnicodeFontPCL,
                ref _unicodeFontVarPCL,
                ref tmpInt,
                ref _flagUnicodeFormAsMacroPCL);

            _unicodeUCS2PCL = (UInt32)tmpInt;

            ToolMiscSamplesPersist.loadDataTypeUnicode(
                "PCLXL",
                ref _indxUnicodeFontPCLXL,
                ref _unicodeFontVarPCLXL,
                ref tmpInt,
                ref _flagUnicodeFormAsMacroPCLXL);

            _unicodeUCS2PCLXL = (UInt32)tmpInt;
        }
Ejemplo n.º 9
0
        //--------------------------------------------------------------------//
        //                                                        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
        }
Ejemplo n.º 10
0
        //--------------------------------------------------------------------//
        //                                                        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 D a t a C o l o u r                          //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Load current metrics from persistent storage.                      //
        //                                                                    //
        //--------------------------------------------------------------------//

        public void metricsLoadDataColour()
        {
            Int32 tmpInt = 0;

            ToolMiscSamplesPersist.loadDataTypeColour(
                "PCL",
                ref tmpInt,
                ref _flagColourFormAsMacroPCL,
                ref _flagColourFmtHexPCL);

            if (tmpInt == (Int32)eColourType.PCL_Simple)
            {
                _indxColourTypePCL = eColourType.PCL_Simple;
            }
            else
            {
                _indxColourTypePCL = eColourType.PCL_Imaging;
            }

            _samplesPCL_CID = new Int32 [_sampleCtPCL_CID];

            ToolMiscSamplesPersist.loadDataTypeColourSample(
                "PCL",
                "Imaging",
                _sampleCtPCL_CID,
                ref _samplesPCL_CID,
                false);

            //----------------------------------------------------------------//

            ToolMiscSamplesPersist.loadDataTypeColour(
                "PCLXL",
                ref tmpInt,
                ref _flagColourFormAsMacroPCLXL,
                ref _flagColourFmtHexPCLXL);

            if (tmpInt == (Int32)eColourType.PCLXL_Gray)
            {
                _indxColourTypePCLXL = eColourType.PCLXL_Gray;
            }
            else
            {
                _indxColourTypePCLXL = eColourType.PCLXL_RGB;
            }

            _samplesPCLXL_Gray = new Int32 [_sampleCtPCLXL_Gray];

            ToolMiscSamplesPersist.loadDataTypeColourSample(
                "PCLXL",
                "Gray",
                _sampleCtPCLXL_Gray,
                ref _samplesPCLXL_Gray,
                true);

            _samplesPCLXL_RGB = new Int32 [_sampleCtPCLXL_RGB];

            ToolMiscSamplesPersist.loadDataTypeColourSample(
                "PCLXL",
                "RGB",
                _sampleCtPCLXL_RGB,
                ref _samplesPCLXL_RGB,
                false);
        }