start populating the new System.Web.Configuration_2.0 dir
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / PagesSection.cs
1 //
2 // System.Web.Configuration.PagesSection
3 //
4 // Authors:
5 //      Chris Toshok (toshok@ximian.com)
6 //
7 // (C) 2005 Novell, Inc (http://www.novell.com)
8 //
9
10 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30
31 #if NET_2_0
32
33 using System;
34 using System.ComponentModel;
35 using System.Configuration;
36 using System.Web.UI;
37 using System.Xml;
38
39 namespace System.Web.Configuration
40 {
41         public class PagesSection: InternalSection
42         {
43                 static ConfigurationPropertyCollection properties;
44                 static ConfigurationProperty asyncTimeoutProp;
45                 static ConfigurationProperty autoEventWireupProp;
46                 static ConfigurationProperty bufferProp;
47                 static ConfigurationProperty modeProp;
48                 
49                 static PagesSection ()
50                 {
51                         properties = new ConfigurationPropertyCollection ();
52                         asyncTimeoutProp = new ConfigurationProperty ("asyncTimeout", typeof(TimeSpan), null);
53                         autoEventWireupProp = new ConfigurationProperty ("autoEventWireup", typeof(bool), true);
54                         bufferProp = new ConfigurationProperty ("buffer", typeof(bool), false);
55                         modeProp = new ConfigurationProperty ("compilationMode", typeof (CompilationMode), CompilationMode.Always);
56                 }
57
58                 public PagesSection ()
59                 {
60                 }
61
62                 [TimeSpanValidator (MinValueString = "00:00:00",
63                                     MaxValueString = "10675199.02:48:05.4775807")]
64                 [TypeConverter (typeof (TimeSpanSecondsConverter))]
65                 [ConfigurationProperty ("asyncTimeout", DefaultValue = "00:00:45")]
66                 public TimeSpan AsyncTimeout {
67                         get { return (TimeSpan) base [asyncTimeoutProp]; }
68                         set { base [asyncTimeoutProp] = value; }
69                 }
70
71                 [ConfigurationProperty ("autoEventWireup", DefaultValue = true)]
72                 public bool AutoEventWireup {
73                         get { return (bool) base [autoEventWireupProp]; }
74                         set { base [autoEventWireupProp] = value; }
75                 }
76
77                 [ConfigurationProperty ("buffer", DefaultValue = true)]
78                 public bool Buffer {
79                         get { return (bool) base [bufferProp]; }
80                         set { base [bufferProp] = value; }
81                 }
82
83                 [ConfigurationProperty ("compilationMode", DefaultValue = CompilationMode.Always)]
84                 public CompilationMode CompilationMode {
85                         get { return (CompilationMode) base [modeProp]; }
86                         set { base [modeProp] = value; }
87                 }
88
89 #if notyet
90                 [MonoTODO]
91                 public TagPrefixCollection Controls {
92                         get {
93                                 throw new NotImplementedException ();
94                         }
95                 }
96 #endif
97
98                 [MonoTODO]
99                 [ConfigurationProperty ("enableSessionState", DefaultValue = true)]
100                 public PagesEnableSessionState EnableSessionState {
101                         get {
102                                 throw new NotImplementedException ();
103                         }
104                         set {
105                                 throw new NotImplementedException ();
106                         }
107                 }
108
109                 [MonoTODO]
110                 [ConfigurationProperty ("enableViewState", DefaultValue = true)]
111                 public bool EnableViewState {
112                         get {
113                                 throw new NotImplementedException ();
114                         }
115                         set {
116                                 throw new NotImplementedException ();
117                         }
118                 }
119
120                 [MonoTODO]
121                 [ConfigurationProperty ("enableViewStateMac", DefaultValue = true)]
122                 public bool EnableViewStateMac {
123                         get {
124                                 throw new NotImplementedException ();
125                         }
126                         set {
127                                 throw new NotImplementedException ();
128                         }
129                 }
130
131                 [MonoTODO]
132                 [ConfigurationProperty ("maintainScrollPositionOnPostBack", DefaultValue = false)]
133                 public bool MaintainScrollPositionOnPostBack {
134                         get {
135                                 throw new NotImplementedException ();
136                         }
137                         set {
138                                 throw new NotImplementedException ();
139                         }
140                 }
141
142                 [MonoTODO]
143                 [ConfigurationProperty ("masterPageFile", DefaultValue = "")]
144                 public string MasterPageFile {
145                         get {
146                                 throw new NotImplementedException ();
147                         }
148                         set {
149                                 throw new NotImplementedException ();
150                         }
151                 }
152
153                 [MonoTODO]
154                 [ConfigurationProperty ("maxPageStateFieldLength", DefaultValue = -1)]
155                 public int MaxPageStateFieldLength {
156                         get {
157                                 throw new NotImplementedException ();
158                         }
159                         set {
160                                 throw new NotImplementedException ();
161                         }
162                 }
163
164 #if notyet
165                 [MonoTODO]
166                 [ConfigurationProperty ("namespaces")]
167                 public NamespaceCollection Namespaces {
168                         get {
169                                 throw new NotImplementedException ();
170                         }
171                 }
172 #endif
173
174                 [MonoTODO]
175                 [ConfigurationProperty ("pageBaseType", DefaultValue = "System.Web.UI.Page")]
176                 public string PageBaseType {
177                         get {
178                                 throw new NotImplementedException ();
179                         }
180                         set {
181                                 throw new NotImplementedException ();
182                         }
183                 }
184
185                 [MonoTODO]
186                 [ConfigurationProperty ("pageParserFilterType", DefaultValue = "")]
187                 public string PageParserFilterType {
188                         get {
189                                 throw new NotImplementedException ();
190                         }
191                         set {
192                                 throw new NotImplementedException ();
193                         }
194                 }
195
196                 [MonoTODO]
197                 protected override ConfigurationPropertyCollection Properties {
198                         get {
199                                 throw new NotImplementedException ();
200                         }
201                 }
202
203                 [MonoTODO]
204                 [ConfigurationProperty ("smartNavigation", DefaultValue = false)]
205                 public bool SmartNavigation {
206                         get {
207                                 throw new NotImplementedException ();
208                         }
209                         set {
210                                 throw new NotImplementedException ();
211                         }
212                 }
213
214                 [MonoTODO]
215                 [ConfigurationProperty ("styleSheetTheme", DefaultValue = "")]
216                 public string StyleSheetTheme {
217                         get {
218                                 throw new NotImplementedException ();
219                         }
220                         set {
221                                 throw new NotImplementedException ();
222                         }
223                 }
224
225 #if notyet
226                 [MonoTODO]
227                 [ConfigurationProperty ("tagMapping")]
228                 public TagMapCollection TagMapping {
229                         get {
230                                 throw new NotImplementedException ();
231                         }
232                 }
233 #endif
234
235                 [MonoTODO]
236                 [ConfigurationProperty ("theme", DefaultValue = "")]
237                 public string Theme {
238                         get {
239                                 throw new NotImplementedException ();
240                         }
241                         set {
242                                 throw new NotImplementedException ();
243                         }
244                 }
245
246                 [MonoTODO]
247                 [ConfigurationProperty ("userControlBaseType", DefaultValue = "System.Web.UI.UserControl")]
248                 public string UserControlBaseType {
249                         get {
250                                 throw new NotImplementedException ();
251                         }
252                         set {
253                                 throw new NotImplementedException ();
254                         }
255                 }
256
257                 [MonoTODO]
258                 [ConfigurationProperty ("validateRequest", DefaultValue = true)]
259                 public bool ValidateRequest {
260                         get {
261                                 throw new NotImplementedException ();
262                         }
263                         set {
264                                 throw new NotImplementedException ();
265                         }
266                 }
267
268 #if notyet
269                 [MonoTODO]
270                 [ConfigurationProperty ("viewStateEncryptionMode", DefaultValue = ViewStateEncryptionMode.Auto)]
271                 public ViewStateEncryptionMode ViewStateEncryptionMode {
272                         get {
273                                 throw new NotImplementedException ();
274                         }
275                         set {
276                                 throw new NotImplementedException ();
277                         }
278                 }
279 #endif
280                 
281                 [MonoTODO]
282                 protected override void DeserializeSection (XmlReader reader)
283                 {
284                         throw new NotImplementedException ();
285                 }
286         }
287 }
288
289 #endif