257 references to StructuralCache
PresentationFramework (257)
MS\Internal\Documents\ParagraphResult.cs (3)
941MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1056MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1228MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\BaseParaClient.cs (2)
75_pageContext = Paragraph.StructuralCache.CurrentArrangeContext.PageContext; 214internal FlowDirection PageFlowDirection { get { return Paragraph.StructuralCache.PageFlowDirection; } }
MS\Internal\PtsHost\BaseParagraph.cs (7)
179int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 223fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(StructuralCache.CurrentFormatContext.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false); 250return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 254return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 271return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeEnd); 275return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterEnd); 294int cch = TextContainerHelper.GetCchFromElement(StructuralCache.TextContainer, Element);
MS\Internal\PtsHost\CellParaClient.cs (4)
154if(CellParagraph.StructuralCache.DtrList != null && breakRecordIn != IntPtr.Zero) 156CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart)); 223if(CellParagraph.StructuralCache.DtrList != null) 225CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
MS\Internal\PtsHost\ContainerParaClient.cs (3)
50MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 182MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 289paraClient = Paragraph.StructuralCache.PtsContext.HandleToObject(arrayParaDesc[i].pfsparaclient) as BaseParaClient;
MS\Internal\PtsHost\ContainerParagraph.cs (33)
79int cpCurrent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 105if (StructuralCache.CurrentFormatContext.IncrementalUpdate && 112if (!StructuralCache.CurrentFormatContext.FinitePage) 141ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 151if (StructuralCache.CurrentFormatContext.IncrementalUpdate) 230ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward); 346Debug.Assert(StructuralCache.CurrentFormatContext.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment. 349if (StructuralCache.CurrentFormatContext.FinitePage) 354DtrList dtrs = StructuralCache.DtrsFromRange( 355TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch); 362int dcpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 491MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 495PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 591PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 631MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 645PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 714PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 755MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 769PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 838PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 1005paragraph = new TextParagraph(Element, StructuralCache); 1015paragraph = new TextParagraph(Element, StructuralCache); 1027paragraph = new ListParagraph(element, StructuralCache); 1031paragraph = new TableParagraph(element, StructuralCache); 1035paragraph = new UIElementParagraph(element, StructuralCache); 1039paragraph = new ContainerParagraph(element, StructuralCache); 1043paragraph = new TextParagraph(Element, StructuralCache); 1056paragraph = new TextParagraph(Element, StructuralCache); 1065paragraph = new TextParagraph(Element, StructuralCache); 1072StructuralCache.CurrentFormatContext.DependentMax = (TextPointer) textPointer; 1085DtrList dtrs = StructuralCache.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch); 1099DtrList dtrs = StructuralCache.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch); 1109int cpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\FigureParaClient.cs (9)
66MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 94Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 95Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 99Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 117Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 118Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 122Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 189MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 349MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\FigureParagraph.cs (18)
91_mainTextSegment = new ContainerParagraph(Element, StructuralCache); 113Invariant.Assert(StructuralCache.CurrentFormatContext.FinitePage); 131mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 139double specifiedWidth = FigureHelper.CalculateFigureWidth(StructuralCache, element, 149double specifiedHeight = FigureHelper.CalculateFigureHeight(StructuralCache, element, 372FigureHelper.GetColumnMetrics(StructuralCache, out cColumns, out columnWidth, out gap, out rule); 493StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 508StructuralCache.CurrentFormatContext.PopPageData(); 539FigureHelper.GetColumnMetrics(StructuralCache, out cColumns, out columnWidth, out gap, out rule); 544int affectedColumn = (uComparisonPoint - StructuralCache.CurrentFormatContext.PageMarginRect.u) / duColumnTotal; 545int columnLeft = StructuralCache.CurrentFormatContext.PageMarginRect.u + affectedColumn * duColumnTotal; 578maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth; 582Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin; 583maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth - pageMargin.Left - pageMargin.Right; 590FigureHelper.GetColumnMetrics(StructuralCache, out cColumns, out columnWidth, out gap, out rule); 616maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight; 620Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin; 621maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FloaterParaClient.cs (8)
79Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 80Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 84Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 102Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 103Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 107Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 181MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 356MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\FloaterParagraph.cs (13)
86_mainTextSegment = new ContainerParagraph(Element, StructuralCache); 198if (!StructuralCache.CurrentFormatContext.FinitePage) 200if (Double.IsInfinity(StructuralCache.CurrentFormatContext.PageHeight)) 210dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(StructuralCache.CurrentFormatContext.PageHeight)); 217mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 408mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 643MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 700StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 715StructuralCache.CurrentFormatContext.PopPageData(); 743StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth), 757StructuralCache.CurrentFormatContext.PopPageData(); 765DtrList dtrs = StructuralCache.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch); 859double desiredSize = FigureHelper.CalculateFigureWidth(StructuralCache, (Figure)Element,
MS\Internal\PtsHost\Line.cs (7)
112int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart); 137ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 186ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 187ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 347double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 348if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage) 589position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, cp, LogicalDirection.Forward) as TextPointer;
MS\Internal\PtsHost\LineBase.cs (5)
96_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 143int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 157int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 166_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 307_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\ListParaClient.cs (4)
49MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 62Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 75ListMarkerLine listMarkerLine = new ListMarkerLine(Paragraph.StructuralCache.TextFormatterHost, this); 108LineProperties lineProps = new LineProperties(Paragraph.Element, Paragraph.StructuralCache.FormattingOwner, textProperties, new MarkerProperties(list, adjustedIndex));
MS\Internal\PtsHost\ListParagraph.cs (3)
80paragraph = new ListItemParagraph(element, StructuralCache); 92paragraph = new ListParagraph(element, StructuralCache); 132StructuralCache.CurrentFormatContext.DependentMax = (TextPointer)textPointer;
MS\Internal\PtsHost\OptimalTextSource.cs (6)
87ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 137ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 138ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 176ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 224double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 225if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage)
MS\Internal\PtsHost\PtsHelper.cs (1)
168PTS.FSRECT pageRect = paraClient.Paragraph.StructuralCache.CurrentArrangeContext.PageContext.PageRect;
MS\Internal\PtsHost\RowParagraph.cs (2)
139MbpInfo mbpInfo = MbpInfo.FromElement(Table, StructuralCache.TextFormatterHost.PixelsPerDip); 303_cellParagraphs[cellIndex] = new CellParagraph(Row.Cells[cellIndex], StructuralCache);
MS\Internal\PtsHost\SubpageParaClient.cs (8)
70MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 111Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 112Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 116Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 134Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 135Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 139Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 285MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\SubpageParagraph.cs (15)
153mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 157PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 199StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)), 214StructuralCache.CurrentFormatContext.PopPageData(); 272PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 328mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 333PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 369StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 383StructuralCache.CurrentFormatContext.PopPageData(); 434PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 484mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 489PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 523StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 538StructuralCache.CurrentFormatContext.PopPageData(); 589PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect;
MS\Internal\PtsHost\TableParaClient.cs (8)
63_columnRect = Paragraph.StructuralCache.CurrentArrangeContext.ColumnRect; 85MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip); 191MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip); 679MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip); 954MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1980MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 2013MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 2429MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TableParagraph.cs (7)
89if (suppressTopSpace && (StructuralCache.CurrentFormatContext.FinitePage || mcs == null)) 93MbpInfo mbp = MbpInfo.FromElement(Table, StructuralCache.TextFormatterHost.PixelsPerDip); 172MbpInfo mbp = MbpInfo.FromElement(Table, StructuralCache.TextFormatterHost.PixelsPerDip); 273_firstChild = new RowParagraph(tableRow, StructuralCache); 346nextParagraph = new RowParagraph(tableRow, StructuralCache); 551StructuralCache.AddDirtyTextRange(dtr); 553StructuralCache.FormattingOwner.Formatter?.OnContentInvalidated(true, Table.ContentStart, Table.ContentEnd);
MS\Internal\PtsHost\TextParaClient.cs (34)
500textContentRange = new TextContentRange(dcp + dcpFirst, dcp + dcpLast, Paragraph.StructuralCache.TextContainer); 607Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 661return TextContainerHelper.GetTextPointerFromCP(Paragraph.StructuralCache.TextContainer, dcp + Paragraph.ParagraphStartCharacterPosition, direction); 675int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)position); 826int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 876int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 919int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 1069Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 1089StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition); 1116int dcpStart = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition; 1117int dcpEnd = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition; 1659Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 1756Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2033ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward); 2101Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2212Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2429Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2553Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2632Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2798Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2914Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3040Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3112Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3174Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3233Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3278Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3335Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3627Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3696Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3800Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3839if(!Paragraph.StructuralCache.IsDeferredVisualCreationSupported) 3926Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3991Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 4125Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
MS\Internal\PtsHost\TextParagraph.cs (43)
184TextFormatter textFormatter = StructuralCache.TextFormatterHost.TextFormatter; 187OptimalTextSource optimalTextSource = new OptimalTextSource(StructuralCache.TextFormatterHost, ParagraphStartCharacterPosition, durTrack, textParaClient, _textRunCache); 188StructuralCache.TextFormatterHost.Context = optimalTextSource; 190TextParagraphCache paragraphCache = textFormatter.CreateParagraphCache(StructuralCache.TextFormatterHost, 197StructuralCache.TextFormatterHost.Context = null; 268BackgroundFormatInfo backgroundFormatInfo = StructuralCache.BackgroundFormatInfo; 274if (StructuralCache.CurrentFormatContext.FinitePage) 300StructuralCache.BackgroundFormatInfo.CPInterrupted = dcpCur + ParagraphStartCharacterPosition; 377StructuralCache.TextFormatterHost.Context = optimalTextSource; 387StructuralCache.TextFormatterHost.Context = null; 513StructuralCache.CurrentFormatContext.OnFormatLine(); 520Line line = new Line(StructuralCache.TextFormatterHost, paraClient, ParagraphStartCharacterPosition); 565int textSize = StructuralCache.TextContainer.SymbolCount; 569StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward); 697StructuralCache.CurrentFormatContext.OnFormatLine(); 704Line line = new Line(StructuralCache.TextFormatterHost, paraClient, ParagraphStartCharacterPosition); 746int textSize = StructuralCache.TextContainer.SymbolCount; 750StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward); 779DtrList dtrs = StructuralCache.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch); 800if (!StructuralCache.CurrentFormatContext.FinitePage) 861ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 862ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 884ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 885ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 937ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 945if(textElement is Figure && StructuralCache.CurrentFormatContext.FinitePage) 956FigureParagraph figurePara = new FigureParagraph(textElement, StructuralCache); 958if (StructuralCache.CurrentFormatContext.IncrementalUpdate) 976FloaterParagraph floaterPara = new FloaterParagraph(textElement, StructuralCache); 978if (StructuralCache.CurrentFormatContext.IncrementalUpdate) 1189StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(StructuralCache.TextContainer, startPosition); 1340return ((OptimalTextSource)StructuralCache.TextFormatterHost.Context).MeasureChild(inlineObject); 1388textContentRange.Merge(new TextContentRange(cpCur, startContentPosition, StructuralCache.TextContainer)); 1400textContentRange.Merge(new TextContentRange(cpCur, dcpLast, StructuralCache.TextContainer)); 1420StructuralCache.FormattingOwner.OnChildDesiredSizeChanged(e.Child); 1463return StructuralCache.IsOptimalParagraphEnabled && GetLineProperties(false, 0).TextWrapping != TextWrapping.NoWrap; 1483if (_lineProperties == null || (_lineProperties != null && _lineProperties.DefaultTextRunProperties.PixelsPerDip != StructuralCache.TextFormatterHost.PixelsPerDip)) 1493StructuralCache.TextFormatterHost.PixelsPerDip); 1495_lineProperties = new LineProperties(Element, StructuralCache.FormattingOwner, defaultTextProperties, null); // No marker properties 1500_lineProperties.Hyphenator = StructuralCache.Hyphenator; 1708int cpElement = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\UIElementParaClient.cs (2)
64MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 100MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\UIElementParagraph.cs (12)
107MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 211MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 312MbpInfo 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; 426if (StructuralCache.CurrentFormatContext.FinitePage) 428Thickness pageMargin = StructuralCache.CurrentFormatContext.DocumentPageMargin; 429elementHeight = StructuralCache.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom); 486StructuralCache.FormattingOwner.OnChildDesiredSizeChanged(e.Child); 529if (!StructuralCache.CurrentFormatContext.FinitePage && !figure.Height.IsAbsolute)