private bool IsFlowForMasterNameDone(string masterName) { if (isForcing) { return(false); } if (masterName != null) { SimplePageMaster spm = this.layoutMasterSet.getSimplePageMaster(masterName); Region region = spm.getRegion(RegionBody.REGION_CLASS); Flow.Flow flow = (Flow.Flow)_flowMap[region.getRegionName()]; if ((null == flow) || flow.getStatus().isIncomplete()) { return(false); } else { return(true); } } return(false); }
private void FormatStaticContent(AreaTree areaTree) { SimplePageMaster simpleMaster = GetCurrentSimplePageMaster(); if (simpleMaster.getRegion(RegionBefore.REGION_CLASS) != null && (currentPage.getBefore() != null)) { Flow.Flow staticFlow = (Flow.Flow)_flowMap[simpleMaster.getRegion(RegionBefore.REGION_CLASS).getRegionName()]; if (staticFlow != null) { AreaContainer beforeArea = currentPage.getBefore(); beforeArea.setIDReferences(areaTree.getIDReferences()); LayoutStaticContent(staticFlow, simpleMaster.getRegion(RegionBefore.REGION_CLASS), beforeArea); } } if (simpleMaster.getRegion(RegionAfter.REGION_CLASS) != null && (currentPage.getAfter() != null)) { Flow.Flow staticFlow = (Flow.Flow)_flowMap[simpleMaster.getRegion(RegionAfter.REGION_CLASS).getRegionName()]; if (staticFlow != null) { AreaContainer afterArea = currentPage.getAfter(); afterArea.setIDReferences(areaTree.getIDReferences()); LayoutStaticContent(staticFlow, simpleMaster.getRegion(RegionAfter.REGION_CLASS), afterArea); } } if (simpleMaster.getRegion(RegionStart.REGION_CLASS) != null && (currentPage.getStart() != null)) { Flow.Flow staticFlow = (Flow.Flow)_flowMap[simpleMaster.getRegion(RegionStart.REGION_CLASS).getRegionName()]; if (staticFlow != null) { AreaContainer startArea = currentPage.getStart(); startArea.setIDReferences(areaTree.getIDReferences()); LayoutStaticContent(staticFlow, simpleMaster.getRegion(RegionStart.REGION_CLASS), startArea); } } if (simpleMaster.getRegion(RegionEnd.REGION_CLASS) != null && (currentPage.getEnd() != null)) { Flow.Flow staticFlow = (Flow.Flow)_flowMap[simpleMaster.getRegion(RegionEnd.REGION_CLASS).getRegionName()]; if (staticFlow != null) { AreaContainer endArea = currentPage.getEnd(); endArea.setIDReferences(areaTree.getIDReferences()); LayoutStaticContent(staticFlow, simpleMaster.getRegion(RegionEnd.REGION_CLASS), endArea); } } }