Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Documents / Serialization / SerializerWriterEventHandlers.cs / 1 / SerializerWriterEventHandlers.cs
/*++ Copyright (C) 1985 - 2005 Microsoft Corporation All rights reserved. Module Name: XPSEventHandlers.hpp Abstract: EventHandlers used with the XpsDocumentWriter and XPSEmitter classes. Author: Ali Naqvi (alinaqvi) - 25th May 2005 Revision History: --*/ using System.Printing; namespace System.Windows.Documents.Serialization { ////// /// public enum WritingProgressChangeLevel { ////// /// None = 0, ////// /// FixedDocumentSequenceWritingProgress = 1, ////// /// FixedDocumentWritingProgress = 2, ////// /// FixedPageWritingProgress = 3 }; // // The following are the event args giving the caller more information // about the previously describes events // ////// /// public class WritingPrintTicketRequiredEventArgs : EventArgs { ////// /// public WritingPrintTicketRequiredEventArgs( System.Windows.Xps.Serialization.PrintTicketLevel printTicketLevel, int sequence ) { _printTicketLevel = printTicketLevel; _sequence = sequence; } ////// /// public System.Windows.Xps.Serialization.PrintTicketLevel CurrentPrintTicketLevel { get { return _printTicketLevel; } } ////// /// public int Sequence { get { return _sequence; } } ////// /// public PrintTicket CurrentPrintTicket { set { _printTicket = value; } get { return _printTicket; } } private System.Windows.Xps.Serialization.PrintTicketLevel _printTicketLevel; private int _sequence; private PrintTicket _printTicket; }; ////// /// public class WritingCompletedEventArgs : ComponentModel.AsyncCompletedEventArgs { ////// /// public WritingCompletedEventArgs( bool cancelled, Object state, Exception exception): base(exception, cancelled, state) { } }; ////// /// public class WritingProgressChangedEventArgs : ComponentModel.ProgressChangedEventArgs { ////// /// public WritingProgressChangedEventArgs( WritingProgressChangeLevel writingLevel, int number, int progressPercentage, Object state): base(progressPercentage, state) { _number = number; _writingLevel = writingLevel; } ////// /// public int Number { get { return _number; } } ////// /// public WritingProgressChangeLevel WritingLevel { get { return _writingLevel; } } private int _number; private WritingProgressChangeLevel _writingLevel; }; // // The following are the event args giving the caller more information // about a cancel occuring event // ////// /// public class WritingCancelledEventArgs : EventArgs { ////// /// public WritingCancelledEventArgs( Exception exception ) { _exception = exception; } ////// /// public Exception Error { get { return _exception; } } private Exception _exception; }; // // The following are the delegates used to represent the following 3 events // - Getting the PrintTicket from the calling code // - Informing the calling code that the write operation has completed // - Informing the calling code of the progress in the write operation // - Informing the caller code that the oepration was cancelled // ////// /// public delegate void WritingPrintTicketRequiredEventHandler( Object sender, WritingPrintTicketRequiredEventArgs e ); ////// /// public delegate void WritingProgressChangedEventHandler( Object sender, WritingProgressChangedEventArgs e ); ////// /// public delegate void WritingCompletedEventHandler( Object sender, WritingCompletedEventArgs e ); ////// /// public delegate void WritingCancelledEventHandler( Object sender, WritingCancelledEventArgs e ); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /*++ Copyright (C) 1985 - 2005 Microsoft Corporation All rights reserved. Module Name: XPSEventHandlers.hpp Abstract: EventHandlers used with the XpsDocumentWriter and XPSEmitter classes. Author: Ali Naqvi (alinaqvi) - 25th May 2005 Revision History: --*/ using System.Printing; namespace System.Windows.Documents.Serialization { ////// /// public enum WritingProgressChangeLevel { ////// /// None = 0, ////// /// FixedDocumentSequenceWritingProgress = 1, ////// /// FixedDocumentWritingProgress = 2, ////// /// FixedPageWritingProgress = 3 }; // // The following are the event args giving the caller more information // about the previously describes events // ////// /// public class WritingPrintTicketRequiredEventArgs : EventArgs { ////// /// public WritingPrintTicketRequiredEventArgs( System.Windows.Xps.Serialization.PrintTicketLevel printTicketLevel, int sequence ) { _printTicketLevel = printTicketLevel; _sequence = sequence; } ////// /// public System.Windows.Xps.Serialization.PrintTicketLevel CurrentPrintTicketLevel { get { return _printTicketLevel; } } ////// /// public int Sequence { get { return _sequence; } } ////// /// public PrintTicket CurrentPrintTicket { set { _printTicket = value; } get { return _printTicket; } } private System.Windows.Xps.Serialization.PrintTicketLevel _printTicketLevel; private int _sequence; private PrintTicket _printTicket; }; ////// /// public class WritingCompletedEventArgs : ComponentModel.AsyncCompletedEventArgs { ////// /// public WritingCompletedEventArgs( bool cancelled, Object state, Exception exception): base(exception, cancelled, state) { } }; ////// /// public class WritingProgressChangedEventArgs : ComponentModel.ProgressChangedEventArgs { ////// /// public WritingProgressChangedEventArgs( WritingProgressChangeLevel writingLevel, int number, int progressPercentage, Object state): base(progressPercentage, state) { _number = number; _writingLevel = writingLevel; } ////// /// public int Number { get { return _number; } } ////// /// public WritingProgressChangeLevel WritingLevel { get { return _writingLevel; } } private int _number; private WritingProgressChangeLevel _writingLevel; }; // // The following are the event args giving the caller more information // about a cancel occuring event // ////// /// public class WritingCancelledEventArgs : EventArgs { ////// /// public WritingCancelledEventArgs( Exception exception ) { _exception = exception; } ////// /// public Exception Error { get { return _exception; } } private Exception _exception; }; // // The following are the delegates used to represent the following 3 events // - Getting the PrintTicket from the calling code // - Informing the calling code that the write operation has completed // - Informing the calling code of the progress in the write operation // - Informing the caller code that the oepration was cancelled // ////// /// public delegate void WritingPrintTicketRequiredEventHandler( Object sender, WritingPrintTicketRequiredEventArgs e ); ////// /// public delegate void WritingProgressChangedEventHandler( Object sender, WritingProgressChangedEventArgs e ); ////// /// public delegate void WritingCompletedEventHandler( Object sender, WritingCompletedEventArgs e ); ////// /// public delegate void WritingCancelledEventHandler( Object sender, WritingCancelledEventArgs e ); } // 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
- OleDbRowUpdatedEvent.cs
- TabRenderer.cs
- _HeaderInfoTable.cs
- BlurBitmapEffect.cs
- OracleDataReader.cs
- DataSourceCacheDurationConverter.cs
- XmlElementList.cs
- WebHostedComPlusServiceHost.cs
- ArgumentsParser.cs
- WindowInteropHelper.cs
- DependencySource.cs
- CardSpacePolicyElement.cs
- X509ThumbprintKeyIdentifierClause.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SoapEnumAttribute.cs
- RelationshipType.cs
- HWStack.cs
- SelfIssuedSamlTokenFactory.cs
- MediaCommands.cs
- FontFamilyIdentifier.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ContainerFilterService.cs
- CustomValidator.cs
- TransactionManager.cs
- SerialReceived.cs
- PolicyImporterElementCollection.cs
- RightNameExpirationInfoPair.cs
- NumberSubstitution.cs
- ServiceDescription.cs
- OutKeywords.cs
- DataGridViewRowsAddedEventArgs.cs
- XmlDictionaryWriter.cs
- QueryCreatedEventArgs.cs
- ChannelServices.cs
- NullableDecimalSumAggregationOperator.cs
- BitmapCache.cs
- PerformanceCounter.cs
- CriticalExceptions.cs
- ReferenceConverter.cs
- ResourceSet.cs
- DSACryptoServiceProvider.cs
- DictionarySurrogate.cs
- ComplexBindingPropertiesAttribute.cs
- BamlResourceContent.cs
- Misc.cs
- EventDescriptor.cs
- DbConnectionInternal.cs
- QueryStringConverter.cs
- Win32SafeHandles.cs
- GeneralTransform.cs
- OleDbCommand.cs
- XPathQueryGenerator.cs
- WindowsRichEdit.cs
- DoubleLinkListEnumerator.cs
- HtmlGenericControl.cs
- SqlCacheDependencyDatabase.cs
- CompilationRelaxations.cs
- SafeProcessHandle.cs
- AnnotationComponentChooser.cs
- SignatureDescription.cs
- PackUriHelper.cs
- GestureRecognitionResult.cs
- PaginationProgressEventArgs.cs
- DeriveBytes.cs
- Int16Storage.cs
- IsolatedStorageException.cs
- SeekStoryboard.cs
- EncryptedXml.cs
- GiveFeedbackEventArgs.cs
- TextTreePropertyUndoUnit.cs
- OracleMonthSpan.cs
- ViewManager.cs
- OrderablePartitioner.cs
- XmlSchemaElement.cs
- DbParameterCollectionHelper.cs
- Polygon.cs
- JsonClassDataContract.cs
- DataGridViewTopRowAccessibleObject.cs
- DoubleCollectionConverter.cs
- MSAAWinEventWrap.cs
- WebPartTransformerCollection.cs
- XmlQuerySequence.cs
- RSAPKCS1SignatureFormatter.cs
- RoleService.cs
- _ConnectOverlappedAsyncResult.cs
- RemoveStoryboard.cs
- SystemIPv6InterfaceProperties.cs
- ViewStateException.cs
- ToolStrip.cs
- oledbconnectionstring.cs
- _ProxyRegBlob.cs
- Base64Stream.cs
- WindowsListViewItemStartMenu.cs
- ContextToken.cs
- RightsManagementResourceHelper.cs
- CoreSwitches.cs
- DataKeyPropertyAttribute.cs
- EventManager.cs
- RectAnimationClockResource.cs
- MetaColumn.cs