Initial drop for System.Web.Extensions assembly
[mono.git] / mcs / class / System.Web.Extensions / System.Web.UI / ScriptManager.cs
1 //
2 // ScriptManager.cs
3 //
4 // Author:
5 //   Igor Zelmanovich <igorz@mainsoft.com>
6 //
7 // (C) 2007 Mainsoft, Inc.  http://www.mainsoft.com
8 //
9 //
10 // Permission is hereby granted, free of charge, to any person obtaining
11 // a copy of this software and associated documentation files (the
12 // "Software"), to deal in the Software without restriction, including
13 // without limitation the rights to use, copy, modify, merge, publish,
14 // distribute, sublicense, and/or sell copies of the Software, and to
15 // permit persons to whom the Software is furnished to do so, subject to
16 // the following conditions:
17 // 
18 // The above copyright notice and this permission notice shall be
19 // included in all copies or substantial portions of the Software.
20 // 
21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 //
29
30 using System;
31 using System.Collections.Generic;
32 using System.Text;
33 using System.ComponentModel;
34 using System.Security.Permissions;
35 using System.Collections.Specialized;
36
37 namespace System.Web.UI
38 {
39         [ParseChildrenAttribute (true)]
40         [DefaultPropertyAttribute ("Scripts")]
41         [DesignerAttribute ("System.Web.UI.Design.ScriptManagerDesigner, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
42         [NonVisualControlAttribute]
43         [PersistChildrenAttribute (false)]
44         [AspNetHostingPermissionAttribute (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
45         [AspNetHostingPermissionAttribute (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
46         public class ScriptManager : Control, IPostBackDataHandler
47         {
48                 [DefaultValue (true)]
49                 [Category ("Behavior")]
50                 public bool AllowCustomErrorsRedirect {
51                         get {
52                                 throw new NotImplementedException ();
53                         }
54                         set {
55                                 throw new NotImplementedException ();
56                         }
57                 }
58
59                 [Category ("Behavior")]
60                 [DefaultValue ("")]
61                 public string AsyncPostBackErrorMessage {
62                         get {
63                                 throw new NotImplementedException ();
64                         }
65                         set {
66                                 throw new NotImplementedException ();
67                         }
68                 }
69
70                 [Browsable (false)]
71                 public string AsyncPostBackSourceElementID {
72                         get {
73                                 throw new NotImplementedException ();
74                         }
75                 }
76
77                 [DefaultValue (90)]
78                 [Category ("Behavior")]
79                 public int AsyncPostBackTimeout {
80                         get {
81                                 throw new NotImplementedException ();
82                         }
83                         set {
84                                 throw new NotImplementedException ();
85                         }
86                 }
87
88                 [Category ("Behavior")]
89                 [MergableProperty (false)]
90                 [DefaultValue ("")]
91                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
92                 [PersistenceMode (PersistenceMode.InnerProperty)]
93                 public AuthenticationServiceManager AuthenticationService {
94                         get {
95                                 throw new NotImplementedException ();
96                         }
97                 }
98
99                 [Category ("Behavior")]
100                 [DefaultValue (false)]
101                 public bool EnablePageMethods {
102                         get {
103                                 throw new NotImplementedException ();
104                         }
105                         set {
106                                 throw new NotImplementedException ();
107                         }
108                 }
109
110                 [DefaultValue (true)]
111                 [Category ("Behavior")]
112                 public bool EnablePartialRendering {
113                         get {
114                                 throw new NotImplementedException ();
115                         }
116                         set {
117                                 throw new NotImplementedException ();
118                         }
119                 }
120
121                 [DefaultValue (false)]
122                 [Category ("Behavior")]
123                 public bool EnableScriptGlobalization {
124                         get {
125                                 throw new NotImplementedException ();
126                         }
127                         set {
128                                 throw new NotImplementedException ();
129                         }
130                 }
131
132                 [Category ("Behavior")]
133                 [DefaultValue (false)]
134                 public bool EnableScriptLocalization {
135                         get {
136                                 throw new NotImplementedException ();
137                         }
138                         set {
139                                 throw new NotImplementedException ();
140                         }
141                 }
142
143                 [Browsable (false)]
144                 public bool IsDebuggingEnabled {
145                         get {
146                                 throw new NotImplementedException ();
147                         }
148                 }
149
150                 [Browsable (false)]
151                 public bool IsInAsyncPostBack {
152                         get {
153                                 throw new NotImplementedException ();
154                         }
155                 }
156
157                 [Category ("Behavior")]
158                 [DefaultValue (true)]
159                 public bool LoadScriptsBeforeUI {
160                         get {
161                                 throw new NotImplementedException ();
162                         }
163                         set {
164                                 throw new NotImplementedException ();
165                         }
166                 }
167
168                 [PersistenceMode (PersistenceMode.InnerProperty)]
169                 [DefaultValue ("")]
170                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
171                 [Category ("Behavior")]
172                 [MergableProperty (false)]
173                 public ProfileServiceManager ProfileService {
174                         get {
175                                 throw new NotImplementedException ();
176                         }
177                 }
178
179                 [Category ("Behavior")]
180                 public ScriptMode ScriptMode {
181                         get {
182                                 throw new NotImplementedException ();
183                         }
184                         set {
185                                 throw new NotImplementedException ();
186                         }
187                 }
188
189                 [DefaultValue ("")]
190                 [Category ("Behavior")]
191                 public string ScriptPath {
192                         get {
193                                 throw new NotImplementedException ();
194                         }
195                         set {
196                                 throw new NotImplementedException ();
197                         }
198                 }
199                 [PersistenceMode (PersistenceMode.InnerProperty)]
200                 [DefaultValue ("")]
201                 [Category ("Behavior")]
202                 [MergableProperty (false)]
203                 public ScriptReferenceCollection Scripts {
204                         get {
205                                 throw new NotImplementedException ();
206                         }
207                 }
208
209                 [PersistenceMode (PersistenceMode.InnerProperty)]
210                 [DefaultValue ("")]
211                 [MergableProperty (false)]
212                 [Category ("Behavior")]
213                 public ServiceReferenceCollection Services {
214                         get {
215                                 throw new NotImplementedException ();
216                         }
217                 }
218
219                 [DefaultValue (true)]
220                 [Browsable (false)]
221                 public bool SupportsPartialRendering {
222                         get {
223                                 throw new NotImplementedException ();
224                         }
225                         set {
226                                 throw new NotImplementedException ();
227                         }
228                 }
229
230                 [EditorBrowsable (EditorBrowsableState.Never)]
231                 [Browsable (false)]
232                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
233                 public override bool Visible {
234                         get {
235                                 return true;
236                         }
237                         set {
238                                 throw new NotImplementedException ();
239                         }
240                 }
241
242                 [Category ("Action")]
243                 public event EventHandler<AsyncPostBackErrorEventArgs> AsyncPostBackError;
244
245                 [Category ("Action")]
246                 public event EventHandler<ScriptReferenceEventArgs> ResolveScriptReference;
247
248                 public static ScriptManager GetCurrent (Page page)
249                 {
250                         throw new NotImplementedException ();
251                 }
252
253                 protected virtual bool LoadPostData (string postDataKey, NameValueCollection postCollection)
254                 {
255                         throw new NotImplementedException ();
256                 }
257
258                 protected internal virtual void OnAsyncPostBackError (AsyncPostBackErrorEventArgs e)
259                 {
260                         if (AsyncPostBackError != null)
261                                 AsyncPostBackError (this, e);
262                 }
263
264                 protected override void OnInit (EventArgs e)
265                 {
266                         base.OnInit (e);
267                 }
268
269                 protected override void OnPreRender (EventArgs e)
270                 {
271                         base.OnPreRender (e);
272                 }
273
274                 protected virtual void OnResolveScriptReference (ScriptReferenceEventArgs e)
275                 {
276                         if (ResolveScriptReference != null)
277                                 ResolveScriptReference (this, e);
278                 }
279
280                 protected virtual void RaisePostDataChangedEvent ()
281                 {
282                         throw new NotImplementedException ();
283                 }
284
285                 public static void RegisterArrayDeclaration (Control control, string arrayName, string arrayValue)
286                 {
287                         throw new NotImplementedException ();
288                 }
289
290                 public static void RegisterArrayDeclaration (Page page, string arrayName, string arrayValue)
291                 {
292                         throw new NotImplementedException ();
293                 }
294
295                 public void RegisterAsyncPostBackControl (Control control)
296                 {
297                         throw new NotImplementedException ();
298                 }
299
300                 public static void RegisterClientScriptBlock (Control control, Type type, string key, string script, bool addScriptTags)
301                 {
302                         throw new NotImplementedException ();
303                 }
304
305                 public static void RegisterClientScriptBlock (Page page, Type type, string key, string script, bool addScriptTags)
306                 {
307                         throw new NotImplementedException ();
308                 }
309
310                 public static void RegisterClientScriptInclude (Control control, Type type, string key, string url)
311                 {
312                         throw new NotImplementedException ();
313                 }
314
315                 public static void RegisterClientScriptInclude (Page page, Type type, string key, string url)
316                 {
317                         throw new NotImplementedException ();
318                 }
319
320                 public static void RegisterClientScriptResource (Control control, Type type, string resourceName)
321                 {
322                         throw new NotImplementedException ();
323                 }
324
325                 public static void RegisterClientScriptResource (Page page, Type type, string resourceName)
326                 {
327                         throw new NotImplementedException ();
328                 }
329
330                 public void RegisterDataItem (Control control, string dataItem)
331                 {
332                         throw new NotImplementedException ();
333                 }
334
335                 public void RegisterDataItem (Control control, string dataItem, bool isJsonSerialized)
336                 {
337                         throw new NotImplementedException ();
338                 }
339
340                 public void RegisterDispose (Control control, string disposeScript)
341                 {
342                         throw new NotImplementedException ();
343                 }
344
345                 public static void RegisterExpandoAttribute (Control control, string controlId, string attributeName, string attributeValue, bool encode)
346                 {
347                         throw new NotImplementedException ();
348                 }
349
350                 public static void RegisterHiddenField (Control control, string hiddenFieldName, string hiddenFieldInitialValue)
351                 {
352                         throw new NotImplementedException ();
353                 }
354
355                 public static void RegisterHiddenField (Page page, string hiddenFieldName, string hiddenFieldInitialValue)
356                 {
357                         throw new NotImplementedException ();
358                 }
359
360                 public static void RegisterOnSubmitStatement (Control control, Type type, string key, string script)
361                 {
362                         throw new NotImplementedException ();
363                 }
364
365                 public static void RegisterOnSubmitStatement (Page page, Type type, string key, string script)
366                 {
367                         throw new NotImplementedException ();
368                 }
369
370                 public void RegisterPostBackControl (Control control)
371                 {
372                         throw new NotImplementedException ();
373                 }
374
375                 public void RegisterScriptDescriptors (IExtenderControl extenderControl)
376                 {
377                         throw new NotImplementedException ();
378                 }
379
380                 public void RegisterScriptDescriptors (IScriptControl scriptControl)
381                 {
382                         throw new NotImplementedException ();
383                 }
384
385                 public static void RegisterStartupScript (Control control, Type type, string key, string script, bool addScriptTags)
386                 {
387                         throw new NotImplementedException ();
388                 }
389
390                 public static void RegisterStartupScript (Page page, Type type, string key, string script, bool addScriptTags)
391                 {
392                         throw new NotImplementedException ();
393                 }
394
395                 protected override void Render (HtmlTextWriter writer)
396                 {
397                         throw new NotImplementedException ();
398                 }
399
400                 public void SetFocus (Control control)
401                 {
402                         throw new NotImplementedException ();
403                 }
404
405                 public void SetFocus (string clientID)
406                 {
407                         throw new NotImplementedException ();
408                 }
409
410                 #region IPostBackDataHandler Members
411
412                 bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
413                 {
414                         return LoadPostData (postDataKey, postCollection);
415                 }
416
417                 void IPostBackDataHandler.RaisePostDataChangedEvent ()
418                 {
419                         RaisePostDataChangedEvent ();
420                 }
421
422                 #endregion
423         }
424 }