From fe23977f019946103121d1b48546453e95849303 Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Mon, 20 Sep 2004 00:37:13 +0000 Subject: [PATCH] PR: Obtained from: Submitted by: Reviewed by: Returned getTitle() to AreaTreeModel. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197953 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/area/AreaTreeModel.java | 7 +++++++ src/java/org/apache/fop/area/StorePagesModel.java | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/src/java/org/apache/fop/area/AreaTreeModel.java b/src/java/org/apache/fop/area/AreaTreeModel.java index 7a0cd0f17..18a6a4860 100644 --- a/src/java/org/apache/fop/area/AreaTreeModel.java +++ b/src/java/org/apache/fop/area/AreaTreeModel.java @@ -74,5 +74,12 @@ public abstract class AreaTreeModel { * @return the PageViewport for the particular page */ public abstract PageViewport getPage(int seq, int count); + + /** + * Get the title for a page sequence. + * @param count the page sequence count + * @return the title of the page sequence + */ + public abstract Title getTitle(int count); } diff --git a/src/java/org/apache/fop/area/StorePagesModel.java b/src/java/org/apache/fop/area/StorePagesModel.java index f3980e35b..bdf8f18db 100644 --- a/src/java/org/apache/fop/area/StorePagesModel.java +++ b/src/java/org/apache/fop/area/StorePagesModel.java @@ -134,6 +134,15 @@ public class StorePagesModel extends AreaTreeModel { return extensions; } + /** + * Get the title for a page sequence. + * @param count the page sequence count + * @return the title of the page sequence + */ + public Title getTitle(int count) { + return (Title) titles.get(count); + } + /** * End document, do nothing. */ -- 2.39.5