private void WriteInterleaverToDocument(IInterleave interleaver, TextWriter output) { HeaderFooterReferences headerFooterReferences = interleaver as HeaderFooterReferences; if (headerFooterReferences != null) { _sectionProperties.SetHeaderFooterReferences(headerFooterReferences); CT_P cT_P = new CT_P(); cT_P.PPr = new CT_PPr { SectPr = _sectionProperties.CtSectPr }; cT_P.Write(output, CT_Body.PElementName); _sectionProperties.ResetHeadersAndFooters(); if (_firstSection) { _sectionProperties.Continuous = true; _firstSection = false; } } else { interleaver.Write(output); } }
private void WriteInterleaverToHeaderOrFooter(IInterleave interleaver, TextWriter output) { interleaver.Write(output); }