move startup of laying out a PageSequence from PageSequence.format() and Document.foPageSequenceComplete to the LayoutStrategy implementation (layoutmgr/LayoutManagerLS)
Fix to Bug 22561: Driver.run() incorrectly setting output type to PDF for the structure (MIF and RTF) types.
Submitted by: Michael Cosby (michael at cosby dot dhs dot org).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196813 13f79535-47bb-0310-9956-ffa450edef68
1. Remove fo/FOTreeExternal and layoutmgr/LMFOTreeExternal (in favor of Visitor concept, see item 2)
2. Add fo/FOTreeVisitor and layoutmgr/AddLMVisitor
3. Remove all occurrences of addLayoutManager in fo/FObj subclasses, replacing them with equivalent methods in AddLMVisitor
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196809 13f79535-47bb-0310-9956-ffa450edef68
1. tie Document to fo.FOTreeBuilder and fo.pagination.Root
2. add getDocument() method to FONode (using this.parent for all nodes except Root)
3. start using getDocument() to gain access to font collections stored in Document
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196808 13f79535-47bb-0310-9956-ffa450edef68
Removed error message when logger not explicitly set; Driver will continue to use ConsoleLogger as default in such circumstances. (Allows for coding simple command-line processes without needing to explicitly code in Avalon ConsoleLoggers)
1.) CommandLineStarter removed, its functionality placed directly into Fop.main().
Fop.main() now responsible for taking command-line input as provided from
CommandLineOptions, and activating a Driver instance with that data.
2.) Minor cleanup of error messages in CommandLineOptions.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196794 13f79535-47bb-0310-9956-ffa450edef68
1. FOPTaskStarter separated from Starter class (was not using latter's InputHandler).
2. CommandLineStarter made a top-level class, and abstract Starter class removed.
(only one starter being used for command line, regardless of renderer.)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196793 13f79535-47bb-0310-9956-ffa450edef68
1. convert fo.FOTreeHandler to fire events when it completes a PageSequence or document object
2. move logic that starts layout from fo.FOTreeHandler to apps.Driver.
3. add logic to apps.Driver to handle the events fired from fo.FOTreeHandler
4. end result is that FOTreeHandler now allows other objects to handle page-sequence and document objects in a manner similar to the way SAX allows them to handle XML elements.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196788 13f79535-47bb-0310-9956-ffa450edef68
1. convert fo.FOTreeHandler to fire events when it completes a PageSequence or document object
2. move logic that starts layout from fo.FOTreeHandler to apps.Driver.
3. add logic to apps.Driver to handle the events fired from fo.FOTreeHandler
4. end result is that FOTreeHandler now allows other objects to handle page-sequence and document objects in a manner similar to the way SAX allows them to handle XML elements.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196787 13f79535-47bb-0310-9956-ffa450edef68
1. AWT PreviewDialog creation shifted from AWTStarter to AWTRenderer.
2. New AWTRenderer constructor -- takes an InputHandler object which
is used for the document refreshing/reloading.
3. PreviewDialog's reload() functionality now handled via Driver instead of
AWTStarter.
4. Class AWTStarter removed: AWT generation now activated via CommandLineStarter.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196785 13f79535-47bb-0310-9956-ffa450edef68
2. break explanation of fox: namespace into a separate section so that it is clear that it applies to all of the fox: extensions
3. some other minor cleanup
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196783 13f79535-47bb-0310-9956-ffa450edef68
Moved the Translator (resource bundle) creation from AWTStarter to AWTRenderer.
Gave the AWTRenderer access to the PrintViewer frame that displays the document.
Moved rendering status messages from AWTStarter to AWTRenderer and PrintDialog.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196779 13f79535-47bb-0310-9956-ffa450edef68
1. To facilitate comprehension of the Renderer classes, added the remaining three methods in the Renderer interface to AbstractRenderer: startRenderer(), stopRenderer(), and setupFontInfo(). SetupFontInfo() remains abstract, the other two have blank definitions.
2. Removed the blank definitions of startRenderer() and stopRenderer() from PrintRenderer, these are now defined in AbstractRenderer.
3. Member string variables "producer" and "creator" were added to AbstractRenderer and are now populated by its setProducer() and setCreator() methods; removed these functions from the several subclasses that were handling these strings equivalently.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196776 13f79535-47bb-0310-9956-ffa450edef68
Safer handling of treebuilder variable within Driver.reset(), also Driver.setRenderer(renderer) will now set the rendererType variable when given an AWTRenderer.
1.) only partly implemented Run() function removed from InputHandler and its subclasses; Driver.Run(InputHandler) can be used instead; now all processing centralized in Driver class.
2.) getParserClassName() moved from Driver to (to be renamed) FOInputHandler; now the same class that provides the parser provides its description.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196771 13f79535-47bb-0310-9956-ffa450edef68
PrinterJob setup and construction moved from Driver to AWTPrintRenderer class. AWTPrintRenderer now be instantiated without a PrinterJob object. (Pending: for embedded programming, may still wish to have a PrinterJob-based constructor for AWTPrintRenderer, or otherwise provide an accessor method to its PrinterJob object.)
1. Moved the XMLReader createParser() functionality from abstract class InputHandler to FOInputHandler.
2. Added the setting of the "namespace-prefix" SAX option directly into createParser(), and removed function setParserFeatures (where it was previously being set).
3. Removed the duplicate XMLReader creation code in Driver.run(), it now uses FOTreeBuilder.createParser().
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196769 13f79535-47bb-0310-9956-ffa450edef68