Exemple #1
0
 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);
 }
Exemple #3
0
 internal void Format(XGraphics gfx)
 {
     _gfx = gfx;
     _isFirstArea = true;
     _formatter = new TopDownFormatter(this, _documentRenderer, TextArea.Elements);
     _formatter.FormatOnAreas(gfx, false);
 }
Exemple #4
0
 internal void Format(XGraphics gfx)
 {
     _gfx = gfx;
     _formatter = new TopDownFormatter(this, _documentRenderer, _cell.Elements);
     _formatter.FormatOnAreas(gfx, false);
     _contentHeight = CalcContentHeight(_documentRenderer);
 }
Exemple #5
0
 internal void Format(XGraphics gfx)
 {
     _gfx         = gfx;
     _isFirstArea = true;
     _formatter   = new TopDownFormatter(this, _documentRenderer, _headerFooter.Elements);
     _formatter.FormatOnAreas(gfx, false);
     _contentHeight = RenderInfo.GetTotalHeight(GetRenderInfos());
 }
 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();
        }
 internal void Format(XGraphics gfx)
 {
     this.gfx = gfx;
       this.isFirstArea = true;
       this.formatter = new TopDownFormatter(this, this.documentRenderer, this.headerFooter.Elements);
       this.formatter.FormatOnAreas(gfx, false);
       this.contentHeight = RenderInfo.GetTotalHeight(GetRenderInfos());
 }
Exemple #9
0
        /// <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();
        }
Exemple #10
0
 internal void Format(XGraphics gfx)
 {
     this.gfx = gfx;
       this.formatter = new TopDownFormatter(this, this.documentRenderer, this.cell.Elements);
       this.formatter.FormatOnAreas(gfx, false);
       this.contentHeight = CalcContentHeight(this.documentRenderer);
 }
 internal void Format(XGraphics gfx)
 {
     this.gfx = gfx;
       this.isFirstArea = true;
       this.formatter = new TopDownFormatter(this, this.documentRenderer, this.textArea.Elements);
       this.formatter.FormatOnAreas(gfx, false);
 }