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; 596PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 636MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 650PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 725PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 766MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 780PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 855PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 1022paragraph = new TextParagraph(Element, StructuralCache); 1032paragraph = new TextParagraph(Element, StructuralCache); 1044paragraph = new ListParagraph(element, StructuralCache); 1048paragraph = new TableParagraph(element, StructuralCache); 1052paragraph = new UIElementParagraph(element, StructuralCache); 1056paragraph = new ContainerParagraph(element, StructuralCache); 1060paragraph = new TextParagraph(Element, StructuralCache); 1073paragraph = new TextParagraph(Element, StructuralCache); 1082paragraph = new TextParagraph(Element, StructuralCache); 1089StructuralCache.CurrentFormatContext.DependentMax = (TextPointer) textPointer; 1102DtrList dtrs = StructuralCache.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch); 1116DtrList dtrs = StructuralCache.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch); 1126int 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)
95_mainTextSegment = new ContainerParagraph(Element, StructuralCache); 117Invariant.Assert(StructuralCache.CurrentFormatContext.FinitePage); 135mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 143double specifiedWidth = FigureHelper.CalculateFigureWidth(StructuralCache, element, 153double specifiedHeight = FigureHelper.CalculateFigureHeight(StructuralCache, element, 376FigureHelper.GetColumnMetrics(StructuralCache, out cColumns, out columnWidth, out gap, out rule); 497StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 512StructuralCache.CurrentFormatContext.PopPageData(); 543FigureHelper.GetColumnMetrics(StructuralCache, out cColumns, out columnWidth, out gap, out rule); 548int affectedColumn = (uComparisonPoint - StructuralCache.CurrentFormatContext.PageMarginRect.u) / duColumnTotal; 549int columnLeft = StructuralCache.CurrentFormatContext.PageMarginRect.u + affectedColumn * duColumnTotal; 582maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth; 586Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin; 587maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth - pageMargin.Left - pageMargin.Right; 594FigureHelper.GetColumnMetrics(StructuralCache, out cColumns, out columnWidth, out gap, out rule); 620maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight; 624Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin; 625maxTotalHeight = 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)
90_mainTextSegment = new ContainerParagraph(Element, StructuralCache); 202if (!StructuralCache.CurrentFormatContext.FinitePage) 204if (Double.IsInfinity(StructuralCache.CurrentFormatContext.PageHeight)) 214dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(StructuralCache.CurrentFormatContext.PageHeight)); 221mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 412mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 647MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 704StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 719StructuralCache.CurrentFormatContext.PopPageData(); 747StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth), 761StructuralCache.CurrentFormatContext.PopPageData(); 769DtrList dtrs = StructuralCache.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch); 863double 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)
157mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 161PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 206StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)), 221StructuralCache.CurrentFormatContext.PopPageData(); 279PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 339mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 344PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 381StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 395StructuralCache.CurrentFormatContext.PopPageData(); 449PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 499mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 504PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 539StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 554StructuralCache.CurrentFormatContext.PopPageData(); 608PTS.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)