internal void WriteDelayedSectionHeader(RPLWriter rplWriter, bool isLastPage) { if (m_wroteEndToStream) { return; } if (!isLastPage) { List <SectionItemizedData> glyphCache = rplWriter.GlyphCache; if (m_footer != null && glyphCache != null) { SectionItemizedData sectionItemizedData = glyphCache[0]; if (sectionItemizedData != null) { rplWriter.PageParagraphsItemizedData = sectionItemizedData.HeaderFooter; } } RenderHeader(rplWriter); if (m_footer == null && glyphCache != null) { Dictionary <string, List <TextRunItemizedData> > dictionary = rplWriter.PageParagraphsItemizedData; if (dictionary != null && dictionary.Count == 0) { dictionary = null; } glyphCache[0].HeaderFooter = dictionary; } } WriteEndItemToStream(rplWriter); }
internal void RegisterPageItemizedData() { if (m_glyphCache == null) { m_glyphCache = new List <SectionItemizedData>(); } if (m_sectionItemizedData != null && m_sectionItemizedData.Columns.Count == 0 && m_sectionItemizedData.HeaderFooter == null) { m_sectionItemizedData = null; } m_glyphCache.Add(m_sectionItemizedData); m_sectionItemizedData = null; }
internal void RegisterSectionHeaderFooter() { if (m_sectionItemizedData == null) { m_sectionItemizedData = new SectionItemizedData(); } if (m_pageParagraphsData != null && m_pageParagraphsData.Count == 0) { m_pageParagraphsData = null; } m_sectionItemizedData.HeaderFooter = m_pageParagraphsData; m_pageParagraphsData = null; }
internal void RegisterSectionItemizedData() { if (m_sectionItemizedData == null) { m_sectionItemizedData = new SectionItemizedData(); } if (m_pageParagraphsData != null && m_pageParagraphsData.Count == 0) { m_pageParagraphsData = null; } m_sectionItemizedData.Columns.Add(m_pageParagraphsData); m_pageParagraphsData = null; }