257 references to StructuralCache
PresentationFramework (257)
MS\Internal\Documents\ParagraphResult.cs (3)
941
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
1056
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
1228
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\BaseParaClient.cs (2)
75
_pageContext = Paragraph.
StructuralCache
.CurrentArrangeContext.PageContext;
214
internal FlowDirection PageFlowDirection { get { return Paragraph.
StructuralCache
.PageFlowDirection; } }
MS\Internal\PtsHost\BaseParagraph.cs (7)
179
int openEdgeCp = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeStart);
223
fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(
StructuralCache
.CurrentFormatContext.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false);
250
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
254
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeStart);
271
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeEnd);
275
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterEnd);
294
int cch = TextContainerHelper.GetCchFromElement(
StructuralCache
.TextContainer, Element);
MS\Internal\PtsHost\CellParaClient.cs (4)
154
if(CellParagraph.
StructuralCache
.DtrList != null && breakRecordIn != IntPtr.Zero)
156
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.
StructuralCache
.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
223
if(CellParagraph.
StructuralCache
.DtrList != null)
225
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.
StructuralCache
.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
MS\Internal\PtsHost\ContainerParaClient.cs (3)
50
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
182
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
289
paraClient = Paragraph.
StructuralCache
.PtsContext.HandleToObject(arrayParaDesc[i].pfsparaclient) as BaseParaClient;
MS\Internal\PtsHost\ContainerParagraph.cs (33)
79
int cpCurrent = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
105
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate &&
112
if (!
StructuralCache
.CurrentFormatContext.FinitePage)
141
ITextPointer textPointer = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
151
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate)
230
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(
StructuralCache
.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward);
346
Debug.Assert(
StructuralCache
.CurrentFormatContext.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment.
349
if (
StructuralCache
.CurrentFormatContext.FinitePage)
354
DtrList dtrs =
StructuralCache
.DtrsFromRange(
355
TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch);
362
int dcpContent = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
491
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
495
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
596
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
636
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
650
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
725
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
766
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
780
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
855
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
1022
paragraph = new TextParagraph(Element,
StructuralCache
);
1032
paragraph = new TextParagraph(Element,
StructuralCache
);
1044
paragraph = new ListParagraph(element,
StructuralCache
);
1048
paragraph = new TableParagraph(element,
StructuralCache
);
1052
paragraph = new UIElementParagraph(element,
StructuralCache
);
1056
paragraph = new ContainerParagraph(element,
StructuralCache
);
1060
paragraph = new TextParagraph(Element,
StructuralCache
);
1073
paragraph = new TextParagraph(Element,
StructuralCache
);
1082
paragraph = new TextParagraph(Element,
StructuralCache
);
1089
StructuralCache
.CurrentFormatContext.DependentMax = (TextPointer) textPointer;
1102
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
1116
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
1126
int cpContent = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\FigureParaClient.cs (9)
66
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
94
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
95
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
99
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
117
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
118
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
122
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
189
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
349
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\FigureParagraph.cs (18)
95
_mainTextSegment = new ContainerParagraph(Element,
StructuralCache
);
117
Invariant.Assert(
StructuralCache
.CurrentFormatContext.FinitePage);
135
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
143
double specifiedWidth = FigureHelper.CalculateFigureWidth(
StructuralCache
, element,
153
double specifiedHeight = FigureHelper.CalculateFigureHeight(
StructuralCache
, element,
376
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
497
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
512
StructuralCache
.CurrentFormatContext.PopPageData();
543
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
548
int affectedColumn = (uComparisonPoint -
StructuralCache
.CurrentFormatContext.PageMarginRect.u) / duColumnTotal;
549
int columnLeft =
StructuralCache
.CurrentFormatContext.PageMarginRect.u + affectedColumn * duColumnTotal;
582
maxTotalWidth =
StructuralCache
.CurrentFormatContext.PageWidth;
586
Thickness pageMargin =
StructuralCache
.CurrentFormatContext.PageMargin;
587
maxTotalWidth =
StructuralCache
.CurrentFormatContext.PageWidth - pageMargin.Left - pageMargin.Right;
594
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
620
maxTotalHeight =
StructuralCache
.CurrentFormatContext.PageHeight;
624
Thickness pageMargin =
StructuralCache
.CurrentFormatContext.PageMargin;
625
maxTotalHeight =
StructuralCache
.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FloaterParaClient.cs (8)
79
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
80
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
84
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
102
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
103
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
107
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
181
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
356
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\FloaterParagraph.cs (13)
90
_mainTextSegment = new ContainerParagraph(Element,
StructuralCache
);
202
if (!
StructuralCache
.CurrentFormatContext.FinitePage)
204
if (Double.IsInfinity(
StructuralCache
.CurrentFormatContext.PageHeight))
214
dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(
StructuralCache
.CurrentFormatContext.PageHeight));
221
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
412
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
647
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
704
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
719
StructuralCache
.CurrentFormatContext.PopPageData();
747
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth),
761
StructuralCache
.CurrentFormatContext.PopPageData();
769
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
863
double desiredSize = FigureHelper.CalculateFigureWidth(
StructuralCache
, (Figure)Element,
MS\Internal\PtsHost\Line.cs (7)
112
int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.
StructuralCache
.TextContainer, paraFigure.Element, ElementEdge.BeforeStart);
137
ITextContainer textContainer = _paraClient.Paragraph.
StructuralCache
.TextContainer;
186
ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara, LogicalDirection.Forward);
187
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
347
double pageHeight = _paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.DocumentPageSize.Height;
348
if (!_paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.FinitePage)
589
position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, cp, LogicalDirection.Forward) as TextPointer;
MS\Internal\PtsHost\LineBase.cs (5)
96
_paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
143
int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.
StructuralCache
.TextContainer, element);
157
int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.
StructuralCache
.TextContainer, element);
166
_paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
307
_paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\ListParaClient.cs (4)
49
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
62
Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
75
ListMarkerLine listMarkerLine = new ListMarkerLine(Paragraph.
StructuralCache
.TextFormatterHost, this);
108
LineProperties lineProps = new LineProperties(Paragraph.Element, Paragraph.
StructuralCache
.FormattingOwner, textProperties, new MarkerProperties(list, adjustedIndex));
MS\Internal\PtsHost\ListParagraph.cs (3)
80
paragraph = new ListItemParagraph(element,
StructuralCache
);
92
paragraph = new ListParagraph(element,
StructuralCache
);
132
StructuralCache
.CurrentFormatContext.DependentMax = (TextPointer)textPointer;
MS\Internal\PtsHost\OptimalTextSource.cs (6)
87
ITextContainer textContainer = _paraClient.Paragraph.
StructuralCache
.TextContainer;
137
ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara, LogicalDirection.Forward);
138
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
176
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
224
double pageHeight = _paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.DocumentPageSize.Height;
225
if (!_paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.FinitePage)
MS\Internal\PtsHost\PtsHelper.cs (1)
168
PTS.FSRECT pageRect = paraClient.Paragraph.
StructuralCache
.CurrentArrangeContext.PageContext.PageRect;
MS\Internal\PtsHost\RowParagraph.cs (2)
139
MbpInfo mbpInfo = MbpInfo.FromElement(Table,
StructuralCache
.TextFormatterHost.PixelsPerDip);
303
_cellParagraphs[cellIndex] = new CellParagraph(Row.Cells[cellIndex],
StructuralCache
);
MS\Internal\PtsHost\SubpageParaClient.cs (8)
70
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
111
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
112
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
116
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
134
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
135
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
139
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
285
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\SubpageParagraph.cs (15)
157
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
161
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
206
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)),
221
StructuralCache
.CurrentFormatContext.PopPageData();
279
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
339
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
344
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
381
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
395
StructuralCache
.CurrentFormatContext.PopPageData();
449
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
499
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
504
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
539
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
554
StructuralCache
.CurrentFormatContext.PopPageData();
608
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
MS\Internal\PtsHost\TableParaClient.cs (8)
63
_columnRect = Paragraph.
StructuralCache
.CurrentArrangeContext.ColumnRect;
85
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
191
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
679
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
954
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
1980
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
2013
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
2429
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TableParagraph.cs (7)
89
if (suppressTopSpace && (
StructuralCache
.CurrentFormatContext.FinitePage || mcs == null))
93
MbpInfo mbp = MbpInfo.FromElement(Table,
StructuralCache
.TextFormatterHost.PixelsPerDip);
172
MbpInfo mbp = MbpInfo.FromElement(Table,
StructuralCache
.TextFormatterHost.PixelsPerDip);
273
_firstChild = new RowParagraph(tableRow,
StructuralCache
);
346
nextParagraph = new RowParagraph(tableRow,
StructuralCache
);
551
StructuralCache
.AddDirtyTextRange(dtr);
553
StructuralCache
.FormattingOwner.Formatter?.OnContentInvalidated(true, Table.ContentStart, Table.ContentEnd);
MS\Internal\PtsHost\TextParaClient.cs (34)
500
textContentRange = new TextContentRange(dcp + dcpFirst, dcp + dcpLast, Paragraph.
StructuralCache
.TextContainer);
607
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
661
return TextContainerHelper.GetTextPointerFromCP(Paragraph.
StructuralCache
.TextContainer, dcp + Paragraph.ParagraphStartCharacterPosition, direction);
675
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition((TextPointer)position);
826
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition(position as TextPointer);
876
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition(position as TextPointer);
919
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition(position as TextPointer);
1069
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
1089
StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.
StructuralCache
.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition);
1116
int dcpStart = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition;
1117
int dcpEnd = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition;
1659
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
1756
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2033
ITextPointer position = Paragraph.
StructuralCache
.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward);
2101
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2212
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2429
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2553
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2632
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2798
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2914
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3040
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3112
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3174
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3233
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3278
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3335
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3627
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3696
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3800
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3839
if(!Paragraph.
StructuralCache
.IsDeferredVisualCreationSupported)
3926
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3991
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
4125
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
MS\Internal\PtsHost\TextParagraph.cs (43)
184
TextFormatter textFormatter =
StructuralCache
.TextFormatterHost.TextFormatter;
187
OptimalTextSource optimalTextSource = new OptimalTextSource(
StructuralCache
.TextFormatterHost, ParagraphStartCharacterPosition, durTrack, textParaClient, _textRunCache);
188
StructuralCache
.TextFormatterHost.Context = optimalTextSource;
190
TextParagraphCache paragraphCache = textFormatter.CreateParagraphCache(
StructuralCache
.TextFormatterHost,
197
StructuralCache
.TextFormatterHost.Context = null;
268
BackgroundFormatInfo backgroundFormatInfo =
StructuralCache
.BackgroundFormatInfo;
274
if (
StructuralCache
.CurrentFormatContext.FinitePage)
300
StructuralCache
.BackgroundFormatInfo.CPInterrupted = dcpCur + ParagraphStartCharacterPosition;
377
StructuralCache
.TextFormatterHost.Context = optimalTextSource;
387
StructuralCache
.TextFormatterHost.Context = null;
513
StructuralCache
.CurrentFormatContext.OnFormatLine();
520
Line line = new Line(
StructuralCache
.TextFormatterHost, paraClient, ParagraphStartCharacterPosition);
565
int textSize =
StructuralCache
.TextContainer.SymbolCount;
569
StructuralCache
.CurrentFormatContext.DependentMax =
StructuralCache
.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
697
StructuralCache
.CurrentFormatContext.OnFormatLine();
704
Line line = new Line(
StructuralCache
.TextFormatterHost, paraClient, ParagraphStartCharacterPosition);
746
int textSize =
StructuralCache
.TextContainer.SymbolCount;
750
StructuralCache
.CurrentFormatContext.DependentMax =
StructuralCache
.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
779
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
800
if (!
StructuralCache
.CurrentFormatContext.FinitePage)
861
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(
StructuralCache
.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward);
862
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
884
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
885
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(
StructuralCache
.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward);
937
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
945
if(textElement is Figure &&
StructuralCache
.CurrentFormatContext.FinitePage)
956
FigureParagraph figurePara = new FigureParagraph(textElement,
StructuralCache
);
958
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate)
976
FloaterParagraph floaterPara = new FloaterParagraph(textElement,
StructuralCache
);
978
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate)
1189
StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(
StructuralCache
.TextContainer, startPosition);
1340
return ((OptimalTextSource)
StructuralCache
.TextFormatterHost.Context).MeasureChild(inlineObject);
1388
textContentRange.Merge(new TextContentRange(cpCur, startContentPosition,
StructuralCache
.TextContainer));
1400
textContentRange.Merge(new TextContentRange(cpCur, dcpLast,
StructuralCache
.TextContainer));
1420
StructuralCache
.FormattingOwner.OnChildDesiredSizeChanged(e.Child);
1463
return
StructuralCache
.IsOptimalParagraphEnabled && GetLineProperties(false, 0).TextWrapping != TextWrapping.NoWrap;
1483
if (_lineProperties == null || (_lineProperties != null && _lineProperties.DefaultTextRunProperties.PixelsPerDip !=
StructuralCache
.TextFormatterHost.PixelsPerDip))
1493
StructuralCache
.TextFormatterHost.PixelsPerDip);
1495
_lineProperties = new LineProperties(Element,
StructuralCache
.FormattingOwner, defaultTextProperties, null); // No marker properties
1500
_lineProperties.Hyphenator =
StructuralCache
.Hyphenator;
1708
int cpElement = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\UIElementParaClient.cs (2)
64
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
100
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\UIElementParagraph.cs (12)
107
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
211
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
312
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
361
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
388
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
396
if (
StructuralCache
.CurrentFormatContext.FinitePage)
398
elementHeight =
StructuralCache
.CurrentFormatContext.PageHeight;
426
if (
StructuralCache
.CurrentFormatContext.FinitePage)
428
Thickness pageMargin =
StructuralCache
.CurrentFormatContext.DocumentPageMargin;
429
elementHeight =
StructuralCache
.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom);
486
StructuralCache
.FormattingOwner.OnChildDesiredSizeChanged(e.Child);
529
if (!
StructuralCache
.CurrentFormatContext.FinitePage && !figure.Height.IsAbsolute)