* on the area tree with the page sequence title.
*
* @param pageSeq the page sequence starting
- * @param seqTitle the title of the page sequence
- * @param lms the layout master set
*/
- public void startPageSequence(PageSequence pageSeq,
- org.apache.fop.fo.Title seqTitle,
- LayoutMasterSet lms) {
+ public void startPageSequence(PageSequence pageSeq) {
Title title = null;
- if (seqTitle != null) {
- title = seqTitle.getTitleArea();
+ if (pageSeq.getTitleFO() != null) {
+ title = pageSeq.getTitleFO().getTitleArea();
}
areaTree.startPageSequence(title);
}
*/
abstract public void endDocument() throws SAXException;
- abstract public void startPageSequence(PageSequence pageSeq, Title seqTitle, LayoutMasterSet lms);
+ abstract public void startPageSequence(PageSequence pageSeq);
abstract public void endPageSequence(PageSequence pageSeq) throws FOPException;
*/
private void startStructuredPageSequence() {
if (!sequenceStarted) {
- structHandler.startPageSequence(this, titleFO, layoutMasterSet);
+ structHandler.startPageSequence(this);
sequenceStarted = true;
}
}
public StaticContent getStaticContent(String name) {
return (StaticContent)flowMap.get(name);
}
+
+ public LayoutMasterSet getLayoutMasterSet() {
+ return layoutMasterSet;
+ }
+
+ public Title getTitleFO() {
+ return titleFO;
+ }
+
}
* by the following flows and static areas.
* @see org.apache.fop.apps.StructureHandler
*/
- public void startPageSequence(PageSequence pageSeq, Title seqTitle, LayoutMasterSet lms) {
+ public void startPageSequence(PageSequence pageSeq) {
// get the layout master set
// setup the pages for this sequence
String name = pageSeq.getProperty("master-reference").getString();
- SimplePageMaster spm = lms.getSimplePageMaster(name);
+ SimplePageMaster spm = pageSeq.getLayoutMasterSet().getSimplePageMaster(name);
if (spm == null) {
- PageSequenceMaster psm = lms.getPageSequenceMaster(name);
+ PageSequenceMaster psm = pageSeq.getLayoutMasterSet().getPageSequenceMaster(name);
} else {
// create simple master with regions
MIFElement prop = new MIFElement("PageType");
/**
* @see org.apache.fop.apps.StructureHandler
*/
- public void startPageSequence(PageSequence pageSeq, Title seqTitle, LayoutMasterSet lms) {
+ public void startPageSequence(PageSequence pageSeq) {
try {
sect = docArea.newSection();
if (!warned) {