Пример #1
0
 internal void Format(XGraphics gfx)
 {
     _gfx         = gfx;
     _isFirstArea = true;
     _formatter   = new TopDownFormatter(this, _documentRenderer, TextArea.Elements);
     _formatter.FormatOnAreas(gfx, false);
 }
Пример #2
0
 internal void Format(XGraphics gfx)
 {
     _gfx       = gfx;
     _formatter = new TopDownFormatter(this, _documentRenderer, _cell.Elements);
     _formatter.FormatOnAreas(gfx, false);
     _contentHeight = CalcContentHeight(_documentRenderer);
 }
Пример #3
0
 internal void Format(XGraphics gfx)
 {
     _gfx = gfx;
     _isFirstArea = true;
     _formatter = new TopDownFormatter(this, _documentRenderer, TextArea.Elements);
     _formatter.FormatOnAreas(gfx, false);
 }
Пример #4
0
 internal void Format(XGraphics gfx)
 {
     _gfx = gfx;
     _formatter = new TopDownFormatter(this, _documentRenderer, _cell.Elements);
     _formatter.FormatOnAreas(gfx, false);
     _contentHeight = CalcContentHeight(_documentRenderer);
 }
Пример #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());
 }
Пример #6
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());
 }
Пример #7
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();
        }
Пример #8
0
 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());
 }
Пример #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();
        }
Пример #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);
 }
Пример #11
0
 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);
 }