aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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-092-2/+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
* 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
* 1. Output constant types (RENDER_PDF, RENDER_PS, etc.) made common betweenGlen Mazza2004-06-2610-189/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | CommandLineOptions and Driver, and factored into fo.Constants interface. 2. New Driver(AWTRenderer renderer) constructor added in apps.Driver for the AWTRenderer (which does reloading, unique among the output types.) Note reloading currently doesn't work--AWTRenderer not yet functional. 3. Driver.hasData() method removed from API--a search on when it was implemented dates it to 2001, when reset() was coded. Unsure of its need, and so removed until we have user requests for it. 4. Renderers abstracted away from API in favor of just calling .setRenderer(int Rendertype), and configuring user-configurable options in FOUserAgent. 5. Driver.setRenderer(String <renderer class name>) also dropped. If external user need for it, can be re-implemented fairly easily via a "renderer override" string in FOUserAgent, for which FOTreeHandler can read and use instead. 6. Validity checking added to fo:flow, and convenience functions defining the "%block;" parameter entity and neutral containers as defined in 6.2 of spec [1] added to FObj. [1] http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#section-N9447-Formatting-Object-Content git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197745 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved the CommandLineOptions' InputHandler object into FOUserAgent, allowingGlen Mazza2004-06-259-77/+76
| | | | | | | | | | | | | | | | for a no-parameter constructor for AWTRenderer (like the other renderers). (Code is not yet ideal in AWTRenderer, but will do the task.) 2.) AWT renderer handling now more similar to the other renderers (simplifications in Driver, Fop). 3.) Driver.getRenderer() removed from API. (Renderer configuration now mostly done through FOUserAgent, and setup of renderer prior to calling setRenderer().) 4.) Validity checking added to region-after, -start, -end, and -before. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197744 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moving renderer-specific customization variables (producer, creator, ↵Glen Mazza2004-06-2316-118/+104
| | | | | | | | | | | create date) to FOUserAgent, those renderers which can work with these values can read them from passed-in FOUserAgent instance. 2.) Version.getVersion() moved to Fop.getVersion(). 3.) Validation added for fo:region-body. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197743 13f79535-47bb-0310-9956-ffa450edef68
* Disable check for maximum line length because of a problem reported in FOP ↵Jeremias Maerki2004-06-221-1/+9
| | | | | | 0.20.5. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197742 13f79535-47bb-0310-9956-ffa450edef68
* 1. Moved renderer options to within FOUserAgentGlen Mazza2004-06-228-33/+34
| | | | | | | 2. Validity checking on fo:conditional-page-master-reference added. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197741 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Removed the get/setLogger methods from Driver, obsolete with ↵Glen Mazza2004-06-208-80/+25
| | | | | | | | | | Commons-Logging. 2.) Updated examples and documentation. 3.) Added a -v option to show version of FOP being used. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197740 13f79535-47bb-0310-9956-ffa450edef68
* 1. Created own logger for AbstractRenderer, removed logger setter from ↵Glen Mazza2004-06-206-19/+28
| | | | | | | | | Renderer interface. 2. Validity checking for fo:repeatable-page-master-alternatives. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197739 13f79535-47bb-0310-9956-ffa450edef68
* 1. ProxyContentHandler no longer needed.Glen Mazza2004-06-203-159/+13
| | | | | | | 2. fo:repeatable-page-master-reference's ValidateChildNode() implemented. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197738 13f79535-47bb-0310-9956-ffa450edef68
* 1.) FOInputHandler constructors switched from Document to FOUserAgent, ↵Glen Mazza2004-06-1910-173/+83
| | | | | | | | | | Renderer added to FOTreeHandler interface. 2.) Apps.Document dropped. 3.) Validity checking added to fo.pagination.SinglePageMasterReference git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197737 13f79535-47bb-0310-9956-ffa450edef68
* Implemented a cache for property value lookup.Simon Pepping2004-06-184-12/+119
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197736 13f79535-47bb-0310-9956-ffa450edef68
* Unused apps.Document object removed from FOTreeBuilder.Glen Mazza2004-06-183-15/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197735 13f79535-47bb-0310-9956-ffa450edef68
* 1. FOTreeBuilder modified to handle more of the renderer initialization.Glen Mazza2004-06-1816-160/+174
| | | | | | | | | | 2. AreaTree now takes a Renderer as a constructor, handles RenderPagesModel initialization. 3. FontInfo object moved from Driver/Document to fo.FOInputHandler. 4. getFontState/getFontInfo now take a fontInfo object directly instead of a apps.Document. 5. validity checking added to PageSequence.java git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197734 13f79535-47bb-0310-9956-ffa450edef68
* 1. Child element validity checking added for fo:page-sequence-master.Glen Mazza2004-06-176-28/+58
| | | | | | | 2. AreaTree object moved from Document/Driver to FOTreeHandler, as it is specific to this subclass of FOInputHandler only (RTFHandler and MIFHandler don't use area trees). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197723 13f79535-47bb-0310-9956-ffa450edef68
* Correction to text message of previous patch: No-parameter constructor ↵Glen Mazza2004-06-171-0/+1
| | | | | | created for AreaTree. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197722 13f79535-47bb-0310-9956-ffa450edef68
* No-constructor loader created for Area Tree.Glen Mazza2004-06-173-12/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197721 13f79535-47bb-0310-9956-ffa450edef68
* 1. Valid node checking for LayoutMasterSet done.Glen Mazza2004-06-1622-58/+129
| | | | | | | | | | 2. Additional error message provided for missing required child elements of a node. 3. Removal of elementName from property list; redundant (retrievable via getFObj.getName()). Adding getName() to FObj so the element so fObj.getName() works. (Vielen Dank, Simon!) 4. Moving locator information from FObj to FONode so non-XSL NS elements will also have this information. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197720 13f79535-47bb-0310-9956-ffa450edef68
* Removed illegal tab character Jeremias Maerki2004-06-162-11/+11
| | | | | | | Removed some of the checkstyle warnings while at it. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197719 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Check for fo:color-profile made to ensure no child elements during ↵Glen Mazza2004-06-1630-110/+124
| | | | | | | | | | | processing. 2.) Error messages for bad fo: files now give locator (line/col. #) information. 3.) Parent of the fo:root (FO Tree) "lowered" from apps.Document to fo.FOInputHandler; IDReferences moved from former to latter. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197717 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Added restriction to fo:declarations that fo:color-profile is the only ↵Glen Mazza2004-06-1537-156/+108
| | | | | | | | | XSL namespace child element allowed. 2.) Switched from fo.FOTreeControl to apps.Document throughout app, to better clarify that it is the apps.Document object being accessed/used. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197716 13f79535-47bb-0310-9956-ffa450edef68
* Standardized error messages, brought fox:bookmarks under parent fo:root.Glen Mazza2004-06-1513-76/+125
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197715 13f79535-47bb-0310-9956-ffa450edef68
* 1.) App now returns an error if no page-sequence declared within fo:root.Glen Mazza2004-06-137-91/+77
| | | | | | | | | | | 2.) Standardized node names via a new static FONode.getNodeName() method 3.) Declarations object now tied to Root object, will no longer return NPE if empty (bug fixed). 4.) AreaTreeControl removed in favor of direct connection between Document and the Area Tree. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197708 13f79535-47bb-0310-9956-ffa450edef68
* Removed unneeded getCurrentDocument() again from Driver.Glen Mazza2004-06-131-8/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197705 13f79535-47bb-0310-9956-ffa450edef68
* Moved AddLMVisitor accessors into FOTreeHandler.Glen Mazza2004-06-137-46/+46
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197704 13f79535-47bb-0310-9956-ffa450edef68
* Created a validateChildNode() in FONode for better syntax checking in theGlen Mazza2004-06-1263-21/+259
| | | | | | | | | | fo document: e.g., preventing two fo:layout-master-set's from occurring within an fo:root, requiring fo:page-sequence to follow the fo:l-m-s (and fo:declarations, if present). Currently just validates fo:root's children--validateChildNode() needs to be overridden in other FObj subclasses to do the same for other formatting objects. Comments most welcome. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197703 13f79535-47bb-0310-9956-ffa450edef68
* More solid checking to ensure first node encountered is an fo:root FO.Glen Mazza2004-06-122-7/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197702 13f79535-47bb-0310-9956-ffa450edef68
* Removed get/setUserAgent() initializations from the LayoutManagers. ↵Glen Mazza2004-06-126-42/+0
| | | | | | | | | | (Infrequently called, and already obtainable through AbstractLayoutManager's FObj member variable.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197701 13f79535-47bb-0310-9956-ffa450edef68
* added year to Jeremy birthdayClay Leeds2004-06-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197700 13f79535-47bb-0310-9956-ffa450edef68
* Consolidated formatPageSequence() into FOTreeHandler.Glen Mazza2004-06-118-304/+128
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197699 13f79535-47bb-0310-9956-ffa450edef68
* Added/moved Clay Leeds to Active Committers and added to Areas of Expertise ↵Clay Leeds2004-06-111-14/+39
| | | | | | (Forrest) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197697 13f79535-47bb-0310-9956-ffa450edef68
* Better error-handling messages added for incorrect LayoutMasterSets.Glen Mazza2004-06-082-2/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197694 13f79535-47bb-0310-9956-ffa450edef68
* public format() renamed to private formatPageSequence().Glen Mazza2004-06-081-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197693 13f79535-47bb-0310-9956-ffa450edef68
* Removed the new apps.Document from public access within Driver, at least ↵Glen Mazza2004-06-081-16/+0
| | | | | | until the former class' methods have been finalized and its API benefits over apps.Driver better declared. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197692 13f79535-47bb-0310-9956-ffa450edef68
* Hyphenation of words with punctuation marks, patch by Luca Furini, bugSimon Pepping2004-05-291-5/+53
| | | | | | | 28431. Patch applied as modified by me. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197653 13f79535-47bb-0310-9956-ffa450edef68
* Remove trailing spaces at the end of a paragraph.Simon Pepping2004-05-291-21/+18
| | | | | | | | | Modify the way to deal with BPs which have not been added to vecInlineBreaks. See bug 28706. The code was rewritten w.r.t. the submitted patch. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197652 13f79535-47bb-0310-9956-ffa450edef68
* Solve a few problems concerning hyphenation:Simon Pepping2004-05-294-14/+28
| | | | | | | | | | - show the '-' at the end of the hyphenated lines - use the fo:hyphenate property to enable hyphenation, instead of the alignment - specify the hyphenation character using the fo:hyphenation-character property Patch by Luca Furini, bug 27773 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197651 13f79535-47bb-0310-9956-ffa450edef68
* Moved myself to the list of active committersSimon Pepping2004-05-271-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197644 13f79535-47bb-0310-9956-ffa450edef68
* implemented break-before propertyChris Bowditch2004-05-277-78/+160
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197635 13f79535-47bb-0310-9956-ffa450edef68
* added protected log member, so child areas can send messages to logChris Bowditch2004-05-261-8/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197634 13f79535-47bb-0310-9956-ffa450edef68
* added fix break-* properties to layout todo listChris Bowditch2004-05-261-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197633 13f79535-47bb-0310-9956-ffa450edef68
* Removed getPropertyList() method from PropertyManager, as that methodGlen Mazza2004-05-262-10/+2
| | | | | | | | is already available on the FObj (which owns both the PropertyList and the PropertyManager.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197632 13f79535-47bb-0310-9956-ffa450edef68
* Removed PropertyManager argument from initProperties(), as it is alreadyGlen Mazza2004-05-2613-132/+122
| | | | | | | available within its FObj object. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197631 13f79535-47bb-0310-9956-ffa450edef68