257 references to StructuralCache
PresentationFramework (257)
MS\Internal\Documents\ParagraphResult.cs (3)
942
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
1057
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
1229
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\BaseParaClient.cs (2)
76
_pageContext = Paragraph.
StructuralCache
.CurrentArrangeContext.PageContext;
215
internal FlowDirection PageFlowDirection { get { return Paragraph.
StructuralCache
.PageFlowDirection; } }
MS\Internal\PtsHost\BaseParagraph.cs (7)
180
int openEdgeCp = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeStart);
224
fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(
StructuralCache
.CurrentFormatContext.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false);
251
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
255
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeStart);
272
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeEnd);
276
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterEnd);
295
int cch = TextContainerHelper.GetCchFromElement(
StructuralCache
.TextContainer, Element);
MS\Internal\PtsHost\CellParaClient.cs (4)
155
if(CellParagraph.
StructuralCache
.DtrList != null && breakRecordIn != IntPtr.Zero)
157
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.
StructuralCache
.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
224
if(CellParagraph.
StructuralCache
.DtrList != null)
226
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.
StructuralCache
.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
MS\Internal\PtsHost\ContainerParaClient.cs (3)
51
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
183
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
290
paraClient = Paragraph.
StructuralCache
.PtsContext.HandleToObject(arrayParaDesc[i].pfsparaclient) as BaseParaClient;
MS\Internal\PtsHost\ContainerParagraph.cs (33)
80
int cpCurrent = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
106
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate &&
113
if (!
StructuralCache
.CurrentFormatContext.FinitePage)
142
ITextPointer textPointer = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
152
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate)
231
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(
StructuralCache
.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward);
347
Debug.Assert(
StructuralCache
.CurrentFormatContext.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment.
350
if (
StructuralCache
.CurrentFormatContext.FinitePage)
355
DtrList dtrs =
StructuralCache
.DtrsFromRange(
356
TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch);
363
int dcpContent = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
492
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
496
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
597
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
637
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
651
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
726
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
767
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
781
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
856
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
1023
paragraph = new TextParagraph(Element,
StructuralCache
);
1033
paragraph = new TextParagraph(Element,
StructuralCache
);
1045
paragraph = new ListParagraph(element,
StructuralCache
);
1049
paragraph = new TableParagraph(element,
StructuralCache
);
1053
paragraph = new UIElementParagraph(element,
StructuralCache
);
1057
paragraph = new ContainerParagraph(element,
StructuralCache
);
1061
paragraph = new TextParagraph(Element,
StructuralCache
);
1074
paragraph = new TextParagraph(Element,
StructuralCache
);
1083
paragraph = new TextParagraph(Element,
StructuralCache
);
1090
StructuralCache
.CurrentFormatContext.DependentMax = (TextPointer) textPointer;
1103
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
1117
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
1127
int cpContent = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\FigureParaClient.cs (9)
67
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
95
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
96
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
100
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
118
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
119
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
123
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
190
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
350
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\FigureParagraph.cs (18)
96
_mainTextSegment = new ContainerParagraph(Element,
StructuralCache
);
118
Invariant.Assert(
StructuralCache
.CurrentFormatContext.FinitePage);
136
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
144
double specifiedWidth = FigureHelper.CalculateFigureWidth(
StructuralCache
, element,
154
double specifiedHeight = FigureHelper.CalculateFigureHeight(
StructuralCache
, element,
377
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
498
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
513
StructuralCache
.CurrentFormatContext.PopPageData();
544
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
549
int affectedColumn = (uComparisonPoint -
StructuralCache
.CurrentFormatContext.PageMarginRect.u) / duColumnTotal;
550
int columnLeft =
StructuralCache
.CurrentFormatContext.PageMarginRect.u + affectedColumn * duColumnTotal;
583
maxTotalWidth =
StructuralCache
.CurrentFormatContext.PageWidth;
587
Thickness pageMargin =
StructuralCache
.CurrentFormatContext.PageMargin;
588
maxTotalWidth =
StructuralCache
.CurrentFormatContext.PageWidth - pageMargin.Left - pageMargin.Right;
595
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
621
maxTotalHeight =
StructuralCache
.CurrentFormatContext.PageHeight;
625
Thickness pageMargin =
StructuralCache
.CurrentFormatContext.PageMargin;
626
maxTotalHeight =
StructuralCache
.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FloaterParaClient.cs (8)
80
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
81
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
85
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
103
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
104
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
108
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
182
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
357
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\FloaterParagraph.cs (13)
91
_mainTextSegment = new ContainerParagraph(Element,
StructuralCache
);
203
if (!
StructuralCache
.CurrentFormatContext.FinitePage)
205
if (Double.IsInfinity(
StructuralCache
.CurrentFormatContext.PageHeight))
215
dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(
StructuralCache
.CurrentFormatContext.PageHeight));
222
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
413
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
648
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
705
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
720
StructuralCache
.CurrentFormatContext.PopPageData();
748
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth),
762
StructuralCache
.CurrentFormatContext.PopPageData();
770
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
864
double desiredSize = FigureHelper.CalculateFigureWidth(
StructuralCache
, (Figure)Element,
MS\Internal\PtsHost\Line.cs (7)
113
int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.
StructuralCache
.TextContainer, paraFigure.Element, ElementEdge.BeforeStart);
138
ITextContainer textContainer = _paraClient.Paragraph.
StructuralCache
.TextContainer;
187
ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara, LogicalDirection.Forward);
188
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
348
double pageHeight = _paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.DocumentPageSize.Height;
349
if (!_paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.FinitePage)
590
position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, cp, LogicalDirection.Forward) as TextPointer;
MS\Internal\PtsHost\LineBase.cs (5)
97
_paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
144
int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.
StructuralCache
.TextContainer, element);
158
int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.
StructuralCache
.TextContainer, element);
167
_paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
308
_paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\ListParaClient.cs (4)
50
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
63
Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
76
ListMarkerLine listMarkerLine = new ListMarkerLine(Paragraph.
StructuralCache
.TextFormatterHost, this);
109
LineProperties lineProps = new LineProperties(Paragraph.Element, Paragraph.
StructuralCache
.FormattingOwner, textProperties, new MarkerProperties(list, adjustedIndex));
MS\Internal\PtsHost\ListParagraph.cs (3)
81
paragraph = new ListItemParagraph(element,
StructuralCache
);
93
paragraph = new ListParagraph(element,
StructuralCache
);
133
StructuralCache
.CurrentFormatContext.DependentMax = (TextPointer)textPointer;
MS\Internal\PtsHost\OptimalTextSource.cs (6)
88
ITextContainer textContainer = _paraClient.Paragraph.
StructuralCache
.TextContainer;
138
ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara, LogicalDirection.Forward);
139
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
177
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
225
double pageHeight = _paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.DocumentPageSize.Height;
226
if (!_paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.FinitePage)
MS\Internal\PtsHost\PtsHelper.cs (1)
169
PTS.FSRECT pageRect = paraClient.Paragraph.
StructuralCache
.CurrentArrangeContext.PageContext.PageRect;
MS\Internal\PtsHost\RowParagraph.cs (2)
140
MbpInfo mbpInfo = MbpInfo.FromElement(Table,
StructuralCache
.TextFormatterHost.PixelsPerDip);
304
_cellParagraphs[cellIndex] = new CellParagraph(Row.Cells[cellIndex],
StructuralCache
);
MS\Internal\PtsHost\SubpageParaClient.cs (8)
71
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
112
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
113
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
117
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
135
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
136
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
140
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
286
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\SubpageParagraph.cs (15)
158
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
162
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
207
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)),
222
StructuralCache
.CurrentFormatContext.PopPageData();
280
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
340
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
345
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
382
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
396
StructuralCache
.CurrentFormatContext.PopPageData();
450
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
500
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
505
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
540
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
555
StructuralCache
.CurrentFormatContext.PopPageData();
609
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
MS\Internal\PtsHost\TableParaClient.cs (8)
64
_columnRect = Paragraph.
StructuralCache
.CurrentArrangeContext.ColumnRect;
86
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
192
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
680
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
955
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
1981
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
2014
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
2430
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TableParagraph.cs (7)
90
if (suppressTopSpace && (
StructuralCache
.CurrentFormatContext.FinitePage || mcs == null))
94
MbpInfo mbp = MbpInfo.FromElement(Table,
StructuralCache
.TextFormatterHost.PixelsPerDip);
173
MbpInfo mbp = MbpInfo.FromElement(Table,
StructuralCache
.TextFormatterHost.PixelsPerDip);
274
_firstChild = new RowParagraph(tableRow,
StructuralCache
);
347
nextParagraph = new RowParagraph(tableRow,
StructuralCache
);
552
StructuralCache
.AddDirtyTextRange(dtr);
554
StructuralCache
.FormattingOwner.Formatter?.OnContentInvalidated(true, Table.ContentStart, Table.ContentEnd);
MS\Internal\PtsHost\TextParaClient.cs (34)
501
textContentRange = new TextContentRange(dcp + dcpFirst, dcp + dcpLast, Paragraph.
StructuralCache
.TextContainer);
608
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
662
return TextContainerHelper.GetTextPointerFromCP(Paragraph.
StructuralCache
.TextContainer, dcp + Paragraph.ParagraphStartCharacterPosition, direction);
676
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition((TextPointer)position);
827
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition(position as TextPointer);
877
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition(position as TextPointer);
920
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition(position as TextPointer);
1070
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
1090
StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.
StructuralCache
.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition);
1117
int dcpStart = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition;
1118
int dcpEnd = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition;
1660
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
1757
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2034
ITextPointer position = Paragraph.
StructuralCache
.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward);
2102
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2213
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2430
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2554
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2633
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2799
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2915
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3041
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3113
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3175
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3234
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3279
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3336
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3628
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3697
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3801
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3840
if(!Paragraph.
StructuralCache
.IsDeferredVisualCreationSupported)
3927
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3992
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
4126
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
MS\Internal\PtsHost\TextParagraph.cs (43)
185
TextFormatter textFormatter =
StructuralCache
.TextFormatterHost.TextFormatter;
188
OptimalTextSource optimalTextSource = new OptimalTextSource(
StructuralCache
.TextFormatterHost, ParagraphStartCharacterPosition, durTrack, textParaClient, _textRunCache);
189
StructuralCache
.TextFormatterHost.Context = optimalTextSource;
191
TextParagraphCache paragraphCache = textFormatter.CreateParagraphCache(
StructuralCache
.TextFormatterHost,
198
StructuralCache
.TextFormatterHost.Context = null;
269
BackgroundFormatInfo backgroundFormatInfo =
StructuralCache
.BackgroundFormatInfo;
275
if (
StructuralCache
.CurrentFormatContext.FinitePage)
301
StructuralCache
.BackgroundFormatInfo.CPInterrupted = dcpCur + ParagraphStartCharacterPosition;
378
StructuralCache
.TextFormatterHost.Context = optimalTextSource;
388
StructuralCache
.TextFormatterHost.Context = null;
514
StructuralCache
.CurrentFormatContext.OnFormatLine();
521
Line line = new Line(
StructuralCache
.TextFormatterHost, paraClient, ParagraphStartCharacterPosition);
566
int textSize =
StructuralCache
.TextContainer.SymbolCount;
570
StructuralCache
.CurrentFormatContext.DependentMax =
StructuralCache
.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
698
StructuralCache
.CurrentFormatContext.OnFormatLine();
705
Line line = new Line(
StructuralCache
.TextFormatterHost, paraClient, ParagraphStartCharacterPosition);
747
int textSize =
StructuralCache
.TextContainer.SymbolCount;
751
StructuralCache
.CurrentFormatContext.DependentMax =
StructuralCache
.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
780
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
801
if (!
StructuralCache
.CurrentFormatContext.FinitePage)
862
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(
StructuralCache
.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward);
863
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
885
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
886
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(
StructuralCache
.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward);
938
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
946
if(textElement is Figure &&
StructuralCache
.CurrentFormatContext.FinitePage)
957
FigureParagraph figurePara = new FigureParagraph(textElement,
StructuralCache
);
959
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate)
977
FloaterParagraph floaterPara = new FloaterParagraph(textElement,
StructuralCache
);
979
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate)
1190
StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(
StructuralCache
.TextContainer, startPosition);
1341
return ((OptimalTextSource)
StructuralCache
.TextFormatterHost.Context).MeasureChild(inlineObject);
1389
textContentRange.Merge(new TextContentRange(cpCur, startContentPosition,
StructuralCache
.TextContainer));
1401
textContentRange.Merge(new TextContentRange(cpCur, dcpLast,
StructuralCache
.TextContainer));
1421
StructuralCache
.FormattingOwner.OnChildDesiredSizeChanged(e.Child);
1464
return
StructuralCache
.IsOptimalParagraphEnabled && GetLineProperties(false, 0).TextWrapping != TextWrapping.NoWrap;
1484
if (_lineProperties == null || (_lineProperties != null && _lineProperties.DefaultTextRunProperties.PixelsPerDip !=
StructuralCache
.TextFormatterHost.PixelsPerDip))
1494
StructuralCache
.TextFormatterHost.PixelsPerDip);
1496
_lineProperties = new LineProperties(Element,
StructuralCache
.FormattingOwner, defaultTextProperties, null); // No marker properties
1501
_lineProperties.Hyphenator =
StructuralCache
.Hyphenator;
1709
int cpElement = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\UIElementParaClient.cs (2)
65
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
101
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\UIElementParagraph.cs (12)
108
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
212
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
313
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
362
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
389
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
397
if (
StructuralCache
.CurrentFormatContext.FinitePage)
399
elementHeight =
StructuralCache
.CurrentFormatContext.PageHeight;
427
if (
StructuralCache
.CurrentFormatContext.FinitePage)
429
Thickness pageMargin =
StructuralCache
.CurrentFormatContext.DocumentPageMargin;
430
elementHeight =
StructuralCache
.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom);
487
StructuralCache
.FormattingOwner.OnChildDesiredSizeChanged(e.Child);
530
if (!
StructuralCache
.CurrentFormatContext.FinitePage && !figure.Height.IsAbsolute)