Examples of SimplePageMaster


Examples of org.apache.fop.fo.pagination.SimplePageMaster

        }
       
        private Page cacheNextPage(int index, boolean isBlank, boolean isLastPage) {
            try {
                String pageNumberString = pageSeq.makeFormattedPageNumber(index);
                SimplePageMaster spm = pageSeq.getNextSimplePageMaster(
                        index, (startPageOfPageSequence == index), isLastPage, isBlank);
                   
                Region body = spm.getRegion(FO_REGION_BODY);
                if (!pageSeq.getMainFlow().getFlowName().equals(body.getRegionName())) {
                    // this is fine by the XSL Rec (fo:flow's flow-name can be mapped to
                    // any region), but we don't support it yet.
                    throw new FOPException("Flow '" + pageSeq.getMainFlow().getFlowName()
                        + "' does not map to the region-body in page-master '"
                        + spm.getMasterName() + "'.  FOP presently "
                        + "does not support this.");
                }
                Page page = new Page(spm, index, pageNumberString, isBlank);
                cachedPages.add(page);
                return page;
View Full Code Here

Examples of org.apache.fop.fo.pagination.SimplePageMaster

     */
    public void startPageSequence(PageSequence pageSeq) {
        // get the layout master set
        // setup the pages for this sequence
        String name = pageSeq.getMasterReference();
        SimplePageMaster spm = pageSeq.getRoot().getLayoutMasterSet().getSimplePageMaster(name);
        if (spm == null) {
            PageSequenceMaster psm = pageSeq.getRoot().getLayoutMasterSet().getPageSequenceMaster(name);
        } else {
            // create simple master with regions
            MIFElement prop = new MIFElement("PageType");
View Full Code Here

Examples of org.apache.fop.fo.pagination.SimplePageMaster

    /** {@inheritDoc} */
    public void startPageSequence(PageSequence pageSeq) {
        // get the layout master set
        // setup the pages for this sequence
        String name = pageSeq.getMasterReference();
        SimplePageMaster spm = pageSeq.getRoot().getLayoutMasterSet().getSimplePageMaster(name);
        if (spm == null) {
            PageSequenceMaster psm
                = pageSeq.getRoot().getLayoutMasterSet().getPageSequenceMaster(name);
        } else {
            // create simple master with regions
View Full Code Here

Examples of org.apache.fop.fo.pagination.SimplePageMaster

            //read page size and margins, if specified

            String reference = pageSeq.getMasterReference();

            SimplePageMaster pagemaster
                    = pageSeq.getRoot().getLayoutMasterSet().getSimplePageMaster(reference);

            //only simple-page-master supported, so pagemaster may be null
            if (pagemaster != null) {
                sect.getRtfAttributes().set(
View Full Code Here

Examples of org.apache.fop.fo.pagination.SimplePageMaster

        }
       
        private void cacheNextPageViewport(int index, boolean bIsBlank) {
            try {
                String pageNumberString = pageSeq.makeFormattedPageNumber(index);
                SimplePageMaster spm = pageSeq.getNextSimplePageMaster(
                        index, (startPageOfPageSequence == index), bIsBlank);
                   
                Region body = spm.getRegion(FO_REGION_BODY);
                if (!pageSeq.getMainFlow().getFlowName().equals(body.getRegionName())) {
                    // this is fine by the XSL Rec (fo:flow's flow-name can be mapped to
                    // any region), but we don't support it yet.
                    throw new FOPException("Flow '" + pageSeq.getMainFlow().getFlowName()
                        + "' does not map to the region-body in page-master '"
                        + spm.getMasterName() + "'.  FOP presently "
                        + "does not support this.");
                }
                PageViewport pv = new PageViewport(spm, pageNumberString, bIsBlank);
                cachedPageViewports.add(pv);
            } catch (FOPException e) {
View Full Code Here

Examples of org.apache.fop.fo.pagination.SimplePageMaster

            //read page size and margins, if specified

            String reference = pageSeq.getMasterReference();

            SimplePageMaster pagemaster
                    = pageSeq.getRoot().getLayoutMasterSet().getSimplePageMaster(reference);

            //only simple-page-master supported, so pagemaster may be null
            if (pagemaster != null) {
                sect.getRtfAttributes().set(
View Full Code Here

Examples of org.apache.fop.fo.pagination.SimplePageMaster

     */
    public void startPageSequence(PageSequence pageSeq) {
        // get the layout master set
        // setup the pages for this sequence
        String name = pageSeq.getMasterReference();
        SimplePageMaster spm = pageSeq.getRoot().getLayoutMasterSet().getSimplePageMaster(name);
        if (spm == null) {
            PageSequenceMaster psm = pageSeq.getRoot().getLayoutMasterSet().getPageSequenceMaster(name);
        } else {
            // create simple master with regions
            MIFElement prop = new MIFElement("PageType");
View Full Code Here

Examples of org.apache.fop.fo.pagination.SimplePageMaster

        }
       
        private void cacheNextPageViewport(int index, boolean bIsBlank) {
            try {
                String pageNumberString = pageSeq.makeFormattedPageNumber(index);
                SimplePageMaster spm = pageSeq.getNextSimplePageMaster(
                        index, (startPageOfPageSequence == index), bIsBlank);
                   
                Region body = spm.getRegion(FO_REGION_BODY);
                if (!pageSeq.getMainFlow().getFlowName().equals(body.getRegionName())) {
                    // this is fine by the XSL Rec (fo:flow's flow-name can be mapped to
                    // any region), but we don't support it yet.
                    throw new FOPException("Flow '" + pageSeq.getMainFlow().getFlowName()
                        + "' does not map to the region-body in page-master '"
                        + spm.getMasterName() + "'.  FOP presently "
                        + "does not support this.");
                }
                PageViewport pv = new PageViewport(spm, pageNumberString, bIsBlank);
                cachedPageViewports.add(pv);
            } catch (FOPException e) {
View Full Code Here

Examples of org.axsl.fo.fo.SimplePageMaster

    /**
     * Creates the region-body for this page.
     */
    private void createRegionBody() {
        final SimplePageMaster simplePageMaster = getPageMaster();
        for (RegionBody regionBody : simplePageMaster.getRegionBodies()) {
            final RegionRABody area = RegionRABody.makeRegionBodyArea(
                    regionBody, this);
            this.children.add(area);
            final String name = regionBody.traitRegionName();
            this.bodies.put(name, area);
View Full Code Here

Examples of org.axsl.fo.fo.SimplePageMaster

    /**
     * Creates the region-before for this page.
     */
    private void createRegionBefore() {
        final SimplePageMaster simplePageMaster = getPageMaster();
        if (simplePageMaster.getRegionBefore() == null) {
            return;
        }
        final RegionBefore region = simplePageMaster.getRegionBefore();
        this.before = makeRegionRA(region);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.