From fcfb10d2ec7797f769ff911e64aaade9de2faf1e Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Sun, 23 Apr 2006 09:31:08 +0000 Subject: Bugzilla #39118: Initial support for page-number-citation-last (XSL 1.1). Works without problems only for page-sequence so far. Submitted by: Pierre-Henri Kraus Modifications to the patch by jeremias during review: - Tab character removed - Some style fixes and javadoc enhancements - Renamed some methods in AreaTreeHandler to some more speaking names - Changed the ..._basic.xml testcase so it shows a remaining problem: Forward references are not properly resolved, yet. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@396243 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/fop/fo/flow/PageNumberCitationLast.java | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/java/org/apache/fop/fo/flow/PageNumberCitationLast.java (limited to 'src/java/org/apache/fop/fo/flow') diff --git a/src/java/org/apache/fop/fo/flow/PageNumberCitationLast.java b/src/java/org/apache/fop/fo/flow/PageNumberCitationLast.java new file mode 100644 index 000000000..89817e4ef --- /dev/null +++ b/src/java/org/apache/fop/fo/flow/PageNumberCitationLast.java @@ -0,0 +1,49 @@ +/* + * Copyright 2006 The Apache Software Foundation. + * + * 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. + */ + +/* $Id$ */ + +package org.apache.fop.fo.flow; + +import org.apache.fop.fo.FONode; + +/** + * Class modelling the fo:page-number-citation-last object from XSL 1.1. + * This inline fo is replaced with the text for a page number. + * The page number used is the page that contains the end of the + * block referenced with the ref-id attribute. + * @since XSL 1.1 + */ +public class PageNumberCitationLast extends PageNumberCitation { + + /** + * Main constructor + * @param parent the parent FO node + */ + public PageNumberCitationLast(FONode parent) { + super(parent); + } + + /** @see org.apache.fop.fo.FONode#getLocalName() */ + public String getLocalName() { + return "page-number-citation-last"; + } + + /** @see org.apache.fop.fo.FObj#getNameId() */ + public int getNameId() { + return FO_PAGE_NUMBER_CITATION_LAST; + } +} -- cgit v1.2.3