// Token: 0x0600679A RID: 26522 RVA: 0x001CFD2C File Offset: 0x001CDF2C internal void UpdGetSegmentChange(out PTS.FSKCHANGE fskch) { if (base.StructuralCache.CurrentFormatContext.FinitePage) { DtrList dtrList = base.StructuralCache.DtrsFromRange(TextContainerHelper.GetCPFromElement(base.StructuralCache.TextContainer, base.Element, ElementEdge.BeforeStart), base.LastFormatCch); if (dtrList != null) { int cpfromElement = TextContainerHelper.GetCPFromElement(base.StructuralCache.TextContainer, base.Element, ElementEdge.AfterStart); DirtyTextRange dirtyTextRange = dtrList[0]; int num = cpfromElement; BaseParagraph baseParagraph = this._firstChild; if (num < dirtyTextRange.StartIndex) { while (baseParagraph != null && num + baseParagraph.LastFormatCch <= dirtyTextRange.StartIndex && (num + baseParagraph.LastFormatCch != dirtyTextRange.StartIndex || !(baseParagraph is TextParagraph))) { num += baseParagraph.Cch; baseParagraph = baseParagraph.Next; } if (baseParagraph != null) { baseParagraph.SetUpdateInfo(PTS.FSKCHANGE.fskchInside, false); } } else { baseParagraph.SetUpdateInfo(PTS.FSKCHANGE.fskchNew, false); } if (baseParagraph != null) { for (baseParagraph = baseParagraph.Next; baseParagraph != null; baseParagraph = baseParagraph.Next) { baseParagraph.SetUpdateInfo(PTS.FSKCHANGE.fskchNew, false); } } this._changeType = PTS.FSKCHANGE.fskchInside; } } fskch = this._changeType; }
// Token: 0x06006798 RID: 26520 RVA: 0x001CFA2C File Offset: 0x001CDC2C void ISegment.GetNextPara(BaseParagraph prevParagraph, out int fFound, out IntPtr nextParaName) { if (this._ur != null) { int paragraphEndCharacterPosition = prevParagraph.ParagraphEndCharacterPosition; if (this._ur.SyncPara != null && paragraphEndCharacterPosition == this._ur.SyncPara.ParagraphStartCharacterPosition) { this._ur.SyncPara.Previous = prevParagraph; prevParagraph.Next = this._ur.SyncPara; if (this._ur.Next != null && this._ur.Next.FirstPara == this._ur.SyncPara) { this._ur.SyncPara.SetUpdateInfo(this._ur.Next.ChangeType, false); } else { this._ur.SyncPara.SetUpdateInfo(PTS.FSKCHANGE.fskchNone, this._ur.Next == null); } this._ur = this._ur.Next; } else { Invariant.Assert(this._ur.SyncPara == null || paragraphEndCharacterPosition < this._ur.SyncPara.ParagraphStartCharacterPosition); if (!this._ur.InProcessing && this._ur.FirstPara != prevParagraph.Next && prevParagraph.Next != null) { prevParagraph.Next.SetUpdateInfo(PTS.FSKCHANGE.fskchNone, false); } else if (this._ur.FirstPara != null && this._ur.FirstPara == prevParagraph.Next) { this._ur.InProcessing = true; prevParagraph.Next.SetUpdateInfo(PTS.FSKCHANGE.fskchInside, false); } } } BaseParagraph baseParagraph = prevParagraph.Next; if (baseParagraph == null) { ITextPointer textPointerFromCP = TextContainerHelper.GetTextPointerFromCP(base.StructuralCache.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward); baseParagraph = this.GetParagraph(textPointerFromCP, true); if (baseParagraph != null) { baseParagraph.Previous = prevParagraph; prevParagraph.Next = baseParagraph; if (this._changeType == PTS.FSKCHANGE.fskchInside) { baseParagraph.SetUpdateInfo(PTS.FSKCHANGE.fskchNew, false); } } } if (baseParagraph != null) { fFound = 1; nextParaName = baseParagraph.Handle; this._lastFetchedChild = baseParagraph; return; } fFound = 0; nextParaName = IntPtr.Zero; this._lastFetchedChild = prevParagraph; this._ur = null; }