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