Exemplo n.º 1
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // g e n e r a t e O v e r l a y D e l e t e s                        //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Delete overlays.                                                   //
        //                                                                    //
        //--------------------------------------------------------------------//

        private static void generateOverlayDeletes(BinaryWriter prnWriter,
                                                   Int32 formCountFront,
                                                   Int32 formCountRear,
                                                   String[]    formNamesFront,
                                                   String[]    formNamesRear)
        {
            for (Int32 i = 0; i < formCountFront; i++)
            {
                PCLXLWriter.streamRemove(prnWriter, formNamesFront[i]);
            }

            for (Int32 i = 0; i < formCountRear; i++)
            {
                PCLXLWriter.streamRemove(prnWriter, formNamesRear[i]);
            }
        }
Exemplo n.º 2
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // g e n e r a t e J o b T r a i l e r                                //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Write termination sequences to output file.                        //
        //                                                                    //
        //--------------------------------------------------------------------//

        private static void generateJobTrailer(BinaryWriter prnWriter,
                                               Boolean flagStreamRemove,
                                               Boolean flagMainForm,
                                               Boolean flagRearForm,
                                               String formNameMain,
                                               String formNameRear)
        {
            if (flagStreamRemove)
            {
                if (flagMainForm)
                {
                    PCLXLWriter.streamRemove(prnWriter,
                                             formNameMain);
                }

                if (flagRearForm)
                {
                    PCLXLWriter.streamRemove(prnWriter,
                                             formNameRear);
                }
            }

            PCLXLWriter.stdJobTrailer(prnWriter, false, "");
        }