]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
PR:
authorGlen Mazza <gmazza@apache.org>
Mon, 20 Sep 2004 00:37:13 +0000 (00:37 +0000)
committerGlen Mazza <gmazza@apache.org>
Mon, 20 Sep 2004 00:37:13 +0000 (00:37 +0000)
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
src/java/org/apache/fop/area/StorePagesModel.java

index 7a0cd0f1747128a3cb0f95c19f60c3640cedab0a..18a6a486099dfe01655e749b0292c01a3911df73 100644 (file)
@@ -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);
 
 }
index f3980e35b5c22ee23948067428f446ae0d218e49..bdf8f18dbd1147700448b7ac9e9057e0ccb36c34 100644 (file)
@@ -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.
      */