From 18e6e8519d05181770ce1b058e6110e5fab2b5a3 Mon Sep 17 00:00:00 2001 From: arved Date: Mon, 17 Apr 2000 23:13:55 +0000 Subject: [PATCH] PR: Obtained from: Submitted by: Arved Sandstrom Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193331 13f79535-47bb-0310-9956-ffa450edef68 --- .../fop/fo/properties/InitialPageNumber.java | 52 ------------------- 1 file changed, 52 deletions(-) delete mode 100644 src/org/apache/fop/fo/properties/InitialPageNumber.java diff --git a/src/org/apache/fop/fo/properties/InitialPageNumber.java b/src/org/apache/fop/fo/properties/InitialPageNumber.java deleted file mode 100644 index ff1cae41c..000000000 --- a/src/org/apache/fop/fo/properties/InitialPageNumber.java +++ /dev/null @@ -1,52 +0,0 @@ - -package org.apache.fop.fo.properties; - -import org.apache.fop.datatypes.*; -import org.apache.fop.fo.*; -import org.apache.fop.apps.FOPException; - -public class InitialPageNumber extends Property { - - public static class Maker extends Property.Maker { - public boolean isInherited() { return true; } - - public Property make(PropertyList propertyList, String value) throws FOPException { - - int pageNum = 0; - try { - pageNum = Integer.parseInt( value ); - - // round to 0 if less than 0; SL spec and this implementation - if (pageNum < 0) - pageNum = 0; - } - catch (NumberFormatException nfe) { - System.err.println( "'initial-page-number' not numeric" ); - } - - return new InitialPageNumber(propertyList, pageNum ); - - - } - - public Property make(PropertyList propertyList) throws FOPException { - return make(propertyList, "0"); - } - } - - public static Property.Maker maker() { - return new InitialPageNumber.Maker(); - } - - private int value; - - public InitialPageNumber(PropertyList propertyList, int explicitValue) { - this.propertyList = propertyList; - this.value = explicitValue; - } - - public int getInitialPageNumber() { - return this.value; - } - -} -- 2.39.5