Example #1
0
 /// <summary>
 /// Renders a single header footer.
 /// </summary>
 private void RenderHeaderFooter(HeaderFooter hdrFtr, HeaderFooterIndex renderAs)
 {
     HeaderFooterRenderer hfr = new HeaderFooterRenderer(hdrFtr, _docRenderer);
     hfr.PageSetup = _pageSetup;
     hfr.RenderAs = renderAs;
     hfr.Render();
 }
Example #2
0
        /// <summary>
        /// Implements the deep copy of the object.
        /// </summary>
        protected override object DeepCopy()
        {
            HeaderFooter headerFooter = (HeaderFooter)base.DeepCopy();

            if (headerFooter._format != null)
            {
                headerFooter._format         = headerFooter._format.Clone();
                headerFooter._format._parent = headerFooter;
            }
            if (headerFooter._elements != null)
            {
                headerFooter._elements         = headerFooter._elements.Clone();
                headerFooter._elements._parent = headerFooter;
            }
            return(headerFooter);
        }
 internal FormattedHeaderFooter(HeaderFooter headerFooter, DocumentRenderer documentRenderer, FieldInfos fieldInfos)
 {
     this.headerFooter = headerFooter;
       this.fieldInfos = fieldInfos;
       this.documentRenderer = documentRenderer;
 }
Example #4
0
 void FormatFooter(HeaderFooterPosition hfp, HeaderFooter footer)
 {
     if (footer != null && !_formattedFooters.ContainsKey(hfp))
     {
         FormattedHeaderFooter formattedHeaderFooter = new FormattedHeaderFooter(footer, _documentRenderer, _currentFieldInfos);
         formattedHeaderFooter.ContentRect = GetFooterArea(_currentSection, _currentPage);
         formattedHeaderFooter.Format(_gfx);
         _formattedFooters.Add(hfp, formattedHeaderFooter);
     }
 }
Example #5
0
 internal FormattedHeaderFooter(HeaderFooter headerFooter, DocumentRenderer documentRenderer, FieldInfos fieldInfos)
 {
     _headerFooter = headerFooter;
     _fieldInfos = fieldInfos;
     _documentRenderer = documentRenderer;
 }
Example #6
0
 void FormatHeader(HeaderFooterPosition hfp, HeaderFooter header)
 {
     if (header != null && !this.formattedHeaders.ContainsKey(hfp))
       {
     FormattedHeaderFooter formattedHeaderFooter = new FormattedHeaderFooter(header, this.documentRenderer, this.currentFieldInfos);
     formattedHeaderFooter.ContentRect = GetHeaderArea(this.currentSection, this.currentPage);
     formattedHeaderFooter.Format(gfx);
     this.formattedHeaders.Add(hfp, formattedHeaderFooter);
       }
 }
 internal HeaderFooterRenderer(DocumentObject domObj, RtfDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.headerFooter = domObj as HeaderFooter;
 }