aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Provided validateChildFO() methods for the "easy" FO's--i.e., thoseGlen Mazza2004-07-279-5/+106
| | | | | | | with an empty content model. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197844 13f79535-47bb-0310-9956-ffa450edef68
* Switch from IllegalArgumentException to SAXParseException for errors found ↵Glen Mazza2004-07-2733-66/+119
| | | | | | in the input FO. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197843 13f79535-47bb-0310-9956-ffa450edef68
* Renamed end() method to somewhat clearer endOfNode().Glen Mazza2004-07-2727-37/+37
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197842 13f79535-47bb-0310-9956-ffa450edef68
* Redefining "isOutOfLineFODescendant" to include cases where FObj itselfGlen Mazza2004-07-271-5/+6
| | | | | | | is and O-o-L FO. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197841 13f79535-47bb-0310-9956-ffa450edef68
* Took advantage of the Transformer similarities between FO input andGlen Mazza2004-07-258-202/+93
| | | | | | | (XSL, XSLT) input to combine the two into InputHandler. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197840 13f79535-47bb-0310-9956-ffa450edef68
* Created a "isOutOfLineFODescendant" member variable to FObj, needed forGlen Mazza2004-07-251-6/+34
| | | | | | | | input FOValidation. As defined in Sect. 6.2 of the spec, certain child FO's are not valid if the parent FO is a descendant of an out of line FO (sect. 6.10) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197839 13f79535-47bb-0310-9956-ffa450edef68
* Removed the non-File constructors from the InputHandler subclasses in favorGlen Mazza2004-07-255-121/+14
| | | | | | | | | | | of JAXP (for embedded use), and standardized FOFileHandler to use a StreamSource (like XSLTInputHandler). Currently, command Line usage works only with files, but We may need to expand the constructors here somewhat again should we provide other input options from the command line. other options git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197838 13f79535-47bb-0310-9956-ffa450edef68
* Bug fixed in previous renaming.Glen Mazza2004-07-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197837 13f79535-47bb-0310-9956-ffa450edef68
* reverted change in PropertySets; unnecessary.Glen Mazza2004-07-251-10/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197836 13f79535-47bb-0310-9956-ffa450edef68
* moved FO term of a Node's child elements from "Children" to "ChildNodes"Glen Mazza2004-07-2417-78/+77
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197835 13f79535-47bb-0310-9956-ffa450edef68
* Combined the apps.Driver class into apps.Fop. (195 LOC total.) PrimaryGlen Mazza2004-07-2419-260/+215
| | | | | | | | | | | | | | | | | | | benefit is to make Fop self-documenting in external code, also none of the API ideas called for retention of the Driver class (even if there were different ideas for its replacement). Let's try this for a few weeks, if it confuses people too much (or when the API starts to grow again) we can bring back Driver, possibly under a different name, apps.FopProcess, perhaps. See also: http://marc.theaimsgroup.com/?l=fop-dev&m=108947697611032&w=2 http://marc.theaimsgroup.com/?l=fop-dev&m=108966015504506&w=2 http://marc.theaimsgroup.com/?l=fop-dev&m=108942673103344&w=2 http://marc.theaimsgroup.com/?l=fop-dev&m=108958756030147&w=2 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197827 13f79535-47bb-0310-9956-ffa450edef68
* Renamed FONode.addChild() to somewhat clearer FONode.addChildNode().Glen Mazza2004-07-2414-44/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197821 13f79535-47bb-0310-9956-ffa450edef68
* Allow a null locator in errorTextSimon Pepping2004-07-231-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197806 13f79535-47bb-0310-9956-ffa450edef68
* Removed redundant check for invalid render type.Glen Mazza2004-07-202-10/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197805 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved the SAXParser-creating method from FOFileHandler to ↵Glen Mazza2004-07-206-50/+67
| | | | | | | | | | | | | | | CommandLineOptions, the latter being the class directly using it. 2.) Decoupled the SVG classes from apps.FOFileHandler, the SVG classes for some reason want a string containing a name of a SAXParser. We'll need to look in the future for the actual need for this--normally error messages are done by the caller, not the callee. It would appear that Batik can generate a SAXParser name by default, and use that when not explicitly overridden by the caller. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197804 13f79535-47bb-0310-9956-ffa450edef68
* 1.) render() methods moved from Driver to XSLTInputHandler and FOFileHandler.Glen Mazza2004-07-2010-177/+78
| | | | | | | 2.) -param command line switch implemented for xml->xslt->pdf processes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197803 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved exclusively to Simon's DefaultHandler object for both TransformerGlen Mazza2004-07-1910-27/+24
| | | | | | | | | | | | | | | | and SAXParser usage. DefaultHandler implements the ContentHandler interface so it can be used where the latter was previously used, also it provides more functionality. [1] 2.) Updated the examples and internal code accordingly. 3.) Renamed ExampleFO2PDFUsingSAX to ...Parser to avoid confusion (both use SAX.) [1] http://www.cafeconleche.org/books/xmljava/chapters/ch06s03.html#d0e8440 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197802 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Driver constructor modified to require RenderType, and setter functionsGlen Mazza2004-07-1917-153/+123
| | | | | | | | | | | | | | | | for RenderType and FOUserAgent removed, to allow for better checking of a valid Driver object at time of construction. (Also, will reduce need to validate Driver object should it be a parameter to a method.) 2.) Added validity checking of renderType to FOTreeBuilder as well, in effect decoupling Driver from FOTreeBuilder (the latter can work on its own now.) 3.) Updated the various examples and the documentation to indicate the new API. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197801 13f79535-47bb-0310-9956-ffa450edef68
* Added alternative example for FO to PDF, using javax.xml.parsersSimon Pepping2004-07-182-0/+139
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197800 13f79535-47bb-0310-9956-ffa450edef68
* Implemented the ErrorHandler interface in FOTreeBuilder.Simon Pepping2004-07-182-3/+31
| | | | | | | Created a method in Driver to return FOTreeBuilder as a DefaultHandler. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197799 13f79535-47bb-0310-9956-ffa450edef68
* Removed the Driver(OutputStream) convenience constructor as not particularlyGlen Mazza2004-07-181-9/+0
| | | | | | | | helpful, and a can of worms given all the possible permutations of constructors that could be created. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197798 13f79535-47bb-0310-9956-ffa450edef68
* 1. New constructor for Driver created, takes FOUserAgent constructor.Glen Mazza2004-07-186-51/+32
| | | | | | | | | | Used for both CLI and AWTRenderer. (Thanks to Simon Pepping) 2. Removed Driver(AWTRenderer) constructor. 3. OutputStream validation moved to FOTreeBuilder. 4. Driver.reset() removed, not currently serving a purpose. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197797 13f79535-47bb-0310-9956-ffa450edef68
* set bullet list as default list stylePeter Herweg2004-07-171-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197796 13f79535-47bb-0310-9956-ffa450edef68
* Null pointer check added to code, to stop NPE error (unsure if other problemsGlen Mazza2004-07-161-1/+3
| | | | | | | also present). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197795 13f79535-47bb-0310-9956-ffa450edef68
* Moved user-defined ElementMapping initialization from Driver to FOUserAgent.Glen Mazza2004-07-163-82/+50
| | | | | | | | | | Moved only "string" method, the version we use internally--probably sufficient for others' work as well. (Note: an additional unused FOUserAgent object will be created in driver during command-line use--cp. its no-param constructor vs. setUserAgent() call in apps.Fop; this will need to be ironed out at some time.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197794 13f79535-47bb-0310-9956-ffa450edef68
* Back to transform example, reverted yesterday's change that removed ↵Glen Mazza2004-07-161-24/+10
| | | | | | BufferedOutputStream. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197793 13f79535-47bb-0310-9956-ffa450edef68
* *Temporary* commit showing how this process works via SAXParserFactory;Glen Mazza2004-07-161-5/+23
| | | | | | | | including just for future reference should we get a question on this class or wish to document this method on our web pages in the future. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197792 13f79535-47bb-0310-9956-ffa450edef68
* Minor edit, fixed commenting.Glen Mazza2004-07-141-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197791 13f79535-47bb-0310-9956-ffa450edef68
* Removed the Driver.run() method in favor of JAXP.Glen Mazza2004-07-143-96/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197790 13f79535-47bb-0310-9956-ffa450edef68
* Removed BufferedOutputStream line as unneeded in this case (Unsure if helpfulGlen Mazza2004-07-141-1/+0
| | | | | | | for performance.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197789 13f79535-47bb-0310-9956-ffa450edef68
* Updated FO->PDF example to use JAXP.Glen Mazza2004-07-141-19/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197788 13f79535-47bb-0310-9956-ffa450edef68
* bug fixed, which caused runtime-exception on leading whitespacesPeter Herweg2004-07-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197787 13f79535-47bb-0310-9956-ffa450edef68
* missing call of endFlow added, so RTF module doesn't shift fo:flow's content ↵Peter Herweg2004-07-131-0/+1
| | | | | | into fo:static-content anymore git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197786 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-07-132-70/+39
| | | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: 1. Removed Driver.setXMLReader(), this can be done via JAXP. 2. Moved the business logic for creating FOTreeBuilder's FOInputHandler object from Driver to FOTreeBuilder. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197785 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Combined the AreaTree and FOTreeHandler into a new AreaTreeHandlerGlen Mazza2004-07-1310-706/+357
| | | | | | | | | | | | object. FOTreeHandler was primarily acting as an AreaTreeHandler, and AreaTree had a 1-to-1 relationship with it. Comments most welcome. 2.) Created convenience methods in FOInputHandler for those subclasses which do not handle certain signals/events called from the formatting objects (i.e., AreaTreeHandler). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197784 13f79535-47bb-0310-9956-ffa450edef68
* Moved FOPPrintServlet from using XSLTInputHandler to JAXP.Glen Mazza2004-07-111-10/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197783 13f79535-47bb-0310-9956-ffa450edef68
* Reviewed the Mime typesSimon Pepping2004-07-091-89/+99
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197777 13f79535-47bb-0310-9956-ffa450edef68
* Correction to the javadocSimon Pepping2004-07-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197776 13f79535-47bb-0310-9956-ffa450edef68
* Adding reporting of mime type to renderers.Simon Pepping2004-07-095-0/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197775 13f79535-47bb-0310-9956-ffa450edef68
* Implementing user configuration file.Simon Pepping2004-07-098-9/+183
| | | | | | | | | Adding debug logging for user configuration, user PDF filters and user fonts. Adding reporting of mime type to renderers. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197774 13f79535-47bb-0310-9956-ffa450edef68
* Made Driver.initialize() private, more in line with 0.20.5, which doesn'tGlen Mazza2004-07-096-14/+1
| | | | | | | have such a method. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197773 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-07-073-613/+8
| | | | | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Removed DocumentReader/DocumentInputSource from the API in favor of the JAXP identity transformation for DOM Tree Handling. JAXP seems to be the right way for us to go for 1.0 for DOM documents, and I think we can make the change now, with few people using HEAD in production. Still, we'll listen to the user email list on this change as a judge of whether these classes need to return. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197767 13f79535-47bb-0310-9956-ffa450edef68
* Switch to JAXP identity transformation for DOM Document example.Glen Mazza2004-07-071-4/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197765 13f79535-47bb-0310-9956-ffa450edef68
* Switch from non-JAXP DOM processing to using JAXP identity transformationGlen Mazza2004-07-073-23/+50
| | | | | | | for ExampleDOM2PDF example. Patch from Jeremias Maerki. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197764 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved the Renderer creation further down from AreaTree to ↵Glen Mazza2004-07-078-904/+156
| | | | | | | | | | | | | RenderPagesModel (subclass of AreaTreeModel). Still have the issue of the four-param constructor a bit messy, also some of the exceptions I have to declare to be thrown may not be necessary. 2.) Removed encapsulation-breaking methods from AreaTree; dropped the AreaTreeBuilder class as it wasn't conformant with our API and required too many objects to expose internal functionality. 3.) Validity checking added for fo:title, however still won't work as #PCDATA needs <fo:blocks> around it within FOP, but the Recommendation bans those for fo:title. 4.) isInlineItem() added to FObj, as a quick check for the %inline; parameter entity as defined in spec. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197763 13f79535-47bb-0310-9956-ffa450edef68
* This change abstracts the Renderer away from FOTreeHandler as follows:Glen Mazza2004-07-064-111/+139
| | | | | | | | | | | | | | | | | | | | | Old: driver-->fotreehandler-->areatree \-->renderer New: driver-->fotreehandler-->areatree-->renderer I am hoping this will streamline the code more. Main drawback I can see is that the AreaTree constructor gets a bit ugly--from one parameter, the Renderer, to four (the items needed to create a Renderer.) Perhaps we can have AreaTree construct the FontInfo object in the future, dropping us to a three-parameter constructor. Comments welcome. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197754 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved DocumentInputSource & DocumentReader to apps package, made privateGlen Mazza2004-07-055-8/+35
| | | | | | | | | | | | to package. 2.) Added validity checking to fo:static-content. 3.) Bug with uninitialized FOUserAgent in Driver fixed (this will probably need more analysis later.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197753 13f79535-47bb-0310-9956-ffa450edef68
* validateChildNode() activated for fo:flow.Glen Mazza2004-07-042-7/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197752 13f79535-47bb-0310-9956-ffa450edef68
* Removed isMarker() method in favor of getName() (may eventually switch to an ↵Glen Mazza2004-07-043-19/+1
| | | | | | ID system for element names for better performance.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197751 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved Renderer instantiation from Driver to FOTreeHandler, as it is the ↵Glen Mazza2004-06-277-106/+127
| | | | | | | | | | | | | | | | | | only FOInputHandler subclass concerned with Renderer creation. (MIFHandler and RTFHandler are hardcoded to a particular renderer-type). 2.) Added a RendererOverride member variable in FOUserAgent, for use by AWTRenderer as well as external (i.e. user-defined) renderers. FOTreeHandler coded to reference it. 3.) Flow validity checking which was added yesterday temporarily commented-out; I misread the content model from the spec (I will have to account for fo:markers as initial children.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197746 13f79535-47bb-0310-9956-ffa450edef68