Пример #1
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s S a v e W i n P r i n t e r                          //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Store current target windows printer metrics data.                 //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static void metricsSaveWinPrinter(String printerName)
        {
            _targetType = eTarget.WinPrinter;

            _winPrinterName = printerName;

            TargetPersist.saveDataWinPrinter((Int32)_targetType,
                                             _winPrinterName);
        }
Пример #2
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s S a v e N e t P r i n t e r                          //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Store current target network printer metrics data.                 //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static void metricsSaveNetPrinter(
            String netPrinterAddress,
            Int32 netPrinterPort,
            Int32 netPrinterTimeoutSend,
            Int32 netPrinterTimeoutReceive)
        {
            _targetType = eTarget.NetPrinter;

            _netPrinterAddress        = netPrinterAddress;
            _netPrinterPort           = netPrinterPort;
            _netPrinterTimeoutSend    = netPrinterTimeoutSend;
            _netPrinterTimeoutReceive = netPrinterTimeoutReceive;

            TargetPersist.saveDataNetPrinter((Int32)_targetType,
                                             _netPrinterAddress,
                                             _netPrinterPort,
                                             _netPrinterTimeoutSend,
                                             _netPrinterTimeoutReceive);
        }
Пример #3
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // i n i t i a l i s e S e t t i n g s                                //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Load current target metrics data from regisry.                     //
        // Note that 'capture file' data is not relevant for those tools      //
        // which don't output a printer ready job.                            //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static void initialiseSettings()
        {
            Int32 temp = 0;

            TargetPersist.loadDataCommon(ref temp);

            if (temp < (Int32)eTarget.Max)
            {
                _targetType = (eTarget)temp;
            }
            else
            {
                _targetType = eTarget.NetPrinter;
            }

            TargetPersist.loadDataNetPrinter(ref _netPrinterAddress,
                                             ref _netPrinterPort,
                                             ref _netPrinterTimeoutSend,
                                             ref _netPrinterTimeoutReceive);

            TargetPersist.loadDataWinPrinter(ref _winPrinterName);
        }
Пример #4
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s S a v e T y p e                                      //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Store current target type index.                                   //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static void metricsSaveType(eTarget type)
        {
            _targetType = type;

            TargetPersist.saveDataCommon((Int32)_targetType);
        }
Пример #5
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
        }
Пример #6
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s S a v e                                              //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Save the current settings.                                         //
        //                                                                    //
        //--------------------------------------------------------------------//

        private void metricsSave()
        {
            TargetPersist.saveDataWorkFolder(_workFoldername);
        }
Пример #7
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // l o a d W o r k F o l d e r N a m e                                //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Load default work folder name from registry.                       //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static void loadWorkFoldername()
        {
            TargetPersist.loadDataWorkFolder(ref _defWorkFolder);
        }