[FOray-commit] SF.net SVN: foray: [7348] trunk/foray/foray-areatree/src/java/org/foray/area
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-05-31 21:35:15
|
Revision: 7348 Author: victormote Date: 2006-05-31 14:35:03 -0700 (Wed, 31 May 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7348&view=rev Log Message: ----------- Implement and use new axsl interfaces for Lists. Modified Paths: -------------- trunk/foray/foray-areatree/src/java/org/foray/area/Area.java Added Paths: ----------- trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java trunk/foray/foray-areatree/src/java/org/foray/area/ListItemArea.java Modified: trunk/foray/foray-areatree/src/java/org/foray/area/Area.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2006-05-31 20:22:02 UTC (rev 7347) +++ trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2006-05-31 21:35:03 UTC (rev 7348) @@ -25,12 +25,15 @@ package org.foray.area; import org.axsl.areaW.AreaWException; +import org.axsl.areaW.ListBlockArea; import org.axsl.areaW.NormalBlockArea; import org.axsl.areaW.TableArea; import org.axsl.common.Constants; import org.axsl.foR.FObj; import org.axsl.foR.WritingMode; import org.axsl.foR.fo.BasicLink; +import org.axsl.foR.fo.Block; +import org.axsl.foR.fo.ListBlock; import org.axsl.foR.fo.Table; import org.axsl.fontR.Font; import org.axsl.fontR.FontUse; @@ -1165,8 +1168,12 @@ return new org.foray.area.TableRA(table, this); } - public NormalBlockArea makeNormalBlockArea(FObj fobj) { - return new org.foray.area.NormalBlockArea(fobj, this); + public NormalBlockArea makeNormalBlockArea(Block block) { + return new org.foray.area.NormalBlockArea(block, this); } + public ListBlockArea makeListBlockArea(ListBlock listBlock) { + return new org.foray.area.ListBlockArea(listBlock, this); + } + } Added: trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java (rev 0) +++ trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java 2006-05-31 21:35:03 UTC (rev 7348) @@ -0,0 +1,41 @@ +/* + * Copyright 2006 The FOray Project. + * http://www.foray.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * This work is in part derived from the following work(s), used with the + * permission of the licensor: + * Apache FOP, licensed by the Apache Software Foundation + * + */ + +/* $Id$ */ + +package org.foray.area; + +import org.axsl.foR.fo.ListBlock; +import org.axsl.foR.fo.ListItem; + +public class ListBlockArea extends NormalBlockArea + implements org.axsl.areaW.ListBlockArea { + + public ListBlockArea(ListBlock parentFObj, Area parentArea) { + super(parentFObj, parentArea); + } + + public org.axsl.areaW.ListItemArea makeListItemArea(ListItem listItem) { + return new ListItemArea(listItem, this); + } + +} Property changes on: trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java ___________________________________________________________________ Name: svn:keywords + "Author Id Rev Date URL" Name: svn:eol-style + native Added: trunk/foray/foray-areatree/src/java/org/foray/area/ListItemArea.java =================================================================== --- trunk/foray/foray-areatree/src/java/org/foray/area/ListItemArea.java (rev 0) +++ trunk/foray/foray-areatree/src/java/org/foray/area/ListItemArea.java 2006-05-31 21:35:03 UTC (rev 7348) @@ -0,0 +1,36 @@ +/* + * Copyright 2006 The FOray Project. + * http://www.foray.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * This work is in part derived from the following work(s), used with the + * permission of the licensor: + * Apache FOP, licensed by the Apache Software Foundation + * + */ + +/* $Id$ */ + +package org.foray.area; + +import org.axsl.foR.fo.ListItem; + +public class ListItemArea extends NormalBlockArea + implements org.axsl.areaW.ListItemArea { + + public ListItemArea(ListItem parentFObj, Area parentArea) { + super(parentFObj, parentArea); + } + +} Property changes on: trunk/foray/foray-areatree/src/java/org/foray/area/ListItemArea.java ___________________________________________________________________ Name: svn:keywords + "Author Id Rev Date URL" Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |