258 references to StructuralCache
PresentationFramework (258)
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);
495
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
499
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
600
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
640
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
654
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
729
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
770
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
784
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
859
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
1026
paragraph = new TextParagraph(Element,
StructuralCache
);
1036
paragraph = new TextParagraph(Element,
StructuralCache
);
1048
paragraph = new ListParagraph(element,
StructuralCache
);
1052
paragraph = new TableParagraph(element,
StructuralCache
);
1056
paragraph = new UIElementParagraph(element,
StructuralCache
);
1060
paragraph = new ContainerParagraph(element,
StructuralCache
);
1064
paragraph = new TextParagraph(Element,
StructuralCache
);
1077
paragraph = new TextParagraph(Element,
StructuralCache
);
1086
paragraph = new TextParagraph(Element,
StructuralCache
);
1093
StructuralCache
.CurrentFormatContext.DependentMax = (TextPointer) textPointer;
1106
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
1120
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
1130
int cpContent = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\FigureParaClient.cs (9)
70
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
98
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
99
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
103
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
121
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
122
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
126
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
193
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
353
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);
504
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
519
StructuralCache
.CurrentFormatContext.PopPageData();
550
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
555
int affectedColumn = (uComparisonPoint -
StructuralCache
.CurrentFormatContext.PageMarginRect.u) / duColumnTotal;
556
int columnLeft =
StructuralCache
.CurrentFormatContext.PageMarginRect.u + affectedColumn * duColumnTotal;
589
maxTotalWidth =
StructuralCache
.CurrentFormatContext.PageWidth;
593
Thickness pageMargin =
StructuralCache
.CurrentFormatContext.PageMargin;
594
maxTotalWidth =
StructuralCache
.CurrentFormatContext.PageWidth - pageMargin.Left - pageMargin.Right;
601
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
627
maxTotalHeight =
StructuralCache
.CurrentFormatContext.PageHeight;
631
Thickness pageMargin =
StructuralCache
.CurrentFormatContext.PageMargin;
632
maxTotalHeight =
StructuralCache
.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FloaterParaClient.cs (8)
83
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
84
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
88
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
106
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
107
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
111
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
185
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
360
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);
654
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
711
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
726
StructuralCache
.CurrentFormatContext.PopPageData();
754
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth),
768
StructuralCache
.CurrentFormatContext.PopPageData();
776
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
870
double desiredSize = FigureHelper.CalculateFigureWidth(
StructuralCache
, (Figure)Element,
MS\Internal\PtsHost\Line.cs (7)
116
int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.
StructuralCache
.TextContainer, paraFigure.Element, ElementEdge.BeforeStart);
141
ITextContainer textContainer = _paraClient.Paragraph.
StructuralCache
.TextContainer;
190
ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara, LogicalDirection.Forward);
191
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
351
double pageHeight = _paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.DocumentPageSize.Height;
352
if (!_paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.FinitePage)
593
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 (8)
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
if (
StructuralCache
.FormattingOwner.Formatter != null)
556
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);
215
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
316
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
365
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
392
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
400
if (
StructuralCache
.CurrentFormatContext.FinitePage)
402
elementHeight =
StructuralCache
.CurrentFormatContext.PageHeight;
430
if (
StructuralCache
.CurrentFormatContext.FinitePage)
432
Thickness pageMargin =
StructuralCache
.CurrentFormatContext.DocumentPageMargin;
433
elementHeight =
StructuralCache
.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom);
490
StructuralCache
.FormattingOwner.OnChildDesiredSizeChanged(e.Child);
533
if (!
StructuralCache
.CurrentFormatContext.FinitePage && !figure.Height.IsAbsolute)