aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/pagination
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 1.) Moved the Renderer creation further down from AreaTree to ↵Glen Mazza2004-07-071-0/+14
| | | | | | | | | | | | | 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
* 1.) Moved DocumentInputSource & DocumentReader to apps package, made privateGlen Mazza2004-07-052-2/+28
| | | | | | | | | | | | 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-041-6/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197752 13f79535-47bb-0310-9956-ffa450edef68
* 1.) Moved Renderer instantiation from Driver to FOTreeHandler, as it is the ↵Glen Mazza2004-06-271-2/+4
| | | | | | | | | | | | | | | | | | 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-262-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-252-10/+12
| | | | | | | | | | | | | | | | 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-231-0/+14
| | | | | | | | | | | 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
* 1. Moved renderer options to within FOUserAgentGlen Mazza2004-06-221-0/+9
| | | | | | | 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. Created own logger for AbstractRenderer, removed logger setter from ↵Glen Mazza2004-06-202-0/+25
| | | | | | | | | 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-201-0/+9
| | | | | | | 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-191-0/+13
| | | | | | | | | | 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
* 1. FOTreeBuilder modified to handle more of the renderer initialization.Glen Mazza2004-06-182-81/+100
| | | | | | | | | | 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-172-3/+32
| | | | | | | 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
* 1. Valid node checking for LayoutMasterSet done.Glen Mazza2004-06-168-15/+50
| | | | | | | | | | 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
* 1.) Check for fo:color-profile made to ensure no child elements during ↵Glen Mazza2004-06-166-30/+44
| | | | | | | | | | | 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-155-17/+31
| | | | | | | | | 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-151-23/+51
| | | | 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-132-24/+47
| | | | | | | | | | | 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
* Created a validateChildNode() in FONode for better syntax checking in theGlen Mazza2004-06-1221-16/+104
| | | | | | | | | | 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
* Consolidated formatPageSequence() into FOTreeHandler.Glen Mazza2004-06-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197699 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
* Reverted part of yesterday's work to make FObj simpler, added more ↵Glen Mazza2004-05-231-1/+1
| | | | | | commenting in FObj. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197619 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-05-221-1/+1
| | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Made propertyList member variable of fo.FObj protected (instead of public). Property value queries routed through FObj instead of PropertyList. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197614 13f79535-47bb-0310-9956-ffa450edef68
* Switched from handleAttrs() to more intuitive processNode() and (for FO ↵Glen Mazza2004-05-2210-42/+30
| | | | | | namespace) addProperties() methods. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197613 13f79535-47bb-0310-9956-ffa450edef68
* String->int conversion and a few other simplifications to fo.Region* classes.Glen Mazza2004-05-0911-83/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197575 13f79535-47bb-0310-9956-ffa450edef68
* Apparent off-by-one error fixed for initial-page-number property:Glen Mazza2004-04-181-1/+1
| | | | | | | http://www.w3.org/TR/2003/WD-xsl11-20031217/#initial-page-number git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197516 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-03-312-4/+25
| | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Conversion of Avalon to Commons-Logger. (Will still need to update the examples, which I will take care of next; Jeremias will be modifying the PDF libraries for more efficient use of the CL loggers.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197474 13f79535-47bb-0310-9956-ffa450edef68
* Fixed bug, masterName variable wasn't being set.Glen Mazza2004-03-091-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197438 13f79535-47bb-0310-9956-ffa450edef68
* Applied Apache License Version 2.0 by following the instructions at ↵Jeremias Maerki2004-02-2726-1244/+412
| | | | | | http://www.apache.org/dev/apply-license.html. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197384 13f79535-47bb-0310-9956-ffa450edef68
* Support for "margin" shorthands for margin-[left,right].Finn Bock2004-02-041-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197326 13f79535-47bb-0310-9956-ffa450edef68
* Phase 3 (last) of bug 26434.Finn Bock2004-02-022-4/+4
| | | | | | | | | - Move the property classes to fop.fo.properties. PR: 26434 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197314 13f79535-47bb-0310-9956-ffa450edef68
* FOPropertyMapping.java no longer autogenerated, moved from fop.fo.propertiesGlen Mazza2004-01-201-1/+1
| | | | | | | to fo package in preparation for new property maker implementation. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197221 13f79535-47bb-0310-9956-ffa450edef68
* Moved the interfaces into the Constants class on a trial basis (we may stillGlen Mazza2004-01-178-11/+0
| | | | | | | | | | | | choose to remove them in favor of strictly using Constants.) Two interfaces (span and position) were removed because of conflicts with other class names. The interface generation was moved into Constants.xsl, which is run manually via the XsltToJava ant task and its output is then checked in. As a result, no more autogeneration of these interfaces at build time will be done. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197213 13f79535-47bb-0310-9956-ffa450edef68
* More String->Int conversions (ones I've missed previously.) Appears I've ↵Glen Mazza2004-01-146-13/+12
| | | | | | | | | finally converted all of them. From Finn Bock's patch. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197159 13f79535-47bb-0310-9956-ffa450edef68
* More String->Int Conversions.Glen Mazza2004-01-051-2/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197115 13f79535-47bb-0310-9956-ffa450edef68
* More String->Int conversions, primarily from patch from Finn Bock.Glen Mazza2003-12-311-6/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197079 13f79535-47bb-0310-9956-ffa450edef68
* More String->int conversions, annoyingly incremental but I'm getting there...Glen Mazza2003-12-291-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197076 13f79535-47bb-0310-9956-ffa450edef68
* Conversion of more properties from Strings to ints.Glen Mazza2003-12-288-26/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197072 13f79535-47bb-0310-9956-ffa450edef68
* 1. Moved static element and property structures from PropertyList ↵Glen Mazza2003-12-2011-37/+37
| | | | | | | | | | | | (previously in former PropertyListBuilder) to FObj 2. Renamed FObj "properties" instance variable to "propertyList" (reduces confusion on the type of object holding FO property information in the code) 3. Unneeded imports removed (Finn Bock's patch, Bug #25582). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197042 13f79535-47bb-0310-9956-ffa450edef68
* open up access in misc places by either adding accessor methods or by ↵William Victor Mote2003-10-102-14/+14
| | | | | | loosening acess control git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196953 13f79535-47bb-0310-9956-ffa450edef68
* add support for "xsl-region-before", "xsl-region-after" and fo:page-number ↵William Victor Mote2003-09-191-0/+4
| | | | | | tag, submitted by Peter Herweg, see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23274 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196927 13f79535-47bb-0310-9956-ffa450edef68
* Organize imports. Joerg Pietschmann2003-09-192-15/+7
| | | | | | | A bit of JavaDoc cosmetics. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196923 13f79535-47bb-0310-9956-ffa450edef68
* 1. convert fo/FOTreeVisitor to an interfaceWilliam Victor Mote2003-09-1624-24/+24
| | | | | | | 2. give all FOTreeVisitor methods a unique name (instead of overloading) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196913 13f79535-47bb-0310-9956-ffa450edef68
* Remove all storage of fo/FOInputHandler from within the FO Tree itself, in ↵William Victor Mote2003-09-023-5/+5
| | | | | | favor of storing it one time in apps/Document and getting it from there when needed. Makes everything cleaner, and uses less memory, at the probable expense of some processing time (to go up the tree to get to Document). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196887 13f79535-47bb-0310-9956-ffa450edef68
* move fo/pagination/StaticContent.getLayoutManager() to ↵William Victor Mote2003-08-281-15/+0
| | | | | | layoutmgr/PageLayoutManager.getStaticContentLayoutManager() git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196869 13f79535-47bb-0310-9956-ffa450edef68
* move fo/pagination/Title.getTitleArea() to layoutmgr/LayoutManagerLSWilliam Victor Mote2003-08-271-31/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196866 13f79535-47bb-0310-9956-ffa450edef68
* make some classes more readable by reversing the sense of some conditional logicWilliam Victor Mote2003-08-271-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196865 13f79535-47bb-0310-9956-ffa450edef68
* duplicate the area.RegionReference region codes in fo/pagination/Region, and ↵William Victor Mote2003-08-276-31/+35
| | | | | | use the codes in Region from within the Region subclasses git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196863 13f79535-47bb-0310-9956-ffa450edef68
* move fo/pagination/Region.setRegionPosition() to layoutmgr/PageLayoutManagerWilliam Victor Mote2003-08-271-16/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196862 13f79535-47bb-0310-9956-ffa450edef68