Examples of LayoutMasterSet


Examples of org.foray.fotree.fo.obj.LayoutMasterSet

        case FLOW_ASSIGNMENT: {
            final FlowMap flowMap = parentFlowMap(enumeration, parent, locator);
            return new FlowAssignment(flowMap, propertyList);
        }
        case FLOW_MAP: {
            final LayoutMasterSet layoutMasterSet = parentLayoutMasterSet(
                    enumeration, parent, locator);
            return new FlowMap(layoutMasterSet, propertyList);
        }
        case FLOW_NAME_SPECIFIER: {
            final FlowSourceList flowSourceList = parentFlowSourceList(
                    enumeration, parent, locator);
            return new FlowNameSpecifier(flowSourceList, propertyList);
        }
        case FLOW_SOURCE_LIST: {
            final FlowAssignment flowAssignment = parentFlowAssignment(
                    enumeration, parent, locator);
            return new FlowSourceList(flowAssignment, propertyList);
        }
        case FLOW_TARGET_LIST: {
            final FlowAssignment flowAssignment = parentFlowAssignment(
                    enumeration, parent, locator);
            return new FlowTargetList(flowAssignment, propertyList);
        }
        case FOLIO_PREFIX: {
            return new FolioPrefix(parent, propertyList);
        }
        case FOLIO_SUFFIX: {
            return new FolioSuffix(parent, propertyList);
        }
        case FOOTNOTE: {
            return new Footnote(parent, propertyList);
        }
        case FOOTNOTE_BODY: {
            return new FootnoteBody(parent, propertyList);
        }
        case INDEX_KEY_REFERENCE: {
            return new IndexKeyReference(parent, propertyList);
        }
        case INDEX_PAGE_CITATION_LIST: {
            return new IndexPageCitationList(parent, propertyList);
        }
        case INDEX_PAGE_CITATION_LIST_SEPARATOR: {
            return new IndexPageCitationListSeparator(parent, propertyList);
        }
        case INDEX_PAGE_CITATION_RANGE_SEPARATOR: {
            return new IndexPageCitationRangeSeparator(parent, propertyList);
        }
        case INDEX_PAGE_NUMBER_PREFIX: {
            return new IndexPageNumberPrefix(parent, propertyList);
        }
        case INDEX_PAGE_NUMBER_SUFFIX: {
            return new IndexPageNumberSuffix(parent, propertyList);
        }
        case INDEX_RANGE_BEGIN: {
            return new IndexRangeBegin(parent, propertyList);
        }
        case INDEX_RANGE_END: {
            return new IndexRangeEnd(parent, propertyList);
        }
        case INITIAL_PROPERTY_SET: {
            return new InitialPropertySet(parent, propertyList);
        }
        case INLINE: {
            return new Inline(parent, propertyList);
        }
        case INLINE_CONTAINER: {
            return new InlineContainer(parent, propertyList);
        }
        case INSTREAM_FOREIGN_OBJECT: {
            return new InstreamForeignObject(parent, propertyList);
        }
        case LAYOUT_MASTER_SET: {
            final Root root = parentRoot(enumeration, parent, locator);
            return new LayoutMasterSet(root, propertyList);
        }
        case LEADER: {
            return new Leader(parent, propertyList);
        }
        case LIST_BLOCK: {
            return new ListBlock(parent, propertyList);
        }
        case LIST_ITEM: {
            return new ListItem(parent, propertyList);
        }
        case LIST_ITEM_BODY: {
            return new ListItemBody(parent, propertyList);
        }
        case LIST_ITEM_LABEL: {
            return new ListItemLabel(parent, propertyList);
        }
        case MARKER: {
            return new Marker(parent, propertyList);
        }
        case MULTI_CASE: {
            return new MultiCase(parent, propertyList);
        }
        case MULTI_PROPERTIES: {
            return new MultiProperties(parent, propertyList);
        }
        case MULTI_PROPERTY_SET: {
            return new MultiPropertySet(parent, propertyList);
        }
        case MULTI_SWITCH: {
            return new MultiSwitch(parent, propertyList);
        }
        case MULTI_TOGGLE: {
            return new MultiToggle(parent, propertyList);
        }
        case PAGE_NUMBER: {
            return new PageNumber(parent, propertyList);
        }
        case PAGE_NUMBER_CITATION: {
            return new PageNumberCitation(parent, propertyList);
        }
        case PAGE_NUMBER_CITATION_LAST: {
            return new PageNumberCitationLast(parent, propertyList);
        }
        case PAGE_SEQUENCE: {
            final Root root = parentRoot(enumeration, parent, locator);
            return new PageSequence(root, propertyList);
        }
        case PAGE_SEQUENCE_MASTER: {
            return new PageSequenceMaster(parent, propertyList);
        }
        case PAGE_SEQUENCE_WRAPPER: {
            return new PageSequenceWrapper(parent, propertyList);
        }
        case REGION_AFTER: {
            final SimplePageMaster simplePageMaster = parentSimplePageMaster(
                    enumeration, parent, locator);
            return new RegionAfter(simplePageMaster, propertyList);
        }
        case REGION_BEFORE: {
            final SimplePageMaster simplePageMaster = parentSimplePageMaster(
                    enumeration, parent, locator);
            return new RegionBefore(simplePageMaster, propertyList);
        }
        case REGION_BODY: {
            final SimplePageMaster simplePageMaster = parentSimplePageMaster(
                    enumeration, parent, locator);
            return new RegionBody(simplePageMaster, propertyList);
        }
        case REGION_END: {
            final SimplePageMaster simplePageMaster = parentSimplePageMaster(
                    enumeration, parent, locator);
            return new RegionEnd(simplePageMaster, propertyList);
        }
        case REGION_NAME_SPECIFIER: {
            final FlowTargetList flowTargetList = parentFlowTargetList(
                    enumeration, parent, locator);
            return new RegionNameSpecifier(flowTargetList, propertyList);
        }
        case REGION_START: {
            final SimplePageMaster simplePageMaster = parentSimplePageMaster(
                    enumeration, parent, locator);
            return new RegionStart(simplePageMaster, propertyList);
        }
        case REPEATABLE_PAGE_MASTER_ALTERNATIVES: {
            return new RepeatablePMAlternatives(parent, propertyList);
        }
        case REPEATABLE_PAGE_MASTER_REFERENCE: {
            return new RepeatablePMReference(parent, propertyList);
        }
        case RETRIEVE_MARKER: {
            return new RetrieveMarker(parent, propertyList);
        }
        case RETRIEVE_TABLE_MARKER: {
            return new RetrieveTableMarker(parent, propertyList);
        }
        case ROOT: {
            return new Root(propertyList);
        }
        case SCALING_VALUE_CITATION: {
            return new ScalingValueCitation(parent, propertyList);
        }
        case SIMPLE_PAGE_MASTER: {
            final LayoutMasterSet layoutMasterSet = parentLayoutMasterSet(
                    enumeration, parent, locator);
            return new SimplePageMaster(layoutMasterSet, propertyList);
        }
        case SINGLE_PAGE_MASTER_REFERENCE: {
            return new SinglePageMasterReference(parent, propertyList);
View Full Code Here

Examples of org.plutext.jaxb.xslfo.LayoutMasterSet

 
  private static org.plutext.jaxb.xslfo.ObjectFactory factory;
   
  public static DocumentFragment getLayoutMasterSetFragment(AbstractWmlConversionContext context) {

    LayoutMasterSet lms = getFoLayoutMasterSet(context)
   
    // Set suitable extents, for which we need area tree
    FOSettings foSettings = (FOSettings)context.getConversionSettings();
    if ( !foSettings.lsLayoutMasterSetCalculationInProgress()) // Avoid infinite loop
      // Can't just do it where foSettings.getApacheFopMime() is not MimeConstants.MIME_FOP_AREA_TREE,
View Full Code Here

Examples of org.plutext.jaxb.xslfo.LayoutMasterSet

     * @since 3.0
     *
     */ 
  public static void appendLayoutMasterSetFragment(AbstractWmlConversionContext context, Node foRoot) {

    LayoutMasterSet lms = getFoLayoutMasterSet(context)
   
    // Set suitable extents, for which we need area tree
    FOSettings foSettings = (FOSettings)context.getConversionSettings();
    if ( !foSettings.lsLayoutMasterSetCalculationInProgress()) // Avoid infinite loop
      // Can't just do it where foSettings.getApacheFopMime() is not MimeConstants.MIME_FOP_AREA_TREE,
View Full Code Here

Examples of org.plutext.jaxb.xslfo.LayoutMasterSet

 
  private static LayoutMasterSet getFoLayoutMasterSet(AbstractWmlConversionContext context) {
   
   
    LayoutMasterSet lms = getFactory().createLayoutMasterSet();
    List<ConversionSectionWrapper> sections = context.getSections().getList();
    ConversionSectionWrapper section = null;
   
    for(int i=0; i<sections.size(); i++) {
     
      section = sections.get(i);
      HeaderFooterPolicy hf = section.getHeaderFooterPolicy();
      String sectionName = "s" + Integer.toString(i + 1);
     
      // FIRST, create simple-page-masters
      // has first header or footer?
      if (hf.getFirstHeader()!=null || hf.getFirstFooter()!=null) {
        // per spec, HeaderFooterPolicy checks the titlePg elememt
       
        lms.getSimplePageMasterOrPageSequenceMaster().add(
          createSimplePageMaster(sectionName + "-firstpage",
              section.getPageDimensions(),
              "firstpage",
            (hf.getFirstHeader()!=null),
            (hf.getFirstFooter()!=null) ));
      }
     
      // has even or odd header or footer?
        /*
         *       <w:headerReference w:type="even" r:id="rId12"/>
         *       <w:headerReference w:type="default" r:id="rId13"/>
         *      
         *       the default one is treated as odd.
         */
      if (hf.getEvenHeader()!=null || hf.getEvenFooter()!=null) {
       
        lms.getSimplePageMasterOrPageSequenceMaster().add(
          createSimplePageMaster(sectionName + "-evenpage"
              section.getPageDimensions(),
              "evenpage",
            (hf.getEvenHeader()!=null),
            (hf.getEvenFooter()!=null) ));
       
        // the xslt outputs a "-default" page as the odd-page
      }
     
      if (hf.getDefaultHeader()!=null
          || hf.getDefaultFooter()!=null) {
       
        lms.getSimplePageMasterOrPageSequenceMaster().add(
          createSimplePageMaster(sectionName + "-default"
              section.getPageDimensions(),
              "default",
            (hf.getDefaultHeader()!=null),
            (hf.getDefaultFooter()!=null) ));       
      }

      // simple: no headers and footers - after the first page anyway/
      // We still need this where there is just a first page header/footer,
      // since otherwise there'd be no page sequence for any content
      // after the first page, and you'd get:
      //    org.apache.fop.fo.pagination.PageProductionException:
      //    Subsequences exhausted in page-sequence-master ..., cannot recover.
      //
      // <w:sectPr>
      //   <w:headerReference w:type="first" r:id="rId7"/>
      // </w:sectPr>     
      if (
        (hf.getDefaultHeader() == null) && (hf.getDefaultFooter() == null)) {
        lms.getSimplePageMasterOrPageSequenceMaster().add(
            createSimplePageMaster(sectionName + "-simple"
                section.getPageDimensions(),
                "simple",
              true, true));
      }
     
      // SECOND, create page-sequence-masters
      lms.getSimplePageMasterOrPageSequenceMaster().add(
          createPageSequenceMaster(hf, sectionName )  );
    }
   
    //
   
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.