Пример #1
0
        // Layout the pages for a set of course designators.
        List <CoursePage> LayoutPages(IEnumerable <CourseDesignator> courseDesignators)
        {
            CoursePageLayout pageLayout = new CoursePageLayout(eventDB, symbolDB, controller, appearance,
                                                               coursePdfSettings.CropLargePrintArea);

            return(pageLayout.LayoutPages(courseDesignators));
        }
Пример #2
0
        // Layout the pages for a set of course designators.
        List <CoursePage> LayoutPages(IEnumerable <CourseDesignator> courseDesignators)
        {
            CoursePageLayout pageLayout = new CoursePageLayout(eventDB, symbolDB, controller, appearance,
                                                               coursePdfSettings.CropLargePrintArea);

            List <CoursePage> pages = pageLayout.LayoutPages(courseDesignators);

            if (coursePdfSettings.PrintMultipleCoursesPerPage)
            {
                // position pages on single piece of paper
                bool  bFirst    = true;
                float printLeft = 0;
                foreach (CoursePage page in pages)
                {
                    if (bFirst)
                    {
                        bFirst            = false;
                        page.startNewPage = true;
                        printLeft         = page.printRectangle.Right;
                    }
                    else
                    {
                        page.startNewPage     = false;
                        page.printRectangle.X = printLeft;
                    }
                }
            }
            return(pages);
        }
Пример #3
0
        // Layout all the pages, return the total number of pages.
        protected override int LayoutPages(PageSettings pageSettings, SizeF printArea)
        {
            pageSettings.PrinterSettings.Copies  = (short)coursePrintSettings.Count;
            pageSettings.PrinterSettings.Collate = false;      // print all of one course, then all of next, etc.

            CoursePageLayout pageLayout = new CoursePageLayout(eventDB, symbolDB, controller, appearance, coursePrintSettings.CropLargePrintArea);
            IEnumerable <CourseDesignator> courseDesignators = QueryEvent.EnumerateCourseDesignators(eventDB, coursePrintSettings.CourseIds, coursePrintSettings.VariationChoicesPerCourse, !coursePrintSettings.PrintMapExchangesOnOneMap);

            pages = pageLayout.LayoutPages(courseDesignators);

            return(pages.Count);            // total number of pages.
        }
Пример #4
0
        // Layout the pages for a set of course designators.
        List<CoursePage> LayoutPages(IEnumerable<CourseDesignator> courseDesignators)
        {
            CoursePageLayout pageLayout = new CoursePageLayout(eventDB, symbolDB, controller, appearance,
                                                                coursePdfSettings.CropLargePrintArea);

            return pageLayout.LayoutPages(courseDesignators);
        }
Пример #5
0
        // Layout all the pages, return the total number of pages.
        protected override int LayoutPages(PageSettings pageSettings, SizeF printArea)
        {
            pageSettings.PrinterSettings.Copies = (short)coursePrintSettings.Count;
            pageSettings.PrinterSettings.Collate = false;      // print all of one course, then all of next, etc.

            CoursePageLayout pageLayout = new CoursePageLayout(eventDB, symbolDB, controller, appearance, coursePrintSettings.CropLargePrintArea);
            IEnumerable<CourseDesignator> courseDesignators = QueryEvent.EnumerateCourseDesignators(eventDB, coursePrintSettings.CourseIds, coursePrintSettings.VariationChoicesPerCourse, !coursePrintSettings.PrintMapExchangesOnOneMap);
            pages = pageLayout.LayoutPages(courseDesignators);

            return pages.Count;            // total number of pages.
        }