internal void Format(XGraphics gfx) { _gfx = gfx; _isFirstArea = true; _formatter = new TopDownFormatter(this, _documentRenderer, TextArea.Elements); _formatter.FormatOnAreas(gfx, false); }
internal void Format(XGraphics gfx) { _gfx = gfx; _formatter = new TopDownFormatter(this, _documentRenderer, _cell.Elements); _formatter.FormatOnAreas(gfx, false); _contentHeight = CalcContentHeight(_documentRenderer); }
internal void Format(XGraphics gfx) { _gfx = gfx; _isFirstArea = true; _formatter = new TopDownFormatter(this, _documentRenderer, _headerFooter.Elements); _formatter.FormatOnAreas(gfx, false); _contentHeight = RenderInfo.GetTotalHeight(GetRenderInfos()); }
/// <summary> /// Formats the document by performing line breaks and page breaks. /// </summary> internal void Format(XGraphics gfx) { _bookmarks = new Dictionary <string, FieldInfos.BookmarkInfo>(); _pageRenderInfos = new Dictionary <int, List <RenderInfo> >(); _pageInfos = new Dictionary <int, PageInfo>(); _pageFieldInfos = new Dictionary <int, FieldInfos>(); _formattedHeaders = new Dictionary <HeaderFooterPosition, FormattedHeaderFooter>(); _formattedFooters = new Dictionary <HeaderFooterPosition, FormattedHeaderFooter>(); _gfx = gfx; _currentPage = 0; _sectionNumber = 0; _pageCount = 0; _shownPageNumber = 0; _documentRenderer.ProgressCompleted = 0; _documentRenderer.ProgressMaximum = 0; if (_documentRenderer.HasPrepareDocumentProgress) { foreach (Section section in _document.Sections) { _documentRenderer.ProgressMaximum += section.Elements.Count; } } foreach (Section section in _document.Sections) { _isNewSection = true; _currentSection = section; ++_sectionNumber; if (NeedsEmptyPage()) { InsertEmptyPage(); } TopDownFormatter formatter = new TopDownFormatter(this, _documentRenderer, section.Elements); formatter.FormatOnAreas(gfx, true); FillSectionPagesInfo(); _documentRenderer.ProgressCompleted += section.Elements.Count; } _pageCount = _currentPage; FillNumPagesInfo(); }
/// <summary> /// Formats the document by performing line breaks and page breaks. /// </summary> internal void Format(XGraphics gfx) { _bookmarks = new Dictionary<string, FieldInfos.BookmarkInfo>(); _pageRenderInfos = new Dictionary<int, List<RenderInfo>>(); _pageInfos = new Dictionary<int, PageInfo>(); _pageFieldInfos = new Dictionary<int, FieldInfos>(); _formattedHeaders = new Dictionary<HeaderFooterPosition, FormattedHeaderFooter>(); _formattedFooters = new Dictionary<HeaderFooterPosition, FormattedHeaderFooter>(); _gfx = gfx; _currentPage = 0; _sectionNumber = 0; _pageCount = 0; _shownPageNumber = 0; _documentRenderer.ProgressCompleted = 0; _documentRenderer.ProgressMaximum = 0; if (_documentRenderer.HasPrepareDocumentProgress) { foreach (Section section in _document.Sections) _documentRenderer.ProgressMaximum += section.Elements.Count; } foreach (Section section in _document.Sections) { _isNewSection = true; _currentSection = section; ++_sectionNumber; if (NeedsEmptyPage()) InsertEmptyPage(); TopDownFormatter formatter = new TopDownFormatter(this, _documentRenderer, section.Elements); formatter.FormatOnAreas(gfx, true); FillSectionPagesInfo(); _documentRenderer.ProgressCompleted += section.Elements.Count; } _pageCount = _currentPage; FillNumPagesInfo(); }