Modernize TOC/IDX

I suggest to implement the following feature:

  • Trigger DefinePrintOptions events for table of contents and index projects and make it possible to change their printer settings via in-memory DOM as you can do with other project types. Currently you need to use LlSetPrinterInPrinterFile() and maintain a temporary directory per process to store the printer files for TOC and IDX projects.
  • (maybe optionally) use the report container instead of the print loop approach for TOC/IDX projects. By providing sample data the developer could enable a live preview to design complex TOCs more conveniently and independently from a parent project. That would especially be handy in scenarios like combination print.