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