89 references to CurrentFormatContext
PresentationFramework (89)
src\Framework\MS\Internal\PtsHost\BaseParagraph.cs (1)
230
fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(StructuralCache.
CurrentFormatContext
.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false);
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (12)
128
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate &&
135
if (!StructuralCache.
CurrentFormatContext
.FinitePage)
174
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate)
370
Debug.Assert(StructuralCache.
CurrentFormatContext
.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment.
373
if (StructuralCache.
CurrentFormatContext
.FinitePage)
531
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
632
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
693
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
768
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
830
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
905
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
1139
StructuralCache.
CurrentFormatContext
.DependentMax = (TextPointer) textPointer;
src\Framework\MS\Internal\PtsHost\FigureHelper.cs (10)
97
value = structuralCache.
CurrentFormatContext
.PageWidth * figureLength.Value;
144
value = (structuralCache.
CurrentFormatContext
.PageHeight) * figureLength.Value;
148
Thickness pageMargin = structuralCache.
CurrentFormatContext
.PageMargin;
150
value = (structuralCache.
CurrentFormatContext
.PageHeight - pageMargin.Top - pageMargin.Bottom) * figureLength.Value;
188
value = Math.Max(1, Math.Min(value, structuralCache.
CurrentFormatContext
.PageHeight));
192
Thickness pageMargin = structuralCache.
CurrentFormatContext
.PageMargin;
193
value = Math.Max(1, Math.Min(value, structuralCache.
CurrentFormatContext
.PageHeight - pageMargin.Top - pageMargin.Bottom));
202
value = structuralCache.
CurrentFormatContext
.PageHeight;
244
Size pageSize = structuralCache.
CurrentFormatContext
.PageSize;
245
Thickness pageMargin = structuralCache.
CurrentFormatContext
.PageMargin;
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (11)
139
Invariant.Assert(StructuralCache.
CurrentFormatContext
.FinitePage);
535
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
550
StructuralCache.
CurrentFormatContext
.PopPageData();
586
int affectedColumn = (uComparisonPoint - StructuralCache.
CurrentFormatContext
.PageMarginRect.u) / duColumnTotal;
587
int columnLeft = StructuralCache.
CurrentFormatContext
.PageMarginRect.u + affectedColumn * duColumnTotal;
620
maxTotalWidth = StructuralCache.
CurrentFormatContext
.PageWidth;
624
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.PageMargin;
625
maxTotalWidth = StructuralCache.
CurrentFormatContext
.PageWidth - pageMargin.Left - pageMargin.Right;
658
maxTotalHeight = StructuralCache.
CurrentFormatContext
.PageHeight;
662
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.PageMargin;
663
maxTotalHeight = StructuralCache.
CurrentFormatContext
.PageHeight - pageMargin.Top - pageMargin.Bottom;
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (7)
218
if (!StructuralCache.
CurrentFormatContext
.FinitePage)
220
if (Double.IsInfinity(StructuralCache.
CurrentFormatContext
.PageHeight))
230
dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(StructuralCache.
CurrentFormatContext
.PageHeight));
737
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
752
StructuralCache.
CurrentFormatContext
.PopPageData();
787
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth),
801
StructuralCache.
CurrentFormatContext
.PopPageData();
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (6)
153
_structuralCache.
CurrentFormatContext
.PushNewPageData(pageSize, _pageMargin, true, false);
158
_structuralCache.
CurrentFormatContext
.PushNewPageData(pageSize, _pageMargin, false, false);
169
_structuralCache.
CurrentFormatContext
.PopPageData();
216
_structuralCache.
CurrentFormatContext
.PushNewPageData(pageSize, _pageMargin, true, true);
221
_structuralCache.
CurrentFormatContext
.PushNewPageData(pageSize, _pageMargin, false, true);
224
_structuralCache.
CurrentFormatContext
.PopPageData();
src\Framework\MS\Internal\PtsHost\Line.cs (2)
368
double pageHeight = _paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height;
369
if (!_paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.FinitePage)
src\Framework\MS\Internal\PtsHost\ListParagraph.cs (1)
151
StructuralCache.
CurrentFormatContext
.DependentMax = (TextPointer)textPointer;
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (2)
244
double pageHeight = _paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height;
245
if (!_paraClient.Paragraph.StructuralCache.
CurrentFormatContext
.FinitePage)
src\Framework\MS\Internal\PtsHost\PtsPage.cs (1)
817
_pageContextOfThisPage.PageRect = new PTS.FSRECT(new Rect(_section.StructuralCache.
CurrentFormatContext
.PageSize));
src\Framework\MS\Internal\PtsHost\Section.cs (8)
115
Size pageSize = _structuralCache.
CurrentFormatContext
.PageSize;
120
Thickness pageMargin = _structuralCache.
CurrentFormatContext
.PageMargin;
225
Size pageSize = _structuralCache.
CurrentFormatContext
.PageSize;
227
Thickness pageMargin = _structuralCache.
CurrentFormatContext
.PageMargin;
230
bool enableColumns = _structuralCache.
CurrentFormatContext
.FinitePage;
373
Size pageSize = _structuralCache.
CurrentFormatContext
.PageSize;
375
Thickness pageMargin = _structuralCache.
CurrentFormatContext
.PageMargin;
378
bool enableColumns = _structuralCache.
CurrentFormatContext
.FinitePage;
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (12)
190
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
235
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)),
250
StructuralCache.
CurrentFormatContext
.PopPageData();
308
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
385
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
422
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
436
StructuralCache.
CurrentFormatContext
.PopPageData();
490
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
554
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
589
StructuralCache.
CurrentFormatContext
.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
604
StructuralCache.
CurrentFormatContext
.PopPageData();
658
PTS.FSRECT pageRect = StructuralCache.
CurrentFormatContext
.PageRect;
src\Framework\MS\Internal\PtsHost\TableParagraph.cs (1)
106
if (suppressTopSpace && (StructuralCache.
CurrentFormatContext
.FinitePage || mcs == null))
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (9)
299
if (StructuralCache.
CurrentFormatContext
.FinitePage)
538
StructuralCache.
CurrentFormatContext
.OnFormatLine();
596
StructuralCache.
CurrentFormatContext
.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
724
StructuralCache.
CurrentFormatContext
.OnFormatLine();
781
StructuralCache.
CurrentFormatContext
.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
831
if (!StructuralCache.
CurrentFormatContext
.FinitePage)
977
if(textElement is Figure && StructuralCache.
CurrentFormatContext
.FinitePage)
993
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate)
1016
if (StructuralCache.
CurrentFormatContext
.IncrementalUpdate)
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (6)
395
if (StructuralCache.
CurrentFormatContext
.FinitePage)
397
elementHeight = StructuralCache.
CurrentFormatContext
.PageHeight;
423
if (StructuralCache.
CurrentFormatContext
.FinitePage)
425
Thickness pageMargin = StructuralCache.
CurrentFormatContext
.DocumentPageMargin;
426
elementHeight = StructuralCache.
CurrentFormatContext
.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom);
524
if (!StructuralCache.
CurrentFormatContext
.FinitePage && !figure.Height.IsAbsolute)