/*
 * $Id$
 * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
 * For details on use and redistribution please refer to the
 * LICENSE file included with these sources.
 */

package org.apache.fop.fo.flow;

// FOP
import org.apache.fop.fo.*;
import org.apache.fop.fo.properties.*;
import org.apache.fop.layout.*;
import org.apache.fop.datatypes.*;
import org.apache.fop.apps.FOPException;

// Java
import java.util.Vector;

import org.xml.sax.Attributes;

public class RetrieveMarker extends FObjMixed {

    private String retrieveClassName;
    private int retrievePosition;
    private int retrieveBoundary;

    public RetrieveMarker(FONode parent) {
        super(parent);
    }

    public void handleAttrs(Attributes attlist) throws FOPException {
        super.handleAttrs(attlist);
        this.retrieveClassName =
            this.properties.get("retrieve-class-name").getString();
        this.retrievePosition =
            this.properties.get("retrieve-position").getEnum();
        this.retrieveBoundary =
            this.properties.get("retrieve-boundary").getEnum();
    }

}

@@ -25,16 +25,21 @@
 (C) 2001
+-2003
  The Apa
@@ -261,12 +261,25 @@
 fop.
-fo.*
+apps.FOPException
 ;%0Aim
@@ -305,20 +305,14 @@
 .fo.
-properties.*
+FONode
 ;%0Aim
@@ -335,16 +335,20 @@
 fop.
-layout.*
+fo.FObjMixed
 ;%0Aim
@@ -371,357 +371,728 @@
 fop.
-datatypes.*;%0Aimport org.apache.fop.apps.FOPException;%0A%0A// Java%0Aimport java.util.Vector;%0A%0Aimport org.xml.sax.Attributes;%0A%0Apublic class RetrieveMarker extends FObjMixed %7B%0A%0A    private String retrieveClassName;%0A    private int retrievePosition;%0A    private int retrieveBoundary;%0A%0A    public RetrieveMarker(FONode parent) %7B%0A        super(parent);%0A    %7D%0A
+layoutmgr.RetrieveMarkerLayoutManager;%0Aimport org.xml.sax.Attributes;%0A%0Aimport java.util.List;%0A%0A/**%0A * The retrieve-marker formatting object.%0A * This will create a layout manager that will retrieve%0A * a marker based on the information.%0A */%0Apublic class RetrieveMarker extends FObjMixed %7B%0A%0A    private String retrieveClassName;%0A    private int retrievePosition;%0A    private int retrieveBoundary;%0A%0A    /**%0A     * Create a retrieve marker object.%0A     *%0A     * @see org.apache.fop.fo.FONode#FONode(FONode)%0A     */%0A    public RetrieveMarker(FONode parent) %7B%0A        super(parent);%0A    %7D%0A%0A    /**%0A     * Handle the attributes for the retrieve-marker.%0A     *%0A     * @see org.apache.fop.fo.FONode#handleAttrs(Attributes)%0A     */
 %0A   
@@ -1494,10 +1494,396 @@
 %0A    %7D%0A%0A
+    public void addLayoutManager(List lms) %7B%0A        RetrieveMarkerLayoutManager rmlm;%0A        rmlm = new RetrieveMarkerLayoutManager(retrieveClassName,%0A                                                retrievePosition,%0A                                                retrieveBoundary);%0A        rmlm.setUserAgent(getUserAgent());%0A        rmlm.setFObj(this);%0A        lms.add(rmlm);%0A    %7D%0A
 %7D%0A

add retrieve marker layout manager