258 references to StructuralCache
PresentationFramework (258)
MS\Internal\Documents\ParagraphResult.cs (3)
945
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
1060
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
1232
MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\BaseParaClient.cs (2)
84
_pageContext = Paragraph.
StructuralCache
.CurrentArrangeContext.PageContext;
223
internal FlowDirection PageFlowDirection { get { return Paragraph.
StructuralCache
.PageFlowDirection; } }
MS\Internal\PtsHost\BaseParagraph.cs (7)
182
int openEdgeCp = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeStart);
226
fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(
StructuralCache
.CurrentFormatContext.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false);
253
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
257
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeStart);
274
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeEnd);
278
return TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterEnd);
297
int cch = TextContainerHelper.GetCchFromElement(
StructuralCache
.TextContainer, Element);
MS\Internal\PtsHost\CellParaClient.cs (4)
160
if(CellParagraph.
StructuralCache
.DtrList != null && breakRecordIn != IntPtr.Zero)
162
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.
StructuralCache
.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
229
if(CellParagraph.
StructuralCache
.DtrList != null)
231
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.
StructuralCache
.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
MS\Internal\PtsHost\ContainerParaClient.cs (3)
56
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
188
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
295
paraClient = Paragraph.
StructuralCache
.PtsContext.HandleToObject(arrayParaDesc[i].pfsparaclient) as BaseParaClient;
MS\Internal\PtsHost\ContainerParagraph.cs (33)
98
int cpCurrent = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
124
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate &&
131
if (!
StructuralCache
.CurrentFormatContext.FinitePage)
160
ITextPointer textPointer = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
170
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate)
249
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(
StructuralCache
.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward);
365
Debug.Assert(
StructuralCache
.CurrentFormatContext.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment.
368
if (
StructuralCache
.CurrentFormatContext.FinitePage)
373
DtrList dtrs =
StructuralCache
.DtrsFromRange(
374
TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch);
381
int dcpContent = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
515
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
519
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
620
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
660
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
674
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
749
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
790
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
804
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
879
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
1046
paragraph = new TextParagraph(Element,
StructuralCache
);
1056
paragraph = new TextParagraph(Element,
StructuralCache
);
1068
paragraph = new ListParagraph(element,
StructuralCache
);
1072
paragraph = new TableParagraph(element,
StructuralCache
);
1076
paragraph = new UIElementParagraph(element,
StructuralCache
);
1080
paragraph = new ContainerParagraph(element,
StructuralCache
);
1084
paragraph = new TextParagraph(Element,
StructuralCache
);
1097
paragraph = new TextParagraph(Element,
StructuralCache
);
1106
paragraph = new TextParagraph(Element,
StructuralCache
);
1113
StructuralCache
.CurrentFormatContext.DependentMax = (TextPointer) textPointer;
1126
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
1140
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
1150
int cpContent = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\FigureParaClient.cs (9)
76
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
104
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
105
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
109
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
127
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
128
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
132
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
198
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
358
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\FigureParagraph.cs (18)
107
_mainTextSegment = new ContainerParagraph(Element,
StructuralCache
);
129
Invariant.Assert(
StructuralCache
.CurrentFormatContext.FinitePage);
147
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
155
double specifiedWidth = FigureHelper.CalculateFigureWidth(
StructuralCache
, element,
165
double specifiedHeight = FigureHelper.CalculateFigureHeight(
StructuralCache
, element,
388
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
513
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
528
StructuralCache
.CurrentFormatContext.PopPageData();
559
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
564
int affectedColumn = (uComparisonPoint -
StructuralCache
.CurrentFormatContext.PageMarginRect.u) / duColumnTotal;
565
int columnLeft =
StructuralCache
.CurrentFormatContext.PageMarginRect.u + affectedColumn * duColumnTotal;
598
maxTotalWidth =
StructuralCache
.CurrentFormatContext.PageWidth;
602
Thickness pageMargin =
StructuralCache
.CurrentFormatContext.PageMargin;
603
maxTotalWidth =
StructuralCache
.CurrentFormatContext.PageWidth - pageMargin.Left - pageMargin.Right;
610
FigureHelper.GetColumnMetrics(
StructuralCache
, out cColumns, out columnWidth, out gap, out rule);
636
maxTotalHeight =
StructuralCache
.CurrentFormatContext.PageHeight;
640
Thickness pageMargin =
StructuralCache
.CurrentFormatContext.PageMargin;
641
maxTotalHeight =
StructuralCache
.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FloaterParaClient.cs (8)
88
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
89
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
93
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
111
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
112
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
116
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
189
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
364
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\FloaterParagraph.cs (13)
104
_mainTextSegment = new ContainerParagraph(Element,
StructuralCache
);
210
if (!
StructuralCache
.CurrentFormatContext.FinitePage)
212
if (Double.IsInfinity(
StructuralCache
.CurrentFormatContext.PageHeight))
222
dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(
StructuralCache
.CurrentFormatContext.PageHeight));
229
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
416
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
657
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
714
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
729
StructuralCache
.CurrentFormatContext.PopPageData();
757
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth),
771
StructuralCache
.CurrentFormatContext.PopPageData();
779
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
873
double desiredSize = FigureHelper.CalculateFigureWidth(
StructuralCache
, (Figure)Element,
MS\Internal\PtsHost\Line.cs (7)
130
int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.
StructuralCache
.TextContainer, paraFigure.Element, ElementEdge.BeforeStart);
155
ITextContainer textContainer = _paraClient.Paragraph.
StructuralCache
.TextContainer;
204
ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara, LogicalDirection.Forward);
205
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
365
double pageHeight = _paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.DocumentPageSize.Height;
366
if (!_paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.FinitePage)
608
position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, cp, LogicalDirection.Forward) as TextPointer;
MS\Internal\PtsHost\LineBase.cs (5)
107
_paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
154
int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.
StructuralCache
.TextContainer, element);
168
int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.
StructuralCache
.TextContainer, element);
177
_paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
318
_paraClient.Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\ListParaClient.cs (4)
54
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
67
Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
80
ListMarkerLine listMarkerLine = new ListMarkerLine(Paragraph.
StructuralCache
.TextFormatterHost, this);
113
LineProperties lineProps = new LineProperties(Paragraph.Element, Paragraph.
StructuralCache
.FormattingOwner, textProperties, new MarkerProperties(list, adjustedIndex));
MS\Internal\PtsHost\ListParagraph.cs (3)
93
paragraph = new ListItemParagraph(element,
StructuralCache
);
105
paragraph = new ListParagraph(element,
StructuralCache
);
145
StructuralCache
.CurrentFormatContext.DependentMax = (TextPointer)textPointer;
MS\Internal\PtsHost\OptimalTextSource.cs (6)
103
ITextContainer textContainer = _paraClient.Paragraph.
StructuralCache
.TextContainer;
153
ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara, LogicalDirection.Forward);
154
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
192
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.
StructuralCache
.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
240
double pageHeight = _paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.DocumentPageSize.Height;
241
if (!_paraClient.Paragraph.
StructuralCache
.CurrentFormatContext.FinitePage)
MS\Internal\PtsHost\PtsHelper.cs (1)
174
PTS.FSRECT pageRect = paraClient.Paragraph.
StructuralCache
.CurrentArrangeContext.PageContext.PageRect;
MS\Internal\PtsHost\RowParagraph.cs (2)
143
MbpInfo mbpInfo = MbpInfo.FromElement(Table,
StructuralCache
.TextFormatterHost.PixelsPerDip);
307
_cellParagraphs[cellIndex] = new CellParagraph(Row.Cells[cellIndex],
StructuralCache
);
MS\Internal\PtsHost\SubpageParaClient.cs (8)
76
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
117
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc,
118
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
122
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
140
Paragraph.
StructuralCache
.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc,
141
Paragraph.
StructuralCache
.CurrentArrangeContext.FinitePage);
145
Paragraph.
StructuralCache
.CurrentArrangeContext.PopPageData();
291
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\SubpageParagraph.cs (15)
173
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
177
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
222
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)),
237
StructuralCache
.CurrentFormatContext.PopPageData();
295
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
355
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
360
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
397
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
411
StructuralCache
.CurrentFormatContext.PopPageData();
465
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
515
mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
520
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
555
StructuralCache
.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
570
StructuralCache
.CurrentFormatContext.PopPageData();
624
PTS.FSRECT pageRect =
StructuralCache
.CurrentFormatContext.PageRect;
MS\Internal\PtsHost\TableParaClient.cs (8)
70
_columnRect = Paragraph.
StructuralCache
.CurrentArrangeContext.ColumnRect;
92
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
198
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
686
MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
961
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
1987
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
2020
MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
2436
MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TableParagraph.cs (8)
102
if (suppressTopSpace && (
StructuralCache
.CurrentFormatContext.FinitePage || mcs == null))
106
MbpInfo mbp = MbpInfo.FromElement(Table,
StructuralCache
.TextFormatterHost.PixelsPerDip);
186
MbpInfo mbp = MbpInfo.FromElement(Table,
StructuralCache
.TextFormatterHost.PixelsPerDip);
287
_firstChild = new RowParagraph(tableRow,
StructuralCache
);
360
nextParagraph = new RowParagraph(tableRow,
StructuralCache
);
565
StructuralCache
.AddDirtyTextRange(dtr);
567
if (
StructuralCache
.FormattingOwner.Formatter != null)
569
StructuralCache
.FormattingOwner.Formatter.OnContentInvalidated(true, Table.ContentStart, Table.ContentEnd);
MS\Internal\PtsHost\TextParaClient.cs (34)
507
textContentRange = new TextContentRange(dcp + dcpFirst, dcp + dcpLast, Paragraph.
StructuralCache
.TextContainer);
614
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
668
return TextContainerHelper.GetTextPointerFromCP(Paragraph.
StructuralCache
.TextContainer, dcp + Paragraph.ParagraphStartCharacterPosition, direction);
682
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition((TextPointer)position);
833
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition(position as TextPointer);
883
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition(position as TextPointer);
926
int cp = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition(position as TextPointer);
1076
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
1096
StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.
StructuralCache
.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition);
1123
int dcpStart = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition;
1124
int dcpEnd = Paragraph.
StructuralCache
.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition;
1666
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
1763
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2040
ITextPointer position = Paragraph.
StructuralCache
.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward);
2108
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2219
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2436
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2560
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2639
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2805
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
2921
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3047
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3119
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3181
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3240
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3285
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3342
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3634
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3703
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3807
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
3846
if(!Paragraph.
StructuralCache
.IsDeferredVisualCreationSupported)
3933
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
3998
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, cpTextParaStart);
4132
Line line = new Line(Paragraph.
StructuralCache
.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
MS\Internal\PtsHost\TextParagraph.cs (43)
203
TextFormatter textFormatter =
StructuralCache
.TextFormatterHost.TextFormatter;
206
OptimalTextSource optimalTextSource = new OptimalTextSource(
StructuralCache
.TextFormatterHost, ParagraphStartCharacterPosition, durTrack, textParaClient, _textRunCache);
207
StructuralCache
.TextFormatterHost.Context = optimalTextSource;
209
TextParagraphCache paragraphCache = textFormatter.CreateParagraphCache(
StructuralCache
.TextFormatterHost,
216
StructuralCache
.TextFormatterHost.Context = null;
287
BackgroundFormatInfo backgroundFormatInfo =
StructuralCache
.BackgroundFormatInfo;
293
if (
StructuralCache
.CurrentFormatContext.FinitePage)
319
StructuralCache
.BackgroundFormatInfo.CPInterrupted = dcpCur + ParagraphStartCharacterPosition;
396
StructuralCache
.TextFormatterHost.Context = optimalTextSource;
406
StructuralCache
.TextFormatterHost.Context = null;
532
StructuralCache
.CurrentFormatContext.OnFormatLine();
540
Line line = new Line(
StructuralCache
.TextFormatterHost, paraClient, ParagraphStartCharacterPosition);
586
int textSize =
StructuralCache
.TextContainer.SymbolCount;
590
StructuralCache
.CurrentFormatContext.DependentMax =
StructuralCache
.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
718
StructuralCache
.CurrentFormatContext.OnFormatLine();
726
Line line = new Line(
StructuralCache
.TextFormatterHost, paraClient, ParagraphStartCharacterPosition);
770
int textSize =
StructuralCache
.TextContainer.SymbolCount;
774
StructuralCache
.CurrentFormatContext.DependentMax =
StructuralCache
.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
803
DtrList dtrs =
StructuralCache
.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch);
824
if (!
StructuralCache
.CurrentFormatContext.FinitePage)
885
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(
StructuralCache
.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward);
886
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
908
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
909
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(
StructuralCache
.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward);
961
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(
StructuralCache
.TextContainer, Element);
969
if(textElement is Figure &&
StructuralCache
.CurrentFormatContext.FinitePage)
981
FigureParagraph figurePara = new FigureParagraph(textElement,
StructuralCache
);
985
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate)
1004
FloaterParagraph floaterPara = new FloaterParagraph(textElement,
StructuralCache
);
1008
if (
StructuralCache
.CurrentFormatContext.IncrementalUpdate)
1219
StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(
StructuralCache
.TextContainer, startPosition);
1370
return ((OptimalTextSource)
StructuralCache
.TextFormatterHost.Context).MeasureChild(inlineObject);
1418
textContentRange.Merge(new TextContentRange(cpCur, startContentPosition,
StructuralCache
.TextContainer));
1430
textContentRange.Merge(new TextContentRange(cpCur, dcpLast,
StructuralCache
.TextContainer));
1450
StructuralCache
.FormattingOwner.OnChildDesiredSizeChanged(e.Child);
1493
return
StructuralCache
.IsOptimalParagraphEnabled && GetLineProperties(false, 0).TextWrapping != TextWrapping.NoWrap;
1513
if (_lineProperties == null || (_lineProperties != null && _lineProperties.DefaultTextRunProperties.PixelsPerDip !=
StructuralCache
.TextFormatterHost.PixelsPerDip))
1523
StructuralCache
.TextFormatterHost.PixelsPerDip);
1525
_lineProperties = new LineProperties(Element,
StructuralCache
.FormattingOwner, defaultTextProperties, null); // No marker properties
1530
_lineProperties.Hyphenator =
StructuralCache
.Hyphenator;
1738
int cpElement = TextContainerHelper.GetCPFromElement(
StructuralCache
.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\UIElementParaClient.cs (2)
69
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
105
MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.
StructuralCache
.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\UIElementParagraph.cs (12)
120
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
221
MbpInfo mbp = MbpInfo.FromElement(Element,
StructuralCache
.TextFormatterHost.PixelsPerDip);
314
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;
424
if (
StructuralCache
.CurrentFormatContext.FinitePage)
426
Thickness pageMargin =
StructuralCache
.CurrentFormatContext.DocumentPageMargin;
427
elementHeight =
StructuralCache
.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom);
482
StructuralCache
.FormattingOwner.OnChildDesiredSizeChanged(e.Child);
525
if (!
StructuralCache
.CurrentFormatContext.FinitePage && !figure.Height.IsAbsolute)