public DPage() { PageHeader = new DPageHeader(EditorSetting.DefaultHeaderWidth, this.PaddingTop); PageFooter = new DPageFooter(EditorSetting.DefaultFooterWidth, this.PaddingBottom); PageBody = new DPageBody(EditorSetting.DefaultBodyWidth - this.PaddingLeft - this.PaddingRight, EditorSetting.DefaultPageHeight - PageHeader.Height - PageFooter.Height); }
public void SynchronizeData(DPageFooter pageFooter) { if (pageFooter == null) return; var doc = pageFooter.OwnerDocument; doc.FirstRow = null; doc.LastRow = null; var data = CopyData(); foreach (var dDocRow in data) { dDocRow.OwnerDocument = doc; if (doc.FirstRow == null) { doc.FirstRow = dDocRow; } else if (doc.LastRow == null) { doc.LastRow = dDocRow; dDocRow.PreDocRow = doc.FirstRow; doc.FirstRow.NextDocRow = dDocRow; } else { doc.LastRow.NextDocRow = dDocRow; dDocRow.PreDocRow = doc.LastRow; doc.LastRow = dDocRow; } } doc.ResetPosition(); }
public PFooterDocument(DPageFooter pageFooter) { OwnerPfooter = pageFooter; CreateRow(); }