Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / PtsHost / UpdateRecord.cs / 1305600 / UpdateRecord.cs
//----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// File: UpdateRecord.cs
//
// Description: Contains information about current state of upate process
// in the current container paragraph.
//
// History:
// 05/05/2003 : [....] - moving from Avalon branch.
//
//---------------------------------------------------------------------------
using System;
using System.Diagnostics;
using MS.Internal.PtsHost.UnsafeNativeMethods;
namespace MS.Internal.PtsHost
{
// ---------------------------------------------------------------------
// Contains information about current state of upate process in the
// current container paragraph.
// ---------------------------------------------------------------------
internal sealed class UpdateRecord
{
// ------------------------------------------------------------------
// Constructor
// -----------------------------------------------------------------
internal UpdateRecord()
{
Dtr = new DirtyTextRange(0,0,0);
FirstPara = SyncPara = null;
ChangeType = PTS.FSKCHANGE.fskchNone;
Next = null;
InProcessing = false;
}
// ------------------------------------------------------------------
// Merge with next update record.
// ------------------------------------------------------------------
internal void MergeWithNext()
{
Debug.Assert(Next != null); // This is the last UR, cannot merge with next.
// Merge DTRs
int delta = Next.Dtr.StartIndex - Dtr.StartIndex;
// Dtr.StartIndex is not changing
Dtr.PositionsAdded += delta + Next.Dtr.PositionsAdded;
Dtr.PositionsRemoved += delta + Next.Dtr.PositionsRemoved;
// Reasign [....] point and next UpdateRecord
SyncPara = Next.SyncPara;
Next = Next.Next;
}
// -----------------------------------------------------------------
// Dirty text range.
// ------------------------------------------------------------------
internal DirtyTextRange Dtr;
// -----------------------------------------------------------------
// The first paragraph affected by the change.
// -----------------------------------------------------------------
internal BaseParagraph FirstPara;
// -----------------------------------------------------------------
// The first paragraph not affected by DTR, synchronization point for
// update process.
// ------------------------------------------------------------------
internal BaseParagraph SyncPara;
// -----------------------------------------------------------------
// Type of the change (none, new, inside).
// ------------------------------------------------------------------
internal PTS.FSKCHANGE ChangeType;
// ------------------------------------------------------------------
// Next UpdateRecord.
// -----------------------------------------------------------------
internal UpdateRecord Next;
// ------------------------------------------------------------------
// Update record is in processing mode?
// -----------------------------------------------------------------
internal bool InProcessing;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Transform.cs
- KeyboardDevice.cs
- FieldAccessException.cs
- RawMouseInputReport.cs
- GeneralTransform3D.cs
- FilterableAttribute.cs
- UnwrappedTypesXmlSerializerManager.cs
- RequestQueryParser.cs
- TargetInvocationException.cs
- IteratorDescriptor.cs
- LinkDescriptor.cs
- HandleCollector.cs
- Lasso.cs
- BamlCollectionHolder.cs
- SQLSingleStorage.cs
- DbDataReader.cs
- XmlCollation.cs
- HttpServerUtilityWrapper.cs
- ObjectCloneHelper.cs
- Relationship.cs
- CompareValidator.cs
- DataBinding.cs
- MobileContainerDesigner.cs
- EntityWrapperFactory.cs
- WebPartMenuStyle.cs
- ItemsPanelTemplate.cs
- tabpagecollectioneditor.cs
- ColorTranslator.cs
- HyperLink.cs
- ToolStripDropDownDesigner.cs
- ProviderManager.cs
- Invariant.cs
- InvalidChannelBindingException.cs
- SynchronizedInputHelper.cs
- LineBreak.cs
- CodeRemoveEventStatement.cs
- LateBoundBitmapDecoder.cs
- ConnectionStringsSection.cs
- EntityDataSourceWrapperCollection.cs
- PrivilegedConfigurationManager.cs
- XmlQualifiedNameTest.cs
- ToolStripOverflowButton.cs
- DbProviderFactoriesConfigurationHandler.cs
- PointAnimationUsingKeyFrames.cs
- PopupRootAutomationPeer.cs
- CannotUnloadAppDomainException.cs
- UnsafeNativeMethods.cs
- MergeEnumerator.cs
- PropertyGridView.cs
- SQLResource.cs
- SupportingTokenDuplexChannel.cs
- PropertyTabChangedEvent.cs
- SchemeSettingElement.cs
- RegexRunner.cs
- ConnectionPoint.cs
- ItemDragEvent.cs
- ToolBarButtonDesigner.cs
- ApplicationServicesHostFactory.cs
- SearchForVirtualItemEventArgs.cs
- ActivityExecutionFilter.cs
- LongValidatorAttribute.cs
- BCLDebug.cs
- TextEditorTables.cs
- SqlDependencyListener.cs
- DataGridViewRowHeaderCell.cs
- SelectionRange.cs
- CodeTypeMemberCollection.cs
- HttpPostLocalhostServerProtocol.cs
- ConfigurationCollectionAttribute.cs
- SoapElementAttribute.cs
- FileReservationCollection.cs
- ServiceChannelManager.cs
- Expr.cs
- ScriptingProfileServiceSection.cs
- MetadataUtilsSmi.cs
- ConvertersCollection.cs
- DataGridToolTip.cs
- NonSerializedAttribute.cs
- HtmlEncodedRawTextWriter.cs
- ObjectDataSourceView.cs
- PropertyDescriptorCollection.cs
- DataViewManager.cs
- x509utils.cs
- UpdateCommand.cs
- Console.cs
- SchemaImporterExtensionsSection.cs
- SessionPageStateSection.cs
- LogicalExpressionEditor.cs
- MetadataArtifactLoaderCompositeFile.cs
- FileBasedResourceGroveler.cs
- ButtonFieldBase.cs
- WorkflowViewStateService.cs
- MeasurementDCInfo.cs
- XmlnsPrefixAttribute.cs
- Matrix.cs
- TargetControlTypeAttribute.cs
- ParameterBinding.cs
- Relationship.cs
- HtmlInputImage.cs
- CollaborationHelperFunctions.cs