Examples of PageMaster


Examples of org.apache.fop.layout.PageMaster

   
        // while there is still stuff in the flow, ask the
        // layoutMasterSet for a new page

  // page number is 0-indexed
        PageMaster pageMaster = getNextPageMaster(masterName, firstAvailPageNumber,
              isFirstPage, isEmptyPage );

    // a legal alternative is to use the last sub-sequence
    // specification which should be handled in getNextSubsequence. That's not done here.
        if ( pageMaster == null )
        {
    throw new FOPException("page masters exhausted. Cannot recover.");
        }
        Page p = pageMaster.makePage(areaTree);
        if(currentPage != null) {
            Vector foots = currentPage.getPendingFootnotes();
            p.setPendingFootnotes(foots);
        }
        return p;
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

        int contentRectangleYPosition = pageHeight - mProps.marginTop;
        int contentRectangleWidth = pageWidth - mProps.marginLeft
                                    - mProps.marginRight;
        int contentRectangleHeight = pageHeight - mProps.marginTop
                                     - mProps.marginBottom;
        this.pageMaster = new PageMaster(pageWidth, pageHeight);
        Region body = getRegion(RegionBody.REGION_CLASS);
        RegionBefore before = (RegionBefore)getRegion(RegionBefore.REGION_CLASS);
        RegionAfter after = (RegionAfter)getRegion(RegionAfter.REGION_CLASS);
        RegionStart start = (RegionStart)getRegion(RegionStart.REGION_CLASS);
        RegionEnd end = (RegionEnd)getRegion(RegionEnd.REGION_CLASS);
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

  int contentRectangleXPosition = marginLeft;
  int contentRectangleYPosition = pageHeight - marginTop;
  int contentRectangleWidth = pageWidth - marginLeft - marginRight;
  int contentRectangleHeight = pageHeight - marginTop - marginBottom;
   
  this.pageMaster = new PageMaster(pageWidth, pageHeight);
  if (getRegion(RegionBody.REGION_CLASS) != null) {
    BodyRegionArea body =
    (BodyRegionArea)getRegion(RegionBody.REGION_CLASS).makeRegionArea(contentRectangleXPosition,
      contentRectangleYPosition,contentRectangleWidth,contentRectangleHeight);
      this.pageMaster.addBody(body);
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

   
        // while there is still stuff in the flow, ask the
        // layoutMasterSet for a new page

  // page number is 0-indexed
        PageMaster pageMaster = getNextPageMaster(masterName, firstAvailPageNumber,
              isFirstPage, isEmptyPage );

    // a legal alternative is to use the last sub-sequence
    // specification which should be handled in getNextSubsequence. That's not done here.
        if ( pageMaster == null )
        {
    throw new FOPException("page masters exhausted. Cannot recover.");
        }
        Page p = pageMaster.makePage(areaTree);
        if(currentPage != null) {
            Vector foots = currentPage.getPendingFootnotes();
            p.setPendingFootnotes(foots);
        }
        return p;
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

           int currentPageNumber,
           boolean thisIsFirstPage,
           boolean isEmptyPage )
  throws FOPException
    {
  PageMaster pageMaster = null;

  // see if there is a page master sequence for this master name   
  PageSequenceMaster sequenceMaster =
      this.layoutMasterSet.getPageSequenceMaster( pageSequenceName );
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

  int contentRectangleXPosition = marginLeft;
  int contentRectangleYPosition = pageHeight - marginTop;
  int contentRectangleWidth = pageWidth - marginLeft - marginRight;
  int contentRectangleHeight = pageHeight - marginTop - marginBottom;
   
  this.pageMaster = new PageMaster(pageWidth, pageHeight);
  this.pageMaster.addBody(this.regionBody.makeRegion(contentRectangleXPosition,contentRectangleYPosition,contentRectangleWidth,contentRectangleHeight));
   
  if (this.regionBefore != null)
      this.pageMaster.addBefore(this.regionBefore.makeRegion(contentRectangleXPosition,contentRectangleYPosition,contentRectangleWidth,contentRectangleHeight));
  if (this.regionAfter != null)
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

    private RepeatingPageMasterFactory pageMasterFactory;
 
    protected SequenceSpecifierRepeating(FObj parent, PropertyList propertyList)
  throws FOPException {
  super(parent, propertyList);
  PageMaster pf, pr;

  this.name =  "fo:sequence-specifer-repeating";
   
  if (parent.getName().equals("fo:sequence-specification")) {
      this.sequenceSpecification = (SequenceSpecification) parent;
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

            }
        }
    }

    protected Page makePage(AreaTree areaTree) throws FOPException {
        PageMaster pageMaster;
        // layout this page sequence

        // while there is still stuff in the flow, ask the
        // sequence-specification for a new page

        if ( this.sequenceSpecification == null )
        {
            throw new FOPException("page-sequence is missing an"
            + " sequence-specification");
        }

        PageMasterFactory pmf =
        this.sequenceSpecification.getFirstPageMasterFactory();

        pageMaster = pmf.getNextPageMaster();

        while ( pageMaster == null )
        {
            /* move on to next sequence specifier */
            pmf = pmf.getNext();
            if ( pmf == null )
            {
                throw new FOPException("out of sequence specifiers"
                + " (FOP will eventually allow this)");
            }
            pageMaster = pmf.getNextPageMaster();
        }
        return pageMaster.makePage(areaTree);
    }
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

 
    protected SequenceSpecifierAlternating(FObj parent,
             PropertyList propertyList)
  throws FOPException {
  super(parent, propertyList);
  PageMaster pf, pe, po;

  this.name =  "fo:sequence-specifer-alternating";
   
  if (parent.getName().equals("fo:sequence-specification")) {
      this.sequenceSpecification = (SequenceSpecification) parent;
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

   
        // while there is still stuff in the flow, ask the
        // layoutMasterSet for a new page

  // page number is 0-indexed
        PageMaster pageMaster = getNextPageMaster(masterName, firstAvailPageNumber,
              isFirstPage, isEmptyPage );

    // a legal alternative is to use the last sub-sequence
    // specification which should be handled in getNextSubsequence. That's not done here.
        if ( pageMaster == null )
        {
    throw new FOPException("page masters exhausted. Cannot recover.");
        }
        Page p = pageMaster.makePage(areaTree);
        if(currentPage != null) {
            Vector foots = currentPage.getPendingFootnotes();
            p.setPendingFootnotes(foots);
        }
        return p;
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.