Beispiel #1
0
        CreateAsyncSerializationManager(
            bool bBatchMode
            )
        {
            PackageSerializationManager serializationManager = null;

            XpsPackagingPolicy packagingPolicy = new XpsPackagingPolicy(this);

            serializationManager = new XpsSerializationManagerAsync(packagingPolicy, bBatchMode);

            return(serializationManager);
        }
 ReachTokenContext(
     PackageSerializationManager serializationManager,
     Object targetObject,
     Object objectValue
     )
 {
     //
     // Make necessary checks and throw necessary exceptions
     //
     this.serializationManager = serializationManager;
     this.targetObject         = targetObject;
     this.objectValue          = objectValue;
     this.propertyInfo         = null;
     this.dependencyProperty   = null;
 }
Beispiel #3
0
        CreateSerializationManager(
            bool bBatchMode
            )
        {
            PackageSerializationManager serializationManager = null;

            XpsPackagingPolicy packagingPolicy = new XpsPackagingPolicy(this);

            if (packagingPolicy != null)
            {
                serializationManager = new XpsSerializationManager(packagingPolicy, bBatchMode);
            }

            return(serializationManager);
        }
 ReachTokenContext(
     PackageSerializationManager serializationManager,
     SerializablePropertyContext propertyContext
     )
 {
     //
     // Make necessary checks and throw necessary exceptions
     //
     this.serializationManager = serializationManager;
     this.targetObject         = propertyContext.TargetObject;
     this.objectValue          = propertyContext.Value;
     this.propertyInfo         = propertyContext.PropertyInfo;
     this.dependencyProperty   = (propertyContext is SerializableDependencyPropertyContext) ?
                                 (DependencyProperty)((SerializableDependencyPropertyContext)propertyContext).DependencyProperty :
                                 null;
 }
Beispiel #5
0
 internal void SetPrintTicketEventHandler(PackageSerializationManager manager);
Beispiel #6
0
 internal void SetProgressChangedEventHandler(PackageSerializationManager manager, object userState);
Beispiel #7
0
 internal void SetPrintTicketEventHandler(PackageSerializationManager manager, XpsSerializationPrintTicketRequiredEventHandler eventHandler);
Beispiel #8
0
 internal void SetCompletionEventHandler(PackageSerializationManager manager, object userState);