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)
119if (StructuralCache.CurrentFormatContext.IncrementalUpdate && 126if (!StructuralCache.CurrentFormatContext.FinitePage) 165if (StructuralCache.CurrentFormatContext.IncrementalUpdate) 360Debug.Assert(StructuralCache.CurrentFormatContext.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment. 363if (StructuralCache.CurrentFormatContext.FinitePage) 514PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 615PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 669PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 744PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 799PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 874PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 1108StructuralCache.CurrentFormatContext.DependentMax = (TextPointer) textPointer;
MS\Internal\PtsHost\FigureHelper.cs (10)
92value = structuralCache.CurrentFormatContext.PageWidth * figureLength.Value; 139value = (structuralCache.CurrentFormatContext.PageHeight) * figureLength.Value; 143Thickness pageMargin = structuralCache.CurrentFormatContext.PageMargin; 145value = (structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom) * figureLength.Value; 183value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight)); 187Thickness pageMargin = structuralCache.CurrentFormatContext.PageMargin; 188value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom)); 197value = structuralCache.CurrentFormatContext.PageHeight; 239Size pageSize = structuralCache.CurrentFormatContext.PageSize; 240Thickness pageMargin = structuralCache.CurrentFormatContext.PageMargin;
MS\Internal\PtsHost\FigureParagraph.cs (11)
123Invariant.Assert(StructuralCache.CurrentFormatContext.FinitePage); 507StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 522StructuralCache.CurrentFormatContext.PopPageData(); 558int affectedColumn = (uComparisonPoint - StructuralCache.CurrentFormatContext.PageMarginRect.u) / duColumnTotal; 559int columnLeft = StructuralCache.CurrentFormatContext.PageMarginRect.u + affectedColumn * duColumnTotal; 592maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth; 596Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin; 597maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth - pageMargin.Left - pageMargin.Right; 630maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight; 634Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin; 635maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FloaterParagraph.cs (7)
206if (!StructuralCache.CurrentFormatContext.FinitePage) 208if (Double.IsInfinity(StructuralCache.CurrentFormatContext.PageHeight)) 218dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(StructuralCache.CurrentFormatContext.PageHeight)); 710StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 725StructuralCache.CurrentFormatContext.PopPageData(); 753StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth), 767StructuralCache.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)
359double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 360if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage)
MS\Internal\PtsHost\ListParagraph.cs (1)
142StructuralCache.CurrentFormatContext.DependentMax = (TextPointer)textPointer;
MS\Internal\PtsHost\OptimalTextSource.cs (2)
233double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 234if (!_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)
172PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 217StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)), 232StructuralCache.CurrentFormatContext.PopPageData(); 290PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 355PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 392StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 406StructuralCache.CurrentFormatContext.PopPageData(); 460PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 515PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 550StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 565StructuralCache.CurrentFormatContext.PopPageData(); 619PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect;
MS\Internal\PtsHost\TableParagraph.cs (1)
94if (suppressTopSpace && (StructuralCache.CurrentFormatContext.FinitePage || mcs == null))
MS\Internal\PtsHost\TextParagraph.cs (9)
286if (StructuralCache.CurrentFormatContext.FinitePage) 525StructuralCache.CurrentFormatContext.OnFormatLine(); 583StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward); 711StructuralCache.CurrentFormatContext.OnFormatLine(); 767StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward); 817if (!StructuralCache.CurrentFormatContext.FinitePage) 962if(textElement is Figure && StructuralCache.CurrentFormatContext.FinitePage) 978if (StructuralCache.CurrentFormatContext.IncrementalUpdate) 1001if (StructuralCache.CurrentFormatContext.IncrementalUpdate)
MS\Internal\PtsHost\UIElementParagraph.cs (6)
393if (StructuralCache.CurrentFormatContext.FinitePage) 395elementHeight = StructuralCache.CurrentFormatContext.PageHeight; 421if (StructuralCache.CurrentFormatContext.FinitePage) 423Thickness pageMargin = StructuralCache.CurrentFormatContext.DocumentPageMargin; 424elementHeight = StructuralCache.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom); 522if (!StructuralCache.CurrentFormatContext.FinitePage && !figure.Height.IsAbsolute)