Forward declare the template and repeat the TableFrameFormats typedef to drop the frameformats.hxx include, which gifted us boost multi_index headers and libxml/xmlwriter.h into every user of doc.hxx. clang -ftime-trace suggests this is 0.75% of the sw compile. Signed-off-by: Michael Meeks <michael.meeks@collabora.com> Change-Id: I7863a8b59491f34d541944f252ec22ece0046b24 Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/12941 Tested-by: Jenkins CPCI <releng@collaboraoffice.com> Reviewed-by: Noel Grandin <noel.grandin@collabora.com> (cherry picked from commit c38556dd61c5896d667767d125c59a1e2094f704) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211354 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins