Package net.sourceforge.rtf.document

Examples of net.sourceforge.rtf.document.RTFPage


     * @param content
     *            RTF start page keyword <b>\page</b>.
     * @throws IOException
     */
    protected void startPage(String content) throws IOException {
        RTFPage page = new RTFPage();
        page.addRTFString(content);
        currentRTFElement.addRTFElement(page);
    }
View Full Code Here


            if (startBookmark != null) {
                // Start bookmark exist
                RTFBookmark endBookmark = (RTFBookmark) bookmarkEndMap
                        .get(endBookmarkName);
                String newContent = getMacroEndForEach(); // "#end";
                RTFPage page = (RTFPage) pageBeforeEndBookmarkMap
                        .get(endBookmarkName);
                if (page != null) {
                    String content = null;
                    if (groupByPerPageBreak > -1) {
                        // Content must be group by
                        // There is a page break defined into RTF and group by
                        // per page is defined
                        content = " "
                                + getMacroPageBreak(startBookmark
                                        .getItemNameList(), page
                                        .getRTFFirstContentOfElement(),
                                        groupByPerPageBreak) + " ";
                    } else {
                        // There is a page break defined into RTF
                        // and group by per page is not defined
                        content = " "
                                + getMacroPageBreak(startBookmark
                                        .getItemNameList(), page
                                        .getRTFFirstContentOfElement()) + " ";
                    }
                    page.replaceElement(content);
                } else {
                    if (groupByPerPageBreak > -1) {
                        if (lastEndLoopRTFBookmark != null
                                && lastEndLoopRTFBookmark.equals(endBookmark)) {
                            newContent = getMacroPageBreak(startBookmark
View Full Code Here

    }

    protected void transform(RTFElement parentElement, Vector elementList,
            Map contextFieldsMap) throws IOException {
        RTFPage lastPage = null;
        for (Iterator iter = elementList.iterator(); iter.hasNext();) {
            Object element = (Object) iter.next();
            int elementType = getType(element);
            switch (elementType) {
            case RTF_ELEMENT_STRINGBUFFER:
View Full Code Here

TOP

Related Classes of net.sourceforge.rtf.document.RTFPage

Copyright © 2018 www.massapicom. 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.