You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!--
  3. Copyright 1999-2004 The Apache Software Foundation
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN"
  15. "http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-forrest/src/resources/schema/dtd/document-v11.dtd">
  16. <!-- $Id$ -->
  17. <document>
  18. <header>
  19. <title>Layout managers</title>
  20. <authors>
  21. <person name="Peter B. West" email="pbwest@powerup.com.au"/>
  22. </authors>
  23. </header>
  24. <body>
  25. <section>
  26. <title>Layout managers in FOP</title>
  27. <p>
  28. What do the layout managers do? Most layout is is "automatic"
  29. in the sense of being a straightforward stacking operation.
  30. Sibling inline-areas, including fo:character areas, are
  31. stacked in line-areas in the inline-progression-direction.
  32. Sibling block-areas, including line-areas, are stacked in the
  33. block-progression-direction.
  34. </p>
  35. <p>
  36. In the simple cases in which both the available
  37. block-progression-dimension and the available
  38. inline-progression-dimension are known, this process can be
  39. driven bottom-up. Available dimensions trickle down from the
  40. top, and the bottom level galleys can determine when their
  41. available areas are full and suspend pending the arrival of
  42. more areas. Such full notifications bubble back up the tree
  43. of active galleys. E.g., if an inline galley fills a
  44. line-area of a given inline-p-d and suspends while still
  45. within the available block-p-d, the parent block-area galley
  46. will simply stack the inline-area and notify the inline galley
  47. to continue. If the inline-galley discovers that the next
  48. line-area that it would generate will not fit in the the
  49. block-p-d, it suspends with a notification to that effect to
  50. its parent.
  51. </p>
  52. <p>
  53. In more complex cases the dimensions may not be fully
  54. specified, or decisions about layout may depend on later
  55. layout. In all such cases some layout look-ahead is required
  56. which can report results back to higher layout levels. The
  57. job for a layout manager in these cirucmstances is to evaluate
  58. the information flowing back and set parameters for the best
  59. fit layout.
  60. </p>
  61. </section>
  62. </body>
  63. </document>