258 references to StructuralCache
PresentationFramework (258)
MS\Internal\Documents\ParagraphResult.cs (3)
942MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1057MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1229MbpInfo mbp = MbpInfo.FromElement(_paraClient.Paragraph.Element, _paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\BaseParaClient.cs (2)
76_pageContext = Paragraph.StructuralCache.CurrentArrangeContext.PageContext; 215internal FlowDirection PageFlowDirection { get { return Paragraph.StructuralCache.PageFlowDirection; } }
MS\Internal\PtsHost\BaseParagraph.cs (7)
180int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 224fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(StructuralCache.CurrentFormatContext.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false); 251return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 255return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 272return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeEnd); 276return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterEnd); 295int cch = TextContainerHelper.GetCchFromElement(StructuralCache.TextContainer, Element);
MS\Internal\PtsHost\CellParaClient.cs (4)
155if(CellParagraph.StructuralCache.DtrList != null && breakRecordIn != IntPtr.Zero) 157CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart)); 224if(CellParagraph.StructuralCache.DtrList != null) 226CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
MS\Internal\PtsHost\ContainerParaClient.cs (3)
51MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 183MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 290paraClient = Paragraph.StructuralCache.PtsContext.HandleToObject(arrayParaDesc[i].pfsparaclient) as BaseParaClient;
MS\Internal\PtsHost\ContainerParagraph.cs (33)
80int cpCurrent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 106if (StructuralCache.CurrentFormatContext.IncrementalUpdate && 113if (!StructuralCache.CurrentFormatContext.FinitePage) 142ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 152if (StructuralCache.CurrentFormatContext.IncrementalUpdate) 231ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward); 347Debug.Assert(StructuralCache.CurrentFormatContext.FinitePage || _ur != null); // For bottomless case UpdateRecord needs to be created in UpdGetFirstChangeInSegment. 350if (StructuralCache.CurrentFormatContext.FinitePage) 355DtrList dtrs = StructuralCache.DtrsFromRange( 356TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch); 363int dcpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 495MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 499PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 600PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 640MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 654PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 729PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 770MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 784PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 859PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 1026paragraph = new TextParagraph(Element, StructuralCache); 1036paragraph = new TextParagraph(Element, StructuralCache); 1048paragraph = new ListParagraph(element, StructuralCache); 1052paragraph = new TableParagraph(element, StructuralCache); 1056paragraph = new UIElementParagraph(element, StructuralCache); 1060paragraph = new ContainerParagraph(element, StructuralCache); 1064paragraph = new TextParagraph(Element, StructuralCache); 1077paragraph = new TextParagraph(Element, StructuralCache); 1086paragraph = new TextParagraph(Element, StructuralCache); 1093StructuralCache.CurrentFormatContext.DependentMax = (TextPointer) textPointer; 1106DtrList dtrs = StructuralCache.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch); 1120DtrList dtrs = StructuralCache.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch); 1130int cpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\FigureParaClient.cs (9)
70MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 98Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 99Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 103Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 121Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 122Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 126Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 193MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 353MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\FigureParagraph.cs (18)
96_mainTextSegment = new ContainerParagraph(Element, StructuralCache); 118Invariant.Assert(StructuralCache.CurrentFormatContext.FinitePage); 136mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 144double specifiedWidth = FigureHelper.CalculateFigureWidth(StructuralCache, element, 154double specifiedHeight = FigureHelper.CalculateFigureHeight(StructuralCache, element, 377FigureHelper.GetColumnMetrics(StructuralCache, out cColumns, out columnWidth, out gap, out rule); 504StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 519StructuralCache.CurrentFormatContext.PopPageData(); 550FigureHelper.GetColumnMetrics(StructuralCache, out cColumns, out columnWidth, out gap, out rule); 555int affectedColumn = (uComparisonPoint - StructuralCache.CurrentFormatContext.PageMarginRect.u) / duColumnTotal; 556int columnLeft = StructuralCache.CurrentFormatContext.PageMarginRect.u + affectedColumn * duColumnTotal; 589maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth; 593Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin; 594maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth - pageMargin.Left - pageMargin.Right; 601FigureHelper.GetColumnMetrics(StructuralCache, out cColumns, out columnWidth, out gap, out rule); 627maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight; 631Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin; 632maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FloaterParaClient.cs (8)
83Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 84Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 88Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 106Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 107Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 111Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 185MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 360MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\FloaterParagraph.cs (13)
91_mainTextSegment = new ContainerParagraph(Element, StructuralCache); 203if (!StructuralCache.CurrentFormatContext.FinitePage) 205if (Double.IsInfinity(StructuralCache.CurrentFormatContext.PageHeight)) 215dvrAvailable = Math.Min(dvrAvailable, TextDpi.ToTextDpi(StructuralCache.CurrentFormatContext.PageHeight)); 222mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 413mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 654MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 711StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 726StructuralCache.CurrentFormatContext.PopPageData(); 754StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth), 768StructuralCache.CurrentFormatContext.PopPageData(); 776DtrList dtrs = StructuralCache.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch); 870double desiredSize = FigureHelper.CalculateFigureWidth(StructuralCache, (Figure)Element,
MS\Internal\PtsHost\Line.cs (7)
116int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart); 141ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 190ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 191ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 351double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 352if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage) 593position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, cp, LogicalDirection.Forward) as TextPointer;
MS\Internal\PtsHost\LineBase.cs (5)
97_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 144int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 158int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 167_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 308_paraClient.Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\ListParaClient.cs (4)
50MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 63Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 76ListMarkerLine listMarkerLine = new ListMarkerLine(Paragraph.StructuralCache.TextFormatterHost, this); 109LineProperties lineProps = new LineProperties(Paragraph.Element, Paragraph.StructuralCache.FormattingOwner, textProperties, new MarkerProperties(list, adjustedIndex));
MS\Internal\PtsHost\ListParagraph.cs (3)
81paragraph = new ListItemParagraph(element, StructuralCache); 93paragraph = new ListParagraph(element, StructuralCache); 133StructuralCache.CurrentFormatContext.DependentMax = (TextPointer)textPointer;
MS\Internal\PtsHost\OptimalTextSource.cs (6)
88ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 138ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 139ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 177ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 225double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height; 226if (!_paraClient.Paragraph.StructuralCache.CurrentFormatContext.FinitePage)
MS\Internal\PtsHost\PtsHelper.cs (1)
169PTS.FSRECT pageRect = paraClient.Paragraph.StructuralCache.CurrentArrangeContext.PageContext.PageRect;
MS\Internal\PtsHost\RowParagraph.cs (2)
140MbpInfo mbpInfo = MbpInfo.FromElement(Table, StructuralCache.TextFormatterHost.PixelsPerDip); 304_cellParagraphs[cellIndex] = new CellParagraph(Row.Cells[cellIndex], StructuralCache);
MS\Internal\PtsHost\SubpageParaClient.cs (8)
71MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 112Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, subpageDetails.u.simple.trackdescr.fsrc, 113Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 117Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 135Paragraph.StructuralCache.CurrentArrangeContext.PushNewPageData(_pageContextOfThisPage, arrayColumnDesc[index].fsrc, 136Paragraph.StructuralCache.CurrentArrangeContext.FinitePage); 140Paragraph.StructuralCache.CurrentArrangeContext.PopPageData(); 286MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\SubpageParagraph.cs (15)
158mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 162PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 207StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)), 222StructuralCache.CurrentFormatContext.PopPageData(); 280PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 340mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 345PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 382StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 396StructuralCache.CurrentFormatContext.PopPageData(); 450PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 500mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 505PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect; 540StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 555StructuralCache.CurrentFormatContext.PopPageData(); 609PTS.FSRECT pageRect = StructuralCache.CurrentFormatContext.PageRect;
MS\Internal\PtsHost\TableParaClient.cs (8)
64_columnRect = Paragraph.StructuralCache.CurrentArrangeContext.ColumnRect; 86MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip); 192MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip); 680MbpInfo mbpInfo = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip); 955MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip); 1981MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 2014MbpInfo mbpInfo = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 2430MbpInfo mbp = MbpInfo.FromElement(TableParagraph.Element, TableParagraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\TableParagraph.cs (8)
90if (suppressTopSpace && (StructuralCache.CurrentFormatContext.FinitePage || mcs == null)) 94MbpInfo mbp = MbpInfo.FromElement(Table, StructuralCache.TextFormatterHost.PixelsPerDip); 173MbpInfo mbp = MbpInfo.FromElement(Table, StructuralCache.TextFormatterHost.PixelsPerDip); 274_firstChild = new RowParagraph(tableRow, StructuralCache); 347nextParagraph = new RowParagraph(tableRow, StructuralCache); 552StructuralCache.AddDirtyTextRange(dtr); 554if (StructuralCache.FormattingOwner.Formatter != null) 556StructuralCache.FormattingOwner.Formatter.OnContentInvalidated(true, Table.ContentStart, Table.ContentEnd);
MS\Internal\PtsHost\TextParaClient.cs (34)
501textContentRange = new TextContentRange(dcp + dcpFirst, dcp + dcpLast, Paragraph.StructuralCache.TextContainer); 608Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 662return TextContainerHelper.GetTextPointerFromCP(Paragraph.StructuralCache.TextContainer, dcp + Paragraph.ParagraphStartCharacterPosition, direction); 676int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)position); 827int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 877int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 920int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 1070Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 1090StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition); 1117int dcpStart = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition; 1118int dcpEnd = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition; 1660Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 1757Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2034ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward); 2102Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2213Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2430Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2554Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2633Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2799Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 2915Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3041Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3113Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3175Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3234Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3279Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3336Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3628Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3697Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3801Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 3840if(!Paragraph.StructuralCache.IsDeferredVisualCreationSupported) 3927Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition); 3992Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, cpTextParaStart); 4126Line line = new Line(Paragraph.StructuralCache.TextFormatterHost, this, Paragraph.ParagraphStartCharacterPosition);
MS\Internal\PtsHost\TextParagraph.cs (43)
185TextFormatter textFormatter = StructuralCache.TextFormatterHost.TextFormatter; 188OptimalTextSource optimalTextSource = new OptimalTextSource(StructuralCache.TextFormatterHost, ParagraphStartCharacterPosition, durTrack, textParaClient, _textRunCache); 189StructuralCache.TextFormatterHost.Context = optimalTextSource; 191TextParagraphCache paragraphCache = textFormatter.CreateParagraphCache(StructuralCache.TextFormatterHost, 198StructuralCache.TextFormatterHost.Context = null; 269BackgroundFormatInfo backgroundFormatInfo = StructuralCache.BackgroundFormatInfo; 275if (StructuralCache.CurrentFormatContext.FinitePage) 301StructuralCache.BackgroundFormatInfo.CPInterrupted = dcpCur + ParagraphStartCharacterPosition; 378StructuralCache.TextFormatterHost.Context = optimalTextSource; 388StructuralCache.TextFormatterHost.Context = null; 514StructuralCache.CurrentFormatContext.OnFormatLine(); 521Line line = new Line(StructuralCache.TextFormatterHost, paraClient, ParagraphStartCharacterPosition); 566int textSize = StructuralCache.TextContainer.SymbolCount; 570StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward); 698StructuralCache.CurrentFormatContext.OnFormatLine(); 705Line line = new Line(StructuralCache.TextFormatterHost, paraClient, ParagraphStartCharacterPosition); 747int textSize = StructuralCache.TextContainer.SymbolCount; 751StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward); 780DtrList dtrs = StructuralCache.DtrsFromRange(ParagraphStartCharacterPosition, LastFormatCch); 801if (!StructuralCache.CurrentFormatContext.FinitePage) 862ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 863ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 885ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 886ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 938ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 946if(textElement is Figure && StructuralCache.CurrentFormatContext.FinitePage) 957FigureParagraph figurePara = new FigureParagraph(textElement, StructuralCache); 959if (StructuralCache.CurrentFormatContext.IncrementalUpdate) 977FloaterParagraph floaterPara = new FloaterParagraph(textElement, StructuralCache); 979if (StructuralCache.CurrentFormatContext.IncrementalUpdate) 1190StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(StructuralCache.TextContainer, startPosition); 1341return ((OptimalTextSource)StructuralCache.TextFormatterHost.Context).MeasureChild(inlineObject); 1389textContentRange.Merge(new TextContentRange(cpCur, startContentPosition, StructuralCache.TextContainer)); 1401textContentRange.Merge(new TextContentRange(cpCur, dcpLast, StructuralCache.TextContainer)); 1421StructuralCache.FormattingOwner.OnChildDesiredSizeChanged(e.Child); 1464return StructuralCache.IsOptimalParagraphEnabled && GetLineProperties(false, 0).TextWrapping != TextWrapping.NoWrap; 1484if (_lineProperties == null || (_lineProperties != null && _lineProperties.DefaultTextRunProperties.PixelsPerDip != StructuralCache.TextFormatterHost.PixelsPerDip)) 1494StructuralCache.TextFormatterHost.PixelsPerDip); 1496_lineProperties = new LineProperties(Element, StructuralCache.FormattingOwner, defaultTextProperties, null); // No marker properties 1501_lineProperties.Hyphenator = StructuralCache.Hyphenator; 1709int cpElement = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\UIElementParaClient.cs (2)
65MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip); 101MbpInfo mbp = MbpInfo.FromElement(Paragraph.Element, Paragraph.StructuralCache.TextFormatterHost.PixelsPerDip);
MS\Internal\PtsHost\UIElementParagraph.cs (12)
108MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 215MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 316MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 365MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 392MbpInfo mbp = MbpInfo.FromElement(Element, StructuralCache.TextFormatterHost.PixelsPerDip); 400if (StructuralCache.CurrentFormatContext.FinitePage) 402elementHeight = StructuralCache.CurrentFormatContext.PageHeight; 430if (StructuralCache.CurrentFormatContext.FinitePage) 432Thickness pageMargin = StructuralCache.CurrentFormatContext.DocumentPageMargin; 433elementHeight = StructuralCache.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom); 490StructuralCache.FormattingOwner.OnChildDesiredSizeChanged(e.Child); 533if (!StructuralCache.CurrentFormatContext.FinitePage && !figure.Height.IsAbsolute)