Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1558

Better support for overriding default LayoutManagerMaker needed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Resolution: Fixed
    • 0.94
    • None
    • layout/unqualified
    • None
    • Operating System: All
      Platform: All
    • 45470

    Description

      I have the requirement to replace the default BlockContainerLayoutManagerMaker with my own implementation. After searching the code base I think the suggested way is by using the setLayoutManagerMakerOverride(LayoutManagerMaker) method of the FopFactory to override the default LayoutManagerMaker implementation.

      My own LayoutManagerMaker is a subclass of the default LayoutManagerMapping.
      Unfortunately, 'cause the map of LayoutManagerMakers is private and no protected setter is given to change the default mapping set during initialize(), one has to provide a second map of LayoutManagerMakers and duplicate a lot of code to tell fop to use this new mapping.

      My suggestion:
      Either make the map of LayoutManagerMakers protected or preferably provide a protected setter to change the default mapping.

      Thanks in advance
      Rainer

      Attachments

        1. LayoutManagerMapping-proposal.diff
          10 kB
          Jeremias Maerki

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            langbehn@netcologne.de Rainer Langbehn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: