258 references to StructuralCache
PresentationFramework (258)
src\Framework\MS\Internal\Documents\ParagraphResult.cs (3)
953
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
1068
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
1241
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
src\Framework\MS\Internal\PtsHost\BaseParaClient.cs (2)
99
_pageContext = Paragraph.
StructuralCache
.CurrentArrangeContext.PageContext;
238
internal FlowDirection PageFlowDirection { get { return Paragraph.
StructuralCache
.PageFlowDirection; } }
src\Framework\MS\Internal\PtsHost\BaseParagraph.cs (7)
186
int openEdgeCp = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeStart);
230
fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(
StructuralCache
.CurrentFormatContext.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false);
257
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
261
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeStart);
278
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeEnd);
282
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterEnd);
301
int cch = TextContainerHelper.GetCchFromElement(
StructuralCache
.TextContainer, Element);
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (4)
177
if(CellParagraph.
StructuralCache
.DtrList != null && breakRecordIn != null)
179
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.
StructuralCache
.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
251
if(CellParagraph.
StructuralCache
.DtrList != null)
253
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.
StructuralCache
.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (3)
67
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
221
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
343
paraClient = Paragraph.
StructuralCache
.PtsContext.HandleToObject(arrayParaDesc[i].pfsparaclient) as BaseParaClient;
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (33)
102
int cpCurrent = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
128
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate &&
135
if (!
StructuralCache
.CurrentFormatContext.FinitePage)
164
ITextPointer textPointer = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
174
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate)
254
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(
StructuralCache
.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward);
370
Debug.Assert(
StructuralCache
.CurrentFormatContext.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment.
373
if (
StructuralCache
.CurrentFormatContext.FinitePage)
378
DtrList dtrs =
StructuralCache
.DtrsFromRange(
379
TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch);
386
int dcpContent = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
527
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
531
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
632
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
679
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
693
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
768
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
816
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
830
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
905
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
1072
paragraph = new TextParagraph(Element,
StructuralCache
);
1082
paragraph = new TextParagraph(Element,
StructuralCache
);
1094
paragraph = new ListParagraph(element,
StructuralCache
);
1098
paragraph = new TableParagraph(element,
StructuralCache
);
1102
paragraph = new UIElementParagraph(element,
StructuralCache
);
1106
paragraph = new ContainerParagraph(element,
StructuralCache
);
1110
paragraph = new TextParagraph(Element,
StructuralCache
);
1123
paragraph = new TextParagraph(Element,
StructuralCache
);
1132
paragraph = new TextParagraph(Element,
StructuralCache
);
1139
StructuralCache
.CurrentFormatContext.DependentMax = (TextPointer) textPointer;
1152
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
1166
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
1176
int cpContent = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (9)
96
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
124
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
125
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
129
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
147
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
148
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
152
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
225
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
409
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (18)
110
_mainTextSegment = new ContainerParagraph(Element,
StructuralCache
);
139
Invariant.Assert(
StructuralCache
.CurrentFormatContext.FinitePage);
157
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
165
double specifiedWidth = FigureHelper.CalculateFigureWidth(
StructuralCache
, element,
175
double specifiedHeight = FigureHelper.CalculateFigureHeight(
StructuralCache
, element,
402
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
535
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
550
StructuralCache
.CurrentFormatContext.PopPageData();
581
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
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;
632
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
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\FloaterParaClient.cs (8)
105
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
106
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
110
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
128
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
129
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
133
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
214
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
413
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (13)
106
_mainTextSegment = new ContainerParagraph(Element,
StructuralCache
);
218
if (!
StructuralCache
.CurrentFormatContext.FinitePage)
220
if (Double.IsInfinity(
StructuralCache
.CurrentFormatContext.PageHeight))
230
dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(
StructuralCache
.CurrentFormatContext.PageHeight));
237
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
431
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
672
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
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();
809
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
903
double desiredSize = FigureHelper.CalculateFigureWidth(
StructuralCache
, (Figure)Element,
src\Framework\MS\Internal\PtsHost\Line.cs (7)
133
int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.
StructuralCache
.TextContainer, paraFigure.Element, ElementEdge.BeforeStart);
158
ITextContainer textContainer = _paraClient.Paragraph.
StructuralCache
.TextContainer;
207
ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara, LogicalDirection.Forward);
208
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
368
double pageHeight = _paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.DocumentPageSize.Height;
369
if (!_paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.FinitePage)
611
position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, cp, LogicalDirection.Forward) as TextPointer;
src\Framework\MS\Internal\PtsHost\LineBase.cs (5)
111
_paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
159
int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.
StructuralCache
.TextContainer, element);
173
int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.
StructuralCache
.TextContainer, element);
182
_paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
323
_paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
src\Framework\MS\Internal\PtsHost\ListParaClient.cs (4)
64
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
77
Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
90
ListMarkerLine listMarkerLine = new ListMarkerLine(Paragraph.
StructuralCache
.TextFormatterHost, this);
123
LineProperties lineProps = new LineProperties(Paragraph.Element, Paragraph.
StructuralCache
.FormattingOwner, textProperties, new MarkerProperties(list, adjustedIndex));
src\Framework\MS\Internal\PtsHost\ListParagraph.cs (3)
98
paragraph = new ListItemParagraph(element,
StructuralCache
);
111
paragraph = new ListParagraph(element,
StructuralCache
);
151
StructuralCache
.CurrentFormatContext.DependentMax = (TextPointer)textPointer;
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (6)
107
ITextContainer textContainer = _paraClient.Paragraph.
StructuralCache
.TextContainer;
157
ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara, LogicalDirection.Forward);
158
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
196
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
244
double pageHeight = _paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.DocumentPageSize.Height;
245
if (!_paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.FinitePage)
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (1)
190
PTS.FSRECT pageRect = paraClient.Paragraph.
StructuralCache
.CurrentArrangeContext.PageContext.PageRect;
src\Framework\MS\Internal\PtsHost\RowParagraph.cs (2)
149
MbpInfo mbpInfo = MbpInfo.FromElement(Table,
StructuralCache
.TextFormatterHost.PixelsPerDip);
322
_cellParagraphs[cellIndex] = new CellParagraph(Row.Cells[cellIndex],
StructuralCache
);
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (8)
95
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
136
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
137
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
141
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
159
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
160
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
164
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
334
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (15)
186
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
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;
380
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
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;
549
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
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\TableParaClient.cs (8)
82
_columnRect = Paragraph.
StructuralCache
.CurrentArrangeContext.ColumnRect;
104
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
218
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
741
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
1035
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
2108
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
2141
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
2557
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
src\Framework\MS\Internal\PtsHost\TableParagraph.cs (8)
106
if (suppressTopSpace && (
StructuralCache
.CurrentFormatContext.FinitePage || mcs == null))
110
MbpInfo mbp = MbpInfo.FromElement(Table,
StructuralCache
.TextFormatterHost.PixelsPerDip);
190
MbpInfo mbp = MbpInfo.FromElement(Table,
StructuralCache
.TextFormatterHost.PixelsPerDip);
291
_firstChild = new RowParagraph(tableRow,
StructuralCache
);
364
nextParagraph = new RowParagraph(tableRow,
StructuralCache
);
569
StructuralCache
.AddDirtyTextRange(dtr);
571
if (
StructuralCache
.FormattingOwner.Formatter != null)
573
StructuralCache
.FormattingOwner.Formatter.OnContentInvalidated(true, Table.ContentStart, Table.ContentEnd);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (34)
581
textContentRange = new TextContentRange(dcp + dcpFirst, dcp + dcpLast, Paragraph.
StructuralCache
.TextContainer);
696
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
758
return TextContainerHelper.GetTextPointerFromCP(Paragraph.
StructuralCache
.TextContainer, dcp + Paragraph.ParagraphStartCharacterPosition, direction);
782
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition((TextPointer)position);
952
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition(position as TextPointer);
1012
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition(position as TextPointer);
1065
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition(position as TextPointer);
1224
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
1244
StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.
StructuralCache
.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition);
1280
int dcpStart = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition;
1281
int dcpEnd = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition;
1866
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
1968
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2254
ITextPointer position = Paragraph.
StructuralCache
.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward);
2322
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2433
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2658
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2787
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2870
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3041
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3161
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3291
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3367
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3434
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3497
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3542
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3599
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3909
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3978
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
4091
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
4130
if(!Paragraph.
StructuralCache
.IsDeferredVisualCreationSupported)
4221
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
4291
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
4434
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (43)
208
TextFormatter textFormatter =
StructuralCache
.TextFormatterHost.TextFormatter;
211
OptimalTextSource optimalTextSource = new OptimalTextSource(
StructuralCache
.TextFormatterHost, ParagraphStartCharacterPosition, durTrack, textParaClient, _textRunCache);
212
StructuralCache
.TextFormatterHost.Context = optimalTextSource;
214
TextParagraphCache paragraphCache = textFormatter.CreateParagraphCache(
StructuralCache
.TextFormatterHost,
221
StructuralCache
.TextFormatterHost.Context = null;
293
BackgroundFormatInfo backgroundFormatInfo =
StructuralCache
.BackgroundFormatInfo;
299
if (
StructuralCache
.CurrentFormatContext.FinitePage)
325
StructuralCache
.BackgroundFormatInfo.CPInterrupted = dcpCur + ParagraphStartCharacterPosition;
402
StructuralCache
.TextFormatterHost.Context = optimalTextSource;
412
StructuralCache
.TextFormatterHost.Context = null;
538
StructuralCache
.CurrentFormatContext.OnFormatLine();
546
Line line = new Line(
StructuralCache
.TextFormatterHost, paraClient, ParagraphStartCharacterPosition);
592
int textSize =
StructuralCache
.TextContainer.SymbolCount;
596
StructuralCache
.CurrentFormatContext.DependentMax =
StructuralCache
.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
724
StructuralCache
.CurrentFormatContext.OnFormatLine();
732
Line line = new Line(
StructuralCache
.TextFormatterHost, paraClient, ParagraphStartCharacterPosition);
777
int textSize =
StructuralCache
.TextContainer.SymbolCount;
781
StructuralCache
.CurrentFormatContext.DependentMax =
StructuralCache
.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
810
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
831
if (!
StructuralCache
.CurrentFormatContext.FinitePage)
892
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(
StructuralCache
.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward);
893
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
915
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
916
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(
StructuralCache
.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward);
969
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
977
if(textElement is Figure &&
StructuralCache
.CurrentFormatContext.FinitePage)
989
FigureParagraph figurePara = new FigureParagraph(textElement,
StructuralCache
);
993
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate)
1012
FloaterParagraph floaterPara = new FloaterParagraph(textElement,
StructuralCache
);
1016
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate)
1227
StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(
StructuralCache
.TextContainer, startPosition);
1378
return ((OptimalTextSource)
StructuralCache
.TextFormatterHost.Context).MeasureChild(inlineObject);
1426
textContentRange.Merge(new TextContentRange(cpCur, startContentPosition,
StructuralCache
.TextContainer));
1438
textContentRange.Merge(new TextContentRange(cpCur, dcpLast,
StructuralCache
.TextContainer));
1458
StructuralCache
.FormattingOwner.OnChildDesiredSizeChanged(e.Child);
1501
return
StructuralCache
.IsOptimalParagraphEnabled && GetLineProperties(false, 0).TextWrapping != TextWrapping.NoWrap;
1521
if (_lineProperties == null || (_lineProperties != null && _lineProperties.DefaultTextRunProperties.PixelsPerDip !=
StructuralCache
.TextFormatterHost.PixelsPerDip))
1531
StructuralCache
.TextFormatterHost.PixelsPerDip);
1533
_lineProperties = new LineProperties(Element,
StructuralCache
.FormattingOwner, defaultTextProperties, null); // No marker properties
1538
_lineProperties.Hyphenator =
StructuralCache
.Hyphenator;
1746
int cpElement = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (2)
76
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
112
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (12)
119
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
220
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
313
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
360
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
387
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
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);
481
StructuralCache
.FormattingOwner.OnChildDesiredSizeChanged(e.Child);
524
if (!
StructuralCache
.CurrentFormatContext.FinitePage && !figure.Height.IsAbsolute)