89 references to CurrentFormatContext
PresentationFramework (89)
MS\Internal\PtsHost\BaseParagraph.cs (1)
224fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(StructuralCache.CurrentFormatContext.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false);
MS\Internal\PtsHost\ContainerParagraph.cs (12)
106if (StructuralCache.CurrentFormatContext.IncrementalUpdate && 113if (!StructuralCache.CurrentFormatContext.FinitePage) 152if (StructuralCache.CurrentFormatContext.IncrementalUpdate) 347Debug.Assert(StructuralCache.CurrentFormatContext.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment. 350if (StructuralCache.CurrentFormatContext.FinitePage) 499PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 600PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 654PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 729PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 784PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 859PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 1093StructuralCache.CurrentFormatContext.DependentMax = (TextPointer) textPointer;
MS\Internal\PtsHost\FigureHelper.cs (10)
84value = structuralCache.CurrentFormatContext.PageWidth * figureLength.Value; 131value = (structuralCache.CurrentFormatContext.PageHeight) * figureLength.Value; 135Thickness pageMargin = structuralCache.CurrentFormatContext.PageMargin; 137value = (structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom) * figureLength.Value; 175value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight)); 179Thickness pageMargin = structuralCache.CurrentFormatContext.PageMargin; 180value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom)); 189value = structuralCache.CurrentFormatContext.PageHeight; 231Size pageSize = structuralCache.CurrentFormatContext.PageSize; 232Thickness pageMargin = structuralCache.CurrentFormatContext.PageMargin;
MS\Internal\PtsHost\FigureParagraph.cs (11)
118Invariant.Assert(StructuralCache.CurrentFormatContext.FinitePage); 504StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 519StructuralCache.CurrentFormatContext.PopPageData(); 555int affectedColumn = (uComparisonPoint - StructuralCache.CurrentFormatContext.PageMarginRect.u) / duColumnTotal; 556int columnLeft = StructuralCache.CurrentFormatContext.PageMarginRect.u + affectedColumn * duColumnTotal; 589maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth; 593Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin; 594maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth - pageMargin.Left - pageMargin.Right; 627maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight; 631Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin; 632maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FloaterParagraph.cs (7)
203if (!StructuralCache.CurrentFormatContext.FinitePage) 205if (Double.IsInfinity(StructuralCache.CurrentFormatContext.PageHeight)) 215dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(StructuralCache.CurrentFormatContext.PageHeight)); 711StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 726StructuralCache.CurrentFormatContext.PopPageData(); 754StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth), 768StructuralCache.CurrentFormatContext.PopPageData();
MS\Internal\PtsHost\FlowDocumentPage.cs (6)
143_structuralCache.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, true, false); 148_structuralCache.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, false, false); 159_structuralCache.CurrentFormatContext.PopPageData(); 206_structuralCache.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, true, true); 211_structuralCache.CurrentFormatContext.PushNewPageData(pageSize, _pageMargin, false, true); 214_structuralCache.CurrentFormatContext.PopPageData();
MS\Internal\PtsHost\Line.cs (2)
351double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 352if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage)
MS\Internal\PtsHost\ListParagraph.cs (1)
133StructuralCache.CurrentFormatContext.DependentMax = (TextPointer)textPointer;
MS\Internal\PtsHost\OptimalTextSource.cs (2)
225double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 226if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage)
MS\Internal\PtsHost\PtsPage.cs (1)
744_pageContextOfThisPage.PageRect = new PTS.FSRECT(new Rect(_section.StructuralCache.CurrentFormatContext.PageSize));
MS\Internal\PtsHost\Section.cs (8)
109Size pageSize = _structuralCache.CurrentFormatContext.PageSize; 114Thickness pageMargin = _structuralCache.CurrentFormatContext.PageMargin; 214Size pageSize = _structuralCache.CurrentFormatContext.PageSize; 216Thickness pageMargin = _structuralCache.CurrentFormatContext.PageMargin; 219bool enableColumns = _structuralCache.CurrentFormatContext.FinitePage; 356Size pageSize = _structuralCache.CurrentFormatContext.PageSize; 358Thickness pageMargin = _structuralCache.CurrentFormatContext.PageMargin; 361bool enableColumns = _structuralCache.CurrentFormatContext.FinitePage;
MS\Internal\PtsHost\SubpageParagraph.cs (12)
162PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 207StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)), 222StructuralCache.CurrentFormatContext.PopPageData(); 280PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 345PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 382StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 396StructuralCache.CurrentFormatContext.PopPageData(); 450PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 505PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 540StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 555StructuralCache.CurrentFormatContext.PopPageData(); 609PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect;
MS\Internal\PtsHost\TableParagraph.cs (1)
90if (suppressTopSpace && (StructuralCache.CurrentFormatContext.FinitePage || mcs == null))
MS\Internal\PtsHost\TextParagraph.cs (9)
275if (StructuralCache.CurrentFormatContext.FinitePage) 514StructuralCache.CurrentFormatContext.OnFormatLine(); 570StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward); 698StructuralCache.CurrentFormatContext.OnFormatLine(); 751StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward); 801if (!StructuralCache.CurrentFormatContext.FinitePage) 946if(textElement is Figure && StructuralCache.CurrentFormatContext.FinitePage) 959if (StructuralCache.CurrentFormatContext.IncrementalUpdate) 979if (StructuralCache.CurrentFormatContext.IncrementalUpdate)
MS\Internal\PtsHost\UIElementParagraph.cs (6)
400if (StructuralCache.CurrentFormatContext.FinitePage) 402elementHeight = StructuralCache.CurrentFormatContext.PageHeight; 430if (StructuralCache.CurrentFormatContext.FinitePage) 432Thickness pageMargin = StructuralCache.CurrentFormatContext.DocumentPageMargin; 433elementHeight = StructuralCache.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom); 533if (!StructuralCache.CurrentFormatContext.FinitePage && !figure.Height.IsAbsolute)