private void FinishHeaderOrFooter() { if (this._currentPart.Writer.Location == this._currentPart.StartingLocation) { OpenXmlParagraphModel.WriteInvisibleParagraph(this._currentPart.Writer.TextWriter); } this.WriteCloseTag(this._currentPart.Part.Tag); Package zipPackage = this.ZipPackage; PackagePart part = zipPackage.GetPart(new Uri(PartManager.CleanName(this._currentPart.PartName), UriKind.Relative)); Stream stream = part.GetStream(); this._currentPart.Writer.Interleave(stream, this.WriteInterleaverToHeaderOrFooter); this._currentPart.Stream.Dispose(); this._currentPart = this._documentPart; }
public void WriteCloseTag(bool emptyLayoutCell) { bool flag = this._contents.Count > 0; this.Flush(); if (!flag) { if (emptyLayoutCell) { OpenXmlParagraphModel.WriteEmptyLayoutCellParagraph(this._textWriter); } else { OpenXmlParagraphModel.WriteEmptyParagraph(this._textWriter); } } this._textWriter.Write("</w:tc>"); }
public void WritePageBreak() { OpenXmlParagraphModel.WritePageBreakParagraph(this._currentPart.Writer.TextWriter); }
public void WriteEmptyParagraph() { OpenXmlParagraphModel.WriteEmptyParagraph(this._currentPart.Writer.TextWriter); }
public void WriteParagraph(OpenXmlParagraphModel paragraph) { paragraph.Write(this._currentPart.Writer.TextWriter); }