You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PageMasterReference.java 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * $Id$
  3. * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
  4. * For details on use and redistribution please refer to the
  5. * LICENSE file included with these sources.
  6. */
  7. package org.apache.fop.fo.pagination;
  8. import org.apache.fop.fo.*;
  9. import org.apache.fop.fo.properties.*;
  10. import org.apache.fop.apps.FOPException;
  11. /**
  12. * Abstract base class for PageMasterReference classes. Provides
  13. * implementation for handling the master-reference attribute and
  14. * containment within a PageSequenceMaster
  15. */
  16. public abstract class PageMasterReference extends FObj
  17. implements SubSequenceSpecifier {
  18. protected String masterName;
  19. public PageMasterReference(FObj parent, PropertyList propertyList)
  20. throws FOPException {
  21. super(parent, propertyList);
  22. }
  23. public String getMasterName() {
  24. return masterName;
  25. }
  26. public abstract String getNextPageMasterName(boolean isOddPage,
  27. boolean isFirstPage,
  28. boolean isEmptyPage)
  29. throws FOPException;
  30. public abstract void reset();
  31. }