diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-04-23 09:31:08 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-04-23 09:31:08 +0000 |
commit | fcfb10d2ec7797f769ff911e64aaade9de2faf1e (patch) | |
tree | 840a06ad0c1927fbd08edb346593a2b30cfdbb70 /src/java/org/apache/fop/fo/flow | |
parent | 0fa858c3b16c8cdfe0cbc83b1981f454070ef994 (diff) | |
download | xmlgraphics-fop-fcfb10d2ec7797f769ff911e64aaade9de2faf1e.tar.gz xmlgraphics-fop-fcfb10d2ec7797f769ff911e64aaade9de2faf1e.zip |
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 <phkraus.at.skynet.be>
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
Diffstat (limited to 'src/java/org/apache/fop/fo/flow')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/PageNumberCitationLast.java | 49 |
1 files changed, 49 insertions, 0 deletions
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; + } +} |