From a142f1d13c4655175fcf6b87aeeecdde29d99afb Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Tue, 20 Jan 2004 01:14:33 +0000 Subject: Interfaces now in alphabetical order and detached from generic interfaces in autogenerated fo.properties.*; patch from Finn Bock--unneeded method in PropertyInfo. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197220 13f79535-47bb-0310-9956-ffa450edef68 --- src/codegen/constants.xsl | 80 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 70 insertions(+), 10 deletions(-) (limited to 'src/codegen') diff --git a/src/codegen/constants.xsl b/src/codegen/constants.xsl index 871c79202..8c4892f14 100644 --- a/src/codegen/constants.xsl +++ b/src/codegen/constants.xsl @@ -101,14 +101,6 @@ Software Foundation, please see . package org.apache.fop.fo; -import org.apache.fop.fo.properties.GenericBoolean; -import org.apache.fop.fo.properties.GenericBorderStyle; -import org.apache.fop.fo.properties.GenericBreak; -import org.apache.fop.fo.properties.GenericCondBorderWidth; -import org.apache.fop.fo.properties.GenericCondPadding; -import org.apache.fop.fo.properties.GenericKeep; -import org.apache.fop.fo.properties.GenericSpace; - public interface Constants { // element constants @@ -141,7 +133,75 @@ public interface Constants { // Enumeration Interfaces - + + public interface GenericBooleanInterface { + int TRUE = Constants.TRUE; + int FALSE = Constants.FALSE; + } + + public interface GenericBorderStyleInterface { + int NONE = Constants.NONE; + int HIDDEN = Constants.HIDDEN; + int DOTTED = Constants.DOTTED; + int DASHED = Constants.DASHED; + int SOLID = Constants.SOLID; + int DOUBLE = Constants.DOUBLE; + int GROOVE = Constants.GROOVE; + int RIDGE = Constants.RIDGE; + int INSET = Constants.INSET; + int OUTSET = Constants.OUTSET; + } + + public interface GenericBreakInterface { + int AUTO = Constants.AUTO; + int COLUMN = Constants.COLUMN; + int PAGE = Constants.PAGE; + int EVEN_PAGE = Constants.EVEN_PAGE; + int ODD_PAGE = Constants.ODD_PAGE; + } + + public interface GenericCondBorderWidthInterface { + public interface Conditionality { + int DISCARD = Constants.DISCARD; + int RETAIN = Constants.RETAIN; + } + } + + public interface GenericCondPaddingInterface { + public interface Conditionality { + int DISCARD = Constants.DISCARD; + int RETAIN = Constants.RETAIN; + } + } + + public interface GenericKeepInterface { + public interface WithinPage { + int AUTO = Constants.AUTO; + int ALWAYS = Constants.ALWAYS; + } + public interface WithinLine { + int AUTO = Constants.AUTO; + int ALWAYS = Constants.ALWAYS; + } + public interface WithinColumn { + int AUTO = Constants.AUTO; + int ALWAYS = Constants.ALWAYS; + } + } + + public interface GenericSpaceInterface { + public interface Precedence { + int FORCE = Constants.FORCE; + } + public interface Conditionality { + int DISCARD = Constants.DISCARD; + int RETAIN = Constants.RETAIN; + } + } + + + + } @@ -177,7 +237,7 @@ public interface Constants { extends - .Enums + Interface { -- cgit v1.2.3