Пример #1
0
        private void FinishHeaderOrFooter()
        {
            if (_currentPart.Writer.Location == _currentPart.StartingLocation)
            {
                OpenXmlParagraphModel.WriteInvisibleParagraph(_currentPart.Writer.TextWriter);
            }
            WriteCloseTag(_currentPart.Part.Tag);
            Stream stream = ZipPackage.GetPart(new Uri(PartManager.CleanName(_currentPart.PartName), UriKind.Relative)).GetStream();

            _currentPart.Writer.Interleave(stream, WriteInterleaverToHeaderOrFooter);
            _currentPart.Stream.Dispose();
            _currentPart = _documentPart;
        }
        public void WriteCloseTag(bool emptyLayoutCell)
        {
            bool num = _contents.Count > 0;

            Flush();
            if (!num)
            {
                if (emptyLayoutCell)
                {
                    OpenXmlParagraphModel.WriteEmptyLayoutCellParagraph(_textWriter);
                }
                else
                {
                    OpenXmlParagraphModel.WriteEmptyParagraph(_textWriter);
                }
            }
            _textWriter.Write("</w:tc>");
        }
Пример #3
0
 internal void WritePageBreak()
 {
     OpenXmlParagraphModel.WritePageBreakParagraph(_currentPart.Writer.TextWriter);
 }
Пример #4
0
 internal void WriteEmptyParagraph()
 {
     OpenXmlParagraphModel.WriteEmptyParagraph(_currentPart.Writer.TextWriter);
 }
Пример #5
0
 internal void WriteParagraph(OpenXmlParagraphModel paragraph)
 {
     paragraph.Write(_currentPart.Writer.TextWriter);
 }