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
- CssClassPropertyAttribute.cs
- Dynamic.cs
- XamlTemplateSerializer.cs
- FixedTextBuilder.cs
- TypeSystem.cs
- IdentityNotMappedException.cs
- MessageQueueAccessControlEntry.cs
- OleDbEnumerator.cs
- EntryIndex.cs
- ObjectDataSourceView.cs
- SystemNetHelpers.cs
- BaseParagraph.cs
- RemotingAttributes.cs
- VariableModifiersHelper.cs
- FileNotFoundException.cs
- EntitySetBase.cs
- AsnEncodedData.cs
- DriveNotFoundException.cs
- CrossAppDomainChannel.cs
- VersionPair.cs
- OptionUsage.cs
- TypeToken.cs
- ScaleTransform3D.cs
- SqlClientMetaDataCollectionNames.cs
- CodeTypeOfExpression.cs
- DataContractSerializerServiceBehavior.cs
- StringInfo.cs
- MenuItemStyleCollectionEditor.cs
- ColorContext.cs
- CaseInsensitiveHashCodeProvider.cs
- PageCatalogPart.cs
- BuildProviderUtils.cs
- SqlOuterApplyReducer.cs
- TokenBasedSet.cs
- CreateUserErrorEventArgs.cs
- LinearKeyFrames.cs
- WebEventTraceProvider.cs
- SignatureDescription.cs
- ProxyHwnd.cs
- RangeContentEnumerator.cs
- CapabilitiesRule.cs
- RuleSetDialog.cs
- ProxyAttribute.cs
- CacheMemory.cs
- _IPv4Address.cs
- _ListenerAsyncResult.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ObjectQueryExecutionPlan.cs
- designeractionbehavior.cs
- TextDocumentView.cs
- FtpRequestCacheValidator.cs
- EmptyReadOnlyDictionaryInternal.cs
- WebConvert.cs
- SmiEventSink_DeferedProcessing.cs
- ListViewAutomationPeer.cs
- CachedFontFace.cs
- MimeBasePart.cs
- TransformedBitmap.cs
- DataGridViewColumnCollection.cs
- EventSetter.cs
- SQLMoneyStorage.cs
- InputBinder.cs
- TemplateComponentConnector.cs
- MethodExecutor.cs
- TreeNodeSelectionProcessor.cs
- BeginEvent.cs
- x509store.cs
- SymmetricKeyWrap.cs
- Number.cs
- PublisherIdentityPermission.cs
- FixedHyperLink.cs
- RawContentTypeMapper.cs
- formatter.cs
- Parameter.cs
- SocketException.cs
- SessionStateModule.cs
- MenuItem.cs
- SpellerInterop.cs
- UnmanagedHandle.cs
- SqlCacheDependency.cs
- DeviceContext.cs
- SafeReversePInvokeHandle.cs
- TableParagraph.cs
- DrawingContextWalker.cs
- DocumentEventArgs.cs
- Stack.cs
- SetStateDesigner.cs
- Enum.cs
- Normalization.cs
- StyleHelper.cs
- TrackingParticipant.cs
- RegexReplacement.cs
- _CommandStream.cs
- SchemaSetCompiler.cs
- ArrowControl.xaml.cs
- HostedBindingBehavior.cs
- RadioButtonBaseAdapter.cs
- CorePropertiesFilter.cs
- DbSetClause.cs
- XmlNavigatorFilter.cs