Examples of traitForcePageCount()


Examples of org.axsl.fo.fo.PageSequence.traitForcePageCount()

         * more than one, one would have to be generated in the padPagesAtEnd
         * method, so the most we should allow here is 1.
         */
            final PageSequence previousPageSequence
                    = previousPageCollection.getPageSequence();
            if (previousPageSequence.traitForcePageCount(this)
                    == ForcePageCount.AUTO) {
                /*
                 * In this case we'll try to put the added page in the previous
                 * page-sequence, to comply with the standard.
                 */
 
View Full Code Here

Examples of org.axsl.fo.fo.PageSequence.traitForcePageCount()

    /**
     * {@inheritDoc}
     */
    public void layoutComplete() throws AreaTreeException {
        final PageSequence pageSeq = getPageSequence();
        switch (pageSeq.traitForcePageCount(this)) {
        case AUTO: {
            /*
             * The standard would seem to imply that force-page-count="auto"
             * needs to consider the initial-page-number value for the
             * following page-sequence. However, since padPagesAtBeginning will
View Full Code Here

Examples of org.foray.fotree.FObj.traitForcePageCount()

        final FObj fobj = makeTestFObj();
        final PropertyList propertyList = fobj.getPropertyList();
        final PdForcePageCount property = new PdForcePageCount(fobj, "",
                keyword);
        propertyList.addProperty(fobj, property);
        return fobj.traitForcePageCount(STD_FO_CONTEXT);
    }

    /**
     * Unit test for an "auto" value.
     * @throws PropertyException For errors during parsing.
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.