Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / Serialization / SerializerWriterEventHandlers.cs / 1305600 / 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; using System.Security; 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 { ////// /// ////// Critical - Argument PrintTicketLevel is considered critical because it is defined in non APTCA ReachFramework.dll /// TreatAsSafe - PrintTicketLevel enum is safe /// [SecurityCritical, SecurityTreatAsSafe] public WritingPrintTicketRequiredEventArgs( System.Windows.Xps.Serialization.PrintTicketLevel printTicketLevel, int sequence ) { _printTicketLevel = printTicketLevel; _sequence = sequence; } ////// /// public System.Windows.Xps.Serialization.PrintTicketLevel CurrentPrintTicketLevel { ////// Critical - Return type PrintTicketLevel is critical because it is defined in non APTCA ReachFramework.dll /// TreatAsSafe - PrintTicketLevel enum is safe /// [SecurityCritical, SecurityTreatAsSafe] get { return _printTicketLevel; } } ////// /// public int Sequence { get { return _sequence; } } ////// /// public PrintTicket CurrentPrintTicket { ////// Critical - PrintTicket argument is critical because it is defined in non APTCA ReachFramework.dll /// TreatAsSafe - PrintTicket type is safe /// [SecurityCritical, SecurityTreatAsSafe] set { _printTicket = value; } ////// Critical - PrintTicket return type is critical because it is defined in non APTCA ReachFramework.dll /// TreatAsSafe - PrintTicketLevel enum is safe /// [SecurityCritical, SecurityTreatAsSafe] get { return _printTicket; } } ////// Critical - PrintTicketLevel type is critical because it is defined in non APTCA ReachFramework.dll /// TreatAsSafe - PrintTicketLevel enum is safe /// [SecurityCritical, SecurityTreatAsSafe] private System.Windows.Xps.Serialization.PrintTicketLevel _printTicketLevel; private int _sequence; ////// Critical - Type is critical because it is defined in non APTCA ReachFramework.dll /// TreatAsSafe - PrintTicket type is safe /// [SecurityCritical, SecurityTreatAsSafe] 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; using System.Security; 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 { ////// /// ////// Critical - Argument PrintTicketLevel is considered critical because it is defined in non APTCA ReachFramework.dll /// TreatAsSafe - PrintTicketLevel enum is safe /// [SecurityCritical, SecurityTreatAsSafe] public WritingPrintTicketRequiredEventArgs( System.Windows.Xps.Serialization.PrintTicketLevel printTicketLevel, int sequence ) { _printTicketLevel = printTicketLevel; _sequence = sequence; } ////// /// public System.Windows.Xps.Serialization.PrintTicketLevel CurrentPrintTicketLevel { ////// Critical - Return type PrintTicketLevel is critical because it is defined in non APTCA ReachFramework.dll /// TreatAsSafe - PrintTicketLevel enum is safe /// [SecurityCritical, SecurityTreatAsSafe] get { return _printTicketLevel; } } ////// /// public int Sequence { get { return _sequence; } } ////// /// public PrintTicket CurrentPrintTicket { ////// Critical - PrintTicket argument is critical because it is defined in non APTCA ReachFramework.dll /// TreatAsSafe - PrintTicket type is safe /// [SecurityCritical, SecurityTreatAsSafe] set { _printTicket = value; } ////// Critical - PrintTicket return type is critical because it is defined in non APTCA ReachFramework.dll /// TreatAsSafe - PrintTicketLevel enum is safe /// [SecurityCritical, SecurityTreatAsSafe] get { return _printTicket; } } ////// Critical - PrintTicketLevel type is critical because it is defined in non APTCA ReachFramework.dll /// TreatAsSafe - PrintTicketLevel enum is safe /// [SecurityCritical, SecurityTreatAsSafe] private System.Windows.Xps.Serialization.PrintTicketLevel _printTicketLevel; private int _sequence; ////// Critical - Type is critical because it is defined in non APTCA ReachFramework.dll /// TreatAsSafe - PrintTicket type is safe /// [SecurityCritical, SecurityTreatAsSafe] 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
- ImageConverter.cs
- UiaCoreApi.cs
- MetadataUtilsSmi.cs
- DashStyle.cs
- RelationshipWrapper.cs
- X509Utils.cs
- WebPartConnectionsCloseVerb.cs
- DataColumnMapping.cs
- DesignerTransaction.cs
- Path.cs
- Collection.cs
- WaitForChangedResult.cs
- LocatorBase.cs
- SeekableReadStream.cs
- OracleFactory.cs
- ValidatorCompatibilityHelper.cs
- TransformPattern.cs
- ItemsPresenter.cs
- OptimisticConcurrencyException.cs
- WindowsClaimSet.cs
- ChannelProtectionRequirements.cs
- OletxVolatileEnlistment.cs
- VectorCollectionConverter.cs
- AutoResizedEvent.cs
- ErrorInfoXmlDocument.cs
- UmAlQuraCalendar.cs
- EntryWrittenEventArgs.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- FileDialog_Vista_Interop.cs
- Property.cs
- CodeNamespaceImport.cs
- SystemFonts.cs
- ServicesSection.cs
- DataMisalignedException.cs
- RequestResizeEvent.cs
- TreeIterators.cs
- ResourceManagerWrapper.cs
- RepeatBehavior.cs
- EmptyStringExpandableObjectConverter.cs
- DbConnectionInternal.cs
- __FastResourceComparer.cs
- InvalidFilterCriteriaException.cs
- AssemblyUtil.cs
- TypeConverter.cs
- EntityConnection.cs
- SQLInt64.cs
- WebPartMovingEventArgs.cs
- PickBranch.cs
- CAGDesigner.cs
- KnownTypesHelper.cs
- UpdateRecord.cs
- HebrewNumber.cs
- InternalUserCancelledException.cs
- TrustLevel.cs
- DllHostedComPlusServiceHost.cs
- TreeSet.cs
- TextEditorContextMenu.cs
- IisTraceListener.cs
- DBCommandBuilder.cs
- CodeTypeReference.cs
- XmlSchemaComplexContentExtension.cs
- ValueTable.cs
- WeakEventManager.cs
- DBCommand.cs
- HttpFileCollection.cs
- FacetValueContainer.cs
- PaperSize.cs
- OleDragDropHandler.cs
- TypeUnloadedException.cs
- XmlSchemaImport.cs
- EditorZoneBase.cs
- HttpDateParse.cs
- FeatureSupport.cs
- SecurityPermission.cs
- FlowNode.cs
- FormatVersion.cs
- DesignerToolboxInfo.cs
- HttpAsyncResult.cs
- ObjectDataSourceStatusEventArgs.cs
- TextDocumentView.cs
- AuthenticationModulesSection.cs
- ObjectStateEntry.cs
- WebPageTraceListener.cs
- XmlExpressionDumper.cs
- SqlTopReducer.cs
- ReflectionHelper.cs
- PageContentAsyncResult.cs
- StdRegProviderWrapper.cs
- ProfileGroupSettings.cs
- LabelAutomationPeer.cs
- StylusEditingBehavior.cs
- VerificationException.cs
- AspNetHostingPermission.cs
- ScrollContentPresenter.cs
- XmlSerializerNamespaces.cs
- DataGridViewHitTestInfo.cs
- EnumerableRowCollection.cs
- ErrorsHelper.cs
- HttpWebRequest.cs
- PersonalizationStateInfoCollection.cs