Removed DeflateStream.UnmanagedRead Read loop. Fixes #19313.
[mono.git] / mcs / class / System.Xaml / System.Xaml / XamlObjectWriterSettings.cs
1 //
2 // Copyright (C) 2010 Novell Inc. http://novell.com
3 //
4 // Permission is hereby granted, free of charge, to any person obtaining
5 // a copy of this software and associated documentation files (the
6 // "Software"), to deal in the Software without restriction, including
7 // without limitation the rights to use, copy, modify, merge, publish,
8 // distribute, sublicense, and/or sell copies of the Software, and to
9 // permit persons to whom the Software is furnished to do so, subject to
10 // the following conditions:
11 // 
12 // The above copyright notice and this permission notice shall be
13 // included in all copies or substantial portions of the Software.
14 // 
15 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 //
23 using System;
24 using System.Collections.Generic;
25 using System.ComponentModel;
26 using System.Reflection;
27 using System.Windows.Markup;
28 #if !NET_2_1
29 using System.Xaml.Permissions;
30 #endif
31 using System.Xaml.Schema;
32
33 namespace System.Xaml
34 {
35         public class XamlObjectWriterSettings : XamlWriterSettings
36         {
37                 public XamlObjectWriterSettings ()
38                 {
39                 }
40
41                 public XamlObjectWriterSettings (XamlObjectWriterSettings settings)
42                         : base (settings)
43                 {
44                         var s = settings;
45 #if !NET_2_1
46                         AccessLevel = s.AccessLevel;
47 #endif
48                         AfterBeginInitHandler = s.AfterBeginInitHandler;
49                         AfterEndInitHandler = s.AfterEndInitHandler;
50                         AfterPropertiesHandler = s.AfterPropertiesHandler;
51                         BeforePropertiesHandler = s.BeforePropertiesHandler;
52                         ExternalNameScope = s.ExternalNameScope;
53                         IgnoreCanConvert = s.IgnoreCanConvert;
54                         PreferUnconvertedDictionaryKeys = s.PreferUnconvertedDictionaryKeys;
55                         RegisterNamesOnExternalNamescope = s.RegisterNamesOnExternalNamescope;
56                         RootObjectInstance = s.RootObjectInstance;
57                         SkipDuplicatePropertyCheck = s.SkipDuplicatePropertyCheck;
58                         SkipProvideValueOnRoot = s.SkipProvideValueOnRoot;
59                         XamlSetValueHandler = s.XamlSetValueHandler;
60                 }
61
62                 public EventHandler<XamlObjectEventArgs> AfterBeginInitHandler { get; set; }
63                 public EventHandler<XamlObjectEventArgs> AfterEndInitHandler { get; set; }
64                 public EventHandler<XamlObjectEventArgs> AfterPropertiesHandler { get; set; }
65                 public EventHandler<XamlObjectEventArgs> BeforePropertiesHandler { get; set; }
66                 public EventHandler<XamlSetValueEventArgs> XamlSetValueHandler { get; set; }
67
68 #if !NET_2_1
69                 [MonoTODO ("Ignored")]
70                 public XamlAccessLevel AccessLevel { get; set; }
71 #endif
72
73                 public INameScope ExternalNameScope { get; set; }
74                 [MonoTODO ("Ignored")]
75                 public bool IgnoreCanConvert { get; set; }
76                 [MonoTODO ("Ignored")]
77                 public bool PreferUnconvertedDictionaryKeys { get; set; }
78
79                 public bool RegisterNamesOnExternalNamescope { get; set; }
80
81                 public object RootObjectInstance { get; set; }
82                 [MonoTODO ("Ignored")]
83                 public bool SkipDuplicatePropertyCheck { get; set; }
84                 [MonoTODO ("Ignored")]
85                 public bool SkipProvideValueOnRoot { get; set; }
86         }
87 }